re PR rtl-optimization/46034 (internal compiler error: segmentation fault)
[gcc.git] / gcc / ChangeLog
1 2010-11-03 Jakub Jelinek <jakub@redhat.com>
2
3 PR rtl-optimization/46034
4 PR rtl-optimization/46212
5 PR rtl-optimization/46248
6 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
7 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
8 before i0dest -> i0src substitution and pass 1 instead of 0 as last
9 argument to subst on i2pat.
10
11 2010-11-02 Ian Lance Taylor <iant@google.com>
12
13 * configure.ac: Use AC_SYS_LARGEFILE.
14 * configure: Rebuild.
15 * config.in: Rebuild.
16
17 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
18
19 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
20 fold_convert.
21 * c-typeck.c (build_function_call_vec): Likewise.
22 * cfgexpand.c (expand_debug_expr): Likewise.
23 * cgraphunit.c (assemble_thunk): Likewise.
24 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
25 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
26 (fold_binary_loc, fold_ternary_loc): Likewise.
27 * gimple-fold.c (get_symbol_constant_value): Likewise.
28 * gimple-low.c (lower_builtin_setjmp): Likewise.
29 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
30 * gimplify.c (gimplify_init_constructor): Likewise.
31 * lambda.h (build_linear_expr): Likewise.
32 * omp-low.c (omp_reduction_init): Likewise.
33 * tree-inline.c (remap_ssa_name): Likewise.
34 * tree-object-size.c (compute_object_sizes): Likewise.
35 * tree-sra.c (init_subtree_with_zero): Likewise.
36 (sra_ipa_modify_assign): Likewise.
37 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
38 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
39 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
40 (undistribute_ops_list): Likewise.
41 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
42 * tree-vect-stmts.c (vectorizable_call): Likewise.
43 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
44 (build_zero_cst): Handle more cases directly. Update comment.
45
46 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
47
48 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper):
49 Removed.
50 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
51
52 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
53 and call ix86_split_call_vzeroupper instead of
54 ix86_split_call_pop_vzeroupper.
55 (*call_pop_1_vzeroupper): Likewise.
56 (*sibcall_pop_1_vzeroupper): Likewise.
57 (*call_value_pop_0_vzeroupper): Likewise.
58 (*call_value_pop_1_vzeroupper): Likewise.
59 (*sibcall_value_pop_1_vzeroupper): Likewise.
60
61 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
62
63 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a
64 typo.
65
66 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
67
68 * basic-block.h (insert_insn_end_bb_new): Delete.
69 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
70
71 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
72 H.J. Lu <hongjiu.lu@intel.com>
73
74 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
75 (ix86_split_call_pop_vzeroupper): Likewise.
76
77 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
78 (ix86_expand_call): Conditionally decorate calls with
79 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
80 (ix86_split_call_vzeroupper): New.
81 (ix86_split_call_pop_vzeroupper): Likewise.
82
83 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
84 (*call_pop_0_vzeroupper): New insn_and_split pattern.
85 (*call_pop_1_vzeroupper): Likewise.
86 (*sibcall_pop_1_vzeroupper): Likewise.
87 (*call_0_vzeroupper): Likewise.
88 (*call_1_vzeroupper): Likewise.
89 (*sibcall_1_vzeroupper): Likewise.
90 (*call_1_rex64_vzeroupper): Likewise.
91 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
92 (*call_1_rex64_large_vzeroupper): Likewise.
93 (*sibcall_1_rex64_vzeroupper): Likewise.
94 (*call_value_pop_0_vzeroupper): Likewise.
95 (*call_value_pop_1_vzeroupper): Likewise.
96 (*sibcall_value_pop_1_vzeroupper): Likewise.
97 (*call_value_0_vzeroupper): Likewise.
98 (*call_value_0_rex64_vzeroupper): Likewise.
99 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
100 (*call_value_1_vzeroupper): Likewise.
101 (*sibcall_value_1_vzeroupper): Likewise.
102 (*call_value_1_rex64_vzeroupper): Likewise.
103 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
104 (*call_value_1_rex64_large_vzeroupper): Likewise.
105 (*sibcall_value_1_rex64_vzeroupper): Likewise.
106
107 2010-11-02 Ian Lance Taylor <iant@google.com>
108
109 PR lto/46273
110 * config.gcc: Revert last patch: set lto_binary_reader.
111
112 2010-11-02 Richard Guenther <rguenther@suse.de>
113
114 PR tree-optimization/46149
115 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
116 non-indirect MEM_REF variants.
117
118 2010-11-02 Richard Guenther <rguenther@suse.de>
119
120 PR tree-optimization/46216
121 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
122 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
123
124 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
125
126 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
127 (*-*-osf*): Likewise.
128 * configure: Regenerate.
129
130 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
131
132 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
133 for Intel Core 2 and Core i7.
134
135 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
136
137 Model decoder of Core 2/i7 for multipass scheduling.
138
139 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
140 New type to hold target-specific data for multipass scheduling.
141 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
142 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
143 Core 2/i7.
144 (core2i7_secondary_decoder_max_insn_size,)
145 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
146 New static variables.
147 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
148 ([_]ix86_first_cycle_multipass_data): New static variable.
149 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
150 Implement targetm.sched hooks.
151 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
152 of ...
153 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
154 Implement new targetm.sched hooks.
155 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
156 targetm.sched hook to install multipass scheduling hooks on demand.
157
158 * doc/tm.texi.in: Document new targetm.sched hooks.
159 * doc/tm.texi: Regenerate.
160
161 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
162 (first_cycle_multipass_data_t): New typedef.
163 (struct choice_entry: target_data): New field.
164 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
165 to allow target model restrictions not represented in DFA.
166 (choose_ready, schedule_block): Update.
167 (sched_extend_ready_list, sched_finish_ready_list): Call new target
168 hooks to initialize target-specific data for multipass scheduling.
169 * sched-int.h (max_issue): Update declaration.
170 * sel-sched.c (choose_best_insn): Update.
171 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
172 (first_cycle_multipass_{init, fini}): Define and document new
173 targetm.sched hooks.
174
175 2010-11-02 Richard Guenther <rguenther@suse.de>
176
177 PR tree-optimization/46184
178 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
179 input vector type from the reduction operand as well.
180
181 2010-11-02 Richard Guenther <rguenther@suse.de>
182
183 PR tree-optimization/46177
184 * tree-loop-distribution.c (prop_phis): Use
185 mark_virtual_phi_result_for_renaming.
186
187 2010-11-02 Martin Jambor <mjambor@suse.cz>
188
189 PR middle-end/46120
190 * tree.c (get_binfo_at_offset): Bail out on artificial
191 fields. Identify primary bases according to their offsets.
192
193 2010-11-02 Martin Jambor <mjambor@suse.cz>
194
195 PR tree-optimization/45875
196 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
197 (gimple_get_relevant_ref_binfo): Detect primary bases according to
198 their field offset.
199
200 2010-11-02 Ian Lance Taylor <iant@google.com>
201
202 * doc/install.texi (Configuration): Note in two places that Java
203 is not enabled by default.
204
205 2010-11-02 Ian Lance Taylor <iant@google.com>
206
207 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
208 (Configuration): Mention --disable-lto. Remove --with-libelf
209 paragraph.
210
211 2010-11-02 Ian Lance Taylor <iant@google.com>
212
213 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
214 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
215 LIBELFINC. Remove HAVE_libelf.
216 * config.gcc: Don't set lto_binary_reader.
217 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
218 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
219 (LIBS): Remove $(LIBELFLIBS).
220 (INCLUDES): Remove $(LIBELFINC).
221 * configure: Rebuild.
222 * config.in: Rebuild.
223
224 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
225
226 * config/microblaze/microblaze-protos.h (function_arg): Delete.
227 (function_arg_advance): Delete.
228 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
229 (FUNCTION_ARG): Delete.
230 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
231 (microblaze_function_arg_advance): ...this. Make static. Take a
232 const_tree and a bool.
233 (function-arg): Rename to...
234 (microblaze_function_arg): ...this. Make static. Take a const_tree
235 and a bool.
236 (microblaze_expand_prologue): Call targetm.calls.function_arg and
237 targetm.calls.function_arg_advance.
238 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
239
240 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
241
242 Merge from FSF "apple/trunk" branch.
243
244 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
245 * config/darwin.opt: .. to here.
246 (matt-stubs): New option.
247 * config/i386/darwin.opt: Delete.
248 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
249 (MACHO_DYNAMIC_NO_PIC_P): New.
250 (MACHOPIC_INDIRECT): New.
251 (MACHOPIC_PURE): New.
252 * config/i386/darwin.h (DARWIN_X86) Define to 1.
253 (MACHOPIC_ATT_STUB): New.
254 (CC1_SPEC): Do not remove mdynamic-no-pic.
255 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
256 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
257 (FUNCTION_PROFILER): Correct over-length line.
258 (SUBTARGET_OVERRIDE_OPTIONS): New.
259 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
260 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
261 (legitimate_constant_p): Handle mdynamic-no-pic.
262 (ix86_legitimate_address_p): Likewise.
263 (ix86_legitimize_address): Likewise.
264 (ix86_expand_move): Likewise.
265 (machopic_output_stub): Update for ATT-style stubs and
266 mdynamic-no-pic.
267 * config/darwin-protos.h (machopic_symbol_defined_p): New.
268 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
269 TARGET_DYNAMIC_NO_PIC: Remove.
270 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
271 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
272 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
273 Remove handling of mdynamic-no-pic.
274 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
275 Define if required.
276 (machopic_symbol_defined_p): Do not try to use current_function_decl
277 when generating _get_pc thunks within stubs.
278 (machopic_indirect_data_reference): Rework for direct conditionals
279 rather than #ifdefs, add x86 mdynamic-no-pic
280 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
281 defined value.
282 (darwin_override_options): Handle mdynamic-no-pic here.
283 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
284 (machopic_lazy_symbol_ptr3_section): New.
285 (machopic_picsymbol_stub2_section): New.
286 (machopic_picsymbol_stub3_section): New.
287 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
288 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
289 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
290 Moved common definition from x86 and rs6000.
291 (MACHO_DYNAMIC_NO_PIC_P): Override value.
292 (MACHOPIC_INDIRECT): Likewise.
293 (MACHOPIC_PURE): Likewise.
294 * config.gcc (x86-darwin-*): Remove darwin.opt.
295
296 2010-11-02 Jakub Jelinek <jakub@redhat.com>
297
298 PR debug/46255
299 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
300 instead of gsi_last_bb.
301
302 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
303 Maxim Kuvyrkov <maxim@codesourcery.com>
304
305 * config/i386/i386.c (cpu_names): Add "corei7".
306 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
307
308 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
309 Maxim Kuvyrkov <maxim@codesourcery.com>
310
311 Tune alignment for Intel Core i7
312
313 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
314 (enum processor_type): Update comment. Add entries for Core i7.
315 * config/i386-c.c (ix86_target_macros_internal): Update.
316 * config/i386.c (m_COREI7{_32,_64}): New macros.
317 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
318 (processor_target_table): Tune alignment for Core i7.
319 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
320
321 * doc/invoke.texi: Document "corei7" option value.
322
323 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
324 Maxim Kuvyrkov <maxim@codesourcery.com>
325 H.J. Lu <hjl.tools@gmail.com>
326
327 Basic support for Intel Core i7
328
329 * i386.c (ix86_option_override_internal): Add entry for corei7, use
330 generic tuning. Use generic32 when compiling for 32-bit ABI.
331
332 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
333
334 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
335 sections and call darwin_asm_dwarf_section() to handle them.
336 (darwin_asm_dwarf_section): New.
337 (darwin_file_start): Remove code emitting dwarf section symbols.
338
339 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
340
341 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
342 explicitly disable stack protection when building libgcc.
343 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
344
345 2010-11-01 Jason Merrill <jason@redhat.com>
346
347 * fold-const.c (fold_indirect_ref_1): Handle folding
348 POINTER_PLUS_EXPR to ARRAY_REF.
349
350 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
351
352 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
353 (sh_delegitimize_address): New function.
354
355 2010-11-01 Joseph Myers <joseph@codesourcery.com>
356
357 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
358 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
359 (CC1_SPEC): Don't handle -target.
360 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
361 options.
362 * config/darwin.opt (Zallowable_client, Zbundle_loader,
363 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
364 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
365 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
366 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
367 Zweak_reference_mismatches, client_name, compatibility_version,
368 current_version, dylinker_install_name, pagezero_size,
369 read_only_relocs, seg1addr, segs_read_only_addr,
370 segs_read_write_addr, sub_library, sub_umbrella): New.
371 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
372 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
373 * config/freebsd.opt: New.
374 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
375 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
376 * config/rpath.opt: New.
377 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
378 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
379 Use rpath.opt.
380
381 2010-11-01 Joseph Myers <joseph@codesourcery.com>
382
383 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
384 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
385 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
386 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
387 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
388 Document that options in .opt files do not need to be included.
389 * doc/tm.texi: Regenerate.
390 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
391 * opts-common.c: Update comment on tm.h include.
392 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
393 * system.h (SWITCH_TAKES_ARG): Poison.
394 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
395 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
396 in darwin.opt.
397 (LINK_COMMAND_SPEC_A): Don't include %{x}.
398 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
399 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
400 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
401 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
402 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
403 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
404 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
405 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
406 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
407 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
408 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
409 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
410 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
411 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
412 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
413 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
414 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
415 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
416 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
417 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
418 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
419 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
420 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
421
422 2010-11-01 Paul Koning <ni1d@arrl.net>
423
424 * config/pdp11/pdp11.md: Use iterators.
425 (addqi3, subqi3, iorsi3, xorsi3): Delete.
426
427 2010-11-01 Steve Ellcey <sje@cup.hp.com>
428
429 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
430 GCC_INSN_FLAGS_H.
431 * libgcov.c (__gcov_indirect_call_profiler): Set
432 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
433 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
434
435 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
436
437 PR tree-optimization/46259
438
439 Revert:
440 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
441
442 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
443 build_vector_from_val.
444
445 2010-11-01 DJ Delorie <dj@redhat.com>
446
447 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
448 as well as an assertion.
449
450 2010-11-01 Paul Koning <ni1d@arrl.net>
451
452 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
453 complex modes in memory.
454
455 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
456
457 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
458
459 2010-11-01 Jakub Jelinek <jakub@redhat.com>
460
461 PR target/45250
462 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
463 (cfa_base_offset): New variable.
464 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
465 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
466 is NULL.
467 (vt_init_cfa_base): Initialize cfa_base_offset.
468
469 2010-11-01 Alan Modra <amodra@gmail.com>
470
471 PR target/46030
472 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
473 and savres_strategy.
474 (stack_info): New file scope var.
475 (rs6000_init_machine_status): Init stack_info.
476 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
477 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
478 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
479 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
480 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
481 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
482 (rs6000_savres_strategy): Rewrite.
483 (rs6000_stack_info): Use "stack_info" in place of local "info".
484 Return cached stack info when reload_completed unless ENABLE_CHECKING
485 in which case confirm newly calculated stack info matches old info.
486 Delay calculation of lr_save_p, set it for out of line gp save/restore
487 as well as fp. Call rs6000_savres_strategy from here..
488 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
489 (rs6000_output_function_prologue): Use info->savres_strategy to
490 determine whether fp save/restore externs need to be emitted.
491
492 2010-10-31 Jason Merrill <jason@redhat.com>
493
494 * tree.h (EXPR_LOC_OR_HERE): New macro.
495 * builtins.c (c_strlen): Use it.
496 * c-decl.c (build_enumerator): Likewise.
497 * gimplify.c (internal_get_tmp_var): Likewise.
498 (shortcut_cond_expr): Likewise.
499 (gimplify_one_sizepos): Likewise.
500
501 2010-10-31 Richard Henderson <rth@redhat.com>
502
503 * config/i386/cygming.h (TARGET_SEH): New.
504 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
505 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
506 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
507 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
508 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
509 (ASM_DECLARE_FUNCTION_SIZE): New.
510 * config/i386/i386-protos.h: Update.
511 * config/i386/i386.c (ix86_option_override_internal): Enable
512 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
513 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
514 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
515 (ix86_compute_frame_layout): For SEH, disable
516 use_fast_prologue_epilogue, move frame pointer to the end of
517 the frame. Initialize hfp_save_offset.
518 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
519 at end of prologue for SEH.
520 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
521 emit blockage at beginning of epilogue.
522 (ix86_expand_binary_operator): After reload, emit LEA if needed.
523 (ix86_output_call_insn): New.
524 * config/i386/i386.h (TARGET_SEH): New.
525 (struct machine_function): Add member seh.
526 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
527 * config/i386/winnt.c (struct seh_frame_state): New.
528 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
529 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
530 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
531 i386_pe_start_function, i386_pe_end_function): New.
532
533 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
534 as CFA_STORE in rules 12 and 13.
535
536 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
537
538 PR tree-optimization/46142
539 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
540 accommodate third function argument.
541
542 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
543
544 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
545
546 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
547
548 * fold-const.c (build_zero_vector): Use build_vector_from_val.
549 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
550 (get_initial_def_for_reduction): Likewise.
551 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
552 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
553 * tree.c (build_one_cst): Likewise.
554 (build_vector_from_val): Use types_compatible_p for assert.
555
556 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
557
558 * emit-rtl.c (mark_used_flags): New function.
559 (set_used_flags, reset_used_flags): Call it.
560
561 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
562
563 PR middle-end/44569
564 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
565 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
566
567 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
568
569 PR target/46195
570 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
571 (ix86_compat_aligned_value_p): This.
572 (ix86_old_function_arg_boundary): Renamed to ...
573 (ix86_compat_function_arg_boundary): This. Updated.
574 (ix86_contains_aligned_value_p): New.
575 (ix86_function_arg_boundary): Align long double parameters on
576 stack to 4byte in 32bit.
577
578 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
579
580 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
581 * c-parser.c (c_parser_objc_at_property_declaration): Removed
582 parsing of RID_COPIES and RID_IVAR. Updated call to
583 objc_add_property_declaration.
584 * c-typecheck.c (build_component_ref): Call
585 objc_maybe_build_component_ref instead of objc_build_setter_call.
586 Use objc_is_property_ref to improve Objective-C checks.
587 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
588 of objc_build_getter_call.
589
590 2010-10-29 Paul Koning <ni1d@arrl.net>
591
592 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
593 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
594 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
595 (REG_OK_STRICT): Move description.
596
597 2010-10-29 Paul Koning <ni1d@arrl.net>
598
599 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
600
601 2010-10-29 Paul Koning <ni1d@arrl.net>
602
603 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
604
605 2010-10-29 Paul Koning <ni1d@arrl.net>
606
607 PR/41822
608 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
609
610 2010-10-29 Richard Henderson <rth@redhat.com>
611
612 PR rtl-opt/46226
613 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
614 for asm goto.
615
616 2010-10-29 Paul Koning <ni1d@arrl.net>
617
618 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
619 register to register move.
620
621 2010-10-29 Paul Koning <ni1d@arrl.net>
622
623 * config/pdp11/pdp11.c (print_operand_address): Correct handling
624 of integer constant addresses, delete vax-only logic.
625
626 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
627
628 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
629 a conditional expression.
630
631 2010-10-29 Paul Koning <ni1d@arrl.net>
632
633 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
634 instruction encoding.
635
636 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
637 Andrew Pinski <pinskia@gmail.com>
638
639 * tree.h (build_vector_from_val): Declare.
640 * tree.c (build_vector_from_val): New function.
641 * c-typeck.c (build_binary_op): Handle vector shifting.
642 * doc/extend.texi: Description of the vector shifting operation.
643
644 2010-10-29 Paul Koning <pkoning@equallogic.com>
645
646 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
647 pdp11_secondary_memory_needed): Declare.
648 * config/pdp11/predicates.md (float_operand): New predicate.
649 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
650 (cbranchdf4, movdf): Change predicate.
651 (movsf): Handle FPU register case.
652 (truncdfsf2, extendsfdf2): Add FPU register case.
653 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
654 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
655 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
656 (pdp11_register_move_cost): Update cost matrix.
657 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
658 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
659 pdp11_secondary_memory_needed): New function.
660 (pdp11_return_in_memory): Add other float types.
661 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
662 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
663 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
664 REGISTER_MOVE_COST): Delete.
665 (BASE_RETURN_VALUE_REG): Add other float types.
666
667 2010-10-29 Nick Clifton<nickc@redhat.com>
668
669 * doc/invoke.texi: Document -mam34 and -mtune options.
670 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
671 (mn10300_tune_cpu): New variable.
672 (mn10300_handle_option): Handle -mam34 and -mtune options.
673 (mn10300_option_override): Convert tune string into tune cpu variable.
674 (mn10300_legitimate_constant_p): Delete unused local variable.
675 (is_load_insn): New function.
676 (is_store_insn): New function.
677 (mn10300_adjust_schedule_cost): New function.
678 (TARGET_SCHED_ADJUST_COST): Define.
679 * config/mn10300/mn10300.opt (mam34): New option.
680 (mtune): New option.
681 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
682 (enum processor_type): Add AM34.
683 (TARGET_AM34): Define.
684 * config/mn10300/mn10300.md (attr cpu): Add am34.
685 Add pipeline description.
686 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
687 Remove unneeded alternatives. Add timing attribute.
688 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
689 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
690 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
691 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
692 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
693 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
694 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
695 float_conditional_branch, jump, indirect_jump, tablejump,
696 call_internal, call_value_internal, zero_extendqisi2_am33,
697 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
698 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
699 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
700 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
701 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
702 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
703 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
704 return_internal_regs, store_movm, return, call_next_insn):
705 Add timing attribute.
706 (am33_subsi3): Add missing clobber of CC_REG.
707 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
708 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
709 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
710 extendqisi2): Fix predicates.
711 (call_internal, call_internal_value): Separate alternatives.
712 * config/mn10300/t-mn10300: Add AM34 multilib.
713
714 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
715
716 * config/sh/sh.c (sh_promote_function_mode): Use
717 default_promote_function_mode if !sh_promote_prototypes.
718
719 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
720
721 * recog.c (split_all_insns): Remove dead code.
722
723 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
724
725 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
726
727 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
728
729 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
730 (FUNCTION_ARG_ADVANCE): Delete.
731 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
732 functions.
733 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
734 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
735 (TARGET_FUNCTION_ARG_ADVANCE): Define.
736
737 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
738
739 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
740 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
741 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
742 Take a const_tree and a bool.
743 (mcore_function_arg_advance): New function.
744 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
745
746 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
747
748 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
749 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
750 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
751 Take a const_tree and a bool.
752 (mcore_function_arg_advance): New function.
753 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
754
755 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
756
757 * config/h8300/h8300-protos.h (function_arg): Delete.
758 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
759 * config/h8300/h8300.c (function_arg): Rename to...
760 (h8300_function_arg): ...this. Make static. Take a const_tree and
761 a bool.
762 (h8300_function_arg_advance): New function.
763 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
764
765 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
766
767 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
768 to...
769 * config/arc/arc.c (arc_function_arg): ...here and...
770 (arc_function_arg_advance): ...here. New functions.
771 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
772
773 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
774
775 * config/crx/crx-protos.h (crx_function_arg): Delete.
776 (crx_function_arg_advance): Delete.
777 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
778 * config/crx/crx.c (crx_function_arg): Make static. Take a
779 const_tree and a bool.
780 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
781 (enough_regs_for_param): Take a const_tree.
782 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
783
784 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
785
786 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
787 (m68hc11_function_arg_advance): Delete.
788 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
789 (FUNCTION_ARG_ADVANCE): Delete.
790 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
791 Take a const_tree and a bool.
792 (m68hc11_function_arg_advance): Likewise.
793 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
794
795 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
796
797 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
798 (xstormy16_function_arg_advance): Delete.
799 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
800 (FUNCTION_ARG_ADVANCE): Delete.
801 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
802 Take a const_tree and a bool.
803 (xstormy16_function_arg_advance): Likewise. Return void, updating
804 the CUM parameter instead.
805 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
806
807 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
808
809 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
810 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
811 (MOXIE_FUNCTION_ARG_SIZE): Move to...
812 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
813 (moxie_function_arg): Make static. Take a const_tree and a bool.
814 (moxie_function_arg_advance): New function.
815 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
816
817 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
818
819 * config/mn10300/mn10300-protos.h (function_arg): Delete.
820 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
821 (FUNCTION_ARG_ADVANCE): Delete.
822 * config/mn10300/mn10300.c (function_arg): Rename to...
823 (mn10300_function_arg): ...this. Make static. Take a const_tree
824 and a bool.
825 (mn10300_function_arg_advance): New function.
826 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
827
828 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
829
830 * config/iq2000/iq2000-protos.h (function_arg): Delete.
831 (function_arg_advance): Delete.
832 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
833 * config/iq2000/iq2000.c (function_arg): Rename to...
834 (iq2000_function_arg): ...this. Make static. Take a const_tree and
835 a bool.
836 (function_arg_advance): Rename to...
837 (iq2000_function_arg_advance): ...this. Make static. Take a
838 const_tree and a bool.
839 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
840 iq2000_function_arg.
841 (iq2000_pass_by_reference): Call iq2000_function_arg).
842 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
843
844 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
845
846 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
847 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
848 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
849 const_tree.
850 (fr30_function_arg): New function.
851 (fr30_function_arg_advance): New function.
852 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
853
854 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
855
856 * config/frv/frv-protos.h (frv_function_arg): Delete.
857 (frv_function_arg_advance): Delete.
858 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
859 * config/frv/frv.c (frv_function_arg): Rename to...
860 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
861 (frv_function_arg, frv_function_incoming_arg): New functions.
862 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
863 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
864 (TARGET_FUNCTION_ARG_ADVANCE): Define.
865
866 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
867
868 PR target/46153
869 * config/i386/sse.md (sse_movhlps_exp): Use destination
870 returned from ix86_fixup_binary_operands to expand insn.
871 (sse_movlhps_exp): Ditto.
872 (sse_loadhps_exp): Ditto.
873 (sse_loadlps_exp): Ditto.
874 (sse2_loadhpd_exp): Ditto.
875 (sse2_loadlpd_exp): Ditto.
876
877 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
878
879 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
880 constants in thumb2.
881
882 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
883
884 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
885 arithmetics in masking operations.
886 (contains_muldiv): Likewise.
887 (try_combine): Likewise.
888 (find_split_point): Likewise.
889 (combine_simplify_rtx): Likewise.
890 (simplify_if_then_else): Likewise.
891 (simplify_set): Likewise.
892 (expand_compound_operation): Likewise.
893 (expand_field_assignment): Likewise.
894 (make_extraction): Likewise.
895 (extract_left_shift): Likewise.
896 (make_compound_operation): Likewise.
897 (force_to_mode): Likewise.
898 (make_field_assignment): Likewise.
899 (reg_nonzero_bits_for_combine): Likewise.
900 (simplify_shift_const_1): Likewise.
901 (simplify_comparison): Likewise.
902
903 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
904
905 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
906 (ia64_function_arg_advance): Delete.
907 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
908 (FUNCTION_ARG_ADVANCE): Delete.
909 * config/ia64/ia64.c (ia64_function_arg): Rename to...
910 (ia64_function_arg_1): ...this. Make static. Take const_tree and
911 bool arguments.
912 (ia64_function_arg, ia64_function_incoming_arg): New functions.
913 (ia64_function_arg_advance): Make static. Take a const_tree and
914 a bool.
915 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
916 (TARGET_FUNCTION_ARG_ADVANCE): Define.
917
918 2010-10-27 Steve Ellcey <sje@cup.hp.com>
919
920 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
921 (TARGET_GET_RAW_ARG_MODE): New.
922 * doc/tm.texi: Regenerate.
923 * target.def (get_raw_result_mode): New.
924 (get_raw_arg_mode): New.
925 * targhooks.c (default_get_reg_raw_mode): New.
926 * targhooks.h (default_get_reg_raw_mode): New.
927 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
928 (apply_result_size): Ditto.
929 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
930 (TARGET_GET_RAW_RESULT_MODE): Define.
931 (TARGET_GET_RAW_ARG_MODE): Ditto.
932
933 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
934
935 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
936 for newer Solaris 10 release.
937 (sparc_fallback_frame_state): Likewise.
938
939 2010-10-27 Jason Merrill <jason@redhat.com>
940
941 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
942 variables sooner.
943
944 2010-10-27 Jie Zhang <jie@codesourcery.com>
945 Maxim Kuvyrkov <maxim@codesourcery.com>
946
947 * haifa-sched.c (ISSUE_POINTS): Remove.
948 (max_issue): Don't issue more than issue_rate instructions.
949
950 2010-10-27 Ian Lance Taylor <iant@google.com>
951
952 PR target/46197
953 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
954 (split_stack_return): Replace UNSPEC_STACK_CHECK with
955 UNSPECV_SPLIT_STACK_RETURN.
956
957 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
958
959 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
960
961 * config/i386/i386.c (block_info): New.
962 (BLOCK_INFO): Likewise.
963 (call_avx256_state): Likewise.
964 (check_avx256_stores): Likewise.
965 (move_or_delete_vzeroupper_2): Likewise.
966 (move_or_delete_vzeroupper_1): Likewise.
967 (move_or_delete_vzeroupper): Likewise.
968 (use_avx256_p): Likewise.
969 (function_pass_avx256_p): Likewise.
970 (flag_opts): Add -mvzeroupper.
971 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
972 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
973 is disabled.
974 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
975 generate vzeroupper.
976 (init_cumulative_args): Add an int to indicate caller. Set
977 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
978 based on return type.
979 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
980 caller_pass_avx256_p based on argument type.
981 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
982 is used, but not returned by caller.
983 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
984 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
985 is used.
986 (ix86_minimum_alignment): Likewise.
987 (ix86_expand_special_args_builtin): Set target to
988 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
989 (ix86_reorg): Run the vzeroupper optimization if needed.
990
991 * config/i386/i386.h (ix86_args): Add caller.
992 (INIT_CUMULATIVE_ARGS): Updated.
993 (machine_function): Add use_vzeroupper_p, use_avx256_p,
994 caller_pass_avx256_p, caller_return_avx256_p,
995 callee_pass_avx256_p and callee_return_avx256_p.
996
997 * config/i386/i386.opt (-mvzeroupper): New.
998
999 * config/i386/predicates.md (vzeroupper_operation): Removed.
1000
1001 * config/i386/sse.md (avx_vzeroupper): Removed.
1002 (*avx_vzeroupper): Removed.
1003 (avx_vzeroupper): New.
1004
1005 * doc/invoke.texi: Document -mvzeroupper.
1006
1007 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1008
1009 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
1010 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
1011 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
1012
1013 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1014 Olivier Hainque <hainque@adacore.com>
1015
1016 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
1017 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
1018 fs->signal_frame instead.
1019
1020 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1021
1022 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
1023 parsing of RID_COPIES and RID_IVAR.
1024
1025 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1026
1027 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
1028 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
1029 Do not use objc_set_property_attr, but use local variables
1030 instead. Detect repeated usage of setter, getter and ivar
1031 attributes. Improved error processing when a setter name does not
1032 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
1033 that the token is a keyword. Updated call to
1034 objc_add_property_declaration.
1035
1036 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1037
1038 * c-parser.c (c_parser_objc_at_property): Renamed to
1039 c_parser_objc_at_property_declaration. Updated calls to
1040 objc_add_property_variable, now objc_add_property_declaration.
1041 Code rewritten to be much more robust in recovering from syntax
1042 errors. Added comments.
1043 (c_parser_objc_property_attrlist): Removed.
1044 (c_parser_external_declaration): Updated calls to
1045 c_parser_objc_at_property, now
1046 c_parser_objc_at_property_declaration.
1047 (c_parser_objc_methodprotolist): Same change.
1048
1049 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1050
1051 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
1052
1053 2010-10-26 Jan Hubicka <jh@suse.cz>
1054
1055 * ipa.c (process_references): Enqueue all referenced nodes;
1056 mark as reachable only non-external nodes.
1057 (cgraph_remove_unreachable_nodes): All referenced nodes should
1058 be enqueued; remove bogues node->needed check.
1059
1060 2010-10-26 Jan Hubicka <jh@suse.cz>
1061
1062 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1063 to represent OMP.
1064
1065 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1066
1067 * config/i386/i386.md (split_stack_return): Replace
1068 unspec_volatile with unspec.
1069
1070 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
1071
1072 * doc/install.texi: Fix typo in --with-sysroot description.
1073
1074 2010-10-26 Jan Hubicka <jh@suse.cz>
1075
1076 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1077 Use info provided by linker plugin.
1078
1079 2010-10-26 Jason Merrill <jason@redhat.com>
1080
1081 * varasm.c (constructor_static_from_elts_p): Don't require a
1082 CONSTRUCTOR to have elements to be suitable for static
1083 initialization. Allow ARRAY_TYPE as well.
1084
1085 2010-10-26 Jan Hubicka <jh@suse.cz>
1086
1087 PR middle-end/45736
1088 * cgraph.c (cgraph_set_readonly_flag): Rename to...
1089 (cgraph_set_const_flags) ... this one; get also looping argument;
1090 clear constructor/destructor flags.
1091 (cgraph_set_pure_flag): Likewise.
1092 (cgraph_set_looping_const_or_pure_flag): Remove.
1093 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1094 to optimize away static ctors/dtors; it does not work on inline clones;
1095 external functions can always be rmeoved.
1096 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1097 inline clones; in LTO external functions always can go.
1098 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1099 (cgraph_mark_address_taken_node): Assert that we are not taking
1100 address of inline clone.
1101 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1102 external functions.
1103 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1104 address taken.
1105 (ipcp_initialize_node_lattices): Only local functions can be
1106 handled without cloning.
1107 * cgraph.h (cgraph_set_readonly_flag,
1108 cgraph_set_looping_const_or_pure_flag): Remove.
1109 (cgraph_set_const_flag): Declare.
1110 (cgraph_set_pure_flag): Update.
1111 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
1112 flags setting code.
1113 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
1114 look at inline clones; fix handling of external definitions.
1115 (cgraph_postorder): Do not look at inline clones in the first pass.
1116 (function_and_variable_visibility): Drop constructors/destructor
1117 flags at pure and const functions.
1118 * tree-profile.c (tree_profiling): Update.
1119 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
1120 address taken; external functions do not account to whole program size.
1121 (cgraph_decide_inlining): Likewise; do not try to inline
1122 functions already inlined.
1123
1124 2010-10-26 Jie Zhang <jie@codesourcery.com>
1125
1126 * doc/invoke.texi: Improve documentation of
1127 -fstrict-volatile-bitfields.
1128
1129 2010-10-26 Ira Rosen <irar@il.ibm.com>
1130
1131 PR tree-optimization/46167
1132 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
1133 is basic block for the statement.
1134
1135 2010-10-26 Paul Koning <ni1d@arrl.net>
1136
1137 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
1138 current definition of struct_real_format.
1139
1140 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1141
1142 PR target/44948
1143 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
1144 (ix86_function_arg_boundary): Always align parameters on stack
1145 in 64bit and align parameters with alignment >= 16byte on stack
1146 in 32bit. Warn alignment change.
1147
1148 2010-10-26 Ian Lance Taylor <iant@google.com>
1149
1150 PR middle-end/45687
1151 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
1152 offset.
1153
1154 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1155
1156 Implement opaque-enum-specifiesr for C++0x
1157 * tree.h (ENUM_IS_OPAQUE): New.
1158 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
1159
1160 2010-10-26 Jie Zhang <jie@codesourcery.com>
1161
1162 * stor-layout.c (layout_decl): Use the field's type to
1163 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
1164 * config/arm/arm.c (arm_override_options): Default to
1165 -fstrict-volatile-bitfields.
1166
1167 2010-10-25 Paul Koning <ni1d@arrl.net>
1168
1169 * config/pdp11/pdp11.md: Add define_constants for register
1170 numbers, branch offset limits.
1171 * config/pdp11/pdp11.c: Use named constants instead of numbers.
1172 * config/pdp11.pdp11.h: Ditto.
1173
1174 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
1175
1176 * configure.ac: Use $cpu_type instead of $target to define the nop.
1177 * configure: Regenerate.
1178
1179 2010-10-25 Jie Zhang <jie@codesourcery.com>
1180
1181 * combine.c (try_combine): If insns need to be kept around, check that
1182 they can be copied in the merged instruction.
1183
1184 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1185
1186 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
1187 has been modified.
1188 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
1189 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
1190 it has been modified.
1191
1192 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1193
1194 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
1195
1196 2010-10-24 Paul Koning <ni1d@arrl.net>
1197
1198 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
1199 * config/pdp11/pdp11.c (output_jump): Ditto.
1200
1201 2010-10-24 Ian Lance Taylor <iant@google.com>
1202
1203 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
1204
1205 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1206
1207 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
1208 least one insn with a locus corresponding to an edge's goto_locus,
1209 disregard non-fallthru edges to the exit block and merge the blocks
1210 created for the same goto_locus.
1211
1212 2010-10-23 Joseph Myers <joseph@codesourcery.com>
1213
1214 * gcc.c (n_switches_alloc_debug_check): New.
1215 (set_option_handlers): New.
1216 (process_command): Use set_option_handlers.
1217 (do_self_spec): Pass spec-generated options through option handlers.
1218 (main): Also save and restore n_switches_alloc when swapping
1219 switch arrays.
1220
1221 2010-10-23 Richard Henderson <rth@redhat.com>
1222
1223 PR target/46144
1224 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
1225 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
1226 Honor matching operands when splitting to XOR.
1227
1228 2010-10-23 Ian Lance Taylor <iant@google.com>
1229
1230 * tree-vrp.c (extract_range_from_binary_expr): If
1231 flag_non_call_exceptions don't eliminate division by zero.
1232 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1233
1234 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
1235
1236 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1237 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
1238 __ORDER_PDP_ENDIAN__.
1239 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1240 (struct DWstruct): Define based on __BYTE_ORDER__.
1241 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1242 (struct INTstruct): Define based on __BYTE_ORDER__.
1243 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1244 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
1245 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
1246 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1247 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1248 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1249 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1250 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1251 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1252 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1253 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1254 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1255 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1256 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1257 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1258 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1259 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1260 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1261 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1262 * doc/tm.texi: Regenerate.
1263 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
1264 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
1265
1266 2010-10-23 Jie Zhang <jie@codesourcery.com>
1267
1268 PR rtl-optimization/37360
1269 * config/mips/mips.c (cached_can_issue_more): New local variable.
1270 (mips_sched_reorder_1): New.
1271 (mips_sched_reorder): Use mips_sched_reorder_1.
1272 (mips_sched_reorder2): New.
1273 (mips_variable_issue): Set cached_can_issue_more.
1274 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
1275 instead of mips_sched_reorder.
1276
1277 Revert:
1278 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1279 PR rtl-optimization/37360
1280 * haifa-sched.c (max_issue): Do not assert that we never issue more
1281 insns than issue_rate. Add comment.
1282
1283 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
1284
1285 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
1286 location info of the expression.
1287
1288 2010-10-22 DJ Delorie <dj@redhat.com>
1289
1290 * doc/extend.texi (Named Address Spaces): Document the M32C named
1291 address space.
1292
1293 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
1294 __far address space.
1295 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
1296 "__far" address space for R8C and M16C processor variants.
1297 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
1298 (far_addr_space_p): New.
1299 (encode_pattern_1): Add sign and zero extend support.
1300 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
1301 (m32c_extra_constraint_p2): Add SF constraint.
1302 (m32c_legitimate_address_p): Support __far addresses.
1303 (m32c_addr_space_pointer_mode): New.
1304 (m32c_addr_space_address_mode): New.
1305 (m32c_addr_space_legitimate_address_p): New.
1306 (m32c_addr_space_legitimize_address): New.
1307 (m32c_addr_space_subset_p): New.
1308 (m32c_addr_space_convert): New.
1309 (conversions): Add __far operand patterns.
1310 (m32c_prepare_move): Force constants into registers for __far moves.
1311 (m32c_split_move): __far moves are always split.
1312 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
1313 * config/m32c/mov.md (mov<mode>_far_op1): New.
1314 (mov<mode>_far_op2): New.
1315 (movqi_op): Add __far (SF) support.
1316 (movhi_op): Likewise.
1317 (movsi_splittable): Split A1A0 also.
1318
1319 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1320 Andrew Pinski <pinskia@gmail.com>
1321
1322 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
1323 * doc/extend.texi: New paragraph
1324
1325 2010-10-22 Paul Koning <ni1d@arrl.net>
1326
1327 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
1328
1329 2010-10-22 DJ Delorie <dj@redhat.com>
1330
1331 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
1332
1333 2010-10-22 Paul Koning <ni1d@arrl.net>
1334
1335 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
1336
1337 2010-10-22 Richard Henderson <rth@redhat.com>
1338
1339 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
1340 cases for __builtin_fma and __builtin_fmaf.
1341
1342 2010-10-22 Richard Henderson <rth@redhat.com>
1343
1344 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
1345 NEG+USE for vectors as well.
1346 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
1347 and splitter.
1348
1349 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1350
1351 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
1352 SWITCH_CURTAILS_COMPILATION): Remove.
1353 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
1354 * doc/tm.texi: Regenerate.
1355 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
1356
1357 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1358
1359 * config/i386/bdver1.md: New file.
1360 * config/i386/i386.md (include "bdver1.md"): Invoke the
1361 pipeline description for bdver1.
1362 (x86_sahf_1): Add "bdver1_decode" attribute.
1363 (*cmpfp_i_mixed): Likewise.
1364 (*cmpfp_i_sse): Likewise.
1365 (*cmpfp_i_i387): Likewise.
1366 (*cmpfp_iu_mixed): Likewise.
1367 (*cmpfp_iu_sse): Likewise.
1368 (*cmpfp_iu_387): Likewise.
1369 (*swap<mode>,*swap<mode>_1): Likewise.
1370 (fixuns_trunc<mode>hi2): Likewise.
1371 (fix_trunc<mode>si_sse): Likewise.
1372 (x86_fnstcw_1): Likewise.
1373 (x86_fldcw_1): Likewise.
1374 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
1375 (*floatsi<mode>2_vector_mixed): Likewise.
1376 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
1377 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1378 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1379 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
1380 (*floatsi<mode>2_vector_sse): Likewise.
1381 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
1382 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1383 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1384 (*mul<mode>3_1): Likewise.
1385 (*mulsi3_1_zext): Likewise.
1386 (*mulhi3_1): Likewise.
1387 (*mulqi3_1): Likewise.
1388 (*<u>mul<mode><dwi>3_1): Likewise.
1389 (*<u>mulqihi3_1): Likewise.
1390 (*<s>muldi3_highpart_1): Likewise.
1391 (*<s>mulsi3_highpart_1): Likewise.
1392 (*<s>mulsi3_highpart_zext): Likewise.
1393 (x86_64_shld): Likewise.
1394 (x86_shld): Likewise.
1395 (x86_64_shrd): Likewise.
1396 (x86_shrd): Likewise.
1397 (sqrtxf2): Likewise.
1398 (sqrt_extend<mode>xf2_i387): Likewise.
1399 (*sqrt<mode>2_sse): Likewise.
1400 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
1401 (sse_cvtsi2ssq): Likewise.
1402 (sse_cvtss2si): Likewise.
1403 (sse_cvtss2si_2): Likewise.
1404 (sse_cvtss2siq): Likewise.
1405 (sse_cvtss2siq_2): Likewise.
1406 (sse_cvttss2si): Likewise.
1407 (sse_cvttss2siq): Likewise.
1408 (sse2_cvtpi2pd): Likewise.
1409 (sse2_cvttpd2pi): Likewise.
1410 (sse2_cvtsi2sd): Likewise.
1411 (sse2_cvtsi2sdq): Likewise.
1412 (sse2_cvtsd2si): Likewise.
1413 (sse2_cvtsd2si_2): Likewise.
1414 (sse2_cvtsd2siq): Likewise.
1415 (sse2_cvtsd2siq_2): Likewise.
1416 (sse2_cvttsd2si): Likewise.
1417 (sse2_cvttsd2siq): Likewise.
1418 (*sse2_cvtpd2dq): Likewise.
1419 (*sse2_cvttpd2dq): Likewise.
1420 (sse2_cvtsd2ss): Likewise.
1421 (sse2_cvtss2sd): Likewise.
1422 (*sse2_cvtpd2ps): Likewise.
1423 (sse2_cvtps2pd): Likewise.
1424
1425 2010-10-22 Richard Guenther <rguenther@suse.de>
1426
1427 PR middle-end/46137
1428 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
1429 remove the virtual operands if they are not needed.
1430
1431 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1432
1433 * config/i386/i386.c (processor_costs bdver1_cost): Update
1434 insn costs and architectural parameters for bdver1.
1435
1436 2010-10-22 Richard Guenther <rguenther@suse.de>
1437
1438 * gimple.h (gimple_register_canonical_type): Declare.
1439 * gimple.c (gimple_canonical_types): New global hashtable.
1440 (struct gimple_type_leader_entry_s): New type.
1441 (gimple_type_leader): New global cache.
1442 (gimple_lookup_type_leader): New function.
1443 (gtc_visit): Query the proper cache.
1444 (gimple_types_compatible_p): Likewise.
1445 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
1446 (gimple_canonical_type_eq): New function.
1447 (gimple_register_canonical_type): Likewise.
1448 (print_gimple_types_stats): Adjust for gimple_canonical_types.
1449 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
1450 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
1451 gimple_types_compatible_p for LTO.
1452
1453 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
1454
1455 PR target/46098
1456 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
1457 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
1458 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
1459 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
1460 (<sse>_movu<ssemodesuffix>): New expander.
1461 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
1462 (avx_movdqu<avxmodesuffix>): New expander.
1463 (*sse2_movdqu): Rename from sse2_movdqu.
1464 (sse2_movdqu): New expander.
1465
1466 2010-10-22 Richard Guenther <rguenther@suse.de>
1467
1468 PR tree-optimization/45720
1469 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1470 Handle negative step.
1471 (vect_enhance_data_refs_alignment): Likewise.
1472 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
1473 (vect_create_cond_for_align_checks): Likewise.
1474 (vect_create_cond_for_alias_checks): Likewise.
1475
1476 2010-10-22 Ira Rosen <irar@il.ibm.com>
1477
1478 PR tree-optimization/46126
1479 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
1480 vectorizable_shift in case of basic block vectorization.
1481
1482 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1483
1484 * target.h (enum opt_levels, struct default_options): New.
1485 * target.def (handle_ofast): Remove hook.
1486 (target_option.optimization): Change to
1487 target_option.optimization_table.
1488 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
1489 TARGET_OPTION_OPTIMIZATION_TABLE.
1490 (CAN_DEBUG_WITHOUT_FP): Remove.
1491 * doc/tm.texi: Regenerate.
1492 * opts.c (maybe_default_option, maybe_default_options,
1493 default_options_table): New.
1494 (default_options_optimization): Take extra parameters. Don't
1495 assert that global_options and global_options_set are in use. Use
1496 maybe_default_options.
1497 (decode_options): Pass extra parameters to
1498 default_options_optimization.
1499 * common.opt (falign-loops): Use value 0 with Var.
1500 (frerun-cse-after-loop, ftree-ter): Remove Init.
1501 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
1502 TARGET_OPTION_OPTIMIZATION): Remove.
1503 * targhooks.c (empty_optimization_table): New.
1504 * targhooks.h (empty_optimization_table): Declare.
1505 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
1506 * config/alpha/alpha.c (alpha_option_optimization_table,
1507 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1508 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
1509 * config/arm/arm.c (arm_option_optimization: Change to
1510 arm_option_optimization_table.
1511 (TARGET_OPTION_OPTIMIZATION): Change to
1512 TARGET_OPTION_OPTIMIZATION_TABLE.
1513 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
1514 * config/avr/avr.c (avr_option_optimization_table,
1515 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1516 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
1517 * config/cris/cris.c (cris_option_optimization): Change to
1518 cris_option_optimization_table.
1519 (TARGET_OPTION_OPTIMIZATION): Change to
1520 TARGET_OPTION_OPTIMIZATION_TABLE.
1521 * config/crx/crx.c (crx_option_optimization): Change to
1522 crx_option_optimization_table.
1523 (TARGET_OPTION_OPTIMIZATION): Change to
1524 TARGET_OPTION_OPTIMIZATION_TABLE.
1525 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1526 * config/fr30/fr30.c (fr30_option_optimization_table,
1527 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1528 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
1529 * config/frv/frv.c (frv_option_optimization_table,
1530 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1531 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
1532 * config/h8300/h8300.c (h8300_option_optimization): Change to
1533 h8300_option_optimization_table.
1534 (TARGET_OPTION_OPTIMIZATION): Change to
1535 TARGET_OPTION_OPTIMIZATION_TABLE.
1536 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1537 * config/i386/i386.c (ix86_option_optimization): Change to
1538 ix86_option_optimization_table.
1539 (TARGET_OPTION_OPTIMIZATION): Change to
1540 TARGET_OPTION_OPTIMIZATION_TABLE.
1541 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1542 as initializer.
1543 * config/ia64/ia64.c (ia64_option_optimization): Change to
1544 ia64_option_optimization_table.
1545 (TARGET_OPTION_OPTIMIZATION): Change to
1546 TARGET_OPTION_OPTIMIZATION_TABLE.
1547 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
1548 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
1549 initializer.
1550 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1551 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1552 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1553 * config/lm32/lm32.c (lm32_option_optimization_table,
1554 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1555 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
1556 * config/m32r/m32r.c (m32r_option_optimization): Change to
1557 m32r_option_optimization_table.
1558 (TARGET_OPTION_OPTIMIZATION): Change to
1559 TARGET_OPTION_OPTIMIZATION_TABLE.
1560 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
1561 CAN_DEBUG_WITHOUT_FP): Remove.
1562 * config/mcore/mcore.c (mcore_option_optimization): Change to
1563 mcore_option_optimization_table.
1564 (TARGET_OPTION_OPTIMIZATION): Change to
1565 TARGET_OPTION_OPTIMIZATION_TABLE.
1566 * config/mep/mep.c (mep_option_optimization): Change to
1567 mep_option_optimization_table.
1568 (TARGET_OPTION_OPTIMIZATION): Change to
1569 TARGET_OPTION_OPTIMIZATION_TABLE.
1570 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
1571 * config/microblaze/microblaze.c
1572 (microblaze_option_optimization_table,
1573 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1574 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
1575 * config/mips/mips.c (mips_option_optimization_table,
1576 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1577 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
1578 * config/mmix/mmix.c (mmix_option_optimization): Change to
1579 mmix_option_optimization_table.
1580 (TARGET_OPTION_OPTIMIZATION): Change to
1581 TARGET_OPTION_OPTIMIZATION_TABLE.
1582 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
1583 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1584 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1585 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1586 * config/pa/pa.c (pa_option_optimization_table,
1587 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1588 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1589 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
1590 pdp11_option_optimization_table.
1591 (TARGET_OPTION_OPTIMIZATION): Change to
1592 TARGET_OPTION_OPTIMIZATION_TABLE.
1593 * config/picochip/picochip.c (picochip_option_optimization_table,
1594 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1595 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
1596 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
1597 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1598 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1599 * config/rx/rx.c (rx_option_optimization_table,
1600 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1601 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1602 * config/s390/s390.c (s390_option_optimization): Change to
1603 s390_option_optimization_table.
1604 (s390_option_override): Update comment.
1605 (TARGET_OPTION_OPTIMIZATION): Change to
1606 TARGET_OPTION_OPTIMIZATION_TABLE.
1607 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
1608 * config/score/score.c (score_option_optimization_table,
1609 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1610 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
1611 * config/sh/sh.c (sh_option_optimization): Change to
1612 sh_option_optimization_table.
1613 (TARGET_OPTION_OPTIMIZATION): Change to
1614 TARGET_OPTION_OPTIMIZATION_TABLE.
1615 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
1616 (sh_option_override, expand_block_move, multcosts, find_barrier,
1617 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
1618 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
1619 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
1620 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
1621 instead of TARGET_SMALLCODE.
1622 * config/sh/sh.opt (mspace): Make into an alias for -Os.
1623 * config/sparc/sparc.c (sparc_option_optimization_table,
1624 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1625 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
1626 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1627 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1628 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
1629 * config/v850/v850.c (v850_option_optimization): Change to
1630 v850_option_optimization_table.
1631 (TARGET_OPTION_OPTIMIZATION): Change to
1632 TARGET_OPTION_OPTIMIZATION_TABLE.
1633 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
1634 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
1635 xtensa_option_optimization_table.
1636 (TARGET_OPTION_OPTIMIZATION): Change to
1637 TARGET_OPTION_OPTIMIZATION_TABLE.
1638 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1639
1640 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
1641
1642 Based on the CFString implementation in FSF apple/trunk branch.
1643
1644 * target.def (objc_construct_string): New Hook.
1645 * doc/tm.texi (objc_construct_string): Document.
1646 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
1647 * config/t-darwin: Amend build rules for darwin.o.
1648 * config/darwin.opt: Add cfstrings flags.
1649 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
1650 (darwin_objc_construct_string): New.
1651 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
1652 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
1653 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
1654 (darwin_fold_builtin): Likewise.
1655 (darwin_build_constant_cfstring): Likewise.
1656 (darwin_objc_construct_string): Likewise.
1657 (darwin_cfstring_p): Likewise.
1658 (darwin_enter_string_into_cfstring_table): Likewise.
1659 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
1660 * config/darwin.c (darwin_running_cxx): New var.
1661 (machopic_select_section): Return cfstring_constant_object_section.
1662 (darwin_override_options): Set darwin_running_cxx.
1663 (add_builtin_field_decl): New.
1664 (darwin_init_cfstring_builtins): New.
1665 (darwin_build_constant_cfstring): New.
1666 (darwin_fold_builtin): New.
1667 (cfstring_hash): New.
1668 (cfstring_eq): New.
1669 (darwin_enter_string_into_cfstring_table): New.
1670 * config/darwin-sections.def (cfstring_constant_object_section): New.
1671 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
1672 (TARGET_OBJC_CONSTRUCT_STRING): Define.
1673
1674 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1675
1676 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
1677 TYPE_STUB_DECL instead of TREE_CHAIN.
1678 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
1679 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
1680 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
1681 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
1682 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
1683 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
1684 Likewise.
1685 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
1686
1687 2010-10-22 Jie Zhang <jie@codesourcery.com>
1688
1689 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
1690 (copy_blkmode_from_reg): Likewise.
1691 (read_complex_part): Likewise.
1692 (expand_expr_real_1): Calculate packedp and pass it to
1693 extract_bit_field.
1694 * expr.h (extract_bit_field): Update declaration.
1695 * calls.c (store_unaligned_arguments_into_pseudos): Update call
1696 to extract_bit_field.
1697 * expmed.c (extract_fixed_bit_field): Update calls to
1698 extract_fixed_bit_field.
1699 (store_split_bit_field): Likewise.
1700 (extract_bit_field_1): Add new argument packedp.
1701 (extract_bit_field): Add new argument packedp.
1702 (extract_fixed_bit_field): Add new argument packedp and let
1703 packed attribute override volatile.
1704 * stmt.c (expand_return): Update call to extract_bit_field.
1705
1706 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1707
1708 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
1709
1710 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1711
1712 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
1713 of gcc_checking_assert.
1714 * sel-sched.c (code_motion_process_successors): Likewise.
1715
1716 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
1717
1718 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
1719 when stopping because of a different locus on edge or insn.
1720 (try_optimize_cfg): Add comment.
1721 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
1722 block is a forwarder block, propagate locus on the edge.
1723 (cfg_layout_merge_blocks): Likewise.
1724
1725 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
1726
1727 PR target/45946
1728 * config/i386/i386.md (*pushti2): New insn pattern.
1729 (pushti2 splitter): New insn splitter.
1730 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
1731 DWI mode iterator.
1732
1733 2010-10-21 Paul Koning <ni1d@arrl.net>
1734
1735 * config/pdp11/pdp11-protos.md (arith_operand,
1736 const_immediate_operand, expand_shift_operand,
1737 immediate15_operand): Delete
1738 * config/pdp11/pdp11.c: Ditto.
1739 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
1740 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1741 EXTRA_CONSTRAINT): Delete.
1742 * config/pdp11/pdp11.md (various): Use standard constraints
1743 instead of removed ones.
1744 * config/pdp11/constraints.md: New file.
1745 * config/pdp11/predicates.md: New file.
1746
1747 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
1748
1749 PR c/45834
1750 * alias.c (true_dependence_1): Remove obsolete check for QImode.
1751 (may_alias_p): Ditto.
1752
1753 2010-10-21 Martin Jambor <mjambor@suse.cz>
1754
1755 PR tree-optimization/45875
1756 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
1757
1758 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1759
1760 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
1761 variables.
1762 (create_new_def_for): Likewise.
1763
1764 2010-10-21 Nick Clifton <nickc@redhat.com>
1765
1766 * config/mn10300/mn10300.c: Fold code to 80-character width.
1767 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1768 MEM, CONST_INT and CONST_DOUBLE.
1769 (targetm): Move initialization to end of file.
1770 (print_operand): Rename to mn10300_print_operand.
1771 (print_operand_address): Rename to mn10300_print_operand_address.
1772 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
1773 (expand_prologue): Rename to mn10300_expand_prologue.
1774 (expand_epilogue): Rename to mn10300_expand_epilogue.
1775 (initial_offset): Rename to mn10300_initial_offset.
1776 (function_arg): Rename to mn10300_function_arg.
1777 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
1778 (symbolic_operand): Rename to mn10300_symbolic_operand.
1779 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
1780 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
1781 * config/mn10300/mn10300-protos.h: Update prototypes.
1782 * config/mn10300/mn10300.h: Fold code to 80-character width.
1783 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1784 MEM, CONST_INT and CONST_DOUBLE.
1785 (CPP_SPEC): Move to...
1786 (TARGET_CPU_CPP_BUILTINS): ... here.
1787 * config/mn10300/mn10300.md: Fold code to 80-character width.
1788 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1789 MEM, CONST_INT and CONST_DOUBLE.
1790
1791 2010-10-21 Ira Rosen <irar@il.ibm.com>
1792
1793 PR tree-optimization/46049
1794 PR tree-optimization/46052
1795 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
1796 (vect_get_slp_defs): Add arguments.
1797 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
1798 operands to vect_get_slp_defs.
1799 (vectorizable_reduction): Fix comment, pass scalar operands to
1800 vect_get_slp_defs.
1801 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
1802 type to determine number of units in the created vector.
1803 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
1804 (vectorizable_conversion): Fix comment.
1805 (vectorizable_shift): New function.
1806 (vectorizable_operation): Move code that handles shifts to
1807 vectorizable_shift.
1808 (vectorizable_type_demotion): Fix comment, pass scalar operands to
1809 vect_get_slp_defs.
1810 (vectorizable_type_promotion, vectorizable_store): Likewise.
1811 (vectorizable_condition): Fix comment.
1812 (vect_analyze_stmt): Call vectorizable_shift.
1813 (vect_transform_stmt): Likewise.
1814 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
1815 Use it as the operand to create vectors for, except reduction
1816 initial definition and store. Use operands type.
1817 (vect_get_slp_defs): Add new arguments. Pass them to
1818 vect_get_constant_vectors.
1819
1820 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1821
1822 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
1823 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
1824 * cfghooks.c (fixup_reorder_chain): Likewise.
1825 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1826 * cgraph.c (cgraph_add_thunk): Likewise.
1827 (cgraph_create_edge_1): Likewise.
1828 (cgraph_create_virtual_clone): Likewise.
1829 * ddg.c (add_cross_iteration_register_deps): Likewise.
1830 * dwarf2out.c (modified_type_die): Likewise.
1831 * emit-rtl.c (set_mem_alias_set): Likewise.
1832 * ggc-zone.c (zone_allocate_marks): Likewise.
1833 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
1834 * gimple.c (iterative_hash_gimple_type): Likewise.
1835 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
1836 (create_single_exit_edge): Likewise.
1837 * haifa-sched.c (choose_ready): Likewise.
1838 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1839 * passes.c (execute_todo): Likewise.
1840 * sched-ebb.c (begin_schedule_ready): Likewise.
1841 * sel-sched.c (code_motion_process_successors): Likewise.
1842 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
1843 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
1844 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
1845 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
1846 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
1847 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
1848 (ssa_conflicts_add): Likewise.
1849 * tree-ssa-copy.c (replace_exp): Likewise.
1850 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
1851 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
1852 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1853 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
1854 (compute_antic): Likewise.
1855 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
1856 (add_dependence): Likewise.
1857 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
1858 * tree-vrp.c (supports_overflow_infinity): Likewise.
1859 (make_overflow_infinity, negative_overflow_infinity): Likewise.
1860 (avoid_overflow_infinity, register_new_assert_for): Likewise.
1861 (process_assert_insertions_for): Likewise.
1862 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
1863 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
1864 (intersect_loc_chains, variable_merge_over_cur): Likewise.
1865
1866 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1867
1868 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
1869 * reload1.c (has_nonexceptional_receiver): Likewise.
1870 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
1871 (create_new_def_for): Likewise.
1872 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1873 (merge_phi_nodes): Likewise.
1874 (has_abnormal_incoming_edge_p): Delete.
1875
1876 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
1877
1878 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
1879
1880 2010-10-21 Richard Guenther <rguenther@suse.de>
1881 Michael Matz <matz@suse.de>
1882
1883 PR tree-optimization/45764
1884 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1885 Adjust initial misalignment for negative DR_STEP.
1886 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
1887 do not have the same alignment over the whole iteration domain.
1888
1889 2010-10-21 Richard Guenther <rguenther@suse.de>
1890
1891 PR tree-optimization/46111
1892 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
1893
1894 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1895
1896 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
1897
1898 2010-10-21 Tristan Gingold <gingold@adacore.com>
1899
1900 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
1901 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
1902
1903 2010-10-21 Tristan Gingold <gingold@adacore.com>
1904
1905 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
1906 signal_frame.
1907 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
1908
1909 2010-10-21 Tristan Gingold <gingold@adacore.com>
1910
1911 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
1912 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
1913
1914 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1915
1916 * basic-block.h (find_fallthru_edge): Define.
1917 * cfgcleanup.c (merge_blocks_move): Use it.
1918 (try_crossjump_bb): Likewise.
1919 * cfglayout.c (fixup_reorder_chains): Likewise.
1920 (fixup_fallthru_exit_predecessor): Likewise.
1921 * cfgrtl.c (rtl_split_edge): Likewise.
1922 (rtl_verify_flow_info): Likewise.
1923 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1924 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
1925 * ifcvt.c (block_fallthru): Likewise.
1926 * reload1.c (fixup_abnormal_edges): Likewise.
1927 * sched-ebb.c (being_schedule_ready): Likewise.
1928 (schedule_ebb): Likwise.
1929 * sched-rgn.c (find_single_block_region): Likewise.
1930 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
1931 * tree-complex.c (expand_complex_move): Likewise.
1932 * sched-int.h (find_fallthru_edge): Rename to...
1933 (find_fallthru_edge_from): ...this.
1934 * haifa-sched.c (find_fallthru_edge): Rename to...
1935 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
1936 (init_before_recovery): Call find_fallthru_edge_from.
1937 * sel-sched-ir.c (merge_fences): Likewise.
1938 * sel-sched.c (in_fallthru_bb_p): Likewise.
1939 (move_cond_jump): Likewise.
1940
1941 2010-10-20 Paul Koning <ni1d@arrl.net>
1942
1943 * config/pdp11/pdp11.md (various): Fix conditions on a number of
1944 insn to check for target 11/40 or higher.
1945
1946 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1947
1948 * parser.c (c_parser_objc_method_type): Mark inline. Return a
1949 bool instead of a tree.
1950 (c_parser_objc_method_decl): Added bool argument. Updated call to
1951 objc_build_method_signature.
1952 (c_parser_objc_method_definition): Do not call
1953 objc_set_method_type. Updated calls to c_parser_objc_method_type,
1954 c_parser_objc_method_decl and objc_start_method_definition.
1955 (c_parser_objc_methodproto): Do not call objc_set_method_type.
1956 Updated calls to c_parser_objc_method_type,
1957 c_parser_objc_method_decl and objc_add_method_declaration.
1958
1959 2010-10-20 Jakub Jelinek <jakub@redhat.com>
1960
1961 PR tree-optimization/45919
1962 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
1963 array members.
1964
1965 PR tree-optimization/46066
1966 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
1967 instead of gsi_last_bb.
1968
1969 2010-10-20 DJ Delorie <dj@redhat.com>
1970
1971 * config/m32c/m32c.c (m32c_option_override): Always disable
1972 function-cse in 16-bit mode. Indirect calls are always worse than
1973 direct calls as there is no 16-bit indirect call opcode.
1974 (m32c_override_options_after_change): New, likewise.
1975
1976 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1977
1978 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
1979 emitting the conditional move in the inner mode of the SUBREG.
1980
1981 2010-10-20 Anatoly Sokolov <aesok@post.ru>
1982
1983 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
1984 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
1985 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1986 (ia64_preferred_reload_class): Make static. Change rclass argument
1987 and result types from enum reg_class to reg_class_t.
1988
1989 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
1990
1991 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
1992 call for single operand expression.
1993
1994 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1995
1996 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
1997 if there is a call statement to pure or const function in the block.
1998
1999 2010-10-20 Paul Koning <pkoning@equallogic.com>
2000
2001 Fix several build errors for pdp11 target.
2002 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
2003 (cbranchdf4): Conditional on TARGET_FPU.
2004 (movdf): Ditto; correct alternatives check.
2005 (movmemhi): Fix predicate and constraint.
2006 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
2007
2008 2010-10-20 Richard Guenther <rguenther@suse.de>
2009
2010 PR lto/45667
2011 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
2012 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
2013 (verify_gimple_assign_single): Disable ADDR_EXPR type check
2014 when in LTO.
2015
2016 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
2017
2018 PR fortran/42169
2019 * ira-emit.c (store_can_be_removed_p): Return false instead of
2020 gcc_unreachable.
2021
2022 2010-10-20 Dmitry Melnik <dm@ispras.ru>
2023
2024 * fold-const.c (fold_binary_loc): New transformation.
2025
2026 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
2027
2028 PR target/46085
2029 * config/i386/sse.md (reduc_splus_v8sf): Updated.
2030 (reduc_splus_v4df): Likewise.
2031
2032 2010-10-20 Richard Guenther <rguenther@suse.de>
2033
2034 PR tree-optimization/45860
2035 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
2036 conditional store replacement for non-register type stores.
2037
2038 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2039
2040 * stor-layout.c (skip_simple_constant_arithmetic): New function.
2041 (self_referential_size): Use it instead of skip_simple_arithmetic.
2042
2043 2010-10-20 Olivier Hainque <hainque@adacore.com>
2044
2045 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
2046 If the current function calls eh_return, claim live all registers
2047 that we need to check for liveness otherwise.
2048
2049 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2050
2051 * c-decl.c (c_write_global_declarations): Call
2052 objc_write_global_declarations when compiling Objective-C.
2053 * c-lang.c (finish_file): Removed.
2054
2055 2010-10-19 DJ Delorie <dj@redhat.com>
2056
2057 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
2058 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
2059 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2060 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2061 * doc/tm.texi: Regenerate.
2062 * targhooks.h (default_label_align_after_barrier_max_skip,
2063 default_loop_align_max_skip, default_label_align_max_skip,
2064 default_jump_align_max_skip): Declare.
2065 * target.def (label_align_after_barrier_max_skip): New.
2066 (loop_align_max_skip): New.
2067 (label_align_max_skip): New.
2068 (jump_align_max_skip): New.
2069 * system.h (poison): Add those macros to the list.
2070 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2071 (LOOP_ALIGN_MAX_SKIP): Remove.
2072 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2073 (JUMP_ALIGN_MAX_SKIP): Remove.
2074 (default_label_align_after_barrier_max_skip): New.
2075 (default_loop_align_max_skip): New.
2076 (default_label_align_max_skip): New.
2077 (default_jump_align_max_skip): New.
2078 (compute_alignments): Use the new hooks.
2079 (shorten_branches): Likewise.
2080
2081 2010-10-19 Richard Henderson <rth@redhat.com>
2082
2083 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2084 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2085 (fma4i_fmadd_<mode>): New.
2086 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2087 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2088 standard fma patterns.
2089 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2090 enable for FMA.
2091 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2092 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2093 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2094
2095 2010-10-19 Paul Koning <pkoning@equallogic.com>
2096
2097 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2098 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2099
2100 2010-10-19 Richard Henderson <rth@redhat.com>
2101
2102 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2103 (fmadf4, *fmsdf4, *nfmadf4): New.
2104 (fmaxf4, *fmsxf4, *nfmaxf4): New.
2105
2106 2010-10-19 Michael Eager <eager@eagercon.com>
2107
2108 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2109 Use sjlj unwind info for exceptions.
2110
2111 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
2112
2113 PR fortran/43414
2114 * dwarf2out.c (add_calling_convention_attribute): Flag main
2115 Fortran subroutine with DW_AT_main_subprogram.
2116
2117 2010-10-19 Nick Clifton <nickc@redhat.com>
2118
2119 * config/rx/rx.c (rx_function_value): Small integer types are
2120 promoted to SImode.
2121 (rx_promote_function_mode): New function.
2122 (TARGET_PROMOTE_FUNCTION_MODE): Define.
2123
2124 2010-10-19 Nick Clifton <nickc@redhat.com>
2125
2126 * config/mep/mep.c (mep_print_operand): Use
2127 targetm.strip_name_encoding.
2128 (mep_output_aligned_common): Likewise.
2129
2130 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
2131
2132 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
2133
2134 2010-10-18 Richard Henderson <rth@redhat.com>
2135
2136 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
2137 (fma (neg a) (neg b) c) and (fma a (neg b) c).
2138
2139 2010-10-18 Richard Henderson <rth@redhat.com>
2140
2141 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
2142 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
2143 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
2144 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
2145 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
2146 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
2147 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
2148 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
2149 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
2150 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
2151 (bdesc_multi_arg): Remove the corresponding builtins.
2152 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
2153 (UNSPEC_FMA4_FMSUBADD): Remove.
2154 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
2155 * config/i386/sse.md (FMA4MODEF4): Remove.
2156 (FMAMODE): Add.
2157 (fma<mode>4): New expander.
2158 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
2159 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
2160 (*fma4i_fmsub_<mode>): Similarly.
2161 (*fma4i_fnmadd_<mode>): Similarly.
2162 (*fma4i_fnmsub_<mode>): Similarly.
2163 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
2164 with the first operand.
2165 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
2166 of explicit arithmetic. Macroize with AVXMODEF2P.
2167 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
2168 (xop_frcz<mode>2): Macroize with FMAMODE.
2169 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
2170 the first operand.
2171 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
2172 extra negations.
2173 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
2174 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
2175 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
2176 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
2177 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
2178 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
2179 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
2180 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
2181
2182 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
2183
2184 PR rtl-optimization/45966
2185 * combine.c (try_combine): If added_sets_2, deal with the case
2186 where i0 feeds i1 and i1 feeds i2.
2187
2188 2010-10-18 Jan Hubicka <jh@suse.cz>
2189
2190 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
2191 preserve flags before trying to guess on visibility.
2192 (varpool_externally_visible_p): New function.
2193 (function_and_variable_visibility): Use it.
2194
2195 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2196
2197 Implemented parsing @synthesize and @dynamic for Objective-C.
2198 * c-parser.c (c_parser_external_declaration): Recognize
2199 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2200 (c_parser_objc_at_synthesize_declaration): New.
2201 (c_parser_objc_at_dynamic_declaration): New.
2202
2203 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2204
2205 * c-parser.c (c_parser_objc_class_declaration): After finding an
2206 error, parse the whole declaration then reset parser->error.
2207
2208 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2209
2210 PR target/46041
2211 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
2212 * builtins.c (mode_has_fma): Ditto.
2213
2214 2010-10-18 Steve Ellcey <sje@cup.hp.com>
2215
2216 PR target/36898
2217 PR middle-end/43760
2218 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
2219
2220 2010-10-18 Joseph Myers <joseph@codesourcery.com>
2221
2222 * config/i386/i386.c (ix86_option_override_internal): Define and
2223 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
2224 default.
2225 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2226 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
2227
2228 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2229
2230 Merge from 'apple/trunk' branch on FSF servers.
2231 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
2232 following Objective-C change:
2233
2234 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
2235
2236 Radar 4301047
2237 * c-parse.in (objc_quals): Build objc qualifier list same way
2238 as gcc-3.3
2239
2240 2010-10-18 Jan Hubicka <jh@suse.cz>
2241
2242 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
2243 function_and_variable_visibility): Revert accidental commit.
2244
2245 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2246
2247 Merge from 'apple/trunk' branch on FSF servers.
2248 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
2249 the following Objective-C change:
2250
2251 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
2252
2253 Radar 4204796
2254 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
2255 'volatilized' type used in a typeof operator.
2256
2257 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
2258
2259 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
2260 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
2261 rewrite modelled on gimple_purge_dead_eh_edges.
2262 (gimple_purge_all_dead_abnormal_call_edges): New function.
2263 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
2264 directly instead of through gimple_purge_dead_abnormal_call_edges.
2265 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
2266 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
2267 removed AB side-effects from one of its statements.
2268 (init_pre): Initialize need_ab_cleanup.
2269 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
2270 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
2271
2272 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2273
2274 PR c/46015
2275 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
2276 on computed goto argument.
2277
2278 2010-10-18 Richard Guenther <rguenther@suse.de>
2279
2280 PR tree-optimization/45967
2281 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
2282 (could_have_pointers): Likewise.
2283 (handle_rhs_call, handle_const_call, handle_pure_call,
2284 find_func_aliases, intra_create_variable_infos): Remove calls to them.
2285 (struct fieldoff): Add must_have_pointers field.
2286 (type_must_have_pointers): New function.
2287 (field_must_have_pointers): Likewise.
2288 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
2289 Adjust field merging.
2290 (create_function_info_for): May-have-pointers of varinfo is
2291 almost always true.
2292 (create_variable_info_for_1): Likewise.
2293
2294 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
2295
2296 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
2297 of operands to vec_concat.
2298
2299 2010-10-18 Richard Guenther <rguenther@suse.de>
2300
2301 PR lto/44950
2302 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
2303 also clear references to entries of it.
2304
2305 2010-10-18 Andi Kleen <ak@linux.intel.com>
2306
2307 PR other/43448
2308 * gccbug.in: Remove.
2309 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
2310 (doc, distclean, install-common): Remove reference to gccbug.
2311 * configure: Regenerate.
2312 * configure.ac (all_outputs): Remove gccbug.
2313 * doc/configfiles.texi: Remove references to gccbug.
2314 * doc/sourcebuild.texi: Dito.
2315
2316 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2317
2318 PR middle-end/46019
2319 * fold-const.c (fold_binary_loc): If integer_pow2p has
2320 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
2321
2322 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2323 Jeremie Salvucci <jeremie.salvucci@free.fr>
2324
2325 * gengtype.c (verbosity_level): Add variable.
2326 (set_gc_used): Count variables for verbosity.
2327 (close_output_files): Backing up files, counting written ones
2328 verbosily.
2329 (write_types): Count emitted functions for verbosity. Added
2330 debug messages.
2331 (write_enum_defn): Count structures for verbosity. Added debug
2332 messages.
2333 (gengtype_long_options): Add "verbose" & "backupdir".
2334 (print_usage): Ditto.
2335 (main): Verbose display of parsed files.
2336
2337 * gengtype.h (verbosity_level): Add declaration.
2338
2339 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2340
2341 * gengtype.c (parse_program_options): Add allocation of
2342 plugin_files, and correct test on nb_plugin_files.
2343
2344 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2345
2346 Merge from 'apple/trunk' branch on FSF servers.
2347
2348 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2349
2350 Radar 4133425
2351 * c-decl.c (undeclared_variable): Issue diagnostic on
2352 private 'ivar' access.
2353
2354 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2355
2356 PR target/46051
2357 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
2358 generated sequence to match *avx_vperm2f128<mode>_nozero.
2359 (vec_interleave_lowv4df): Ditto.
2360 (vec_interleave_highv8sf): Ditto.
2361 (vec_interleave_lowv8sf): Ditto.
2362
2363 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
2364
2365 * libgcov.c (create_file_directory): Enable it for win32 case.
2366 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
2367 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
2368 (GCOV_PREFIX_SKIP): Likewise.
2369
2370 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2371
2372 * doc/objc.texi (GNU Objective-C runtime API): New section.
2373 (Modern GNU Objective-C runtime API): New section.
2374 (Traditional GNU Objective-C runtime API): New section.
2375 (Executing code before main): Mention that this section is
2376 specific to the GNU Objective-C runtime.
2377 (Garbage Collection): Same.
2378
2379 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2380
2381 * c-parser.c (c_parser_for_statement): Move initialization of
2382 cond and incr before if.
2383
2384 2010-10-17 Anatoly Sokolov <aesok@post.ru>
2385
2386 * target.def (preferred_output_reload_class): New hook.
2387 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
2388 * doc/tm.texi: Regenerate.
2389 * targhooks.c (default_preferred_output_reload_class): New function.
2390 * targhooks.h (default_preferred_output_reload_class): Declare.
2391 * reload.c (find_dummy_reload): Change rclass argument type from
2392 enum reg_class to reg_class_t. Change this_alternative array type
2393 from enum reg_class to reg_class_t.
2394 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2395 (push_reload): Change preferred_class variable type to reg_class_t.
2396 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2397 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
2398 argument type from enum reg_class to reg_class_t. Use
2399 HARD_REGISTER_NUM_P predicate.
2400 * recog.h (reg_fits_class_p): Update prototype.
2401
2402 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2403 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
2404 Remove.
2405 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
2406 static. Change regclass argument and result types from enum reg_class
2407 to reg_class_t.
2408 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2409
2410 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2411
2412 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
2413 visibility enum, and handle @package.
2414
2415 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2416
2417 * doc/objc.texi (What you can and what you cannot do in +load):
2418 Document that sending messages to constant string objects in +load
2419 is not guaranteed to work.
2420
2421 2010-10-16 Jan Hubicka <jh@suse.cz>
2422
2423 PR middle-end/44206
2424 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
2425 existence of refrences before removing the function.
2426
2427 2010-10-16 Jan Hubicka <jh@suse.cz>
2428
2429 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
2430 only_called_at_startup and only_called_at_exit.
2431 (cgraph_propagate_frequency): Compute only_called_at_startup and
2432 only_called_at_exit.
2433 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
2434 only_called_at_exit.
2435 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
2436 flags.
2437 * predict.c (compute_function_frequency): Initialize the new flags.
2438
2439 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
2440
2441 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
2442 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
2443 on the bounds of its domain.
2444 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
2445
2446 2010-10-16 Anatoly Sokolov <aesok@post.ru>
2447
2448 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
2449 * config/avr/avr-protos.h (preferred_reload_class): Remove.
2450 * config/avr/avr.c (preferred_reload_class): Remove.
2451 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
2452 * config/pa/pa.c (emit_move_sequence): Update comment
2453 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
2454 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
2455 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
2456 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
2457 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
2458 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
2459 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
2460 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
2461 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
2462 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
2463 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
2464 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
2465 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
2466
2467 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2468
2469 * opts.c (set_fast_math_flags,
2470 set_unsafe_math_optimizations_flags): Make static.
2471 * toplev.h (set_fast_math_flags,
2472 set_unsafe_math_optimizations_flags): Remove prototypes.
2473
2474 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2475
2476 * config/arm/arm.c (arm_option_optimization): Set
2477 flag_section_anchors to 1 not 2.
2478 * config/i386/i386.c (ix86_option_override_internal): Check
2479 global_options_set.x_flag_zee and
2480 global_options_set.x_flag_omit_frame_pointer.
2481 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
2482 flag_zee to 2.
2483 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2484 global_options_set.x_flag_omit_frame_pointer.
2485 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
2486 opts->x_flag_section_anchors to 1 not 2.
2487 * config/sh/sh.c (sh_option_optimization): Don't set
2488 flag_schedule_insns to 2.
2489 (sh_option_override): Check
2490 global_options_set.x_flag_schedule_insns.
2491 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
2492
2493 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
2494
2495 * configure.ac: Make sure inhibit_libc remains false for mingw targets
2496 as cross.
2497 * configure: Regenerated.
2498
2499 2010-10-15 Xinliang David Li <davidxl@google.com>
2500
2501 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
2502 function.
2503 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
2504 into a recursive function.
2505
2506 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
2507
2508 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
2509 (*movdfcc_1): ditto.
2510
2511 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2512
2513 * target.def (target_option.init_struct): New hook.
2514 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
2515 * doc/tm.texi: Regenerate.
2516 * hooks.c (hook_void_gcc_optionsp): New.
2517 * hooks.h (hook_void_gcc_optionsp): Declare.
2518 * langhooks-def.h (lhd_init_options_struct): Remove.
2519 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
2520 * langhooks.c (lhd_init_options_struct): Remove.
2521 * opts.c (init_options_struct): Also call
2522 targetm.target_option.init_struct.
2523 * config/i386/i386.c (ix86_option_init_struct,
2524 TARGET_OPTION_INIT_STRUCT): New.
2525 (ix86_option_optimization): Move some settings to
2526 ix86_option_init_struct.
2527 * config/pdp11/pdp11.c (pdp11_option_init_struct,
2528 TARGET_OPTION_INIT_STRUCT): New.
2529 (pdp11_option_optimization): Move some settings to
2530 pdp11_option_init_struct.
2531 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
2532 rs6000_option_init_struct. Use options structure pointer.
2533 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2534 * config/s390/s390.c (s390_option_init_struct,
2535 TARGET_OPTION_INIT_STRUCT): New.
2536 (s390_option_optimization): Don't set
2537 flag_asynchronous_unwind_tables here.
2538 * config/sh/sh.c (sh_option_init_struct,
2539 TARGET_OPTION_INIT_STRUCT): New.
2540 (sh_option_optimization): Don't set flag_finite_math_only here.
2541 * config/spu/spu.c (spu_option_optimization): Replace by
2542 spu_option_optimization. Use options structure pointer.
2543 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2544
2545 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2546
2547 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
2548
2549 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
2550 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
2551 (Standard names): Document fma.
2552
2553 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
2554 __FP_FAST_FMAF, __FP_FAST_FMAL.
2555
2556 * builitns.c (expand_builtin_mathfn_ternary): New function for
2557 expanding ternary math functions, like fma.
2558 (expand_builtin): Call it for the fma builtins.
2559
2560 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
2561 ops at present.
2562
2563 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
2564 vectorizable functions to support vectorizing fma.
2565
2566 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2567 Handle fma builtins.
2568
2569 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
2570 (UNSPEC_VSX_MSUB): Ditto.
2571 (UNSPEC_VSX_NMADD): Ditto.
2572 (UNSPEC_VSX_NMSUB): Ditto.
2573 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
2574 of UNSPEC. Renumber combiner patterns.
2575 (vsx_fmsub<mode>4*): Ditto.
2576 (vsx_fnmadd<mode>4*): Ditto.
2577 (vsx_fnmsub<mode>4*): Ditto.
2578
2579 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
2580 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
2581 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
2582 (altivec_vmaddfp_1): Ditto.
2583 (altivec_vmaddfp_2): Ditto.
2584 (atlivec_mulv4sf3): Ditto.
2585 (altivec_vnmsubfp): Ditto.
2586 (altivec_vnmsubfp_1): Ditto.
2587 (altivec_vnmsubfp_2): Ditto.
2588 (altivec_vnmsubfp_3): Delete.
2589
2590 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
2591 (fmasf4_fpr): Ditto.
2592 (fmssf4_fpr): Ditto.
2593 (fnmasf4_fpr): Ditto.
2594 (fnmssf4_fpr): Ditto.
2595 (fmadf4): Ditto.
2596 (fmadf4_fpr): Ditto.
2597 (fmsdf4_fpr): Ditto.
2598 (fnmadf4_fpr): Ditto.
2599 (fnmsdf4_fpr): Ditto.
2600
2601 * optabs.h (OTI_fma): Add fma optab.
2602 (fma_optab): Ditto.
2603
2604 * genopinit.c (optabs): Set fma optab.
2605
2606 * rtl.def (FMA): Add FMA rtl.
2607
2608 * tree.h (mode_has_fma): New function to return if MODE supports a
2609 fast multiply and add instruction.
2610 * builtins.c (mode_has_fma): Ditto.
2611
2612 2010-10-15 Jan Hubicka <jh@suse.cz>
2613
2614 * lto-streamer-out.c (write_symbol): Use pointer set of seen
2615 objects instead of bitmap.
2616 (produce_symtab): Likewise; output defined symbols first.
2617
2618 2010-10-15 Jie Zhang <jie@codesourcery.com>
2619
2620 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
2621 Option Summary and Index.
2622
2623 2010-10-15 Richard Guenther <rguenther@suse.de>
2624
2625 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
2626 for automatic variables again.
2627
2628 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2629
2630 * doc/extend.texi (Variable Length): Don't refer to VLAs not
2631 conforming to C99.
2632
2633 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2634
2635 * config/rx/rx.c (rx_option_optimization): Change to
2636 rx_override_options_after_change. Don't change
2637 flag_lto_compression_level. Don't check for changes to whether
2638 FPU instructions can be used. Check and set only
2639 flag_finite_math_only, not other fast-math flags.
2640 (rx_option_override): Call rx_override_options_after_change.
2641 (TARGET_OPTION_OPTIMIZATION): Remove.
2642 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2643
2644 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2645
2646 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
2647 disable section anchors for lang_hooks.name[4] != 'O'.
2648
2649 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2650
2651 * config/frv/frv.c (frv_option_optimization,
2652 TARGET_OPTION_OPTIMIZATION): Remove.
2653 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
2654
2655 2010-10-15 Michael Matz <matz@suse.de>
2656
2657 * cgraphunit.c (clone_of_p): Define unconditionally.
2658
2659 2010-10-15 Richard Guenther <rguenther@suse.de>
2660
2661 PR lto/45957
2662 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
2663
2664 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
2665
2666 * ifcvt.c (find_active_insn_before): New function.
2667 (find_active_insn_after): New function.
2668 (cond_exec_process_if_block): Use new functions to replace
2669 prev_active_insn() and next_active_insn().
2670
2671 2010-10-14 Yao Qi <yao@codesourcery.com>
2672
2673 PR target/45447
2674 * config/arm/arm.c (arm_build_builtin_va_list): Assign
2675 va_list_name to TYPE_STUB_DECL (va_list_type).
2676
2677 2010-10-14 Jan Hubicka <jh@suse.cz>
2678
2679 PR middle-end/45621
2680 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
2681 redirected to clone, be happy.
2682 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
2683 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
2684 former_clone_of unconditionally.
2685
2686 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2687
2688 Merge from FSF apple 'trunk' branch.
2689 2006 Fariborz Jahanian <fjahanian@apple.com>
2690
2691 Radars 4436866, 4505126, 4506903, 4517826
2692 * c-parser.c (c_parser, objc_property_attr_context) New flag.
2693 (c_lex_one_token): Handle property attributes.
2694 (c_parser_external_declaration): Handle @property.
2695 (c_parser_declaration_or_fndef): Warn on invalid attributes before
2696 @alias, @class, @end and @property objc keywords.
2697 (c_parser_objc_methodprotolist): Handle @property.
2698 (c_parser_objc_property_attrlist): New.
2699 (c_parser_objc_at_property): New.
2700 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
2701 (build_modify_expr): Likewise.
2702
2703 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2704
2705 PR tree-optimization/46008
2706 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
2707
2708 2010-10-14 Richard Guenther <rguenther@suse.de>
2709
2710 PR tree-optimization/44913
2711 * tree-data-ref.c (disjoint_objects_p): Remove.
2712 (dr_may_alias_p): Simplify. Only hand the base object to
2713 the alias-oracle.
2714 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2715 some more trees, bail out instead of asserting.
2716 (ptr_derefs_may_alias_p): Likewise. Export.
2717 (refs_may_alias_p_1): Handle STRING_CSTs.
2718 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
2719
2720 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2721
2722 PR c/45969
2723 * c-typeck.c (build_binary_op): Don't try to compute a semantic
2724 type with excess precision for boolean operations.
2725
2726 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
2727 Basile Starynkevitch <basile@starynkevitch.net>
2728
2729 * gengtype.c: Include getopt.h and version.h.
2730
2731 (lang_bitmap, struct outf, outf_p)
2732 (get_output_file_with_visibility, oprintf): Definitions moved to
2733 gengtype.h
2734 (output_files, header_file, srcdir, srcdir_len, this_file)
2735 (do_dump): No more static variables.
2736 (do_debug): New.
2737 (dbgprint_count_type_at): Added new function.
2738 (gengtype_long_options): New.
2739 (print_usage, print_version, parse_program_options): New.
2740 (main): Call parse_program_options, and removed old option
2741 handling code. Added some debug output.
2742
2743 * gengtype.h: Updated copyright year.
2744 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
2745 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
2746 Moved from gengtype.c to here.
2747 (do_debug, read_state_filename, write_state_filename): New variables.
2748 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
2749
2750 * Makefile.in:
2751 (REVISION): Always defined.
2752 (version.o): Removed ifdef REVISION_c.
2753 (s-gtype): Pass arguments to build/gengtype program.
2754 (build/version.o): Added building rule.
2755 (build/gengtype$(build_exeext)): Added build/version.o.
2756
2757 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2758
2759 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
2760 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
2761 __strong macros.
2762
2763 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
2764
2765 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
2766 may_trap_or_fault_p instead of may_trap_p predicate.
2767 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
2768 (substitute_placeholder_in_expr): Likewise.
2769 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
2770 flag on MEM_REF nodes.
2771 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
2772 flags on INDIRECT_REF nodes.
2773
2774 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
2775
2776 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
2777 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
2778 (arm*-*-eabi*) <tm_file>: Likewise.
2779 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
2780 (frv-*-*linux*) <tm_file>: Likewise.
2781 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
2782 and associated helper macros.
2783 * config/frv/frv-abi.h: Delete.
2784
2785 2010-10-14 Richard Guenther <rguenther@suse.de>
2786
2787 PR lto/44561
2788 * tree.def (NULLPTR_TYPE): New tree code.
2789 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
2790 * dwarf2out.c (is_base_type): Likewise.
2791 (gen_type_die_with_usage): Likewise.
2792 * sdbout.c (plain_type_1): Likewise.
2793 * tree.c (build_int_cst_wide): Likewise.
2794 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
2795
2796 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2797
2798 * params.c (params_finished): New.
2799 (add_params): Assert !params_finished.
2800 (finish_params): New.
2801 (set_param_value_internal): Take params and params_set
2802 parameters. Assert params_finished.
2803 (set_param_value, maybe_set_param_value): Take params and
2804 params_set parameters. Update calls to set_param_value_internal.
2805 (set_default_param_value): Assert !params_finished. Don't use
2806 set_param_value_internal.
2807 (default_param_value, init_param_values): New.
2808 * params.h (struct param_info): Change value to default_value.
2809 Remove set.
2810 (set_param_value, maybe_set_param_value): Add params and
2811 params_set parameters.
2812 (PARAM_VALUE): Get parameters from global_options.
2813 (PARAM_SET_P): Remove.
2814 (finish_params, default_param_value, init_param_values): New.
2815 * common.opt (param_values): New Variable.
2816 * config/arm/arm.c (arm_option_override): Pass extra arguments to
2817 maybe_set_param_value.
2818 * config/i386/i386.c (ix86_option_override_internal): Pass extra
2819 arguments to maybe_set_param_value.
2820 * config/picochip/picochip.c (picochip_option_override): Pass
2821 extra arguments to maybe_set_param_value.
2822 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
2823 extra arguments to maybe_set_param_value.
2824 * config/s390/s390.c (s390_option_override): Use
2825 maybe_set_param_value instead of set_param_value. Pass extra
2826 arguments to maybe_set_param_value.
2827 * config/sparc/sparc.c (sparc_option_override): Pass extra
2828 arguments to maybe_set_param_value.
2829 * config/spu/spu.c (spu_option_override): Pass extra arguments to
2830 maybe_set_param_value.
2831 * opts.c (handle_param): Take opts and opts_set parameters.
2832 Update call to set_param_value.
2833 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
2834 initial_loop_invariant_max_bbs_in_loop): Remove.
2835 (init_options_once): Don't set them.
2836 (init_options_struct): Initialize parameters structures.
2837 (default_options_optimization): Use default_param_value when
2838 restoring defaults. Update calls to maybe_set_param_value.
2839 (finish_options): Update calls to maybe_set_param_value.
2840 (common_handle_option): Update calls to handle_param and
2841 set_param_value.
2842 * toplev.c (DEFPARAM): Update definition for changes to param_info.
2843 (general_init): Call finish_params.
2844
2845 2010-10-14 Nick Clifton <nickc@redhat.com>
2846
2847 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
2848 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
2849 (FIRST_PSEUDO_REGISTER): Increase by one.
2850 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
2851 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
2852 (MODES_TIEABLE): Call mn10300_modes_tieable.
2853 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
2854 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
2855 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
2856 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
2857 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
2858 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2859 (mn10300_cc_status_mdep): Delete.
2860 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
2861 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
2862 the combine-stack-adjust pass.
2863 (print_operand): Use the mode of the comparison operation to
2864 select the comparison suffix.
2865 (notice_update_cc): Delete.
2866 (mn10300_secondary_reload_class): Remove test for stack pointer
2867 based arithmetic.
2868 (output_tst): Rename to mn10300_output_cmp.
2869 (impossible_plus_operand): Move into predicates.md.
2870 (mn10300_legitimize_address): Make static.
2871 (mn10300_legitimate_address_p): Make static. Only allow SI sized
2872 constant pic operands.
2873 (mn10300_legitimate_constant_p): New function.
2874 (mn10300_case_values_threshold): Make static.
2875 (mn10300_hard_regno_mode_ok): New function.
2876 (mn10300_modes_tieable): New function.
2877 (mn10300_select_cc_mode): New function.
2878 * config/mn10300/predicates.md (impossible_plus_operand): Define.
2879 * config/mn10300/mn10300-protos.h: Tidy.
2880 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
2881 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
2882 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
2883 with clobbers or sets of CC_REG.
2884 (CC_REG): Define.
2885 (mov*): Remove use of CLR instruction.
2886 (cbranch_si4_<code>): New pattern/split.
2887 (integer_conditional_branch): New pattern.
2888 (cbranch_sf4_<code>): New pattern/split.
2889 (float_conditional_branch): New pattern.
2890 (casesi): Use addsi3 pattern instead of movsi pattern to add and
2891 move a value at the same time.
2892 (cc0 peepholes): Remove.
2893
2894 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2895
2896 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
2897 on RTX_FRAME_RELATED_P insns and the insn to which
2898 NOTE_INSN_EPILOGUE_BEG is attached.
2899 * sched-vis.c (print_value): Allow NULL value.
2900
2901 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2902
2903 PR rtl-optimization/45570
2904 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
2905 assert that we are pipelining outer loops. Allow returning
2906 zero predecessors.
2907
2908 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2909
2910 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
2911 (tidy_control_flow): Tidy vertical space.
2912 (sel_remove_bb): New variable idx. Use it to remember the basic
2913 block index before deleting the block.
2914 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
2915 (sel_merge_blocks): ... here.
2916 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
2917
2918 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2919
2920 * cse.c (is_dead_reg): Change into inline function that is not
2921 called through for_each_rtx.
2922 (set_live_p): Adjust caller.
2923 (insn_live_p): Don't reset DEBUG_INSNs here.
2924 (struct dead_debug_insn_data): New data.
2925 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
2926 (delete_trivially_dead_insns): If there is just one setter for the
2927 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
2928 and add DEBUG_INSN for it right before the removed setter and
2929 use the DEBUG_EXPR instead of the dead pseudo.
2930
2931 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
2932
2933 * et-forest.c (et_nca): Return NULL immediately when
2934 the dominance forest has disjoint components.
2935
2936 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
2937
2938 * ira.c (setup_class_hard_regs): Fix typo in indexing
2939 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
2940
2941 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
2942
2943 * graph.c (inbb): New variable.
2944 (start_bb): Set inbb to 1 if output is inside of a building block.
2945 (end_bb): Check if output is inside of a building block.
2946
2947 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2948
2949 PR rtl-optimization/45912
2950 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
2951 regno of registers instead of their index to compute the alignment.
2952
2953 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
2954
2955 * config/i386/i386.c (ix86_build_const_vector): Check vector
2956 mode instead of scalar mode.
2957 (ix86_build_signbit_mask): Likewise.
2958 (ix86_expand_fp_absneg_operator): Updated.
2959 (ix86_expand_copysign): Likewise.
2960 (ix86_expand_int_vcond): Likewise.
2961 (ix86_emit_swdivsf): Likewise.
2962 (ix86_sse_copysign_to_positive): Likewise.
2963 (ix86_expand_sse_fabs): Likewise.
2964 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
2965 * config/i386/sse.md (copysign<mode>3): Likewise.
2966 (sse2_cvtudq2ps): Likewise.
2967 (vec_unpacku_float_hi_v4si): Likewise.
2968 (vec_unpacku_float_lo_v4si): Likewise.
2969
2970 * config/i386/i386.c (ix86_builtins): Add
2971 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
2972 (bdesc_args): Likewise.
2973 (ix86_builtin_vectorized_function): Support
2974 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
2975 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
2976 and IX86_BUILTIN_CVTPS2DQ256.
2977 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
2978
2979 * config/i386/sse.md (STORENT_MODE): New.
2980 (VEC_FLOAT_MODE): Likewise.
2981 (VEC_EXTRACT_MODE): Likewise.
2982 (*avx_cvtdq2pd256_2): Likewise.
2983 (vec_pack_trunc_v4df): Likewise.
2984 (vec_interleave_highv8sf): Likewise.
2985 (vec_interleave_lowv8sf): Likewise.
2986 (storent<mode>): Macroized.
2987 (<code><mode>2: absneg): Likewise.
2988 (copysign<mode>3): Likewise.
2989 (vec_extract<mode>): Likewise.
2990
2991 PR target/44180
2992 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
2993 for V8SFmode.
2994
2995 2010-10-13 Richard Guenther <rguenther@suse.de>
2996 H.J. Lu <hongjiu.lu@intel.com>
2997
2998 * config/i386/sse.md (reduc_splus_v8sf): Add.
2999 (reduc_splus_v4df): Likewise.
3000 (vec_unpacks_hi_v8sf): Likewise.
3001 (vec_unpacks_lo_v8sf): Likewise.
3002 (*avx_cvtps2pd256_2): Likewise.
3003 (vec_unpacks_float_hi_v8si): Likewise.
3004 (vec_unpacks_float_lo_v8si): Likewise.
3005 (vec_interleave_highv4df): Likewise.
3006 (vec_interleave_lowv4df): Likewise.
3007
3008 2010-10-13 Richard Guenther <rguenther@suse.de>
3009
3010 PR objc/45878
3011 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
3012 alone if there are no virtual methods.
3013
3014 2010-10-13 Richard Henderson <rth@redhat.com>
3015
3016 * expr.c (build_personality_function): Take parameter LANG instead
3017 of parameter NAME. Build the name based on the lang prefix and the
3018 unwind method in use.
3019 * tree.c (lhd_gcc_personality): Update call to
3020 build_personality_function.
3021
3022 2010-10-13 Richard Guenther <rguenther@suse.de>
3023
3024 PR objc/45878
3025 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
3026
3027 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3028
3029 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
3030 Canonicalize input operands of ASM_OPERANDS insns.
3031
3032 2010-10-13 Richard Guenther <rguenther@suse.de>
3033
3034 PR tree-optimization/45788
3035 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
3036 EH update until fixup-cfg.
3037
3038 2010-10-13 Julian Brown <julian@codesourcery.com>
3039
3040 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
3041 from CORE_REGS and GENERAL_REGS classes.
3042 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
3043 final constraint for register preferencing.
3044
3045 2010-10-13 Richard Guenther <rguenther@suse.de>
3046
3047 PR tree-optimization/45970
3048 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
3049 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
3050 (stmt_kills_ref_p): Likewise.
3051 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
3052
3053 2010-10-13 Richard Guenther <rguenther@suse.de>
3054
3055 PR tree-optimization/45982
3056 * tree-ssa-structalias.c (make_constraints_to): New function.
3057 (make_constraint_to): Implement in terms of make_constraints_to.
3058 (find_func_aliases): Properly make return values of pure/const
3059 functions escape if they assign to sth that is not a pointer.
3060
3061 2010-10-13 Richard Guenther <rguenther@suse.de>
3062
3063 PR middle-end/45874
3064 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3065 Fixup the CFG when EH was fixed up.
3066
3067 2010-10-13 Ira Rosen <irar@il.ibm.com>
3068
3069 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3070 Use operand's type for POINTER_PLUS_EXPR.
3071
3072 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
3073
3074 * c-parser.c (c_parser_for_statement): Initialize incr.
3075
3076 2010-10-12 Xinliang David Li <davidxl@google.com>
3077
3078 PR tree-optimization/45972
3079 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3080 with too many arguments.
3081
3082 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3083
3084 PR fortran/45636
3085 * tree-ssa-forwprop.c: Include expr.h.
3086 (constant_pointer_difference, simplify_builtin_call): New functions.
3087 (tree_ssa_forward_propagate_single_use_vars): Call
3088 simplify_builtin_call on builtin calls.
3089
3090 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
3091
3092 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3093 (*adddi3_extend_sp32): Likewise.
3094 (*subdi3_insn_sp32): Likewise.
3095 (*subdi3_extend_sp32): Likewise.
3096 (*negdi2_sp32): Use negative test for consistency.
3097
3098 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3099
3100 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3101 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3102 * config/fixed-bit.h: Likewise.
3103 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3104 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3105 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3106 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3107 (DF_SIZE): Likewise.
3108 * doc/tm.texi: Regenerate.
3109
3110 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3111
3112 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
3113 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
3114 (*isel_reversed_unsigned_<mode>): New.
3115 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
3116 as valid comparisons and adjust operands and output appropriately.
3117 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
3118
3119 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
3120
3121 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
3122 DATA_ALIGNMENT and add COND parameter. Update comments above.
3123 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
3124 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
3125
3126 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
3127
3128 PR bootstrap/45958
3129 * exec-tool.in: Support '-plugin' as the second option to the linker.
3130
3131 2010-10-12 Richard Henderson <rth@redhat.com>
3132
3133 PR middle-end/45962
3134 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
3135 (expand_stack_vars): Assert large base allocated when used.
3136
3137 2010-10-12 Richard Guenther <rguenther@suse.de>
3138
3139 * tree-ssa-structalias.c (get_constraint_for_1): Constants
3140 only point to nonlocal, not anything.
3141
3142 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3143
3144 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
3145 unwind info for exceptions.
3146
3147 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3148
3149 PR testsuite/45851
3150 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
3151 Document optional target selector.
3152
3153 2010-10-12 Joseph Myers <joseph@codesourcery.com>
3154
3155 * flag-types.h: New.
3156 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
3157 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
3158 options.h.
3159 (OPTIONS_H): Define.
3160 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
3161 of options.h.
3162 * configure.ac (tm_include_list): Include options.h not flags.h.
3163 * configure: Regenerate.
3164 * flags.h: Include flag-types.h. Include options.h at top of file
3165 again.
3166 (enum debug_info_type, enum debug_info_level, enum
3167 debug_info_usage, enum symbol_visibility, struct visibility_flags,
3168 enum ira_algorithm, enum ira_region, enum excess_precision, enum
3169 graph_dump_types, enum stack_check_type,
3170 enum warn_strict_overflow_code): Move to flag-types.h
3171 * opth-gen.awk: Include flag-types.h in options.h.
3172
3173 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3174
3175 * expr.c (store_expr): Share code for STRING_CST and
3176 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
3177 check if target is a MEM.
3178
3179 * rtl.h: Include hashtab.h.
3180 (iterative_hash_rtx): New prototype.
3181 * rtl.c (iterative_hash_rtx): New function.
3182 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
3183 (output_loc_list): Return immediately if emitted is set, set it.
3184 (hash_loc_operands, hash_locs, hash_loc_list,
3185 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
3186 optimize_location_lists_1, optimize_location_lists): New function.
3187 (dwarf2out_finish): Call optimize_location_lists.
3188 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
3189
3190 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3191
3192 PR testsuite/45974
3193 Revert:
3194 * Makefile.in ($(lang_checks_parallel))
3195 ($(lang_checks_parallelized)): Use single quotes for
3196 $(RUNTESTFLAGS), to allow passing quoted content.
3197
3198 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3199
3200 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
3201 actual_oldval. Use __builtin_expect.
3202 (SUBWORD_VAL_CAS): Likewise.
3203
3204 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3205
3206 * recog.c (nonmemory_operand): Call immediate_operand for
3207 CONSTANT_P operands.
3208
3209 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
3210
3211 * config/i386/i386.md (movmem<mode>): Macroize expander from
3212 movmem{si,di} using SWI48 mode iterator.
3213 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
3214 *strmovsi_rex_1 using P mode iterator.
3215 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
3216 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
3217 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
3218 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
3219 (setmem<mode>): Macroize expander from setmem{si,di} using
3220 SWI48 mode iterator.
3221 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
3222 *strsetsi_rex_1 using P mode iterator.
3223 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
3224 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
3225 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
3226 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
3227 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
3228 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
3229 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
3230 mode iterator.
3231 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
3232 *strlenqi_rex_1 using P mode iterator.
3233
3234 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
3235
3236 PR bootstrap/45445
3237 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
3238 static functions.
3239 (mark_ref_live, mark_ref_dead): Use them.
3240 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
3241 Save the original reg, and use the new functions.
3242 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
3243 changed.
3244 (check_and_make_def_conflict): Save the original reg.
3245
3246 2010-10-11 Martin Jambor <mjambor@suse.cz>
3247
3248 PR middle-end/45699
3249 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
3250 thunks.
3251
3252 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3253
3254 * Makefile.in ($(lang_checks_parallel))
3255 ($(lang_checks_parallelized)): Use single quotes for
3256 $(RUNTESTFLAGS), to allow passing quoted content.
3257
3258 PR bootstrap/35855
3259 * opt-functions.awk (BEGIN): New section.
3260 (lower, upper, digit, alnum): New variables.
3261 (static_var, opt_sanitized_name): Use alnum instead of character
3262 classes, for non-C locale.
3263 * optc-gen.awk: Likewise.
3264 * opth-gen.awk: Likewise.
3265
3266 2010-10-11 Anatoly Sokolov <aesok@post.ru>
3267
3268 * target.def (preferred_reload_class): New hook.
3269 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
3270 * doc/tm.texi: Regenerate.
3271 * targhooks.c (default_preferred_reload_class): New function.
3272 * targhooks.h (default_preferred_reload_class): Declare.
3273 * reload.c (find_dummy_reload): Change preferred_class variable type
3274 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
3275 target hook.
3276 (find_reloads): Change goal_alternative array type from int to
3277 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
3278 (push_reload, find_reloads_address_part): Use
3279 TARGET_PREFERRED_RELOAD_CLASS target hook.
3280 * reload1.c (emit_input_reload_insns): Ditto.
3281 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
3282 hook. Change rclass argument and secondary_class variable types from
3283 'enum reg_class' to reg_class_t.
3284
3285 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
3286 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
3287 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
3288 Change regclass argument and result types from enum reg_class to
3289 reg_class_t.
3290 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3291
3292 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
3293
3294 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
3295 in masking operations.
3296 (simplify_const_unary_operation): Likewise.
3297 (simplify_binary_operation_1): Likewise.
3298 (simplify_const_binary_operation): Likewise.
3299 (simplify_const_relational_operation): Likewise.
3300 (simplify_ternary_operation): Likewise.
3301 (simplify_immed_subreg): Likewise.
3302
3303 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3304
3305 PR middle-end/45862
3306 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
3307 (TARGET_SUPPORTS_WEAK): New.
3308 * doc/tm.texi: Regenerate.
3309 * defaults.h (SUPPORTS_WEAK): Update comment.
3310 (TARGET_SUPPORTS_WEAK): New.
3311 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
3312 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
3313 SUPPORTS_WEAK.
3314 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
3315 make_decl_one_only): Likewise.
3316 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
3317 TARGET_SUPPORTS_WEAK.
3318 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
3319 instead of SUPPORTS_WEAK.
3320
3321 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3322
3323 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
3324
3325 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3326
3327 * vec.h (VEC_qsort): Define.
3328 * dbxout.c (output_used_types): Use it.
3329 * df-scan.c (df_sort_and_compress_refs): Likewise.
3330 (df_sort_and_compress_mws): Likewise.
3331 * genautomata.c (uniq_sort_alt_states): Likewise.
3332 (evaluate_equiv_classes): Likewise.
3333 (output_trans_table): Likewise.
3334 (output_state): Likewise.
3335 * gimplify.c (compare_case_labels): Likewise.
3336 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
3337 * ipa.c (build_cdtor_fns): Likewise.
3338 * lto.c (lto_wpa_write_files): Likewise.
3339 * sel-sched.c (fill_vec_av_set): Likewise.
3340 * tree-predcom.c (determine_roots_comp): Likewise.
3341 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
3342 (splice_param_accesses): Likewise.
3343 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
3344 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3345 (reassociate_bb): Likewise.
3346 * tree-ssa-sccvn.c (sort_scc): Likewise.
3347 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
3348
3349 2010-10-11 Ian Lance Taylor <iant@google.com>
3350
3351 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
3352 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
3353 TREE_THIS_NOTRAP when appropriate.
3354 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
3355 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
3356 newly created MEM_REF.
3357
3358 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3359
3360 Nathan Froyds patch to hooks FUNCTION_ARG etc.
3361 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
3362 (picochip_incoming_function_arg): Delete.
3363 (picochip_arg_advance): Delete.
3364 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
3365 (FUNCTION_INCOMING_ARG): Delete.
3366 (FUNCTION_ARG_ADVANCE): Delete.
3367 * config/picochip/picochip.c (picochip_function_arg): Take a
3368 const_tree and a bool.
3369 (picochip_incoming_function_arg): Likewise.
3370 (picochip_arg_advance): Likewise.
3371 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3372 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3373
3374 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3375
3376 PR middle-end/45955
3377 * ipa.c (build_cdtor): Delete endless loop.
3378
3379 2010-10-07 Andi Kleen <ak@linux.intel.com>
3380
3381 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
3382 checksum-options.
3383 (checksum-options): Add.
3384 (cc1-dummy): Remove.
3385 (cc1-checksum): Change to run checksum over object files
3386 and options only.
3387 * dummy-checksum.c: Remove.
3388 * genchecksum.c: Update copyright.
3389 (usage): Allow multiple arguments.
3390 (BLOCKSIZE): Add.
3391 (dosum): Change for incremental checksum. Remove C output.
3392 (main): Iterate over all argument files. Add C output.
3393
3394 2010-10-11 Joseph Myers <joseph@codesourcery.com>
3395
3396 * params.c (set_param_value_internal): New.
3397 (set_param_value): Use set_param_value_internal.
3398 (maybe_set_param_value, set_default_param_value): New.
3399 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
3400 (maybe_set_param_value, set_default_param_value): Declare.
3401 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
3402 * config/i386/i386.c (ix86_option_override_internal): Use
3403 maybe_set_param_value.
3404 * config/ia64/ia64.c (ia64_option_default_params,
3405 TARGET_OPTION_DEFAULT_PARAMS): New.
3406 (ia64_option_optimization): Move some code to
3407 ia64_option_default_params.
3408 * config/picochip/picochip.c (picochip_option_override): Use
3409 maybe_set_param_value.
3410 * config/rs6000/rs6000.c (rs6000_option_default_params,
3411 TARGET_OPTION_DEFAULT_PARAMS): New.
3412 (rs6000_option_override_internal): Use maybe_set_param_value.
3413 (rs6000_option_optimization): Move some code to
3414 rs6000_option_default_params.
3415 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
3416 * config/sh/sh.c (sh_option_default_params,
3417 TARGET_OPTION_DEFAULT_PARAMS): New.
3418 (sh_option_optimization): Move some code to sh_option_default_params.
3419 * config/sparc/sparc.c (sparc_option_override): Use
3420 maybe_set_param_value.
3421 * config/spu/spu.c (spu_option_default_params,
3422 TARGET_OPTION_DEFAULT_PARAMS): New.
3423 (spu_option_optimization): Move some code to spu_option_default_params.
3424 (spu_option_override): Use maybe_set_param_value.
3425 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
3426 * doc/tm.texi: Regenerate.
3427 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
3428 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
3429 compiler_params.
3430 (default_options_optimization): Use maybe_set_param_value.
3431 (finish_options): Use maybe_set_param_value.
3432 * target.def (target_option.default_params): New hook.
3433 * toplev.c (general_init): Call targetm.target_option.default_params.
3434
3435 2010-10-11 Ira Rosen <irar@il.ibm.com>
3436
3437 PR tree-optimization/45902
3438 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
3439 vector type for constants, unless it's a pointer.
3440
3441 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3442
3443 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
3444
3445 2010-10-11 Jakub Jelinek <jakub@redhat.com>
3446
3447 PR target/45870
3448 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
3449 (ix86_delegitimize_address): Use it.
3450
3451 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
3452
3453 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
3454
3455 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
3456
3457 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
3458 to cum struct in the call to function_arg_advance.
3459 (alpha_function_arg_advance): Mark named as unused.
3460
3461 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
3462
3463 * config/mips/mips.c (mips_handle_option): Make "value" with
3464 ATTRIBUTE_UNUSED.
3465
3466 2010-10-09 Richard Henderson <rth@redhat.com>
3467
3468 PR rtl-opt/33721
3469 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
3470 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
3471 required_align, tidy the code a bit. Emit split_stack code in the
3472 right place. Mark the return value with the alignment properly.
3473 * expr.h (allocate_dynamic_stack_space): Update decl.
3474 * builtins.c (expand_builtin_apply): Update call to
3475 allocate_dynamic_stack_space.
3476 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
3477 * calls.c (initialize_argument_information): Update call to
3478 allocate_dynamic_stack_space.
3479 (expand_call): Likewise.
3480
3481 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
3482 Don't update_stack_alignment here.
3483 (alloc_stack_frame_space): Make ALIGN unsigned.
3484 (stack_var_cmp): Sort by alignment too.
3485 (partition_stack_vars): Don't merge large and small alignment vars.
3486 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
3487 Take care when BASE is not virtual_stack_vars_rtx.
3488 (expand_stack_vars): Allocate dynamic stack space for large
3489 alignment variables.
3490 (expand_one_stack_var): Update all to expand_one_stack_var_at.
3491 (defer_stack_allocation): True for large alignment vars.
3492 (update_stack_alignment): Merge into ...
3493 (expand_one_var): ... here.
3494 (gimple_expand_cfg): Place code from expand_stack_vars.
3495
3496 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3497
3498 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3499 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
3500 (pdp11_function_arg_advance): New function.
3501 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3502
3503 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3504
3505 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
3506 * libgcc2.c: Likewise.
3507
3508 2010-10-09 Richard Guenther <rguenther@suse.de>
3509
3510 PR lto/45956
3511 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
3512 Properly check if a decl is an automatic var.
3513
3514 2010-10-09 Richard Guenther <rguenther@suse.de>
3515
3516 PR lto/45947
3517 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
3518
3519 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3520
3521 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
3522 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3523 * config/mmix/mmix.c (mmix_function_arg): Rename to...
3524 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
3525 bool arguments.
3526 (mmix_function_arg): New function.
3527 (mmix_function_incoming_arg): New function.
3528 (mmix_function_arg_advance): New function.
3529 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3530 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3531
3532 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3533
3534 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3535 * config/vax/vax.c (vax_function_arg): New function.
3536 (vax_function_arg_advance): New function.
3537 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3538
3539 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3540
3541 * config/pa/pa-protos.h (function_arg): Delete.
3542 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3543 * config/pa/pa.c (function_arg): Rename to...
3544 (pa_function_arg): ...this. Make static. Take a const_tree and
3545 a bool.
3546 (pa_function_arg_advance): New function.
3547 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3548
3549 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3550
3551 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3552 * config/m68k/m68k.c (m68k_function_arg): New function.
3553 (m68k_function_arg_advance): New function.
3554 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3555
3556 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3557
3558 * config/avr/avr-protos.h (function_arg): Delete.
3559 (function_arg_advance): Delete.
3560 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3561 * config/avr/avr.c (function_arg): Rename to...
3562 (avr_function_arg): ...this. Make static. Take a const_tree and
3563 a bool.
3564 (function_arg_advance): Rename to...
3565 (avr_function_arg_advance): ...this. Make static. Take a
3566 const_tree and a bool.
3567 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3568
3569 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3570
3571 * config/alpha/alpha-protos.h (function_arg): Delete.
3572 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3573 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
3574 * config/alpha/alpha.c (function_arg): Rename to...
3575 (alpha_function_arg): ...this. Make static. Take a const_tree and
3576 a bool. Delete TARGET_ABI_UNICOSMK code.
3577 (alpha_function_arg_advance): New function.
3578 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3579
3580 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3581
3582 * config/mep/mep-protos.h (mep_function_arg): Delete.
3583 (mep_function_arg_advance): Delete.
3584 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3585 * config/mep/mep.c (mep_function_arg): Make static. Take a
3586 const_tree and a bool.
3587 (mep_function_arg_advance): Likewise.
3588 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3589
3590 2010-10-09 Richard Guenther <rguenther@suse.de>
3591
3592 PR tree-optimization/45945
3593 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
3594
3595 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
3596
3597 PR tree-optimization/45612
3598 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
3599 Test LABEL_DECLs as well. Fix formatting issues.
3600 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
3601 whose label is present in NON_SSA_VARS.
3602 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
3603 as well. Fix formatting issues.
3604 (visit_bb): Fix typos and formatting issue.
3605
3606 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3607
3608 PR tree-optimization/45950
3609 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
3610 before initializing vno->op.
3611
3612 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
3613
3614 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
3615 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
3616
3617 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
3618
3619 PR target/45913
3620 * config/i386/i386.c (ix86_binary_operator_ok): Support
3621 "andhi/andsi/anddi" as a zero-extending move.
3622
3623 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3624
3625 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
3626 into a temporary array.
3627
3628 2010-10-08 Jakub Jelinek <jakub@redhat.com>
3629
3630 PR tree-optimization/45903
3631 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
3632 of {A,L}SHIFTRT of MEM.
3633
3634 2010-10-08 Richard Guenther <rguenther@suse.de>
3635
3636 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3637 Re-construct BLOCK_VARS.
3638 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
3639 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3640 * tree.c (free_lang_data_in_block): Remove.
3641 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
3642 Do not touch the BLOCK tree.
3643 * expr.c (expand_expr_real_1): Allow externals.
3644
3645 2010-10-08 Richard Guenther <rguenther@suse.de>
3646
3647 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
3648 Do not output BLOCK_SUBBLOCKS.
3649 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
3650 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
3651 Re-construct BLOCK_SUBBLOCKS of parent block.
3652 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
3653 for BINFO_BASE_ACCESSES.
3654
3655 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3656
3657 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
3658 (TREE_H): Include $(FLAGS_H) instead of options.h.
3659 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
3660 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3661 * common.opt (flag_complex_method, flag_evaluation_order,
3662 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
3663 Variable declarations.
3664 * configure.ac (tm_include_list): Include flags.h instead of options.h.
3665 * configure: Regenerate.
3666 * flags.h: Condition out contents for target libraries. Include
3667 options.h at end of file.
3668 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
3669 flag_evaluation_order, flag_warn_unused_result): Remove.
3670 * gcc.c (main): Intialize global_options with global_options_init.
3671 * langhooks-def.h (lhd_init_options_struct): Declare.
3672 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3673 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
3674 * langhooks.c (lhd_init_options_struct): New.
3675 * langhooks.h (struct lang_hooks): Add init_options_struct.
3676 Update comment on init_options.
3677 * optc-gen.awk: Generate initializer for global_options_init, not
3678 global_options.
3679 * opth-gen.awk: Condition out structure declarations for target
3680 libraries. Declare global_options_init.
3681 * opts-common.c: Include flags.h instead of options.h.
3682 * opts.c (flag_warn_unused_result): Remove.
3683 (read_cmdline_options): Take gcc_options parameters. Pass them to
3684 read_cmdline_option.
3685 (initial_lang_mask, initial_min_crossjump_insns,
3686 initial_max_fields_for_field_sensitive,
3687 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
3688 (init_options_once): New. Split out of decode_options.
3689 (init_options_struct): New. Split out of decode_options.
3690 (decode_cmdline_options_to_array_default_mask): New.
3691 (default_options_optimization): New. Split out of decode_options.
3692 (decode_options): Move most code to other functions. Update call
3693 to read_cmdline_options.
3694 (finish_options): New. Split out of decode_options.
3695 * opts.h (decode_options): Add gcc_options parameters.
3696 (init_options_once, init_options_struct,
3697 decode_cmdline_options_to_array_default_mask): New.
3698 * toplev.c (flag_complex_method, flag_ira_algorithm,
3699 flag_ira_region, flag_evaluation_order): Remove.
3700 (general_init): Use global_options_init for initial flag values
3701 for global_dc.
3702 (toplev_main): Call init_options_once, init_options_struct,
3703 lang_hooks.init_options_struct,
3704 decode_cmdline_options_to_array_default_mask and
3705 lang_hooks.init_option before decode_options. Update arguments to
3706 decode_options.
3707 * tree.h: Include flags.h instead of options.h.
3708
3709 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3710
3711 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3712
3713 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3714
3715 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
3716 Delete.
3717 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
3718 (FUNCTION_INCOMING_ARG): Delete.
3719 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
3720 (function_arg_slotno): Likewise. Take bool arguments.
3721 (sparc_arg_partial_bytes): Update call to it.
3722 (function_arg): Rename to...
3723 (sparc_function_arg_1): ...this. Take bool arguments.
3724 (sparc_function_arg, sparc_function_incoming_arg): New functions.
3725 (function_arg_advance): Rename to...
3726 (sparc_function_arg_advance): ...this. Take bool argument.
3727 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
3728 (TARGET_FUNCTION_INCOMING_ARG): Define.
3729
3730 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3731
3732 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
3733 Delete.
3734 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3735 * config/bfin/bfin.c (function_arg_advance): Rename to...
3736 (bfin_function_arg_advance): ...this. Make static. Take const_tree
3737 and bool arguments.
3738 (function_arg): Rename to...
3739 (bfin_function_arg): ...this. Make static. Take const_tree and bool
3740 arguments.
3741 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3742
3743 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3744
3745 * config/score/score-protos.h (score_function_arg): Delete.
3746 (score_function_arg_advance): Delete.
3747 * config/score/score3.h (score3_function_arg_advance): Take a
3748 const_tree and a bool.
3749 (score3_function_arg): Likewise.
3750 * config/score/score7.h (score7_function_arg_advance): Likewise.
3751 (score7_function_arg): Likewise.
3752 * config/score/score3.c (score3_classify_arg): Likewise.
3753 (score3_function_arg_advance, score3_function_arg): Likewise.
3754 * config/score/score7.c (score7_classify_arg): Likewise.
3755 (score7_function_arg_advance, score7_function_arg): Likewise.
3756 * config/score/score.c (score_function_arg_advance): Likewise.
3757 (score_function_arg): Likewise. De-const-ify `cum' argument.
3758 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3759
3760 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3761
3762 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
3763 (s390_function_arg): Delete.
3764 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3765 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
3766 (s390_function_arg_integer): Likewise.
3767 (s390_function_arg_advance): Make static. Take a const_tree and
3768 a bool.
3769 (s390_function_arg): Likewise.
3770 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3771
3772 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3773
3774 * config/spu/spu-protos.h (spu_function_arg): Delete.
3775 * config/spu/spu.h (FUNCTION_ARG): Delete.
3776 (FUNCTION_ARG_ADVANCE): Move code to ...
3777 * config/spu/spu.c (spu_function_arg_advance): New function.
3778 (spu_function_arg): Make static. Take a const_tree and a bool.
3779 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
3780 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3781
3782 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3783
3784 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3785
3786 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3787
3788 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
3789 (init_vn_nary_op_from_op): New function.
3790 (init_vn_nary_op_from_stmt): New function.
3791 (vn_nary_op_lookup_1): New function.
3792 (sizeof_vn_nary_op): New function.
3793 (alloc_vn_nary_op_noinit): New function.
3794 (alloc_vn_nary_op): New function.
3795 (vn_nary_op_insert_into): New function.
3796 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
3797 (vn_nary_op_lookup): Likewise.
3798 (vn_nary_op_lookup_stmt): Likewise.
3799 (vn_nary_op_insert_pieces): Likewise.
3800 (vn_nary_op_insert): Likewise.
3801 (vn_nary_op_insert_stmt): Likewise.
3802 (copy_nary): Likewise.
3803 (set_value_id_for_result): New function.
3804 (set_hashtable_value_ids): Call it.
3805
3806 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3807
3808 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3809 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
3810
3811 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3812
3813 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
3814 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3815
3816 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3817
3818 PR debug/45656
3819 * cse.c (cse_extended_basic_block): Preserve cc0 info across
3820 debug isnsn. Skip them when searching for cc0 setter.
3821 (set_live_p): Skip debug insns when searching for cc0 user.
3822
3823 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3824
3825 PR debug/45673
3826 PR debug/45604
3827 PR debug/45419
3828 PR debug/45408
3829 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
3830 type of MEM_REFs to INTEGER_CSTs.
3831
3832 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3833
3834 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
3835 m68hc11_print_operand_address.
3836
3837 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3838
3839 * builtins.c (rewrite_call_expr): Move code to...
3840 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
3841 (rewrite_call_expr_array): New function.
3842 (fold_builtin_sprintf_chk_1): New function.
3843 (fold_builtin_sprintf_chk): Call it.
3844 (gimple_fold_builtin_sprintf_chk): Likewise.
3845 (fold_builtin_snprintf_chk_1): New function.
3846 (fold_builtin_snprintf_chk): Call it.
3847 (gimple_fold_builtin_snprintf_chk): Likewise.
3848 (gimple_rewrite_call_expr): Delete.
3849
3850 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3851
3852 * config.host: Update copyright year.
3853
3854 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3855
3856 * config.host (host_lto_plugin_soname): New shell variable.
3857 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
3858 * config.in: Regenerate.
3859 * configure: Regenerate.
3860 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
3861 LTO plugin shared library.
3862
3863 2010-10-07 Richard Henderson <rth@redhat.com>
3864
3865 * target.h (enum unwind_info_type): Move ...
3866 * coretypes.h: ... here.
3867
3868 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
3869
3870 * doc/objc.texi (Fast enumeration protocol): Mention that
3871 'unsigned int' can also be used instead of 'unsigned long' in
3872 countByEnumeratingWithState:objects:count:.
3873
3874 2010-10-07 Martin Jambor <mjambor@suse.cz>
3875
3876 * tree-sra.c (struct access): New field grp_assignment_write.
3877 (dump_access): Dump grp_assignment_write.
3878 (build_accesses_from_assign): Set grp_assignment_write.
3879 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
3880 (mark_read_status): Renamed to mark_rw_status, individual values
3881 renamed too.
3882 (analyze_access_subtree): Changed type of mark_write to
3883 mark_read_status. Fixed propagating of mark_read and
3884 mark_write. Changed benefit estimate. Updated comment.
3885
3886 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3887
3888 PR Tree-Vect/45847
3889 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
3890 check for vectype_out returned by get_vectype_for_scalar_type().
3891
3892 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3893
3894 PR target/45805
3895 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
3896 constraint, add register specifier in instruction template.
3897 (neon_vec_pack_trunc_<mode>): Likewise.
3898 (neon_vec_<US>mult_<mode>): Add register specifier to
3899 instruction template.
3900
3901 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3902
3903 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
3904 cygwin2.o.
3905 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
3906 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
3907 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
3908 (cygwin2.o): Likewise.
3909 * config/i386/cygwin1.c: Delete file.
3910 * config/i386/cygwin2.c: Likewise.
3911 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
3912 make all {%!mno-cygwin} ones unconditional.
3913 (STARTFILE_SPEC): Likewise.
3914 (REAL_LIBGCC_SPEC): Likewise.
3915 (LIB_SPEC): Likewise.
3916 (CXX_WRAP_SPEC): Likewise.
3917 (LINK_SPEC): Likewise.
3918 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
3919 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
3920 (cygwin_gplusplus_include_dir): Delete now-unused array.
3921 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
3922 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
3923 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
3924 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
3925 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
3926 (cygwin_local_include_dir): Delete now-unused array.
3927 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
3928 (cygwin_cross_include_dir): Delete now-unused array.
3929 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
3930 (cygwin_tool_include_dir): Delete now-unused array.
3931 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
3932 (cygwin_standard_include_dir): Delete now-unused array.
3933 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
3934 (GEN_CVT_ARRAY): Delete now-unused macro definition.
3935 (cvt_to_mingw): Delete now-unused array.
3936 (mingw_scan): Remove prototype of deleted function.
3937 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
3938 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
3939 * doc/invoke.texi (-mcygwin): Don't document removed option.
3940 (-mno-cygwin): Likewise.
3941
3942 2010-10-07 Richard Guenther <rguenther@suse.de>
3943
3944 * machmode.h (mode_for_vector): Declare.
3945 * stor-layout.c (mode_for_vector): New function, split out from ...
3946 (layout_type): ... here.
3947 * tree-vectorizer.h (current_vector_size): Declare.
3948 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
3949 mask vector type is available.
3950 (get_vectype_for_scalar_type): Rename to ...
3951 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
3952 size argument.
3953 (get_vectype_for_scalar_type): New wrapper around
3954 get_vectype_for_scalar_type_and_size using current_vector_size.
3955 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
3956 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
3957 of vect_analyze_loop here.
3958 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
3959 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
3960 to autodetect.
3961 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
3962 V8SF to V8SI conversion builtin.
3963
3964 2010-10-07 Richard Guenther <rguenther@suse.de>
3965
3966 * target.def (autovectorize_vector_sizes): New target hook.
3967 * targhooks.c (default_autovectorize_vector_sizes): New function.
3968 * targhooks.h (default_autovectorize_vector_sizes): Declare.
3969 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3970 Document.
3971 * doc/tm.texi: Update.
3972 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
3973 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3974
3975 2010-10-07 Richard Guenther <rguenther@suse.de>
3976
3977 * target.def (units_per_simd_word): Rename to ...
3978 (preferred_simd_mode): ... this. Return mode instead of size.
3979 * targhooks.c (default_units_per_simd_word): Rename to ...
3980 (default_preferred_simd_mode): ... this. Return word_mode.
3981 * targhooks.h (default_preferred_simd_mode): Declare.
3982 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
3983 (arm_preferred_simd_mode): ... this. Re-implement.
3984 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
3985 (ix86_preferred_simd_mode): ... this. Re-implement.
3986 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
3987 (sparc_preferred_simd_mode): ... this. Re-implement.
3988 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
3989 (mips_preferred_simd_mode): ... this. Re-implement.
3990 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
3991 (rs6000_preferred_simd_mode): ... this. Re-implement.
3992 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
3993 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
3994 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
3995 * doc/tm.texi: Update.
3996
3997 2010-10-07 Richard Guenther <rguenther@suse.de>
3998
3999 PR middle-end/45869
4000 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
4001 of pointers.
4002
4003 2010-10-07 Alan Modra <amodra@gmail.com>
4004
4005 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4006 rather than sign extension by hand.
4007
4008 2010-10-07 Jan Hubicka <jh@suse.cz>
4009
4010 PR middle-end/45926
4011 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
4012
4013 2010-10-07 Richard Guenther <rguenther@suse.de>
4014
4015 PR bootstrap/45914
4016 * configure.ac: Fix typo.
4017 * configure: Regenerated.
4018
4019 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4020
4021 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4022 define_builtin_std where it's unnecessary.
4023 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
4024
4025 2010-10-06 Anatoly Sokolov <aesok@post.ru>
4026
4027 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
4028 * doc/tm.texi.in: Regenerate.
4029 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
4030 * targhooks.c (default_class_likely_spilled_p): Don't use the
4031 CLASS_LIKELY_SPILLED_P macro.
4032
4033 * config/arm/arm.md: Update comment.
4034
4035 2010-10-06 Jan Hubicka <jh@suse.cz>
4036
4037 * ipa.c (cgraph_remove_unreachable_nodes): External references can
4038 always be removed.
4039 (cgraph_externally_visible_p): We can not bring local comdats that
4040 are known to linker; fix handling of internal visibility.
4041 (function_and_variable_visibility): Likewise.
4042
4043 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
4044
4045 PR rtl-optimization/45394
4046 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
4047 (struct rtx_subst_pair): Remove AFTER field.
4048 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
4049 (propagate_for_debug): Remove MOVE parameter and adjust.
4050 (try_combine): In the special case where I2 is a PARALLEL, combine only
4051 destinations of SETs and set I2SRC to the I2 source.
4052 Adjust calls to propagate_for_debug throughout.
4053 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
4054 insns.
4055
4056 2010-10-06 Olivier Hainque <hainque@adacore.com>
4057
4058 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
4059 switch on insn codes as sequence of ifs.
4060
4061 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
4062
4063 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4064 be UI_NONE for picochip.
4065 (picochip_option_override): Do not disable exception flags.
4066 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4067 Declare.
4068
4069 2010-10-06 Richard Guenther <rguenther@suse.de>
4070
4071 * Makefile.in (regmove.o): Depend on $(TARGET_H).
4072
4073 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4074
4075 Implemented fast enumeration for Objective-C.
4076 * c-parser.c (objc_could_be_foreach_context): New.
4077 (c_lex_one_token): Recognize RID_IN keyword in a potential
4078 Objective-C foreach context.
4079 (c_parser_declaration_or_fndef): Added parameter. Accept
4080 Objective-C RID_IN keyword as terminating a declaration; in that
4081 case, return the declaration in the new parameter.
4082 (c_parser_extenral_declaration): Updated calls to
4083 c_parser_declaration_or_fndef.
4084 (c_parser_declaration_or_fndef): Same change.
4085 (c_parser_compound_statement_nostart): Same change.
4086 (c_parser_label): Same change.
4087 (c_parser_objc_methodprotolist): Same change.
4088 (c_parser_omp_for_loop): Same change.
4089 (c_parser_for_statement): Detect and parse Objective-C foreach
4090 statements.
4091 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4092 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4093 fast enumeration parsing code to turn off the c99 error but still
4094 perform checks on the loop declarations.
4095 * c-tree.h (check_for_loop_decls): Updated declaration.
4096 * doc/objc.texi: Document fast enumeration.
4097
4098 2010-10-06 Nick Clifton <nickc@redhat.com>
4099
4100 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4101 (MDR_REGNUM): Define.
4102 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4103 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4104 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4105 (REGISTER_NAMES): Add MDR.
4106 (DWARF2_DEBUGGING_INFO): Define to 1.
4107 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4108 (F): New function. Sets RTX_FRAME_RELATED_P.
4109 (mn10300_gen_multiple_store): Use F.
4110 (expand_prologue): Use F. Use gen_movsf() to push floating
4111 point registers.
4112 (expand_epilogue): Use gen_movsf() to pop floating point registers.
4113 (mn10300_option_override): Disable combine stack adjust pass.
4114
4115 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
4116
4117 PR target/45901
4118 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
4119 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
4120
4121 2010-10-06 Jakub Jelinek <jakub@redhat.com>
4122
4123 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
4124 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
4125 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
4126 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
4127 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
4128 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
4129 BUILT_IN_TOUPPER): Mark as leaf.
4130
4131 PR middle-end/45838
4132 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4133 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4134 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4135 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4136 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
4137 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
4138 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
4139
4140 2010-10-05 Anatoly Sokolov <aesok@post.ru>
4141
4142 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
4143 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4144 (m68hc11_class_likely_spilled_p): New function.
4145
4146 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
4147
4148 * c-parser.c (c_parser_objc_method_definition): Updated comment.
4149
4150 2010-10-05 Jan Hubicka <jh@suse.cz>
4151
4152 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
4153 Document.
4154 * opts.c (decode_options): Handle lto partitions.
4155 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
4156 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
4157
4158 2010-10-05 Jan Hubicka <jh@suse.cz>
4159
4160 * cgraphunit.c (assemble_function): Output thunks and aliases before
4161 the function itself.
4162
4163 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4164
4165 * config/picochip/picochip.c (picochip_option_override): Disable
4166 exception flags for picochip.
4167
4168 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4169
4170 * opts-common.c (handle_option, handle_generated_option,
4171 read_cmdline_option, set_option): Add diagnostic_context
4172 parameter. Update calls among these functions.
4173 (set_option): Don't use global_dc.
4174 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
4175 (decode_options): Pass global_dc to enable_warning_as_error.
4176 (common_handle_option): Pass global_dc to enable_warning_as_error.
4177 (enable_warning_as_error): Add diagnostic_context parameter.
4178 Document parameters. Don't use global_dc. Pass
4179 diagnostic_context parameter to handle_generated_option.
4180 * opts.h (set_option, handle_option, handle_generated_option,
4181 read_cmdline_option, enable_warning_as_error): Add
4182 diagnostic_context parameter.
4183 * Makefile.in (lto-opts.o): Update dependencies.
4184 * coretypes.h (struct diagnostic_context, diagnostic_context):
4185 Declare here.
4186 * diagnostic.h (diagnostic_context): Don't declare typedef here.
4187 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
4188 * langhooks-def.h (struct diagnostic_context): Don't declare here.
4189 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
4190 using diagnostic_context typedef.
4191 * langhooks.c (lhd_initialize_diagnostics): Declare using
4192 diagnostic_context typedef.
4193 * langhooks.h (struct diagnostic_context): Don't declare here.
4194 (initialize_diagnostics, print_error_function): Declare using
4195 diagnostic_context typedef.
4196 * lto-opts.c: Include diagnostic.h.
4197 (lto_reissue_options): Pass global_dc to set_option. Pass
4198 DK_UNSPECIFIED not 0.
4199 * plugin.c (plugins_internal_error_function): Declare using
4200 diagnostic_context typedef.
4201 * plugin.h (struct diagnostic_context): Don't declare here.
4202 (plugins_internal_error_function): Declare using
4203 diagnostic_context typedef.
4204
4205 2010-10-05 Olivier Hainque <hainque@adacore.com>
4206 Nicolas Roche <roche@adacore.com>
4207
4208 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
4209 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
4210
4211 2010-10-05 Ira Rosen <irar@il.ibm.com>
4212
4213 PR tree-optimization/45752
4214 * tree-vect-slp.c (vect_get_mask_element): Remove static
4215 variables, make them function arguments.
4216 (vect_transform_slp_perm_load): Pass new arguments to
4217 vect_get_mask_element.
4218
4219 2010-10-05 Richard Guenther <rguenther@suse.de>
4220
4221 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
4222 (gimple_mod_pow2): Likewise.
4223 (gimple_mod_subtract): Likewise.
4224 (gimple_ic): Likewise.
4225 (gimple_stringop_fixed_value): Likewise.
4226 * tree-profile.c (tree_init_edge_profiler): Mark profile
4227 functions nothrow and leaf.
4228 (add_abnormal_goto_call_edges): Remove.
4229 (tree_gen_edge_profiler): Work on SSA form.
4230 (tree_gen_ic_profiler): Likewise. Simplify.
4231 (do_tree_profiling): Update SSA form.
4232 (pass_tree_profile): Remove.
4233 (do_tree_profiling): Likewise.
4234 (gate_tree_profile_ipa): New function.
4235 (pass_ipa_tree_profile): New.
4236 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
4237 state of instrumented functions.
4238 * passes.c (init_optimization_passes): Remove early non-SSA
4239 inlining. Move profiling after early optimizations.
4240 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
4241 (pass_ipa_early_inline): Likewise.
4242 * tree-pass.h (pass_ipa_early_inline): Remove.
4243 (pass_tree_profile): Likewise.
4244 (pass_ipa_tree_profile): Declare.
4245
4246 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4247 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
4248
4249 * gcc/config/s390/s390.c (z196_cost): New.
4250 (s390_handle_arch_option): Add -march=z196.
4251 (s390_option_override): Use the new cost function and use the z10
4252 defaults also for z196.
4253 (legitimate_reload_constant_p): Adjust comment.
4254 (legitimate_reload_fp_constant_p): New function.
4255 (s390_preferred_reload_class): Distingiush between FP and Int constants.
4256 (preferred_la_operand_p): Avoid la with index on z196.
4257 (s390_adjust_priority): Trigger also for z196.
4258 (s390_issue_rate): Issue rate for z196 is 3.
4259 (s390_z10_fix_long_loop_prediction): Rename to ...
4260 (s390_fix_long_loop_prediction): ... this.
4261 (s390_reorg): Apply the z10 adjustments also for z196.
4262 (s390_loop_unroll_adjust): Do this also for z196.
4263 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
4264 (enum processor_flags): Add PF_Z196.
4265 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
4266 (TARGET_CPU_Z196, TARGET_Z196): New macros.
4267 * gcc/config.gcc: Enable z196 for --with-arch.
4268 * gcc/config/s390/2817.md: New file.
4269 * gcc/config/s390/2084.md: New type for multiply and add.
4270 * gcc/config/s390/2097.md: Likewise.
4271 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
4272 (UNSPECV_ATOMIC_OP): New constants.
4273 (fmadddf, fmaddsf): New values for type attribute.
4274 (z196prop): New insn attribute.
4275 (cpu, cpu_facility): Add z196.
4276 (ATOMIC_Z196): New code iterator.
4277 (noxa): New code attribute.
4278 (gk): New mode attribute.
4279 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
4280 Support load zero for fp constants.
4281 (fixuns_truncdddi2, fixuns_trunctddi2)
4282 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
4283 for z196.
4284 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
4285 (popcounthi2, popcountqi2): New expander.
4286 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
4287 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
4288 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
4289 insn definition.
4290 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
4291 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
4292 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
4293 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
4294 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
4295 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
4296 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
4297 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
4298 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
4299 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
4300 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
4301 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
4302 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
4303 Support new z196 instructions.
4304
4305 2010-10-05 Richard Guenther <rguenther@suse.de>
4306
4307 PR middle-end/45877
4308 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
4309 case where gimplification optimizes away the stmt.
4310
4311 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4312
4313 PR debug/45849
4314 * var-tracking.c (strip_pointer_flags): New function.
4315 (emit_note_insn_var_location): If rtx_equal_p check failed,
4316 retry on locations simplified with simplify_replace_fn_rtx
4317 and strip_pointer_flags as its callback.
4318
4319 2010-10-04 Jan Hubicka <jh@suse.cz>
4320
4321 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
4322 (can_refer_decl_in_current_unit_p): ... this one; reverse return
4323 value; handle comdats too.
4324 (canonicalize_constructor_val): Use it; handle function_decls
4325 correctly.
4326 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4327 * gimple.c (get_base_address): Accept all kinds of decls.
4328
4329 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4330
4331 * flags.h (g_switch_value, g_switch_set): Remove.
4332 * opts.c (g_switch_value, g_switch_set): Remove.
4333 * config/g.opt (G): Add Var(g_switch_value).
4334 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
4335 (alpha_option_override): Check global_options_set.x_g_switch_value
4336 instead of g_switch_set.
4337 (alpha_in_small_data_p): Remove cast in comparison with
4338 g_switch_value.
4339 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4340 g_switch_value to unsigned HOST_WIDE_INT.
4341 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
4342 with g_switch_value.
4343 (frv_handle_option): Don't handle -G here.
4344 (frv_option_override): Check global_options_set.x_g_switch_value
4345 instead of g_switch_set. Don't modify g_switch_set.
4346 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
4347 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
4348 g_switch_value to unsigned HOST_WIDE_INT.
4349 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
4350 (ia64_option_override): Check global_options_set.x_g_switch_value
4351 instead of g_switch_set.
4352 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
4353 Remove.
4354 (lm32_in_small_data_p): Remove cast in comparison with
4355 g_switch_value.
4356 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
4357 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
4358 HOST_WIDE_INT.
4359 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
4360 (m32r_init): Check global_options_set.x_g_switch_value instead of
4361 g_switch_set.
4362 (m32r_in_small_data_p): Remove cast in comparison with
4363 g_switch_value.
4364 (m32r_file_start): Format g_switch_value with %d.
4365 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
4366 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
4367 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
4368 handle -G here.
4369 (microblaze_option_override): Check
4370 global_options_set.x_g_switch_value instead of g_switch_set.
4371 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
4372 (mips_option_override): Check global_options_set.x_g_switch_value
4373 instead of g_switch_set.
4374 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
4375 (rs6000_file_start): Format g_switch_value with %d.
4376 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
4377 comparisons with g_switch_value.
4378 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4379 global_options_set.x_g_switch_value instead of g_switch_set.
4380 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4381 global_options_set.x_g_switch_value instead of g_switch_set.
4382 * config/score/score.c (score_handle_option): Don't handle -G here.
4383 * config/score/score3.c (score3_option_override): Check
4384 global_options_set.x_g_switch_value instead of g_switch_set.
4385 * config/score/score7.c (score7_option_override): Check
4386 global_options_set.x_g_switch_value instead of g_switch_set.
4387
4388 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4389
4390 * common.opt (fira-coalesce): Remove.
4391
4392 * doc/invoke.texi (flag_ira_coalesce): Remove.
4393
4394 * ira-color.c (allocno_coalesced_p): Move before
4395 copy_freq_compare_func.
4396 processed_coalesced_allocno_bitmap): Ditto.
4397 (update_conflict_hard_regno_costs): Don't use
4398 ALLOCNO_FIRST_COALESCED_ALLOCNO.
4399 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
4400 (assign_hard_reg): Assume no coalesced allocnos.
4401 (get_coalesced_allocnos_attributes): Remove.
4402 (bucket_allocno_compare_func): Assume no coalesced allocnos.
4403 (push_allocno_to_stack): Ditto.
4404 (remove_allocno_from_bucket_and_push): Use
4405 ira_print_expanded_allocno instead of print_coalesced_allocno.
4406 (push_allocnos_to_stack): Assume uncoalesced allocnos.
4407 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
4408 all_conflicting_hard_regs.
4409 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
4410 (setup_allocno_left_conflicts_size): Ditto.
4411 (put_allocno_into_bucket): Ditto.
4412 (copy_freq_compare_func): Remove.
4413 (copy_freq_compare_func, merge_allocnos): Move before
4414 coalesced_pseudo_reg_freq_compare.
4415 coalesced_allocno_conflict_p): Ditto.
4416 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
4417 parameter. Assume it true.
4418 (color_allocnos): Assume uncoalesced allocnos. Use
4419 ira_print_expanded_allocno instead of print_coalesced_allocno.
4420 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
4421 parameter.
4422
4423 * ira.c: Remove comment about coalescing.
4424
4425 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4426
4427 * config/mips/mips.h (target_flags_explicit): Declare for
4428 GENERATOR_FILE.
4429
4430 2010-10-04 Andi Kleen <ak@linux.intel.com>
4431
4432 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
4433 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
4434
4435 2010-10-04 Matthias Klose <doko@ubuntu.com>
4436
4437 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
4438 multilib osdirname if it exists.
4439 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
4440
4441 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4442
4443 PR middle-end/45876
4444 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
4445 arg0's type or its unsigned counterpart as utype. Convert
4446 arg1 to utype unconditionally.
4447
4448 2010-10-04 Julian Brown <julian@codesourcery.com>
4449
4450 * expr.c (expand_assignment): Add assertion to prevent emitting
4451 null rtx for movmisalign pattern.
4452 (expand_expr_real_1): Likewise.
4453 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
4454 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
4455 (arm_vector_alignment_reachable): New.
4456 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
4457 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
4458 (arm_print_operand): Include alignment qualifier in %A.
4459 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
4460 (movmisalign<mode>): New expander.
4461 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
4462 insn patterns.
4463
4464 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4465
4466 * optc-gen.awk: Define global_options_set. Don't define
4467 target_flags_explicit.
4468 * opth-gen.awk: Declare global_options_set. Define
4469 target_flags_explicit as macro.
4470 * opts-common.c (handle_option): Take opts_set and generated_p
4471 parameters.
4472 (handle_generated_option, read_cmdline_option, set_option): Take
4473 opts_set parameter.
4474 (set_option): Use opts_set instead of hardcoding target_flags and
4475 target_flags_explicit.
4476 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
4477 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
4478 flag_value_profile_transformations_set, flag_peel_loops_set,
4479 flag_branch_probabilities_set, flag_inline_functions_set,
4480 flag_ipa_cp_set, flag_ipa_cp_clone_set,
4481 flag_predictive_commoning_set, flag_unswitch_loops_set,
4482 flag_gcse_after_reload_set): Remove.
4483 (common_handle_option, lang_handle_option, target_handle_option):
4484 Take opts_set parameter. Assert that it is &global_options_set.
4485 (common_handle_option): Don't set _set variables. Check opts_set
4486 instead of such variables.
4487 (enable_warning_as_error): Pass &global_options_set to
4488 handle_generated_option.
4489 * opts.h (cl_option_handler_func.handler, set_option,
4490 handle_option, handle_generated_option, read_cmdline_option): Add
4491 opts_set parameters.
4492 (handle_option): Add generated_p parameter.
4493 * config/i386/i386.c (ix86_function_specific_save,
4494 ix86_function_specific_restore): Updat for renaming of
4495 target_flags_explicit field.
4496 * config/i386/i386.opt (target_flags_explicit): Rename to
4497 ix86_target_flags_explicit.
4498 * config/ia64/ia64.c (ia64_override_options_after_change): Check
4499 global_options_set.x_flag_selective_scheduling and
4500 global_options_set.x_flag_selective_scheduling2, not
4501 sel_sched_switch_set.
4502 * flags.h (sel_sched_switch_set,
4503 flag_speculative_prefetching_set): Remove.
4504 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
4505 that it is &global_options_set.
4506 (process_command): Pass &global_options_set to read_cmdline_option.
4507 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
4508 set_option.
4509 * toplev.c (target_flags_explicit): Remove.
4510
4511 2010-10-04 Jan Hubicka <jh@suse.cz>
4512
4513 PR middle-end/45871
4514 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
4515 use get_ref_base_and_offset to handle references.
4516 (fold_const_aggregate_ref): Update.
4517
4518 2010-10-04 Martin Jambor <mjambor@suse.cz>
4519
4520 PR tree-optimization/45572
4521 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
4522 ipa_check_create_node_params.
4523 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
4524
4525 2010-10-04 Yao Qi <yao@codesourcery.com>
4526
4527 * doc/passes.texi: Clean up.
4528
4529 2010-10-03 Ian Lance Taylor <iant@google.com>
4530
4531 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
4532 referring to a field using a typedef name.
4533 (find_anonymous_field_with_type): New static function.
4534 (convert_to_anonymous_field): New static function.
4535 (convert_for_assignment): If -fplan9-extensions, permit converting
4536 pointer to struct to pointer to anonymous field.
4537 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
4538 (is_duplicate_field): New static function.
4539 (detect_field_duplicates_hash): If -fplan9-extensions, check for
4540 typedef names duplicating field names.
4541 (detect_field_duplicates): Likewise.
4542 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
4543 (C Dialect Options): Document -fplan9-extensions.
4544 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
4545
4546 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
4547
4548 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
4549 revision 164914.
4550 (vect_create_data_ref_ptr): Likewise.
4551 * tree-vect-stmts.c (vectorizable_store): Likewise.
4552 (perm_mask_for_reverse): Likewise.
4553 (reverse_vec_elements): Likewise.
4554 (vectorizable_load): Likewise.
4555
4556 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4557
4558 * cppbuiltin.c: New file.
4559 * cppbuiltin.h: New file.
4560 * Makefile.in: Take into account cppbuiltin.{h,c}.
4561
4562 2010-10-03 Andi Kleen <ak@linux.intel.com>
4563
4564 * lto-cgraph.c (input_cgraph): Check for missing sections.
4565
4566 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
4567
4568 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
4569 to nonimmediate_operand. Force operand 2 to register when allowed.
4570 (*<shiftrt_insn><mode>3_mask): Ditto.
4571 (*<rotate_insn><mode>3_mask): Ditto.
4572
4573 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
4574
4575 PR tree-optimization/45720
4576 PR tree-optimization/45764
4577 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4578 Don't accept backwards consecutive accesses.
4579 (vect_create_data_ref_ptr): Disallow negative steps.
4580
4581 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
4582 (perm_mask_for_reverse): Removed.
4583 (reverse_vec_elements): Likewise.
4584 (vectorizable_load): Don't handle negative steps.
4585
4586 2010-10-02 Jan Hubicka <jh@suse.cz>
4587
4588 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
4589 call destination is known.
4590
4591 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4592
4593 PR target/45820
4594 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
4595 earlier.
4596
4597 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4598
4599 * doc/install.texi (Configuration): Document build_configargs,
4600 host_configargs, target_configargs.
4601
4602 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
4603
4604 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
4605 (*<shiftrt_insn><mode>3_mask): Ditto.
4606 (*<rotate_insn><mode>3_mask): Ditto.
4607
4608 2010-10-01 Steve Ellcey <sje@cup.hp.com>
4609
4610 PR tree-optimization/44716
4611 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4612 (HOT_TEXT_SECTION_NAME): Define.
4613
4614 2010-10-01 Nick Clifton <nickc@redhat.com>
4615
4616 * common.opt: Add -fcombine-stack-adjustments.
4617 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
4618 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
4619 flag_combine_stack_adjustments.
4620 * doc/invoke.texi: Document the new option.
4621
4622 2010-10-01 Richard Guenther <rguenther@suse.de>
4623
4624 PR tree-optimization/45854
4625 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
4626
4627 2010-10-01 Anthony Green <green@moxielogic.com>
4628
4629 * config.gcc: Fix moxie-*-rtems* configuration.
4630
4631 2010-10-01 Richard Guenther <rguenther@suse.de>
4632
4633 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
4634 (gen_decl_die): Likewise.
4635
4636 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4637
4638 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
4639 to the function code for SPU MD builtins.
4640 (spu_expand_builtin): Update.
4641 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
4642
4643 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4644
4645 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
4646 sjlj_except_unwind_info.
4647
4648 2010-10-01 Tristan Gingold <gingold@adacore.com>
4649
4650 * configure.ac: Define the nop insn for avr*-*-*
4651 * configure: Regenerate.
4652
4653 2010-10-01 Alan Modra <amodra@gmail.com>
4654
4655 PR target/45807
4656 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
4657 extend toc_restore_insn.
4658
4659 2010-09-30 Richard Guenther <rguenther@suse.de>
4660
4661 PR tree-optimization/43959
4662 * function.c (gimplify_parameters): Use create_tmp_reg instead of
4663 create_tmp_var.
4664
4665 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
4666
4667 * config/sh/sh.c (sh_expand_prologue): Set
4668 current_function_static_stack_size.
4669
4670 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4671
4672 * configure.ac: Check for Solaris 8 ld with .hidden support.
4673 * configure: Regenerate.
4674
4675 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4676
4677 PR middle-end/45758
4678 * graphite.c (graphite_initialize): Call scev_reset.
4679
4680 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4681
4682 * sese.h (scev_analyzable_p): Return false for real or floating
4683 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
4684
4685 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4686
4687 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
4688 and ps.
4689 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
4690 domain.
4691 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
4692 Do not allocate ub_expr, it is passed in initialized.
4693
4694 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4695
4696 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
4697 (build_cloog_prog): Dump CLooG input file when
4698 flag_graphite_dump_cloog is set. This is disabled on trunk.
4699 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
4700
4701 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4702
4703 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
4704 verify_dominators for CDI_POST_DOMINATORS.
4705 * sese.h: Remove comment about CDI_POST_DOMINATORS.
4706 (recompute_all_dominators): Remove call to free_dominance_info
4707 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
4708 for CDI_POST_DOMINATORS.
4709
4710 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4711
4712 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
4713 over pbb_dim_iter_domain.
4714
4715 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4716
4717 * graphite-flattening.c: Fix comments.
4718
4719 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4720
4721 * Makefile.in (OBJS-common): Add graphite-flattening.o.
4722 (graphite-flattening.o): New rule.
4723 * common.opt (floop-flatten): New flag.
4724 * doc/invoke.texi (-floop-flatten): Documented.
4725 * graphite-flattening.c: New.
4726 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
4727 * graphite-poly.h (flatten_all_loops): Declared.
4728 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
4729 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
4730 is set, also set flag_graphite.
4731
4732 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4733
4734 * graphite-poly.c (cloog_checksum): New.
4735 * graphite-poly.h (cloog_checksum): Declared.
4736
4737 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4738
4739 * graphite-poly.c (pbb_number_of_iterations): Removed.
4740 (pbb_number_of_iterations_at_time): Correctly compute the number
4741 of iterations in the transformed loop.
4742 * graphite-poly.h (pbb_number_of_iterations): Removed.
4743
4744 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4745
4746 * graphite-poly.h (lst_update_scattering_seq): Removed.
4747 (lst_update_scattering): Correctly handle outermost loop dewey
4748 renumbering.
4749
4750 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4751
4752 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
4753 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
4754 * graphite-poly.h (lst_niter_for_loop): New.
4755
4756 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4757
4758 * graphite-poly.c (apply_poly_transforms): Do not abort when the
4759 transform read from disk is not legal. Call fatal_error instead.
4760
4761 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4762
4763 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
4764 (print_scop_header): Removed. Inlined in the only call place...
4765 (print_scop): ... here.
4766
4767 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4768
4769 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
4770
4771 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4772
4773 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
4774
4775 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4776
4777 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
4778 (dot_deps_stmt): Same.
4779 * graphite-poly.c (dot_lst): Same.
4780
4781 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4782
4783 * graphite-blocking.c (scop_do_strip_mine): Do not call
4784 graphite_legal_transform.
4785 (scop_do_block): Same.
4786
4787 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4788
4789 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
4790 description.
4791
4792 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4793
4794 * tree-scalar-evolution.c (instantiate_array_ref): New.
4795 (instantiate_scev_r): Also handle ARRAY_REFs.
4796
4797 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4798
4799 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4800 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
4801 RESULT_DECL, and FIELD_DECL. Return false for an
4802 SSA_NAME_IS_DEFAULT_DEF.
4803 (compute_scalar_evolution_in_loop): Do not further analyze the
4804 scalar evolution when no_evolution_in_loop_p returns true.
4805
4806 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4807
4808 * tree-chrec.h (evolution_function_is_affine_p): Do not check
4809 whether CHREC_LEFT is invariant. A function is affine when
4810 CHREC_RIGHT is invariant.
4811
4812 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4813
4814 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
4815 is_gimple_reg.
4816 (rewrite_degenerate_phi): Same.
4817 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
4818
4819 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4820
4821 * graphite-scop-detection.c (graphite_can_represent_scev,
4822 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
4823 graphite_can_represent_loop): Remove outermost_loop.
4824
4825 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4826
4827 PR middle-end/45229
4828 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
4829 handle GIMPLE_CALLs with no LHS.
4830
4831 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4832
4833 * graphite-poly.c (init_graphite_out_file): New.
4834 (init_graphite_in_file): New.
4835 (apply_poly_transforms): Updated to enable reading and writing of
4836 multiple scop files.
4837
4838 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
4839
4840 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
4841 redundant checks.
4842
4843 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4844
4845 * graphite-clast-to-gimple.c (precision_for_value): Adjust
4846 computation of precision by 1.
4847
4848 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4849
4850 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
4851 (openscop_read_polyhedron_matrix): New.
4852 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
4853 (openscop_read_N_int): Same.
4854 * graphite-poly.c (openscop_read_N_int): New.
4855 (openscop_read_one_int): New.
4856 (openscop_read_N_string): New.
4857 (openscop_read_one_string): New.
4858 (openscop_read_powerset_matrix): New.
4859 (graphite_read_transforms): Remove.
4860 (graphite_read_scatt): New.
4861 (graphite_read_scop_file): New.
4862 (apply_poly_transforms): Updated to call graphite_read_scop_file.
4863
4864 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4865
4866 * graphite-poly.c: Change include order.
4867
4868 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4869
4870 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
4871 (cloog_matrix_nrows): New.
4872
4873 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4874
4875 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
4876 from matrix lines.
4877 * graphite-poly.c (openscop_print_scattering_function_1): Same.
4878 (print_scattering_function_1): Same.
4879 (openscop_print_pbb_domain): Same.
4880 (openscop_print_scop_context): Same.
4881 (print_scop_context): Same.
4882
4883 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4884
4885 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
4886 (openscop_print_pdr_polyhedron): Print pph.
4887
4888 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4889
4890 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
4891 priority signed types.
4892
4893 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4894
4895 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
4896 the call to lang_hooks.types.type_for_size. Call
4897 build_nonstandard_integer_type.
4898
4899 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4900
4901 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
4902 (openscop_print_polyhedron_matrix): New.
4903 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
4904 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
4905 (openscop_print_pdr_powerset): New.
4906 (openscop_print_powerset_matrix): New.
4907 (openscop_print_scattering_function_1): New.
4908 (print_scattering_function): Add support for scattering names and
4909 OpenScop format.
4910 (graphite_write_transforms): Remove.
4911 (print_pdr_access_layout): Updated to support OpenScop format.
4912 (print_pdr): Same.
4913 (openscop_print_pbb_domain): New.
4914 (print_pbb_body): Added a parameter to allow indicating that pbb_body
4915 is not provided.
4916 (print_pbb): Updated to call the new print_pbb_body.
4917 (openscop_print_scop_context): New.
4918 (print_scop_header): New.
4919 (print_scop): Updated to call print_scop_header.
4920 * graphite-poly.h: Document OpenScop format.
4921
4922 2010-09-30 Anatoly Sokolov <aesok@post.ru>
4923
4924 * config/cris/m32c.c (cris_memory_move_cost): New.
4925 (cris_register_move_cost): Make static. Change arguments type from
4926 enum reg_class to reg_class_t.
4927 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4928 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4929 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
4930
4931 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4932
4933 PR target/45843
4934 * config/i386/i386.c (ix86_gimplify_va_arg): Use
4935 INTVAL (XEXP (slot, 1)) as prev_size.
4936
4937 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4938
4939 PR target/45837
4940 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
4941 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
4942 defined.
4943 * config/rs6000/option-defaults.h (toplevel): Change #if
4944 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
4945 global option changes.
4946
4947 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4948
4949 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
4950
4951 PR tree-optimization/31261
4952 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
4953 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
4954
4955 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4956
4957 PR bootstrap/45796
4958 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
4959 special-casing for generators and turn into ...
4960 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
4961 rule, for better error messages in case of toplevel dependency errors.
4962 (genprog): Add hooks, rename to ...
4963 (genprogerr): ... this, and let genprog also contain check,
4964 checksum, condmd.
4965 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
4966 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
4967 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
4968
4969 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
4970 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4971
4972 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
4973 for GMP, MPFR and MPC.
4974
4975 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4976
4977 * config/sparc/sparc.opt (mimpure-text): Move ...
4978 * config/sol2.opt: ... here. Correct description.
4979 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
4980 * doc/invoke.texi (Option Summary, SPARC Options): Move
4981 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
4982 (Option Summary, Solaris 2 Options): ... here.
4983 (Submodel Options, Solaris 2 Options): New menu entry.
4984 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
4985 (Solaris 2 Options): ... here.
4986
4987 2010-09-30 Michael Eager <eager@eagercon.com>
4988
4989 * extend.texi (interrupt_handler): Add MicroBlaze to list.
4990 (save_volatiles): Describe option for MicroBlaze.
4991 * invoke.texi: Add MicroBlaze Options.
4992 * contrib.texi: Add acknowledgment.
4993 * md.texi: Add MicroBlaze d and z constraints.
4994 * install.texi: Add microblaze-*-elf.
4995 * configure.ac: Add microblaze-*-* to target list.
4996 * configure: Regenerate.
4997 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
4998 * config/microblaze/microblaze-protos.h: New.
4999 * config/microblaze/crti.s: New.
5000 * config/microblaze/predicates.md: New.
5001 * config/microblaze/linux.h: New.
5002 * config/microblaze/microblaze.md: New.
5003 * config/microblaze/constraints.md: New.
5004 * config/microblaze/crtn.s: New.
5005 * config/microblaze/microblaze.opt: New.
5006 * config/microblaze/microblaze-c.c: New.
5007 * config/microblaze/t-microblaze: New.
5008 * config/microblaze/microblaze.c: New.
5009 * config/microblaze/microblaze.h: New.
5010
5011 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5012
5013 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
5014 parse @optional/@required and set the flags as appropriate.
5015
5016 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
5017
5018 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
5019
5020 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5021
5022 * opt-functions.awk (static_var): Update comment.
5023 (var_ref): Return offsetof expression or -1, not variable address.
5024 * optc-gen.awk: Generate structure field initializers instead of
5025 static variables. Expect -1 for missing variables instead of null
5026 pointer. Add gcc_options parameters to generated functions.
5027 * opth-gen.awk: Generate structure fields for static variables.
5028 Add gcc_options parameters to generated functions.
5029 * common.opt (optimize, optimize_size): Add variables.
5030 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
5031 &global_options to cl_target_option_restore.
5032 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
5033 &global_options to cl_optimization_restore, cl_target_option_save
5034 and cl_target_option_restore.
5035 (ix86_set_current_function): Pass &global_options to
5036 cl_target_option_restore.
5037 * config/pdp11/pdp11.h (optimize): Remove.
5038 * config/rs6000/rs6000.h (optimize): Remove.
5039 * config/sh/sh.h (optimize): Remove.
5040 * config/xtensa/xtensa.h (optimize): Remove.
5041 * coretypes.h (struct gcc_options): Declare.
5042 * diagnostic.c (diagnostic_initialize): Initialize
5043 context->option_state.
5044 (diagnostic_report_diagnostic): Pass option_state to
5045 option_enabled hook.
5046 * diagnostic.h (diagnostic_context.option_enabled): Add void *
5047 parameter.
5048 (diagnostic_context.option_state): New field.
5049 * final.c (final_start_function, final, final_scan_insn): Rename
5050 optimize parameter to optimize_p.
5051 * flags.h (optimize, optimize_size): Remove.
5052 * function.c (invoke_set_current_function_hook): Pass
5053 &global_options to cl_optimization_restore.
5054 * gcc.c (driver_handle_option): Take gcc_options parameter.
5055 Assert that it is &global_options.
5056 (process_command): Pass &global_options to read_cmdline_option.
5057 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
5058 option_enabled.
5059 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
5060 &global_options to set_option.
5061 * opts-common.c (handle_option, handle_generated_option,
5062 read_cmdline_option, set_option): Take explicit gcc_options
5063 parameters. Use option_flag_var.
5064 (option_flag_var): New.
5065 * opts.c (common_handle_option, lang_handle_option,
5066 target_handle_option): Take gcc_options parameter. Assert that it
5067 is &global_options.
5068 (read_cmdline_options): Pass &global_options to read_cmdline_option.
5069 (print_filtered_help): Use option_flag_var. Pass &global_options
5070 to option_enabled.
5071 (common_handle_option): Use option_flag_var.
5072 (option_enabled): Take opts parameter. Use option_flag_var.
5073 (get_option_state): Take gcc_options parameter. Use
5074 option_flag_var. Pass gcc_options parameter to option_enabled.
5075 (enable_warning_as_error): Pass &global_options to
5076 handle_generated_option.
5077 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5078 (cl_option_handler_func.handler): Take gcc_options parameter.
5079 (option_enabled, get_option_state, set_option, handle_option,
5080 handle_generated_option, read_cmdline_option): Take gcc_options
5081 parameters.
5082 * toplev.c (optimize, optimize_size): Remove.
5083 (print_switch_values): Pass &global_options to option_enabled.
5084 (option_affects_pch_p): Use option_flag_var. Pass &global_options
5085 to get_option_state.
5086 (general_init): Initialize global_dc->option_state.
5087 * tree.c (build_optimization_node): Pass &global_options to
5088 cl_optimization_save.
5089 (build_target_option_node): Pass &global_options to
5090 cl_target_option_save.
5091
5092 2010-09-30 Martin Jambor <mjambor@suse.cz>
5093
5094 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5095 zero sized bit-fields.
5096
5097 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5098
5099 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5100 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5101 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5102 (c_parser_objc_class_declaration): Same change.
5103 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5104 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5105 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5106 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5107 and RID_AT_PUBLIC instead of RID_PUBLIC.
5108 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5109 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5110
5111 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
5112
5113 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
5114 Add links to current providers of packages for Solaris and IRIX.
5115
5116 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5117
5118 Merge from 'apple/trunk' branch on FSF servers.
5119 * c-parser.c: Applied change originally in c-parse.in.
5120
5121 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5122
5123 Radar 4281748
5124 * c-decl.c (start_decl): Check for redeclaration of class name.
5125 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
5126
5127 2010-09-29 Steve Ellcey <sje@cup.hp.com>
5128
5129 * config/ia64/ia64.c (ia64_builtin_decl): New.
5130 (TARGET_BUILTIN_DECL): Define.
5131 (ia64_builtins): New.
5132 (ia64_init_builtins): Save decls in ia64_builtins.
5133
5134 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
5135
5136 PR target/40457
5137 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
5138 (move2add_use_add3_insn): Likewise.
5139 (reload_cse_move2add): Likewise.
5140 * rtlanal.c (get_full_rtx_cost): New function.
5141 * rtl.h (struct full_rtx_costs): New.
5142 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
5143 costs_add_n_insns): New inline functions.
5144 (get_full_rtx_cost): Declare.
5145
5146 PR c/45054
5147 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
5148 invariants. Check for reg_equiv_invariant.
5149 (reload): Assert that spilled_pseudos is empty when returning.
5150
5151 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
5152
5153 * config/i386/mingw32.h (TARGET_64BIT): replaced by
5154 TARGET_64BIT_DEFAULT in #if check.
5155
5156 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
5157
5158 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
5159
5160 2010-09-29 Mike Stump <mikestump@comcast.net>
5161
5162 * config/darwin.h (flag_mkernel): Remove.
5163 (flag_apple_kext): Likewise.
5164
5165 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5166 Jack Howarth <howarth@bromo.med.uc.edu>
5167
5168 * config/darwin.opt (undefined): Add.
5169
5170 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
5171
5172 PR testsuite/45664
5173 * configure.ac: Add --enable-indirect-function option.
5174 * config.gcc: Add default_gnu_indirect_function.
5175 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
5176 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
5177 * varasm.c (do_assemble_alias): Adjust for macro name change.
5178 * configure: Rebuilt.
5179 * doc/install.texi: Document --enable-indirect-function.
5180
5181 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5182
5183 * doc/options.texi (Variable, Var, Init): Update documentation
5184 without reference to VarExists.
5185 (VarExists): Remove.
5186 * common.opt, config/i386/i386.opt, config/linux.opt,
5187 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
5188 Don't use VarExists.
5189
5190 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5191
5192 * optc-gen.awk: Generate global_options initializer instead of
5193 individual variables. Add x_ prefix to names of structure members.
5194 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
5195 names of structure members.
5196 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5197 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
5198 * doc/tm.texi: Regenerate.
5199 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5200 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5201 * c-parser.c (disable_extension_diagnostics,
5202 restore_extension_diagnostics): Update names of cpp_options members.
5203 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5204 * common.opt (fcompare-debug-second): Don't use Var.
5205 * config/alpha/alpha.h (target_flags): Remove.
5206 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5207 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5208 * config/bfin/bfin.h (target_flags): Remove.
5209 * config/cris/cris.h (target_flags): Remove.
5210 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
5211 cl_target_option members.
5212 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
5213 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
5214 ix86_can_inline_p): Update names of cl_target_option members.
5215 * config/i386/i386.h (ix86_isa_flags): Remove.
5216 * config/lm32/lm32.h (target_flags): Remove.
5217 * config/mcore/mcore.h (mcore_stack_increment): Remove.
5218 * config/mcore/mcore.md (addsi3): Remove extern declaration of
5219 flag_omit_frame_pointer.
5220 * config/mep/mep.h (target_flags): Remove.
5221 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5222 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5223 * config/mmix/mmix.h (target_flags): Remove.
5224 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
5225 flag_expensive_optimizations): Remove.
5226 * config/s390/s390.h (flag_pic): Remove.
5227 * config/score/score-conv.h (target_flags): Remove.
5228 * config/sh/sh.h (sh_fixed_range_str): Remove.
5229 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
5230 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5231 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5232 * diagnostic.c (diagnostic_initialize): Update names of
5233 diagnostic_context members.
5234 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
5235 warn_system_headers.
5236 (diagnostic_report_warnings_p): Update for new names.
5237 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5238 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
5239 HARD_FRAME_POINTER_IS_ARG_POINTER.
5240 * flags.h (flag_compare_debug): Declare.
5241 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5242 * opts.c (flag_compare_debug): Define.
5243 (common_handle_option): Update names of diagnostic_context
5244 members. Handle -fcompare-debug-second.
5245 (fast_math_flags_struct_set_p): Update names of cl_optimization
5246 members.
5247 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5248 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5249 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5250 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5251 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5252 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5253 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
5254 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5255 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5256
5257 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
5258
5259 * config/picochip/picochip.c (picochip_output_internal_label):
5260 This function can now be called for debug CFI labels, which can come
5261 in the middle of a vliw instruction. Postpone until end of vliw.
5262
5263 2010-09-29 Richard Guenther <rguenther@suse.de>
5264
5265 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
5266 (DECL_FILE_SCOPE_P): Use it.
5267 (TYPE_FILE_SCOPE_P): New macro.
5268
5269 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5270
5271 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
5272 a CPP_NAME which is a reserved word, clearly separate cases for
5273 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
5274
5275 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5276
5277 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
5278 token->value with the canonical spelling. Do exactly like C and
5279 C++ and leave it as it is.
5280
5281 2010-09-28 Richard Henderson <rth@redhat.com>
5282
5283 * config/alpha/alpha.c (alpha_builtins): New.
5284 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
5285 (alpha_builtin_function): New.
5286 (alpha_add_builtins, alpha_init_builtins): Use it.
5287
5288 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
5289
5290 * doc/standards.texi (Standards): Expanded the section on
5291 Objective-C and Objective-C++.
5292
5293 2010-09-28 DJ Delorie <dj@redhat.com>
5294
5295 PR target/45800
5296 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
5297 volatile MEMs.
5298
5299 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5300
5301 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
5302 attributes on methods.
5303 (c_parser_objc_method_definition): Handle attributes.
5304 (c_parser_objc_methodproto): Likewise.
5305 (c_parser_objc_maybe_method_attributes): New.
5306 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
5307 missing definition, similar to that in ObjC++.
5308
5309 2010-09-28 Richard Henderson <rth@redhat.com>
5310
5311 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
5312 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5313 (CONFIG_SJLJ_EXCEPTIONS): Remove.
5314 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
5315 (STACK_CHECK_PROTECT): Likewise.
5316 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
5317 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
5318 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
5319 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
5320 (dwarf2out_assembly_start): Likewise.
5321 * except.c (init_eh): Use targetm.except_unwind_info.
5322 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
5323 (output_one_function_exception_table): Likewise.
5324 * final.c: Unconditionally include dwarf2out.h.
5325 (final_start_function): Unconditionally call dwarf2out routines.
5326 (final_end_function, final_scan_insn): Likewise.
5327 * function.c (expand_function_end): Use targetm.except_unwind_info.
5328 * opts.c (decode_options): Use targetm.except_unwind_info.
5329 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
5330 * target.def (debug_unwind_info, except_unwind_info): New.
5331 * target.h (enum unwind_info_type): New.
5332 * targhooks.c (default_debug_unwind_info): New.
5333 (default_except_unwind_info): New.
5334 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
5335 * targhooks.h: Declare them.
5336 * tree-tailcall.c: Include "target.h"
5337 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
5338 * Makefile.in (tree-tailcall.o): Update.
5339 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
5340 (lhd_gcc_personality): Likewise.
5341
5342 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
5343 (TARGET_EXCEPT_UNWIND_INFO): New.
5344 (DWARF2_UNWIND_INFO): Update.
5345 (TARGET_DEBUG_UNWIND_INFO): New.
5346 * doc/tm.texi: Rebuild.
5347
5348 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
5349 targetm.except_unwind_info.
5350
5351 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
5352 (arm_except_unwind_info): New.
5353 (arm_compute_func_type): Use it.
5354 (arm_expand_prologue, thumb_pushpop): Likewise.
5355 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
5356 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
5357 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
5358 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
5359 (DWARF2_UNWIND_INFO): Remove.
5360 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5361 (ARM_EABI_UNWIND_TABLES): Remove.
5362
5363 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
5364 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
5365 (ia64_except_unwind_info): New.
5366 (ia64_output_function_prologue): Use it.
5367 (ia64_add_bundle_selector_before): Likewise.
5368 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
5369 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
5370 (TARGET_UNWIND_INFO): Remove.
5371
5372 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
5373
5374 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5375
5376 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
5377 (c_parser_objc_protocol_definition): Likewise.
5378 (c_parser_external_declaration): Provide dummy attribute arguments.
5379 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
5380 (c_parser_objc_class_definition): Handle attributes.
5381 (c_parser_objc_protocol_definition): Likewise.
5382
5383 2010-09-28 Tobias Burnus <burnus@net-b.de>
5384
5385 PR fortran/40569
5386 PR fortran/40568
5387 * toplev.h (save_decoded_options, save_decoded_options_count):
5388 New global variables.
5389 * toplev.c (save_decoded_options, save_decoded_options_count):
5390 Export variables.
5391
5392 2010-09-28 Ian Lance Taylor <iant@google.com>
5393
5394 * config/i386/i386.c (ix86_supports_split_stack): Test
5395 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
5396
5397 2010-09-28 Ian Lance Taylor <iant@google.com>
5398
5399 PR target/45815
5400 * opts.c (decode_options): Don't test whether the target supports
5401 split stack if flag_split_stack == 0.
5402
5403 2010-09-28 Jan Hubicka <jh@suse.cz>
5404
5405 * builtin-attrs.def (ATTR_LEAF): New attribute.
5406 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
5407 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
5408 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
5409 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
5410 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
5411 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
5412 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
5413 * sync-builtins.def: Annotate all builtins by leaf.
5414 * omp-builtins.def: Annotate all builtins by leaf.
5415 * builtins.def: Annotate relevant builtins with leaf attribute.
5416 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5417 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
5418 leaf.
5419
5420 2010-09-28 Jan Hubicka <jh@suse.cz>
5421
5422 * tree-ssa-ccp.c (fold_ctor_reference): New function.
5423 (fold_const_aggregate_ref): Use it.
5424 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
5425 into external static.
5426
5427 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5428
5429 PR target/44452
5430 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
5431 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
5432 (ix86_solaris_return_in_memory): Remove.
5433 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
5434 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5435 (TARGET_SUBTARGET_DEFAULT): Redefine.
5436 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
5437 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5438 (TARGET_SUBTARGET_DEFAULT): Redefine.
5439 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
5440 -mvect8-ret-in-mem.
5441 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
5442
5443 2010-09-29 Alan Modra <amodra@gmail.com>
5444
5445 PR target/45807
5446 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
5447 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
5448 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
5449 Delete.
5450 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
5451 (rs6000_emit_prologue): Don't just create frame save info for r2,
5452 actually save r2.
5453
5454 2010-09-28 Richard Henderson <rth@redhat.com>
5455
5456 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
5457 when 8 bytes are requested.
5458
5459 2010-09-28 Tristan Gingold <gingold@adacore.com>
5460
5461 * config/avr/avr.c (expand_prologue): Set
5462 current_function_static_stack_size.
5463
5464 2010-09-28 Tristan Gingold <gingold@adacore.com>
5465
5466 * config/alpha/alpha.md: Change the initial condition of the
5467 probing loop.
5468
5469 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
5470
5471 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
5472 Split from *avx_<maxmin:code><mode>3.
5473 (*avx_<smaxmin:code><mode>3): Ditto.
5474 * config/i386/i386.md (maxmin): Remove code iterator.
5475
5476 2010-09-27 Ian Lance Taylor <iant@google.com>
5477
5478 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
5479 requires assembler support for CFI directives.
5480
5481 2010-09-27 Richard Henderson <rth@redhat.com>
5482
5483 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
5484
5485 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5486
5487 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
5488 that AFTER is not in the range FROM..TO, inclusive.
5489
5490 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5491 Bernd Schmidt <bernds@codesourcery.com>
5492
5493 PR rtl-optimization/45792
5494 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
5495 If not all insns are to be merged, for each edge, stash the
5496 next candidate after the to-be-merged insns before doing the
5497 merge, and use them for the retry at the new insertion point.
5498 Handle CC0 targets when retrying.
5499
5500 2010-09-27 Ian Lance Taylor <iant@google.com>
5501
5502 * common.opt (fsplit-stack): New option.
5503 * opts.c (decode_options): Set flag_split_stack to final value.
5504 * target.def (supports_split_stack): New hook.
5505 * gcc.c (STACK_SPLIT_SPEC): Define.
5506 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
5507 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
5508 (Code Gen Options): Document -fsplit-stack.
5509 * doc/extend.texi (Function Attributes): Mention no_split_stack.
5510 (Function Attributes): Document no_split_stack.
5511 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
5512 TARGET_SUPPORTS_SPLIT_STACK.
5513 * doc/tm.texi: Rebuild.
5514 * function.c (thread_prologue_and_epilogue_insns): If
5515 flag_split_stack, add split stack prologue.
5516 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
5517 * varasm.c (saw_no_split_stack): New static variable.
5518 (assemble_start_function): Set saw_no_split_stack if the function
5519 has the no_split_stack attribute.
5520 (file_end_indicate_split_stack): New function.
5521 * output.h (file_end_indicate_split_stack): Declare.
5522 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
5523 and function.
5524 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
5525 routines.
5526 * config/i386/i386.c (ix86_option_override_internal): Don't set
5527 expand_builtin_va_start to NULL if -fsplit-stack.
5528 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
5529 -fsplit-stack.
5530 (ix86_va_start): If -fsplit-stack, get overflow pointer from
5531 scratch register set by prologue.
5532 (ix86_code_end): If -fsplit-stack, call
5533 file_end_indicate_split_stack.
5534 (ix86_supports_split_stack): New static function.
5535 (SPLIT_STACK_AVAILABLE): Define.
5536 (split_stack_prologue_scratch_regno): New static function.
5537 (split_stack_fn): New static variable.
5538 (ix86_expand_split_stack_prologue): New function.
5539 (ix86_live_on_entry): New static function.
5540 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
5541 (output_pic_addr_const): Likewise.
5542 (i386_asm_output_addr_const_extra): Likewise.
5543 (ix86_expand_call): Change return type to rtx. Return the new
5544 call instruction.
5545 (TARGET_SUPPORTS_SPLIT_STACK): Define.
5546 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5547 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
5548 (split_stack_prologue, split_stack_return): New insns.
5549 (split_stack_space_check): New insn.
5550 * config/i386/i386.h (struct machine_function): Add
5551 split_stack_varargs_pointer field.
5552 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
5553 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5554 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5555 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5556 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
5557 Declare.
5558 (ix86_expand_call): Update declaration.
5559
5560 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5561
5562 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
5563 code. Added byref, which was missing in the list of codes.
5564 Explain that enumeration values are encoded as the integer type
5565 that the compiler uses to store them. Explain and make examples
5566 of how 'const' interacts with pointers, and the complication of
5567 the encoding of 'const char *'.
5568 (Legacy type encoding): New subsection, explaining that GCC emits
5569 incorrect type encodings for the NeXT runtime for compatibility
5570 reasons.
5571 (@@encode): New subsection, explaining @encode and particularly
5572 that protocol qualifiers are not recognized inside an @encode()
5573 expression.
5574 (Method signatures): New subsection, explaining how method
5575 signatures are encoded.
5576
5577 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5578
5579 Merge from 'apple/trunk' branch on FSF servers. Removed small
5580 change in build_conditional_expr that had been added when fixing
5581 PR objc/27377 and which did the same check in a less complete way.
5582
5583 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5584
5585 Radar 4229905
5586 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
5587 looking for objective-c common pointer types.
5588
5589 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5590
5591 Radar 4154928
5592 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
5593 use their ObjC common type.
5594
5595 2010-09-27 Richard Guenther <rguenther@suse.de>
5596
5597 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
5598
5599 2010-09-27 Jie Zhang <jie@codesourcery.com>
5600
5601 * print-tree.c (print_node): Print in-constant-pool.
5602
5603 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
5604
5605 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
5606 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
5607 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
5608 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
5609
5610 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5611
5612 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
5613 from pro_epilogue_adjust_stack_<mode>_{1,2}.
5614 (pro_epilogue_adjust_stack_<mode>_add): Rename from
5615 pro_epilogue_adjust_stack_<mode>_3.
5616 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
5617 renamed pro_epilogue_adjust_stack_{si,di}_add.
5618 (ix86_expand_prologue): Use indirect functions. Update for renamed
5619 pro_epilogue_adjust_stack_{si,di}_sub.
5620
5621 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5622
5623 * config/i386/i386.md (movmsk_df): New insn.
5624 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
5625 sequence for TARGET_SSE_MATH.
5626
5627 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
5628
5629 * config/mips/mips.c (mips_builtin_decls): Declare.
5630 (mips_init_builtins): Store function declarations in
5631 mips_builtin_decls.
5632 (mips_builtin_decl): New function.
5633 (TARGET_BUILTIN_DECL): Define.
5634
5635 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
5636 Richard Henderson <rth@redhat.com>
5637
5638 * config/i386/cygwin.asm: Include auto-host.h.
5639 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
5640 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
5641 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
5642 alignment code from the 64-bit path. Use gas local labels.
5643 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
5644 from _di_2. Remove the useless constant integer argument.
5645 (pro_epilogue_adjust_stack_<mode>_3): New.
5646 (allocate_stack_worker_probe_<mode>): Macroize from
5647 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
5648 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
5649 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
5650 (__chkstk_ms): New function.
5651 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
5652 * gcc/config/i386/t-interix: Likewise.
5653 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
5654 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5655 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
5656 * configure, config.in: Rebuild.
5657
5658 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
5659
5660 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
5661 statements because of the return slot optimization.
5662
5663 2010-09-25 Anatoly Sokolov <aesok@post.ru>
5664
5665 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
5666 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
5667 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5668 (class_likely_spilled_p): Rename to...
5669 (avr_class_likely_spilled_p): ...this. Make static. Change argument
5670 type to reg_class_t.
5671
5672 2010-09-24 Jan Hubicka <jh@suse.cz>
5673
5674 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
5675 (lto_symtab_resolve_symbols): Set it.
5676 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
5677 store resolution field in cgraph/varpool.
5678 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
5679 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
5680 (cgraph_dump_node): Drop used_from_object_file.
5681 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
5682 (cgraph_function_body_availability): Use decl_replaceable_p.
5683 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
5684 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
5685 cgraph_used_from_object_file_p.
5686 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
5687 cgraph_used_from_object_file_p.
5688 (resolution_used_from_other_file_p): New functoin.
5689 (cgraph_used_from_object_file_p): New predicate.
5690 * cgraph.h: Include plugin-api.h
5691 (struct cgraph_local_info): Remove used_from_object_file.
5692 (struct cgraph_node): Add resolution field.
5693 (struct varpool_node): Likewise; remove used_from_object_file;
5694 reove const_value_known.
5695 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
5696 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
5697 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5698 varpool_used_from_object_file_p): Declare.
5699 (varpool_get_node, varpool_extra_name_alias): Update prototype.
5700 * tree.h (DECL_REPLACEABLE_P): Remove.
5701 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
5702 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
5703 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5704 input_overwrite_node, input_node, input_varpool_node): Stream
5705 resolution.
5706 * expr.c (expand_expr_real_1): Use const_value_known_p
5707 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
5708 const_value_known.
5709 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
5710 (function_and_variable_visibility): Set resolution for local vars
5711 and functions; use varpool_used_from_object_file_p.
5712 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
5713 static functions.
5714 (default_binds_local_p_1): Use resolutoin info.
5715 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
5716 * varpool.c (varpool_get_node): Constify.
5717 (const_value_known_p): Do not use vnode->const_value_known;
5718 use decl_replaceable_p.
5719 (varpool_finalize_decl): Do not set const_value_known.
5720 (cgraph_variable_initializer_availability): Use decl_replaceable_p
5721 (varpool_extra_name_alias): Return new node.
5722 (varpool_used_from_object_file_p): New function.
5723
5724 2010-09-24 Richard Henderson <rth@redhat.com>
5725
5726 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
5727 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
5728 (do_spill): Use REG_CFA_OFFSET.
5729 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
5730 as appropriate.
5731 (ia64_expand_epilogue): Likewise.
5732 (process_set): Split into ...
5733 (process_cfa_adjust_cfa): this,
5734 (process_cfa_register): this,
5735 (process_cfa_offset): and this new function.
5736 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
5737 instead of REG_FRAME_RELATED_EXPR.
5738
5739 2010-09-24 Olivier Hainque <hainque@adacore.com>
5740
5741 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
5742
5743 2010-09-24 Jan Hubicka <jh@suse.cz>
5744
5745 * doc/extend.texi: (attribute leaf): Document.
5746 * tree.c (local_define_builtin): Handle ECF_LEAF.
5747 (build_common_builtin_nodes): Set ECF_LEAF where needed.
5748 * tree.h (ECF_LEAF): New.
5749 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
5750 overwrittable and unavailable functions.
5751 (ipa_init): Put all_module_statics into optimization_summary_obstack.
5752 (copy_global_bitmap): Do not copy all_module_statics.
5753 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
5754 (propagate): Handle overwritable and unavailable leaf functions;
5755 initialize global info for overwritable and unavailable leaf functions;
5756 do not free all module statics.
5757 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
5758 local statics.
5759 * calls.c (flags_from_decl_or_type): Handle leaf.
5760 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
5761 abnormal gotos.
5762
5763 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
5764
5765 * gengtype.c: Reindented.
5766 * gengtype.h: Reindented.
5767 * gengtype-parse.c: Reindented.
5768
5769 2010-09-24 Jan Hubicka <jh@suse.cz>
5770
5771 PR tree-optimization/45738
5772 PR tree-optimization/45741
5773 * expr.c (string_constant): Allow CONST_DECL too;
5774 check that DECL_INITIAL is set.
5775 * varpool.c (const_value_known_p): Only look into VAR_DECL
5776 and CONST_DECL.
5777
5778 2010-09-24 Joseph Myers <joseph@codesourcery.com>
5779
5780 * common.opt (undef): New.
5781
5782 2010-09-24 Jakub Jelinek <jakub@redhat.com>
5783
5784 PR middle-end/45234
5785 * rtl.h (enum global_rtl_index): Add
5786 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
5787 (LAST_VIRTUAL_POINTER_REGISTER): Define.
5788 (virtual_preferred_stack_boundary_rtx,
5789 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
5790 (LAST_VIRTUAL_REGISTER): Increase by one.
5791 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
5792 instead of LAST_VIRTUAL_REGISTER.
5793 * function.c (instantiate_new_reg): Handle
5794 virtual_preferred_stack_boundary_rtx.
5795 * emit-rtl.c (init_virtual_regs): Handle
5796 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5797 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
5798 * explow.c (round_push): If crtl->preferred_stack_boundary
5799 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
5800 virtual_preferred_stack_boundary_rtx alignment instead of
5801 crtl->preferred_stack_boundary alignment.
5802 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
5803 macros. Never decrease crtl->preferred_stack_boundary,
5804 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
5805 instead of PREFERRED_STACK_BOUNDARY. Don't modify
5806 stack_pointer_delta in dynamic allocation, even when size
5807 is constant.
5808 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
5809 macro.
5810 * print-rtl.c (print_rtx): Handle
5811 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5812 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
5813 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
5814 * config/frv/frv.c (frv_emit_movsi): Likewise.
5815 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
5816 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
5817 Likewise.
5818
5819 Revert:
5820 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5821
5822 PR middle-end/45234
5823 * calls.c (expand_call): Make sure that all variable sized
5824 adjustments are multiple of preferred stack boundary after
5825 stack alignment.
5826
5827 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
5828 Dominique Dhumieres <dominiq@lps.ens.fr>
5829
5830 PR bootstrap/45751
5831 * gcc/config/darwin-driver.c (darwin_default_min_version):
5832 Adjust size passed to memcpy in two places.
5833
5834 2010-09-24 Richard Guenther <rguenther@suse.de>
5835
5836 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
5837 Make sure to not call set_type_context with error_mark_node.
5838 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
5839
5840 2010-09-24 Richard Guenther <rguenther@suse.de>
5841
5842 * Makefile.in (OBJS-onestep): Remove.
5843 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
5844 (libbackend.a): Remove onestep support.
5845 (libbackend.o): Remove.
5846 * configure.ac (--enable-intermodule): Remove.
5847 * configure: Regenerate.
5848
5849 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
5850
5851 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
5852 reaching the end of a block if it occurs at a DEBUG_INSN.
5853
5854 2010-09-09 Tristan Gingold <gingold@adacore.com>
5855
5856 PR target/44242
5857 * config/vms/vms-crt0-64.c: Removed.
5858 * config/vms/vms-crt0.c: Removed.
5859 * config/vms/vms-psxcrt0-64.c: Removed.
5860 * config/vms/vms-psxcrt0.c: Removed.
5861 * config/vms/vms-ucrt0.c: New file.
5862 * config/vms/t-vms64: Removed.
5863 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
5864 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
5865 * config.gcc (alpha-dec-vms): Use t-vms.
5866
5867 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5868
5869 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
5870 underfull hbox in DVI output.
5871 (-fobjc-class-cxx-cdtors): Same change.
5872 (-fobjc-exceptions): Tidied up documentation. Explain what the
5873 option does, but moved the (lenghty) description of the exception
5874 syntax into objc.texi.
5875 (-fobjc-gc): Explain that the option is not useful with the GNU
5876 runtime.
5877 (-fzero-link): Explain that the GNU runtime always works in
5878 "zero-link" mode.
5879 * doc/objc.texi: All sections: simplified @node declarations
5880 removing specification of next, previous, up node.
5881 (Objective-C): Updated introduction.
5882 (Garbage Collection): Updated. The bohem-gc library is now
5883 included in gcc itself. Mention that this section only applies to
5884 the GNU Objective-C runtime.
5885 (compatibility_alias): Small tidy up.
5886 (Exceptions): New section mostly containing text previously in the
5887 description of the -fobjc-exception command-line option.
5888 (Synchronization): Same.
5889
5890 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
5891
5892 * config/i386/i386.md (ix86_code_end): Move the initialization of
5893 xops array near the consumer. Use AX_REG and SP_REG instead of
5894 numerical constants.
5895
5896 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5897
5898 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
5899 method [methodname]' for an Objective-C method instead of the less
5900 satisfactory 'too many arguments to function' (with no method name).
5901
5902 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
5903
5904 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
5905 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
5906 (execute_update_addresses_taken): Remove parameter. Execute the
5907 optimization unconditionally.
5908 * passes.c (execute_function_todo): Call execute_update_addresses_taken
5909 unconditionally if TODO_rebuild_alias is set, else only when optimizing
5910 if TODO_update_address_taken is set.
5911
5912 2010-09-23 Anatoly Sokolov <aesok@post.ru>
5913
5914 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5915 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
5916 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5917 (arm_output_addr_const_extra): Make static.
5918
5919 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
5920
5921 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
5922 define as unspec_volatile.
5923 ("nops"): Define as unspec_volatile. Use fputs to write to
5924 asm_out_file directly. Output NOPs on separate lines using while loop.
5925 * config/i386/i386.c (ix86_code_end): Use fputs to write to
5926 asm_out_file directly. Output NOPs on separate lines using while loop.
5927
5928 2010-09-23 Richard Guenther <rguenther@suse.de>
5929
5930 PR tree-optimization/45565
5931 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5932 Make sure to adjust the fndecl before replacing the stmt.
5933
5934 2010-09-23 Richard Guenther <rguenther@suse.de>
5935
5936 PR middle-end/45750
5937 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
5938 gimplifying MEM_REF.
5939
5940 2010-09-23 Alan Modra <amodra@gmail.com>
5941
5942 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
5943 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
5944
5945 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
5946
5947 PR rtl-optimization/44374
5948 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
5949 * df-core.c (df_set_bb_dirty): Set it.
5950 * ifcvt.c (find_memory): Remove function.
5951 (dead_or_predicable): Use can_move_insns_across.
5952 * df.h (can_move_insns_across): Declare function.
5953 * cfgcleanup.c (block_was_dirty): New static variable.
5954 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
5955 than df_get_bb_dirty.
5956 (try_head_merge_bb): New static function.
5957 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
5958 is set.
5959 * df-problems.c: Include "target.h"
5960 (df_simulate_find_uses): New static function.
5961 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
5962 (find_memory, find_memory_store): New static functions.
5963 (can_move_insns_across): New function.
5964 * Makefile.in (df-problems.o): Update dependencies.
5965
5966 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5967
5968 PR java/44095
5969 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
5970 is specified and the suffix of the file isn't ".c".
5971 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5972
5973 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5974
5975 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
5976 * doc/cppopts.texi: Fix markup of index entry.
5977 * doc/extend.texi (Constructing Calls): Fix markup of
5978 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
5979 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
5980 (Vague Linkage, C++ Attributes): Fix markup of index entries and
5981 keywords.
5982 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
5983 avoid long lines.
5984 (C Dialect Options, C++ Dialect Options, Warning Options)
5985 (Debugging Options, Spec Files, Darwin Options)
5986 (i386 and x86-64 Options, MIPS Options)
5987 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
5988 index entries, avoid abbreviations, allow URLs to wrap, avoid
5989 long lines, avoid overlong pages from long @itemx lists.
5990 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
5991 * doc/standards.texi (Standards): Likewise.
5992 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
5993
5994 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5995
5996 * opts-common.c (prune_options): Make static. Work with decoded
5997 options.
5998 (decode_cmdline_options_to_array): Call prune_options. Don't
5999 resize option array here.
6000 * opts.h (prune_options): Remove prototype.
6001 * gcc.c (process_command): Take decoded options; don't call
6002 decode_cmdline_options_to_array here. Use decoded options for argv[0].
6003 (main): Call decode_cmdline_options_to_array here instead of
6004 prune_options. Update call to process_command.
6005 * config/darwin-driver.c: Include opts.h.
6006 (darwin_default_min_version): Work with decoded options. Don't
6007 handle -b or -V here.
6008 * config/darwin.h (darwin_default_min_version): Update prototype.
6009 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
6010 darwin_default_min_version.
6011 * config/i386/cygwin.h (mingw_scan): Update prototype.
6012 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
6013 * config/i386/cygwin1.c: Include opts.h.
6014 (mingw_scan): Work with decoded options.
6015 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
6016 * config/t-darwin (darwin-driver.o): Update dependencies.
6017
6018 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6019
6020 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
6021 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
6022 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
6023 -force-link, -force-link=, -language, -language=,
6024 -library-directory, -library-directory=, -no-canonical-prefixes,
6025 -no-standard-libraries, -no-warnings, -optimize, -output,
6026 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
6027 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
6028 -print-file-name=, -print-libgcc-file-name,
6029 -print-multi-directory, -print-multi-lib,
6030 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
6031 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
6032 -profile, -save-temps, -shared, -specs, -specs=, -static,
6033 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
6034 symbolic): New.
6035 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
6036 * gcc.c (A Short Introduction to Adding a Command-Line Option):
6037 Remove comment.
6038 (cc1_options): Correct specs for passing down --help,
6039 --target-help and --help=*. Add spec for passing down --version.
6040 (struct option_map, option_map, target_option_translations,
6041 translate_options): Remove.
6042 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
6043 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
6044 OPT_fhelp_ and OPT_ftarget_help.
6045 (process_command): Don't call translate_options. Call
6046 decode_cmdline_options_to_array before checking for
6047 -no-canonical-prefixes using decoded options.
6048 * opts-common.c (tm.h): Update comment on #include.
6049 (find_opt): Allow abbreviations of long options.
6050 (struct option_map, option_map): New.
6051 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
6052 and -mno handling.
6053 (target_option_translations): New.
6054 (decode_cmdline_options_to_array): Handle
6055 TARGET_OPTION_TRANSLATE_TABLE in driver.
6056 * opts.c (common_handle_option): Don't handle OPT_fhelp,
6057 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
6058
6059 2010-09-22 Richard Guenther <rguenther@suse.de>
6060
6061 * tree-inline.c (optimize_inline_calls): Schedule cleanups
6062 only if we inlined something. Block compaction and conditional
6063 folding are done by cfg cleanup. Schedule update-address-taken.
6064 (tree_function_versioning): Remove redundant call to number_blocks.
6065 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6066 folding is done by cfg cleanup.
6067 * passes.c (init_optimization_passes): Remove update-address-taken
6068 pass after IPA inlining.
6069
6070 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6071
6072 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6073 to update conditions. Fix reg_mode[] check.
6074
6075 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
6076
6077 * config/picochip/picochip.md (movhicc): Use expand to check whether
6078 movhicc is available and split it after reload.
6079
6080 2010-09-22 Richard Guenther <rguenther@suse.de>
6081
6082 * tree-ssanames.c (release_dead_ssa_names): Do not remove
6083 callee edges here.
6084 * passes.c (init_optimization_passes): Remove early CFG cleanup.
6085 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6086 (pass_cleanup_cfg): Likewise.
6087 (execute_fixup_cfg): Cleanup.
6088 * tree-pass.h (pass_cleanup_cfg): Remove.
6089
6090 2010-09-22 Martin Jambor <mjambor@suse.cz>
6091
6092 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6093 builtins if it is true.
6094 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6095 parameter.
6096
6097 2010-09-22 Martin Jambor <mjambor@suse.cz>
6098
6099 * tree-sra.c (struct access): New field grp_no_warning.
6100 (create_access_replacement): Set TREE_NO_WARNING according to
6101 grp_no_warning.
6102 (create_artificial_child_access): Use build_ref_for_model and set
6103 grp_no_warning if build_user_friendly_ref_for_offset fails.
6104 (propagate_subaccesses_across_link): Likewise.
6105
6106 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6107
6108 PR target/35664
6109 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6110 ('f'): Likewise.
6111
6112 2010-09-22 Tristan Gingold <gingold@adacore.com>
6113
6114 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
6115
6116 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
6117
6118 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
6119 * config/i386/i386.c (decide_alg): Update for rename.
6120
6121 2010-09-22 Jakub Jelinek <jakub@redhat.com>
6122
6123 PR rtl-optimization/45739
6124 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
6125 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
6126
6127 2010-09-21 Anatoly Sokolov <aesok@post.ru>
6128
6129 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
6130 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
6131 Remove.
6132 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
6133 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6134
6135 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6136
6137 PR objc/23710
6138 * c-parser.c (c_parser_objc_method_definition): Check the return
6139 value of objc_start_method_definition and if false is returned,
6140 parse the method definition but emit no code.
6141
6142 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6143
6144 PR objc/25965
6145 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
6146 call objc_get_interface_ivars ().
6147
6148 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
6149
6150 PR target/45694
6151 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
6152 static chain-register is used for 64-bit.
6153
6154 2010-09-21 Richard Guenther <rguenther@suse.de>
6155
6156 * dwarf2out.c (is_cu_die): New function.
6157 (add_pubtype): Use it.
6158 (gen_subprogram_die): Likewise.
6159 (gen_struct_or_union_type_die): Likewise.
6160 (dwarf2out_finish): Likewise.
6161 (comp_unit_die): Rename to ...
6162 (single_comp_unit_die): ... this.
6163 (comp_unit_die): New function lazily constructing and
6164 returning single_comp_unit_die.
6165 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
6166 base_type_die, subrange_type_die, modified_type_die,
6167 lower_bound_default, add_bound_info, add_prototyped_attribute,
6168 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
6169 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
6170 force_decl_die, gen_namespace_die, dwarf2out_decl,
6171 dwarf2out_start_source_file, dwarf2out_end_source_file,
6172 prune_unused_types, dwarf2out_finish): Use it.
6173 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
6174 the global list of translation-unit decls.
6175 (dwarf2out_init): Do not create single_comp_unit_die here.
6176 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
6177
6178 2010-09-21 Richard Guenther <rguenther@suse.de>
6179
6180 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
6181 for bool for C++.
6182
6183 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
6184
6185 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
6186 (qhs_extenddi_cstr): Likewise.
6187 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
6188 them for the source operand.
6189
6190 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
6191
6192 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
6193 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
6194 (ix86_split_ashr): Ditto.
6195 (ix86_split_lshr): Ditto.
6196
6197 2010-09-21 Richard Guenther <rguenther@suse.de>
6198
6199 PR tree-optimization/45580
6200 * tree-ssa-propagate.c (substitute_and_fold): Always replace
6201 regular uses.
6202 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
6203 virtuals fold the call into a regular indirect one.
6204
6205 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6206
6207 PR rtl-optimization/42775
6208 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
6209 scheduling is enabled.
6210
6211 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6212
6213 PR rtl-optimization/45728
6214 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
6215 gen_lowpart_common first and if that fails, force_reg first
6216 before calling gen_lowpart.
6217
6218 PR middle-end/45678
6219 * cfgexpand.c (expand_one_stack_var_at): Use
6220 crtl->max_used_stack_slot_alignment as max_align, instead
6221 of maximum of that and PREFERRED_STACK_BOUNDARY.
6222 Don't call update_stack_alignment.
6223
6224 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6225
6226 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
6227 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
6228 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
6229 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
6230 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
6231 (build_nonstandard_integer_type): Likewise.
6232 (build_range_type_1): New function, built from...
6233 (build_range_type): ...this. Call build_range_type_1.
6234 (build_nonshared_range_type): New function.
6235 (build_array_type_1): New function, built from...
6236 (build_array_type: ...this. Call build_array_type_1.
6237 (build_nonshared_array_type): New function.
6238 * tree.h (build_nonshared_range_type): Declare.
6239 (build_nonshared_array_type): Likewise.
6240
6241 2010-09-20 Anatoly Sokolov <aesok@post.ru>
6242
6243 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
6244 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6245 (arm_class_likely_spilled_p): New function.
6246
6247 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
6248
6249 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
6250 indirect functions.
6251 (ix86_split_ashl): Ditto.
6252 (ix86_split_ashr): Ditto.
6253 (ix86_split_lshr): Ditto.
6254 (ix86_adjust_counter): Ditto.
6255
6256 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
6257
6258 * c-family/c-common.h (constant_string_class): Documented with
6259 comment identical to the one already in c-common.c.
6260
6261 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6262
6263 * dwarf2out.c (any_cfis_emitted): New static variable.
6264 (add_fde_cfi): Set it.
6265 (dwarf2out_frame_debug): Clear it before processing,
6266 if it is set afterwards, flush any queued reg saves.
6267
6268 PR debug/45124
6269 * dwarf2out.c (add_accessibility_attribute): Assume
6270 DW_ACCESS_private as the default for dwarf_version > 2
6271 and DW_TAG_class_type parent.
6272 (gen_inheritance_die): Assume DW_ACCESS_public as the default
6273 for dwarf_version > 2 and parent other than DW_TAG_class_type.
6274
6275 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6276
6277 PR target/45726
6278 * arm.md (arm_movt): Only enable on machines with MOVT.
6279
6280 2010-09-20 Jie Zhang <jie@codesourcery.com>
6281
6282 * config/arm/arm.c (arm_address_offset_is_imm): New.
6283 (arm_early_store_addr_dep): New.
6284 (arm_early_load_addr_dep): New.
6285 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
6286 (arm_early_load_addr_dep): Declare.
6287 (arm_address_offset_is_imm): Declare.
6288 * config/arm/cortex-m4.md: New file.
6289 * config/arm/cortex-m4-fpu.md: New file.
6290 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
6291 (attr generic_sched): Exclude cortexm4.
6292 (attr generic_vfp): Exclude cortexm4.
6293
6294 2010-09-20 Richard Guenther <rguenther@suse.de>
6295
6296 PR middle-end/45704
6297 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
6298
6299 2010-09-20 Jan Hubicka <jh@suse.cz>
6300
6301 PR tree-optimize/45605
6302 * cgraph.h (const_value_known_p): Declare.
6303 (varpool_decide_const_value_known): Remove.
6304 * tree-ssa-ccp.c (get_base_constructor): Use it.
6305 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
6306 * expr.c (string_constant): Likewise.
6307 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
6308 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6309 function_and_variable_visibility): Likewise.
6310 * gimplify.c (gimplify_call_expr): Likewise.
6311 * gimple-fold.c (get_symbol_constant_value): Likewise.
6312 * varpool.c (varpool_decide_const_value_known): Replace by...
6313 (const_value_known_p): ... this one; handle other kinds of DECLs
6314 too and work for automatic vars.
6315 (varpool_finalize_decl): Use const_value_known_p.
6316
6317 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6318
6319 PR target/45726
6320 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
6321
6322 2010-09-20 Richard Guenther <rguenther@suse.de>
6323
6324 PR tree-optimization/45705
6325 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
6326
6327 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6328
6329 PR rtl-optimization/45695
6330 * combine.c (try_combine): When splitting a two set pattern,
6331 make sure the pattern which will be put into i2 doesn't use REGs
6332 or MEMs set by insns in between i2 and i3.
6333
6334 2010-09-19 Jan Hubicka <jh@suse.cz>
6335
6336 PR lto/44246
6337 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
6338 processing same node twice.
6339
6340 2010-09-19 Anatoly Sokolov <aesok@post.ru>
6341
6342 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
6343 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6344 (bfin_class_likely_spilled_p): New function
6345
6346 2010-09-19 Ira Rosen <irar@il.ibm.com>
6347
6348 PR tree-optimization/45714
6349 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
6350 created in vectorizable_call instead of the original statement in
6351 def stmt updates.
6352
6353 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
6354
6355 * config/i386/i386-protos.h (split_double_mode): New prototype.
6356 (split_di, split_ti): Remove prototypes.
6357 * config/i386/i386.c (split_double_mode): New function.
6358 (split_di, split_ti): Remove.
6359 (ix86_expand_branch): Use split_double_mode.
6360 (ix86_split_to_parts): Ditto.
6361 (ix86_split_ashl): Ditto.
6362 (ix86_split_ashr): Ditto.
6363 (ix86_split_lshr): Ditto.
6364 (ix86_force_to_memory): Ditto.
6365 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
6366
6367 2010-09-18 Jan Hubicka <jh@suse.cz>
6368
6369 PR tree-optimization/45453
6370 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
6371 virtual functions are reachable.
6372 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
6373 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6374 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
6375 when modifying function.
6376
6377 2010-09-18 Jan Hubicka <jh@suse.cz>
6378
6379 PR tree-optimization/45605
6380 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
6381 * gimple-fold.c (static_object_in_other_unit_p): New function.
6382 (canonicalize_constructor_val): Use it.
6383 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
6384 returning NULL.
6385 (gimple_fold_obj_type_ref_known_binfo): Use
6386 static_object_in_other_unit_p.
6387
6388 2010-09-18 Richard Guenther <rguenther@suse.de>
6389
6390 PR tree-optimization/45709
6391 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
6392 insertions until after all PHI nodes of the block are processed.
6393
6394 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
6395
6396 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
6397
6398 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
6399
6400 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
6401
6402 2010-09-18 Richard Guenther <rguenther@suse.de>
6403
6404 PR tree-optimization/45709
6405 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
6406
6407 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6408
6409 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
6410 (dot_deps_stmt): Same.
6411 * graphite-poly.c (dot_lst): Same.
6412 * graphite-scop-detection.c (dot_all_scops): Same.
6413 (dot_scop): Same.
6414
6415 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6416
6417 Revert:
6418 2009-12-16 Ben Elliston <bje@au.ibm.com>
6419
6420 * tree-data-ref.c (dot_rdg_1): Added back.
6421 (dot_rdg): Same. Added "#if 0" around system call.
6422
6423 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6424 Richard Henderson <rth@redhat.com>
6425
6426 * config/i386/i386.c (initial_ix86_tune_features): Add
6427 X86_TUNE_PAD_SHORT_FUNCTION.
6428 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
6429 (ix86_count_insn): New.
6430 (ix86_pad_short_function): Likewise.
6431 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
6432
6433 * config/i386/i386.h (ix86_tune_indices): Add
6434 X86_TUNE_PAD_SHORT_FUNCTION.
6435 (TARGET_PAD_SHORT_FUNCTION): New.
6436
6437 * config/i386/i386.md (UNSPEC_NOPS): New.
6438 (nops): Likewise.
6439
6440 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6441
6442 PR middle-end/45234
6443 * calls.c (expand_call): Make sure that all variable sized
6444 adjustments are multiple of preferred stack boundary after
6445 stack alignment.
6446
6447 2010-09-17 DJ Delorie <dj@redhat.com>
6448
6449 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
6450 passed an invalid value, print an error instead of ICEing.
6451 (valid_psw_flag): New.
6452 (rx_expand_builtin): Call it for setpsw/clrpsw.
6453 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
6454
6455 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
6456 (bitclr_in_memory): Likewise.
6457 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
6458
6459 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6460
6461 PR middle-end/45678
6462 * cfgexpand.c (update_stack_alignment): New.
6463 (get_decl_align_unit): Use it.
6464 (expand_one_stack_var_at): Call update_stack_alignment.
6465
6466 2010-09-17 Richard Guenther <rguenther@suse.de>
6467
6468 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
6469 Properly copy the read string.
6470
6471 2010-09-17 Joseph Myers <joseph@codesourcery.com>
6472
6473 * doc/options.texi (Variable): Document.
6474 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
6475 generate target_flags declarations explicitly. Don't define
6476 VarExists variables for the driver.
6477 * common.opt (target_flags): New Variable record.
6478 (flag_dump_unnumbered, flag_dump_unnumbered_links,
6479 flag_var_tracking, flag_var_tracking_assignments,
6480 flag_var_tracking_assignments_toggle): Don't mark variables with
6481 VarExists.
6482 * config/i386/i386.c (ix86_isa_flags): Don't define here.
6483 * config/i386/i386.opt (ix86_isa_flags): Define here.
6484 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
6485 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
6486 VarExists.
6487 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
6488 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
6489 Only define for generator programs.
6490 * rtlanal.c (target_flags): Remove.
6491 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
6492 flag_var_tracking_assignments_toggle): Remove.
6493
6494 2010-09-17 Michael Matz <matz@suse.de>
6495
6496 PR tree-optimization/43432
6497 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6498 Accept backwards consecutive accesses.
6499 (vect_create_data_ref_ptr): If step is negative generate
6500 decreasing IVs.
6501 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
6502 (perm_mask_for_reverse, reverse_vec_elements): New functions.
6503 (vectorizable_load): Handle loads with negative steps when easily
6504 possible.
6505
6506 2010-09-03 Jan Hubicka <jh@suse.cz>
6507
6508 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
6509
6510 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
6511
6512 * config/v850/v850.c (v850_function_value_regno_p): Make static.
6513 Adjust comments. Declare.
6514 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6515 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
6516
6517 2010-09-17 Richard Guenther <rguenther@suse.de>
6518
6519 * common.opt (combine): Remove.
6520 * gcc.c (default_compilers): Remove specs testing combine.
6521 The C compilers no longer can combine.
6522 (option_map): Remove -combine.
6523 (display_help): Remove -combine.
6524 (driver_handle_option): Remove OPT_combine handling.
6525 (compile_input_file_p): Remove.
6526 (do_spec): Remove code concerning combine.
6527 (main): Likewise.
6528 * doc/invoke.texi: Remove traces of -combine.
6529 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
6530
6531 2010-09-17 Richard Guenther <rguenther@suse.de>
6532
6533 PR middle-end/45678
6534 * builtins.c (fold_builtin_memory_op): Always properly adjust
6535 alignment of memory accesses.
6536
6537 2010-09-16 Jan Hubicka <jh@suse.cz>
6538
6539 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
6540 processing clone.
6541
6542 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
6543
6544 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
6545
6546 * config/i386/i386.c (predict_jump): Add prototype.
6547 (flag_opts): Add -m8bit-idiv.
6548 (ix86_split_idivmod): New.
6549
6550 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
6551 Add 2 splitters for SI/DI mode divide.
6552 (divmod<mode>4_1): New pattern.
6553 (udivmod<mode>4_1): Likewise.
6554 (testdi_ccno_1): Likewise.
6555
6556 * config/i386/i386.opt (m8bit-idiv): New.
6557
6558 * doc/invoke.texi: Document -m8bit-idiv.
6559
6560 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
6561
6562 PR bootstrap/45680
6563 * config/i386/i386.c (min_insn_size): Moved out of the
6564 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
6565
6566 2010-09-16 Jan Hubicka <jh@suse.cz>
6567
6568 * lto-cgraph.c (lto_output_node): Fix handling of clones.
6569 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
6570 unreachable clones with reachable clones.
6571 * tree-inline.c (copy_bb): Fix sanity checking when producing
6572 unreachable clone.
6573
6574 2010-09-16 Anatoly Sokolov <aesok@post.ru>
6575
6576 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
6577 (TARGET_MEMORY_MOVE_COST): Define.
6578 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
6579
6580 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
6581
6582 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
6583 maybe_tidy_empty_bb.
6584
6585 Revert:
6586 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
6587 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6588
6589 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6590
6591 * target.def (target_option.optimization): New hook.
6592 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
6593 TARGET_OPTION_OPTIMIZATION hook.
6594 * doc/tm.texi: Regenerate.
6595 * hooks.c (hook_void_int_int): New.
6596 * hooks.h (hook_void_int_int): Declare.
6597 * opts.c: Don't include tm_p.h.
6598 (decode_options): Use targetm.target_option.optimization instead
6599 of OPTIMIZATION_OPTIONS.
6600 * system.h (OPTIMIZATION_OPTIONS): Poison.
6601 * config/arm/arm-protos.h (arm_optimization_options): Remove.
6602 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
6603 (arm_optimization_options): Rename to arm_option_optimization.
6604 Make static.
6605 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
6606 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
6607 (cris_option_optimization): New.
6608 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
6609 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
6610 (crx_option_optimization): New.
6611 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
6612 * config/frv/frv-protos.h (frv_optimization_options): Remove.
6613 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
6614 (frv_optimization_options): Rename to frv_option_optimization.
6615 Make static.
6616 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
6617 * config/h8300/h8300.c (h8300_option_optimization): New.
6618 (TARGET_OPTION_OPTIMIZATION): Define.
6619 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
6620 * config/i386/i386-protos.h (optimization_options): Remove.
6621 * config/i386/i386.c (optimization_options): Rename to
6622 ix86_option_optimization. Make static.
6623 (TARGET_OPTION_OPTIMIZATION): Define.
6624 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
6625 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
6626 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
6627 (ia64_optimization_options): Rename to ia64_option_optimization.
6628 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
6629 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
6630 commented-out definition.
6631 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6632 instead of OPTIMIZATION_OPTIONS.
6633 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
6634 (m32r_option_optimization): New.
6635 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
6636 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6637 Remove.
6638 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
6639 (mcore_option_optimization): New.
6640 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
6641 * config/mep/mep-protos.h (mep_optimization_options): Remove.
6642 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
6643 (mep_optimization_options): Rename to mep_option_optimization.
6644 Make static. Take unused level and size parameters.
6645 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
6646 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
6647 (mmix_option_optimization): New.
6648 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
6649 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
6650 (pdp11_option_optimization): New.
6651 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
6652 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
6653 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
6654 (optimization_options): Rename to rs6000_option_optimization.
6655 Make static.
6656 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
6657 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
6658 * config/rx/rx.c (rx_set_optimization_options): Rename to
6659 rx_option_optimization. Make static. Take unused level and size
6660 parameters.
6661 (TARGET_OPTION_OPTIMIZATION): Define.
6662 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
6663 * config/s390/s390-protos.h (optimization_options): Remove.
6664 * config/s390/s390.c (optimization_options): Rename to
6665 s390_option_optimization. Make static. Don't mark size parameter
6666 unused.
6667 (TARGET_OPTION_OPTIMIZATION): Define.
6668 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
6669 * config/sh/sh-protos.h (sh_optimization_options): Remove.
6670 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
6671 (sh_optimization_options): Rename to sh_option_optimization. Make
6672 static. Don't mark parameters unused.
6673 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
6674 * config/spu/spu-protos.h (spu_optimization_options): Remove.
6675 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
6676 (spu_optimization_options): Rename to spu_option_optimization.
6677 Make static.
6678 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
6679 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
6680 (v850_option_optimization): New.
6681 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
6682 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
6683 (xtensa_option_optimization): New.
6684 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
6685
6686 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6687
6688 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
6689 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
6690 * doc/tm.texi: Regenerate.
6691 * system.h (OVERRIDE_OPTIONS): Poison.
6692 * target.def (override): Default to hook_void_void.
6693 * targhooks.c (default_target_option_override): Remove.
6694 * genmodes.c, machmode.def: Update comments mentioning
6695 OVERRIDE_OPTIONS.
6696 * config/alpha/alpha-modes.def: Update comment mentioning
6697 alpha_override_options.
6698 * config/alpha/alpha-protos.h (override_options): Remove.
6699 * config/alpha/alpha.c (override_options): Rename to
6700 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
6701 (TARGET_OPTION_OVERRIDE): Define.
6702 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
6703 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
6704 of OVERRIDE_OPTIONS.
6705 * config/arc/arc-protos.h (arc_init): Remove.
6706 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
6707 (arc_init): Rename to arc_option_override. Make static.
6708 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
6709 (OVERRIDE_OPTIONS): Remove.
6710 * config/arm/arm-protos.h (arm_override_options): Remove.
6711 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
6712 (arm_override_options): Rename to arm_option_override. Make
6713 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6714 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
6715 * config/arm/arm.md: Update comment referring to arm_override_options.
6716 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6717 instead of OVERRIDE_OPTIONS.
6718 * config/avr/avr-protos.h (avr_override_options): Remove.
6719 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
6720 (avr_override_options): Rename to avr_option_override. Make static.
6721 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
6722 * config/bfin/bfin-protos.h (override_options): Remove (twice).
6723 * config/bfin/bfin.c (override_options): Rename to
6724 bfin_option_override. Make static.
6725 (TARGET_OPTION_OVERRIDE): Define.
6726 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
6727 * config/cris/cris-protos.h (cris_override_options): Remove.
6728 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
6729 (cris_override_options): Rename to cris_option_override. Make static.
6730 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
6731 * config/frv/frv-protos.h (frv_override_options): Remove.
6732 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
6733 (frv_override_options): Rename to frv_option_override. Make static.
6734 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
6735 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
6736 * config/h8300/h8300.c (h8300_init_once): Rename to
6737 h8300_option_override. Make static.
6738 (TARGET_OPTION_OVERRIDE): Define.
6739 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
6740 * config/i386/i386-protos.h (override_options): Remove.
6741 * config/i386/i386.c (override_options): Rename to
6742 ix86_option_override_internal. Make static. Comments referring
6743 to this function and callers changed.
6744 (ix86_option_override): New.
6745 (TARGET_OPTION_OVERRIDE): Define.
6746 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
6747 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
6748 * config/ia64/ia64.c (ia64_file_start): Update comment referring
6749 to ia64_override_options.
6750 * config/iq2000/iq2000-protos.h (override_options): Remove.
6751 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
6752 (override_options): Rename to iq2000_option_override. Make static.
6753 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
6754 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
6755 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
6756 (lm32_override_options): Rename to lm32_option_override. Make static.
6757 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
6758 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
6759 (m32r_option_override): New.
6760 (m32r_init): Update comment.
6761 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
6762 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
6763 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
6764 (m68hc11_override_options): Rename to m68hc11_option_override.
6765 Make static. Return void.
6766 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
6767 * config/m68k/m68k-protos.h (override_options): Remove.
6768 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
6769 (override_options): Rename to m68k_option_override. Make static.
6770 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
6771 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
6772 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
6773 (mcore_override_options): Rename to mcore_option_override. Make
6774 static.
6775 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
6776 * config/mep/mep-protos.h (mep_override_options): Remove.
6777 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
6778 (mep_override_options): Rename to mep_option_override. Make static.
6779 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
6780 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
6781 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
6782 (mmix_override_options): Rename to mmix_option_override. Make static.
6783 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
6784 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
6785 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
6786 (mn10300_override_options): Rename to mn10300_option_override.
6787 Make static.
6788 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
6789 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
6790 * config/moxie/moxie.c (moxie_override_options): Rename to
6791 moxie_option_override. Make static.
6792 (TARGET_OPTION_OVERRIDE): Define.
6793 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
6794 * config/picochip/picochip-protos.h (picochip_override_options):
6795 Remove. Update comment referring to picochip_override_options.
6796 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
6797 (picochip_override_options): Rename to picochip_option_override.
6798 Make static. Update comment and definition of
6799 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
6800 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
6801 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6802 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6803 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6804 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6805 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6806 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
6807 instead of OVERRIDE_OPTIONS.
6808 * config/rs6000/rs6000-modes.def: Update comment referring to
6809 rs6000_override_options.
6810 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
6811 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
6812 (rs6000_override_options): Rename to
6813 rs6000_option_override_internal. Make static. Commented
6814 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
6815 (rs6000_option_override): New.
6816 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
6817 instead of OVERRIDE_OPTIONS.
6818 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6819 * config/s390/s390-protos.h (override_options): Remove.
6820 * config/s390/s390.c (override_options): Rename to
6821 s390_option_override. Make static.
6822 (TARGET_OPTION_OVERRIDE): Define.
6823 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
6824 * config/score/score-protos.h (score_override_options): Remove.
6825 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
6826 (score_override_options): Rename to score_option_override. Make
6827 static.
6828 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
6829 Update comment referring to override_options.
6830 * config/score/score3.c (score3_override_options): Rename to
6831 score3_option_override.
6832 * config/score/score3.h (score3_override_options): Rename to
6833 score3_option_override.
6834 * config/score/score7.c (score7_override_options): Rename to
6835 score7_option_override.
6836 * config/score/score7.h (score7_override_options): Rename to
6837 score7_option_override.
6838 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
6839 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
6840 (sparc_override_options): Rename to sparc_option_override. Make
6841 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6842 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
6843 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6844 instead of OVERRIDE_OPTIONS.
6845 * config/spu/spu-protos.h (spu_override_options): Remove.
6846 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
6847 (spu_override_options): Rename to spu_option_override. Make
6848 static.
6849 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
6850 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
6851 OVERRIDE_OPTIONS.
6852 * config/vax/vax-protos.h (override_options): Remove.
6853 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
6854 (override_options): Rename to vax_option_override. Make static.
6855 Call SUBTARGET_OVERRIDE_OPTIONS.
6856 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
6857 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
6858 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
6859 * config/xtensa/xtensa-protos.h (override_options): Remove.
6860 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
6861 (override_options): Rename to xtensa_option_override. Make static.
6862 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
6863
6864 2010-09-16 Richard Guenther <rguenther@suse.de>
6865
6866 PR tree-optimization/45623
6867 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
6868 (get_constraint_for_component_ref): If computing a constraint
6869 for the rhs handle type punning through unions.
6870 (get_constraint_for_address_of): Adjust.
6871 (get_constraint_for_1): Likewise.
6872 (get_constraint_for): Likewise.
6873 (get_constraint_for_rhs): New function.
6874 (do_structure_copy): Adjust.
6875 (make_constraint_to): Likewise.
6876 (handle_const_call): Likewise.
6877 (find_func_aliases): Likewise.
6878 (process_ipa_clobber): Likewise.
6879 (create_variable_info_for): Likewise.
6880
6881 2010-09-16 Ira Rosen <irar@il.ibm.com>
6882
6883 * tree-vectorizer.c: Fix documentation.
6884 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
6885 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
6886 is_pattern_stmt_p, is_loop_header_bb_p,
6887 stmt_vinfo_set_inside_of_loop_cost,
6888 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
6889 known_alignment_for_access_p): Likewise.
6890 * tree-vect-loop.c: Fix documentation.
6891 (vect_get_cost): Start function name from new line.
6892 * tree-vect-data-refs.c: Fix documentation.
6893 * tree-vect_stmts.c: Likewise.
6894 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
6895 (vectorizable_store): Free vec_oprnds if allocated.
6896 (vectorizable_condition): Initialize several variables to avoid
6897 warnings.
6898 * tree-vect-slp.c: Fix documentation.
6899
6900 2010-09-16 Richard Guenther <rguenther@suse.de>
6901
6902 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
6903 is TS_TRANSLATION_UNIT_DECL.
6904 (initialize_tree_contains_struct): Adjust.
6905 (all_translation_units): New global vector.
6906 (build_translation_unit_decl): New function.
6907 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
6908 (struct tree_translation_unit_decl): New.
6909 (all_translation_units): Declare.
6910 (union tree_node): Add translation_unit_decl member.
6911 (build_translation_unit_decl): Declare.
6912 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
6913 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
6914 New function.
6915 (pack_value_fields): Call it.
6916 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
6917 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
6918 (lto_output_tree_pointers): Call it.
6919 * lto-streamer-in.c (lto_input_tree_ref): Handle references
6920 to TRANSLATION_UNIT_DECL.
6921 (unpack_ts_translation_unit_decl_value_fields): New function.
6922 (unpack_value_fields): Call it.
6923 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
6924 (lto_input_tree_pointers): Call it.
6925 * lto-streamer.c (check_handled_ts_structures): Adjust.
6926 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
6927 * c-decl.c (all_translation_units): Remove.
6928 (pop_scope): Use build_translation_unit_decl.
6929 (collect_all_refs): Adjust.
6930 (for_each_global_decl): Likewise.
6931 (c_write_global_declarations): Likewise.
6932
6933 2010-09-16 Jakub Jelinek <jakub@redhat.com>
6934
6935 PR bootstrap/45686
6936 * fold-const.c (fold_checksum_tree): Change slot from const void **
6937 to void **, use CONST_CAST_TREE to store into *slot.
6938
6939 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6940
6941 * config/i386/i386.md: Remove unneeded empty conditions and
6942 preparation statements from expanders.
6943 * config/i386/mmx.md: Ditto.
6944 * config/i386/sse.md: Ditto.
6945
6946 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6947
6948 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
6949
6950 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6951
6952 PR rtl-optimization/45593
6953 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
6954 insns that were in delay slots as stand-alone insns.
6955
6956 2010-09-15 Ian Lance Taylor <iant@google.com>
6957
6958 * incpath.c (remove_duplicates): If name is not a directory, issue
6959 a warning rather than an error.
6960
6961 2010-09-15 Martin Jambor <mjambor@suse.cz>
6962
6963 PR middle-end/45644
6964 * tree-sra.c (create_access): Check for bit-fields directly.
6965
6966 2010-09-15 Jakub Jelinek <jakub@redhat.com>
6967
6968 PR tree-optimization/45633
6969 * tree-cfg.c (verify_gimple_assign_binary): Allow
6970 MINUS_EXPR with lhs and rhs1 pointer vector and
6971 rhs2 sizetype vector.
6972 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
6973 or vector pointer use TER to optimize pointer subtraction.
6974
6975 2010-09-15 Jie Zhang <jie@codesourcery.com>
6976
6977 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
6978 fcmpd to fcmps.
6979
6980 2010-09-15 Ian Lance Taylor <iant@google.com>
6981
6982 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
6983
6984 2010-09-15 Ian Lance Taylor <iant@google.com>
6985
6986 * function.c (get_arg_pointer_save_area): Set
6987 arg_pointer_save_area_init to true.
6988
6989 2010-09-15 Martin Jambor <mjambor@suse.cz>
6990
6991 * tree-sra.c (generate_subtree_copies): Updated comment.
6992 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
6993 obtained from the statement iterator instead.
6994 (load_assign_lhs_subreplacements): Removed parameters lhs and
6995 right_offset, which is obtained from top_racc instead. Parameter lacc
6996 is now expected to be the root of the processed tree rather than root's
6997 first child. Updated all callers.
6998
6999 2010-09-15 Joseph Myers <joseph@codesourcery.com>
7000
7001 * config/pdp11/pdp11.c (register_move_cost): Rename to
7002 pdp11_register_move_cost.
7003 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
7004 pdp11_register_move_cost.
7005 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
7006 pdp11_register_move_cost instead of register_move_cost.
7007
7008 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
7009
7010 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
7011 pattern for vmovn. Expansion in case of non
7012 -mvectorize-with-neon-quad.
7013 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
7014 non- -mvectorize-with-neon-quad case.
7015 (move_lo_quad_<mode>): New expansion to vmov into low part.
7016 (move_hi_quad_<mode>): New expansion to vmov into high part.
7017 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
7018 (move_lo_quad_v4sf): Likewise.
7019 (move_lo_quad_v8hi): Likewise.
7020 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
7021 low part.
7022 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
7023 high part.
7024 * config/arm/iterators.md (ANY128): New mode iterator.
7025 (V_narrow_pack): New mode attribute.
7026 (V_HALF): Add attribute.
7027 (V_DOUBLE): Add attribute.
7028 (V_mode_nunits): Add attribute.
7029
7030 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7031
7032 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
7033 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
7034
7035 2010-09-15 Olivier Hainque <hainque@adacore.com>
7036 Jose Ruiz <ruiz@adacore.com>
7037
7038 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
7039 * config/alpha/osf5-unwind.h: New file.
7040
7041 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7042
7043 PR bootstrap/45672
7044 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
7045 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7046 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7047
7048 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7049
7050 * c-lang.h (struct lang_type): Add variable_size GTY option.
7051
7052 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7053
7054 PR bootstrap/45672
7055 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7056
7057 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7058
7059 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7060 result isn't used in memory address.
7061
7062 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7063
7064 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7065 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7066 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7067 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7068 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7069 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7070
7071 * target.def: Add units_per_simd_word to vectorize.
7072
7073 * targhooks.c (default_units_per_simd_word): New.
7074 * targhooks.h (default_units_per_simd_word): Likewise.
7075 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7076 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7077 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7078 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7079 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7080 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7081 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7082 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7083
7084 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7085 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7086
7087 * tree-vect-stmts.c: Don't include "tm_p.h".
7088 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7089 with targetm.vectorize.units_per_simd_word.
7090
7091 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7092
7093 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7094
7095 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7096 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7097
7098 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
7099 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7100
7101 * doc/tm.texi: Regenerated.
7102
7103 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7104
7105 * tree-vect-stmts.c: Include "tm_p.h".
7106
7107 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7108 out of RTX_CODE.
7109
7110 2010-09-14 Martin Jambor <mjambor@suse.cz>
7111
7112 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
7113 location of generated statement. Changed all callers.
7114 (build_ref_for_model): New parameter loc which used to set location of
7115 all generated expressions. Changed all callers.
7116 (generate_subtree_copies): Likewise.
7117 (init_subtree_with_zero): Likewise.
7118 (sra_modify_expr): Set locations of all generated statements and
7119 expressions to the location the original statement.
7120 (handle_unscalarized_data_in_subtree): Likewise.
7121 (load_assign_lhs_subreplacements): Likewise.
7122 (sra_modify_constructor_assign): Likewise.
7123 (sra_modify_assign): Likewise.
7124
7125 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
7126
7127 PR target/45277
7128 PR target/45363
7129 PR target/45407
7130 * doc/install.texi (sparc*-*-*): New section.
7131 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
7132
7133 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7134
7135 PR middle-end/45567
7136 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
7137 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
7138 (expand_builtin): Adjust caller.
7139 (expand_builtin_unop): Only use subtarget if it has the right mode.
7140
7141 2010-09-14 Tristan Gingold <gingold@adacore.com>
7142
7143 * configure.ac (plugins): Fix typos.
7144 * configure: Regenerate.
7145
7146 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7147
7148 PR debug/45660
7149 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
7150 gen_type_die for function/method return type.
7151
7152 2010-09-14 Ira Rosen <irar@il.ibm.com>
7153
7154 PR tree-optimization/45470
7155 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7156 can throw an exception.
7157 * tree-vect-stmts.c (vectorizable_call): Likewise.
7158
7159 2010-09-14 DJ Delorie <dj@redhat.com>
7160
7161 PR target/44749
7162 * config/mep/mep-protos.h (mep_save_register_info,
7163 mep_reinit_regs, mep_init_regs): Declare.
7164
7165 * config/mep/mep.c: Move all target definitions to the end of the
7166 file to avoid the need for duplicate declarations.
7167 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
7168 (mep_reorg_erepeat): Remove unused variables.
7169 (mep_expand_builtin): Likewise.
7170
7171 * config/mep/mep-pragma.c: Don't include rtl.h.
7172 (INVALID_REGNUM): New.
7173 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
7174 functions.
7175 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
7176 Avoid enum/integer math.
7177
7178 2010-09-13 Joseph Myers <joseph@codesourcery.com>
7179
7180 PR target/44749
7181 * config/mep/t-mep (GTM_H): Add insn-constants.h.
7182 * config/mep/mep.c (mep_conditional_register_usage): Take no
7183 parameters.
7184 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
7185 prototype.
7186 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
7187 call to mep_conditional_register_usage.
7188
7189 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
7190
7191 PR debug/43937
7192 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
7193 the DECL as well.
7194
7195 2010-09-13 Jakub Jelinek <jakub@redhat.com>
7196
7197 PR rtl-optimization/45617
7198 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
7199 even if low N bits of X aren't known to be zero.
7200
7201 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
7202
7203 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
7204
7205 * config/i386/i386.c (initial_ix86_tune_features): Add
7206 X86_TUNE_VECTORIZE_DOUBLE.
7207 (ix86_units_per_simd_word): New.
7208
7209 * config/i386/i386.h (ix86_tune_indices): Add
7210 X86_TUNE_VECTORIZE_DOUBLE.
7211 (TARGET_VECTORIZE_DOUBLE): New.
7212 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
7213
7214 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
7215
7216 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
7217 (new_temp_expr_table): Allocate call_cnt vector.
7218 (free_temp_expr_table): Free it.
7219 (process_replaceable): Add call_cnt parm and set in vector.
7220 (find_replaceable_in_bb): Skip replacement if def/use span a call.
7221 (debug_ter): Dump call_cnt value, remove stderr uses.
7222
7223 2010-09-13 Jan Hubicka <jh@suse.cz>
7224
7225 * tree.c (build_zero_cst): New.
7226 * tree.h (build_zero_cst): Declare.
7227 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
7228 (get_base_constructor): Break out from ...
7229 (fold_const_aggregate_ref): Here; handle empty constructors.
7230
7231 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7232
7233 * config/arm/arm.md: (define_attr "conds"): Update comment.
7234 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
7235 conds attribute to clob.
7236 (arm_sync_compare_and_swapsi): Likewise.
7237 (arm_sync_compare_and_swap<mode>): Likewise.
7238 (arm_sync_lock_test_and_setsi): Likewise.
7239 (arm_sync_lock_test_and_set<mode>): Likewise.
7240 (arm_sync_new_<sync_optab>si): Likewise.
7241 (arm_sync_new_nandsi): Likewise.
7242 (arm_sync_new_<sync_optab><mode>): Likewise.
7243 (arm_sync_new_nand<mode>): Likewise.
7244 (arm_sync_old_<sync_optab>si): Likewise.
7245 (arm_sync_old_nandsi): Likewise.
7246 (arm_sync_old_<sync_optab><mode>): Likewise.
7247 (arm_sync_old_nand<mode>): Likewise.
7248
7249 2010-09-13 Olivier Hainque <hainque@adacore.com>
7250
7251 * fwprop.c (forward_propagate_and_simplify): Only attach a
7252 REG_EQUAL note to an insn if the destination is a register.
7253 * gcse.c (try_replace_reg): Likewise.
7254
7255 2010-09-13 Richard Guenther <rguenther@suse.de>
7256
7257 PR tree-optimization/45611
7258 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
7259 (copy_ref_info): Likewise.
7260
7261 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
7262
7263 PR debug/45604
7264 PR debug/45419
7265 PR debug/45408
7266 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7267 types of MEM_REF pointer types to the same type.
7268
7269 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
7270
7271 PR rtl-optimization/41087
7272 * ifcvt.c (noce_get_condition): Don't allow conditions with
7273 side-effects.
7274
7275 2010-09-12 Anatoly Sokolov <aesok@post.ru>
7276
7277 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7278 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
7279 * config/frv/frv.c (frv_register_move_cost): Make static. Change
7280 arguments type to reg_class_t. Add mode argument.
7281 (frv_memory_move_cost): New.
7282 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
7283
7284 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
7285
7286 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
7287 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
7288
7289 2010-09-10 Jan Hubicka <jh@suse.cz>
7290
7291 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
7292
7293 2010-09-10 Richard Guenther <rguenther@suse.de>
7294
7295 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
7296 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
7297 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
7298 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
7299 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
7300
7301 2010-09-10 Richard Guenther <rguenther@suse.de>
7302
7303 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
7304 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
7305 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
7306 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
7307
7308 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
7309
7310 PR middle-end/45634
7311 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
7312 of string folding is of integral type.
7313
7314 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
7315
7316 * doc/invoke.texi (-x): Fix typo.
7317
7318 2010-09-10 Richard Guenther <rguenther@suse.de>
7319
7320 PR debug/44115
7321 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
7322 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7323 Output DECL_DEBUG_EXPR.
7324 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7325 Input DECL_DEBUG_EXPR.
7326
7327 2010-09-10 Richard Guenther <rguenther@suse.de>
7328
7329 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
7330 (build_index_type): Implement in terms of build_range_type.
7331 (build_range_type): Do not allow NULL_TREE type, improve
7332 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
7333 if we didn't hash.
7334 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
7335 create a distinct copy of the type.
7336
7337 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
7338
7339 * configure: Regenerated.
7340 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
7341
7342 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7343
7344 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
7345 * config/arm/cortex-a9-neon.md: New and partially generated.
7346 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
7347
7348 2010-09-10 Richard Guenther <rguenther@suse.de>
7349
7350 * tree.h (build_index_2_type): Remove.
7351 * tree.c (build_index_2_type): Remove.
7352
7353 2010-09-10 Jakub Jelinek <jakub@redhat.com>
7354
7355 PR bootstrap/45630
7356 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
7357 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
7358 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
7359
7360 2010-09-10 Martin Jambor <mjambor@suse.cz>
7361
7362 PR tree-optimization/44972
7363 * tree-sra.c: Include toplev.h.
7364 (build_ref_for_offset): Entirely reimplemented.
7365 (build_ref_for_model): New function.
7366 (build_user_friendly_ref_for_offset): New function.
7367 (analyze_access_subtree): Removed build_ref_for_offset check.
7368 (propagate_subaccesses_across_link): Likewise.
7369 (create_artificial_child_access): Use
7370 build_user_friendly_ref_for_offset.
7371 (propagate_subaccesses_across_link): Likewise.
7372 (ref_expr_for_all_replacements_p): Removed.
7373 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
7374 (sra_modify_expr): Use build_ref_for_model.
7375 (load_assign_lhs_subreplacements): Likewise.
7376 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
7377 checks for return values of build_ref_for_offset.
7378 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
7379 build_ref_for_offset.
7380 * ipa-prop.h: Include gimple.h
7381 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
7382 (ipa_analyze_indirect_call_uses): Update comment.
7383 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
7384 (IPA_PROP_H): Likewise.
7385
7386 2010-09-10 Martin Jambor <mjambor@suse.cz>
7387
7388 PR tree-optimization/44972
7389 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
7390 calling build_ref_for_offset.
7391
7392 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7393
7394 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
7395 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
7396 * config/arm/arm-tune.md: Regenerate.
7397 * doc/invoke.texi (ARM Options): Document it.
7398
7399 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
7400
7401 * config/i386/i386.c: Include sched-int.h.
7402 (TARGET_SCHED_DISPATCH): Defined.
7403 (TARGET_SCHED_DISPATCH_DO): Defined.
7404 (DISPATCH_WINDOW_SIZE): Defined.
7405 (MAX_DISPATCH_WINDOWS): Defined.
7406 (MAX_INSN): Defined.
7407 (MAX_IMM): Defined.
7408 (MAX_IMM_SIZE): Defined.
7409 (MAX_IMM_32): Defined.
7410 (MAX_IMM_64): Defined.
7411 (MAX_LOAD): Defined.
7412 (MAX_STORE): Defined.
7413 (BIG): Defined.
7414 (dispatch_group): New.
7415 (num_allowable_groups): New.
7416 (group_name): New.
7417 (sched_insn_info_s): New.
7418 (dispatch_windows_s): New.
7419 (imm_info_s): New.
7420 (dispatch_window_list): New.
7421 (dispatch_window_list1): New.
7422 (get_mem_group): New.
7423 (is_cmp): New.
7424 (dispatch_violation): New.
7425 (is_branch): New.
7426 (is_prefetch): New.
7427 (init_window): New.
7428 (allocate_window): New.
7429 (init_dispatch_sched): New.
7430 (is_end_basic_block): New.
7431 (process_end_window): New.
7432 (allocate_next_window): New.
7433 (find_constant_1): New.
7434 (find_constant): New.
7435 (get_num_immediates): New.
7436 (has_immediate): New.
7437 (get_insn_path): New.
7438 (get_insn_group): New.
7439 (count_num_restricted): New.
7440 (fits_dispatch_window): New.
7441 (add_insn_window): New.
7442 (add_to_dispatch_window): New.
7443 (debug_dispatch_window_file): New.
7444 (debug_dispatch_window): New.
7445 (debug_insn_dispatch_info_file): New.
7446 (debug_ready_dispatch): New.
7447 (do_dispatch): New.
7448 (has_dispatch): New.
7449 * config/i386/i386.h (debug_ready_dispatch): Declared.
7450 (debug_dispatch_window): Declared.
7451 * config/i386/i386.opt (mdispatch-scheduler): New flag.
7452 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
7453 (TARGET_SCHED_DISPATCH_DO): New.
7454 * doc/tm.texi: Regererated.
7455 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
7456 ready_remove_first_dispatch
7457 (schedule_block): Call targetm.sched.dispatch and
7458 targetm.sched.dispatch_do.
7459 (sched_init): Call targetm.sched.dispatch and
7460 targetm.sched.dispatch_do.
7461 (ready_remove_first_dispatch): New.
7462 (number_in_ready): New.
7463 (get_ready_element): New.
7464 * hooks.c (hook_bool_rtx_int_false): New.
7465 (hook_void_rtx_int): New.
7466 * hooks.h (hook_bool_rtx_int_false): Declared.
7467 (hook_void_rtx_int): Declared.
7468 * sched-int.h (IS_DISPATCH_ON): Defined.
7469 (IS_CMP): Defined.
7470 (DISPATCH_VIOLATION): Defined.
7471 (FITS_DISPATCH_WINDOW): Defined.
7472 (DISPATCH_INIT): Defined.
7473 (ADD_TO_DISPATCH_WINDOW): Defined.
7474 (get_ready_element): Declared.
7475 (number_in_ready): Declared.
7476 * target.def (dispatch): Defined.
7477 (dispatch_do): Defined.
7478
7479 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7480
7481 PR middle-end/45312
7482 * reload1.c (merge_assigned_reloads): Remove.
7483 (reload_as_needed): Don't call it.
7484
7485 2010-09-09 Anatoly Sokolov <aesok@post.ru>
7486
7487 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
7488 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7489 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7490
7491 2010-09-09 Matthias Klose <doko@ubuntu.com>
7492
7493 PR bootstrap/43847
7494 * configure.ac (--enable-plugin): Enhance for cross builds.
7495 * configure: Regenerate.
7496
7497 2010-09-09 Jan Hubicka <jh@suse.cz>
7498
7499 PR tree-optimization/45598
7500 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
7501 string folding is of integral type.
7502
7503 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7504
7505 * configure.ac (gnu_indirect_function): New test.
7506 * configure: Rebuilt.
7507 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
7508 * defaults.h (IFUNC_ASM_TYPE): Provide default.
7509
7510 * doc/extend.texi (Function Attributes): Document ifunc.
7511 * varasm.c (do_assemble_alias): Deal with ifuncs too.
7512
7513 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7514
7515 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
7516 epilogue instruction move.
7517
7518 2010-09-09 Jan Hubicka <jh@suse.cz>
7519
7520 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
7521 command line to allow more partitions than input files.
7522
7523 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7524
7525 PR middle-end/44554
7526 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
7527
7528 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7529
7530 PR middle-end/40386
7531 * ira.c (pseudo_for_reload_consideration_p): Don't use
7532 flag_ira_share_spill_slots.
7533
7534 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7535
7536 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
7537 point zero operands that fit into a single GPR.
7538 (s390_preferred_reload_class): Ensure we only return general-purpose
7539 register classes.
7540 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
7541 floating-point zero operands into GPRs.
7542 ("*mov<mode>_64"): Likewise.
7543 ("mov<mode>"): Likewise using lhi.
7544
7545 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7546
7547 * config/s390/s390.c (s390_symref_operand_p): Return false for
7548 literal pool references.
7549 (s390_check_qrst_address): Update caller.
7550
7551 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
7552
7553 * config/i386/predicates.md (ext_register_operand): Check that
7554 SUBREG_REG is really a register before looking for REGNO.
7555 (reg_not_xmm0_operand): Handle SUBREGs correctly.
7556 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
7557
7558 2010-09-09 Jakub Jelinek <jakub@redhat.com>
7559
7560 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
7561 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
7562 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
7563 * print-rtl.c (print_rtx): Likewise.
7564 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7565 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
7566 for ADDR_EXPR with non-addressable object.
7567 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
7568 (struct dw_val_struct): Add v.val_decl_ref.
7569 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
7570 Handle DW_OP_GNU_implicit_pointer.
7571 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
7572 (get_ref_die_offset_label): New function.
7573 (implicit_ptr_descriptor): New function.
7574 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
7575 (loc_descriptor): Likewise.
7576 (gen_variable_die): Put even definitions into decl_die_table.
7577 (resolve_addr_in_expr): Resolve still unresolved
7578 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
7579 return false.
7580 (dwarf2out_finish): Call output_location_lists after outputting
7581 .debug_info and .debug_abbrev instead of before.
7582
7583 2010-09-09 Roland McGrath <roland@redhat.com>
7584
7585 * dwarf2out.c (DWARF_REF_SIZE): Define.
7586 (size_of_loc_descr): Use it for DW_OP_call_ref.
7587
7588 2010-09-09 Alan Modra <amodra@gmail.com>
7589
7590 * doc/invoke.text: Reinstate mcmodel=medium.
7591 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7592 CMODEL_MEDIUM as default.
7593 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
7594 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
7595 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
7596 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
7597
7598 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7599
7600 PR target/45250
7601 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
7602 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
7603 (builtin_longjmp): Likewise.
7604 (allocate_stack): Use hard_frame_pointer_rtx instead of
7605 frame_pointer_rtx.
7606 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
7607 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
7608 (pa_can_eliminate): Likewise.
7609 (TARGET_INTERNAL_ARG_POINTER): Define.
7610 (TARGET_CAN_ELIMINATE): Define.
7611 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
7612 pointer.
7613 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
7614 (pa_internal_arg_pointer, pa_can_eliminate,
7615 pa_initial_elimination_offset): New.
7616 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
7617 (HARD_FRAME_POINTER_REGNUM): Set to register three.
7618 (INITIAL_FRAME_POINTER_OFFSET): Delete.
7619 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
7620 Define.
7621 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
7622 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
7623 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
7624 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
7625 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
7626 new soft frame pointer.
7627 * config/pa/pa64-regs.h: Likewise.
7628
7629 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7630
7631 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
7632 numerical constant.
7633 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
7634
7635 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7636
7637 PR debug/45531
7638 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
7639
7640 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7641
7642 PR debug/45419
7643 PR debug/45408
7644 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7645 qualifiers in otherwise equal MEM_REF pointer types.
7646 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
7647 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
7648
7649 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7650
7651 PR target/44392
7652 * config/arm/arm.md (bswapsi2): Handle condition correctly
7653 for armv6 and optimize_size.
7654
7655 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7656
7657 PR other/18555
7658 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
7659
7660 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7661
7662 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
7663 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
7664 ix86_expand_strlen, legitimate_pic_address_disp_p,
7665 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
7666 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
7667 ix86_check_movabs, ix86_secondary_memory_needed): Change function
7668 prototype to bool.
7669 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
7670 return_in_memory_ms_64, ix86_check_movabs,
7671 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
7672 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
7673 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
7674 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
7675 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
7676 ix86_secondary_memory_needed): Change to bool. Return
7677 "true" and "false" values.
7678 * config/i386/i386.md: Return "true" and "false" values.
7679
7680 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7681
7682 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7683 run_expensive_tests.
7684
7685 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7686
7687 * toplev.c (output_stack_usage): Use lbasename instead of basename.
7688
7689 2010-09-08 Martin Jambor <mjambor@suse.cz>
7690
7691 PR other/45443
7692 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
7693 at -O3.
7694
7695 2010-09-08 Richard Guenther <rguenther@suse.de>
7696
7697 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
7698 (visit): Adjust.
7699 (iterative_hash_gimple_type): Likewise.
7700 (gimple_type_hash): Likewise.
7701 (gimple_register_type): Likewise.
7702 (print_gimple_types_stats): Likewise.
7703 (free_gimple_type_tables): Likewise.
7704
7705 2010-09-08 Michael Matz <matz@suse.de>
7706
7707 PR tree-optimization/43430
7708 * tree-vect-stmts.c (vectorizable_condition): Support multiple
7709 copies for conditional statements if it's not part of a reduction.
7710
7711 2010-09-08 Michael Matz <matz@suse.de>
7712
7713 PR tree-optimization/33244
7714 * tree-ssa-sink.c (statement_sink_location): Don't sink into
7715 empty loop latches.
7716
7717 2010-09-08 Richard Guenther <rguenther@suse.de>
7718
7719 PR tree-optimization/45578
7720 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
7721 Be more careful when transfering alignment information to
7722 the new induction variable.
7723 (copy_ref_info): Likewise.
7724
7725 2010-09-08 Richard Guenther <rguenther@suse.de>
7726
7727 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
7728 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
7729
7730 2010-09-08 Arnaud Charlet <charlet@adacore.com>
7731
7732 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
7733 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
7734
7735 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7736
7737 PR doc/45587
7738 * doc/md.texi: Fixed modes on several standard pattern names.
7739
7740 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
7741
7742 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
7743 (ashl<mode>3): ...this.
7744 (loongson_psra<V_suffix>): Rename to...
7745 (ashr<mode>3): ...this.
7746 (loongson_psrl<V_suffix>): Rename to...
7747 (lshr<mode>3): ...this.
7748 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
7749 (CODE_FOR_loongson_psllw): Define.
7750 (CODE_FOR_loongson_psrlh): Define.
7751 (CODE_FOR_loongson_psrlw): Define.
7752 (CODE_FOR_loongson_psrah): Define.
7753 (CODE_FOR_loongson_psraw): Define.
7754
7755 2010-09-07 Richard Henderson <rth@redhat.com>
7756
7757 * tree-vect-data-refs.c: Include tm_p.h.
7758 * Makefile.in (tree-vect-data-refs.o): Update deps.
7759 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
7760 Move delarations outside #ifdef RTX_CODE.
7761
7762 2010-09-07 Richard Henderson <rth@redhat.com>
7763
7764 * final.c (rest_of_handle_final): Unconditionally do
7765 output_function_exception_table before assemble_end_function.
7766
7767 2010-09-07 Jan Hubicka <jh@suse.cz>
7768
7769 * tree-inline.c (tree_inlinable_function_p): Do not test
7770 DECL_REPLACEABLE_P.
7771 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
7772 update_callee_keys, cgraph_decide_inlining): Test function availability.
7773 * cif-code.def (OVERWRITABLE): New code.
7774
7775 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
7776 Jack Howarth <howarth@bromo.med.uc.edu>
7777
7778 PR target/36502
7779 PR target/42313
7780 PR target/44651
7781 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
7782 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
7783 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
7784 MAX macro.
7785
7786 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7787
7788 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
7789 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
7790
7791 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7792
7793 * config.gcc: Don't append t-android for Android targets.
7794
7795 * config/t-android: Removed.
7796
7797 2010-09-07 Richard Henderson <rth@redhat.com>
7798
7799 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
7800 * doc/tm.texi.in: Add doc marker.
7801 * doc/tm.texi: Rebuild.
7802 * except.c (switch_to_exception_section): Always build.
7803 (output_one_function_exception_table): Move section switch,
7804 personality output, and label output ...
7805 (output_function_exception_table): ... here. Use the new
7806 personality hook.
7807
7808 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
7809 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
7810 TARGET_ASM_INIT_SECTIONS): New.
7811 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
7812 make static.
7813 (TARGET_ASM_UNWIND_EMIT): Update to match.
7814 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
7815
7816 * config/arm/arm.c (arm_asm_emit_except_personality): New.
7817 (arm_asm_init_sections): New.
7818 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
7819
7820 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7821
7822 * config/arm/arm.md: Remove unused variable.
7823
7824 2010-09-07 Anatoly Sokolov <aesok@post.ru>
7825
7826 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7827 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
7828 (m32r_memory_move_cost): New function.
7829
7830 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7831
7832 * config.gcc: Append t-android for Android targets.
7833
7834 * config/t-android: New.
7835
7836 2010-09-07 Richard Henderson <rth@redhat.com>
7837
7838 * target.def (unwind_emit_before_insn): New hook.
7839 * doc/tm.texi.in: Add @hook marker for it.
7840 * doc/tm.texi: Rebuild.
7841 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
7842
7843 2010-09-07 Martin Jambor <mjambor@suse.cz>
7844
7845 PR fortran/43665
7846 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
7847 are any type attributes.
7848
7849 2010-09-07 Jan Hubicka <jh@suse.cz>
7850
7851 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
7852 array_ref_low_bound in string access folding.
7853
7854 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
7855
7856 PR target/45206
7857 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
7858 eh_return fixup sequence.
7859
7860 2010-09-07 Jan Hubicka <jh@suse.cz>
7861
7862 * gimple-fold.c (maybe_fold_reference): Verify that operand is
7863 gimple_min_invariant.
7864
7865 2010-09-07 Richard Guenther <rguenther@suse.de>
7866
7867 PR middle-end/45569
7868 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
7869 nor CONSTRUCTOR can trap.
7870 * tree-complex.c (update_complex_assignment): Update EH info.
7871
7872 2010-09-07 Richard Guenther <rguenther@suse.de>
7873
7874 PR middle-end/45569
7875 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
7876 * passes.c (execute_function_todo): Do not verify anything if
7877 we saw errors.
7878
7879 2010-09-07 Richard Guenther <rguenther@suse.de>
7880
7881 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
7882
7883 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
7884
7885 PR target/43137
7886 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
7887 New define_mode_attrs.
7888 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
7889 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
7890 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
7891 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
7892 Remove pool_range attribute.
7893 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
7894 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
7895 pool_range and neg_pool_range attributes.
7896 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
7897 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
7898 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
7899
7900 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7901
7902 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
7903 check glibc.
7904
7905 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7906
7907 PR target/22152
7908 * config/i386/mmx.md (*mov<mode>_internal_rex64,
7909 *mov<mode>_internal_avx, *mov<mode>_internal,
7910 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
7911 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
7912
7913 2010-09-06 Mark Mitchell <mark@codesourcery.com>
7914
7915 * c-typeck.c (do_warn_double_promotion): Remove.
7916 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
7917 Objective-C++ too.
7918
7919 2010-09-06 Anatoly Sokolov <aesok@post.ru>
7920
7921 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
7922 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
7923 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
7924 argument type to reg_class_t. Change result type to bool.
7925 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7926
7927 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
7928
7929 PR libobjc/19850
7930 * gthr-posix.h (__gthread_objc_thread_detach): Use
7931 _objc_thread_attribs when detaching a thread.
7932 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
7933
7934 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7935
7936 PR target/45524
7937 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
7938 * configure: Regenerated.
7939
7940 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7941
7942 * combine.c (try_combine): Set subst_low_luid to i0.
7943
7944 2010-09-06 Richard Guenther <rguenther@suse.de>
7945
7946 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
7947 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
7948 (build_aligned_type): Declare.
7949 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
7950 (check_aligned_type): New function.
7951 (build_aligned_type): Likewise.
7952 * expr.c (expand_assignment): Handle misaligned stores via
7953 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
7954 (expand_expr_real_1): Likewise.
7955 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
7956 * tree-vect-stmts.c (vectorizable_store): Do not build
7957 MISALIGNED_INDIRECT_REF but initialize alignment information.
7958 (vectorizable_load): Likewise.
7959 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
7960 handling.
7961 * cfgexpand.c (expand_debug_expr): Likewise.
7962 * dwarf2out.c (loc_list_from_tree): Likewise.
7963 * fold-const.c (maybe_lvalue_p): Likewise.
7964 (operand_equal_p): Likewise.
7965 (build_fold_addr_expr_with_type_loc): Likewise.
7966 * gimplify.c (gimplify_addr_expr): Likewise.
7967 (gimplify_expr): Likewise.
7968 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7969 (verify_gimple_assign_single): Likewise.
7970 * tree-dump.c (dequeue_and_dump): Likewise.
7971 (tree_could_trap_p): Likewise.
7972 * tree-predcom.c (ref_at_iteration): Likewise.
7973 * tree-pretty-print.c (dump_generic_node): Likewise.
7974 (op_code_prio): Likewise.
7975 (op_symbol_code): Likewise.
7976 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7977 * tree-ssa-loop-im.c (for_each_index): Likewise.
7978 (gen_lsm_tmp_name): Likewise.
7979 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7980 (find_interesting_uses_address): Likewise.
7981 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7982 * tree-ssa-operands.c (get_expr_operands): Likewise.
7983 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7984 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7985 (ao_ref_init_from_vn_reference): Likewise.
7986 * tree.c (staticp): Likewise.
7987 (build1_stat): Likewise.
7988 (reference_alias_ptr_type): Likewise.
7989 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7990 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
7991 MISALIGNED_INDIRECT_REF handling.
7992
7993 2010-09-06 Richard Guenther <rguenther@suse.de>
7994
7995 PR tree-optimization/45534
7996 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
7997 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
7998 on the target.
7999 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
8000 valid on the target.
8001
8002 2010-09-06 Andreas Schwab <schwab@redhat.com>
8003
8004 * configure.ac: Quote argument of AC_MSG_WARN.
8005 * configure: Regenerate.
8006
8007 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
8008
8009 * sel-sched.c (move_cond_jump): Correct arguments to
8010 maybe_tidy_empty_bb.
8011 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8012
8013 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
8014
8015 PR rtl-optimization/44919
8016 * sel-sched.c (move_cond_jump): Remove assert, check that
8017 the several blocks case can only happen with mutually exclusive
8018 insns instead. Rewrite the movement code to support moving through
8019 several basic blocks.
8020
8021 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8022
8023 * config/i386/i386.md (iptrsize): New mode attribute.
8024 (tp_seg): Ditto.
8025 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
8026 mode iterator.
8027 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
8028 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
8029 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
8030 (stack_tls_protect_set_<mode>): Ditto from
8031 stack_tls_protect_set_{si,di}. Use %@ to output segment register
8032 of thread base pointer load.
8033 (stack_tls_protect_test_<mode>): Ditto from
8034 stack_tls_protect_test_{si,di}. Use %@ to output segment register
8035 of thread base pointer load.
8036 (stack_protect_set): Rewrite using indirect functions.
8037 (stack_protect_test): Ditto.
8038 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
8039 (ix86_print_operand): Handle '@'.
8040
8041 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
8042
8043 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
8044 MINUS_EXPR.
8045
8046 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8047
8048 * doc/invoke.texi: Document -Wdouble-promotion.
8049 * c-typeck.c (convert_arguments): Check for implicit conversions
8050 from float to double.
8051 (do_warn_double_promotion): New function.
8052 (build_conditional_expr): Use it.
8053 (build_binary_op): Likewise.
8054
8055 2010-09-05 Richard Guenther <rguenther@suse.de>
8056
8057 PR tree-optimization/45535
8058 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
8059 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
8060 dereferencing it.
8061 (indirect_refs_may_alias_p): Likewise.
8062
8063 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
8064
8065 * config/sh/sh.c (sh_option_override): Make static.
8066 Adjust comments. Declare.
8067 (sh_function_value_regno_p): Likewise.
8068 (sh_register_move_cost): Modify the arguments, make static.
8069 Adjust comments. Declare.
8070 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8071 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8072 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8073 REGISTER_MOVE_COST): Delete.
8074 * config/sh/sh-protos.h (sh_override_options): Delete.
8075 (sh_register_move_cost): Delete.
8076 (sh_function_value_regno_p): Delete.
8077
8078 2010-09-04 Anatoly Sokolov <aesok@post.ru>
8079
8080 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8081 m32r_function_value_regno_p): New functions.
8082 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8083 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8084 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8085 FUNCTION_VALUE_REGNO_P): Remove.
8086
8087 2010-09-04 Jan Hubicka <jh@suse.cz>
8088
8089 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8090 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8091 fold_read_from_constant_string.
8092
8093 * gimple.h (canonicalize_constructor_val): Declare.
8094 * gimple-fold.c (canonicalize_constructor_val): New function.
8095 (get_symbol_constant_value):Use it.
8096 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8097
8098 2010-09-04 Jan Hubicka <jh@suse.cz>
8099
8100 * tree-switch-conversion.c (build_one_array): Set constructor to be
8101 static.
8102 * varpool.c (varpool_finalize_decl): Compute const_value_known.
8103
8104 2010-09-04 Richard Guenther <rguenther@suse.de>
8105
8106 PR bootstrap/45519
8107 * tree-flow.h (force_gimple_operand_1): Declare.
8108 (force_gimple_operand_gsi_1): Likewise.
8109 * gimplify.c (force_gimple_operand_1): New worker taking a
8110 gimple predicate for ...
8111 (force_gimple_operand): ... which now wraps it.
8112 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
8113 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
8114 last change.
8115 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
8116 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
8117 (create_mem_ref): Likewise.
8118
8119 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
8120
8121 * config/i386/predicates.md (sse_reg_operand): New predicate.
8122 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
8123 predicate for operand 1.
8124 (XFmode push splitter): Use fp_register_operand predicate
8125 for operand 1.
8126 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
8127 (SF-DF float_extend push splitter): Add reload_completed insn
8128 predicate.
8129 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
8130 MODEF mode macro. Add reload_completed insn predicate.
8131
8132 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
8133
8134 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
8135 (struct df_extract_ref): Remove.
8136 (union df_ref_d): Remove extract_ref member.
8137 (df_ref_create): Remove last three arguments.
8138 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8139 * df-scan.c (df_ref_record): Remove last three arguments, do not
8140 pass them to df_ref_create_structure.
8141 (df_uses_record): Remove first and last three arguments. Replace
8142 first argument with DF_REF_REGULAR, adjust calls to remove the
8143 width, offset and mode. Always call recursively on the second
8144 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
8145 (df_ref_create_structure): Remove first argument.
8146 (struct df_scan_problem_data): Remove ref_extract_pool.
8147 (df_scan_free_internal): Do not free it.
8148 (df_scan_alloc): Do not allocate it.
8149 (df_ref_create): Remove last three arguments, do not pass them to
8150 df_ref_create_structure.
8151 (df_free_ref): Remove DF_REF_EXTRACT case.
8152 (df_notes_rescan): Adjust call to df_uses_record.
8153 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
8154 Remove DF_REF_EXTRACT case.
8155 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
8156 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
8157 and SUBREG definitions.
8158 (df_get_conditional_uses): Remove references to width/offset/mode,
8159 adjust call to df_ref_create_structure.
8160 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8161 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
8162 calls to df_uses_record and df_ref_record.
8163 * fwprop.c (update_df): Remove references to width/offset/mode,
8164 adjust call to df_ref_create.
8165
8166 2010-09-03 Jan Hubicka <jh@suse.cz>
8167
8168 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
8169 (build_cdtor_fns): Update use of build_cdtor.
8170
8171 2010-09-03 Joseph Myers <joseph@codesourcery.com>
8172
8173 * doc/options.texi (SeparateAlias): Document.
8174 * opt-functions.awk (switch_flags): Handle SeparateAlias.
8175 * opth-gen.awk: Generate enumeration names for options marked
8176 SeparateAlias, but not for those marked Ignore.
8177 * opts-common.c (generate_canonical_option): Don't output separate
8178 argument for options marked CL_SEPARATE_ALIAS.
8179 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
8180 * opts.h (CL_SEPARATE_ALIAS): New.
8181 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8182 CL_COMMON): Adjust definitions.
8183 * config/i386/darwin.opt, config/mips/sde.opt: New.
8184 * common.opt (fdump-final-insns): New.
8185 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8186 i386/darwin.opt.
8187 (mips*-sde-elf*): Add mips/sde.opt.
8188 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
8189 -mno-data-in-code and -mcode-xonly here.
8190 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
8191 * gcc.c (option_map): Add "j" to --dump entry.
8192 (translate_options): Don't translate -d to -foutput-class-dir= here.
8193
8194 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
8195
8196 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
8197 DR_IS_WRITE.
8198 (compute_all_dependences): Same.
8199 (create_rdg_edge_for_ddr): Same.
8200 * tree-data-ref.h (DR_IS_WRITE): New.
8201 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
8202 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
8203 (write_memrefs_written_at_least_once): Same.
8204 * tree-predcom.c (suitable_component_p): Same.
8205 (determine_roots_comp): Same.
8206 (execute_load_motion): Same.
8207 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
8208 (vect_enhance_data_refs_alignment): Same.
8209 (vect_analyze_group_access): Same.
8210
8211 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
8212
8213 PR testsuite/42843
8214 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
8215 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
8216
8217 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
8218
8219 * dwarf2out.c (file scope): Remove #if0'd code.
8220 (gen_subprogram_die): Same.
8221
8222 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8223
8224 PR middle-end/45484
8225 * dwarf2out.c (flush_queued_reg_saves): Rename to...
8226 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
8227 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
8228 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
8229 * config/i386/i386.c (output_set_got): Call it.
8230
8231 2010-09-03 Michael Matz <matz@suse.de>
8232
8233 PR middle-end/45415
8234 * tree-sra.c (sra_modify_assign): If we modify the statement,
8235 say so.
8236
8237 * tree-ssa.c (verify_ssa): Check number of operands and links
8238 per statement to agree.
8239
8240 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8241 Iain Sandoe <iains@gcc.gnu.org>
8242
8243 PR target/45476
8244 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
8245 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
8246 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8247
8248 2010-09-03 Richard Guenther <rguenther@suse.de>
8249
8250 * lto-streamer-out.c (output_function): Output function
8251 start and end loci.
8252 * lto-streamer-in.c (input_function): Input function start
8253 and end loci.
8254
8255 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8256
8257 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
8258 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
8259 * configure: Regenerate.
8260 * aclocal.m4: Regenerate.
8261
8262 2010-09-03 Jan Hubicka <jh@suse.cz>
8263
8264 PR lto/44812
8265 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
8266 on functions/variables in other partition.
8267
8268 2010-09-03 Jan Hubicka <jh@suse.cz>
8269
8270 * cgraph.h (struct varpool_node): Add const_value_known.
8271 (varpool_decide_const_value_known): Declare.
8272 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
8273 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
8274 (input_varpool_node): Restore const_value_known.
8275 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
8276 initializer folding.
8277 * ipa.c (ipa_discover_readonly_nonaddressable_var,
8278 function_and_variable_visibility): Compute const_value_known.
8279 * gimple-fold.c (get_symbol_constant_value): Use varpool for
8280 initializer folding.
8281 * varpool.c (varpool_decide_const_value_known): New function.
8282
8283 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8284
8285 * config/i386/i386.md: Remove empty preparation statements
8286 from splitters.
8287
8288 2010-09-03 Jan Hubicka <jh@suse.cz>
8289
8290 * passes.c (rest_of_decl_compilation): Do not add local vars into
8291 varpool.
8292 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
8293 static or extern vars are in varpool.
8294 (varpool_finalize_decl): Sanity check that only static vars are
8295 finalized.
8296
8297 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8298
8299 PR debug/45500
8300 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
8301 not just generic vectors with BLKmode.
8302
8303 2010-09-03 Richard Guenther <rguenther@suse.de>
8304
8305 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
8306 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
8307 * tree.h (TMR_SYMBOL): Remove.
8308 (TMR_BASE, TMR_OFFSET): Adjust.
8309 (TMR_INDEX2): New.
8310 * alias.c (ao_ref_from_mem): Use TMR_BASE.
8311 * builtins.c (get_object_alignment): Merge TMR_BASE and
8312 TMR_SYMBOL handling.
8313 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
8314 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
8315 handling. Also allow TARGET_MEM_REF as base address.
8316 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
8317 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
8318 base. Gimplify TMR_INDEX2.
8319 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
8320 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8321 (get_addr_base_and_unit_offset): Likewise.
8322 * tree-eh.c (tree_could_trap_p): Likewise.
8323 * tree-pretty-print.c (dump_generic_node): Likewise.
8324 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
8325 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
8326 base to index2.
8327 (get_address_description): Reconstruct addres description
8328 from merged TMR_BASE and TMR_INDEX2.
8329 (maybe_fold_tmr): Fold propagated addresses.
8330 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
8331 MEM_REF and TARGET_MEM_REF paths.
8332 (indirect_refs_may_alias_p): Likewise.
8333 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
8334 instead of TMR_SYMBOL.
8335 * tree-ssa-operands.c (get_tmr_operands): Simplify.
8336 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
8337 according to changes ...
8338 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
8339 Split TARGET_MEM_REF into two fields plus the base.
8340 * tree.c (mem_ref_offset): Simplify.
8341 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
8342 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8343 Strip NOPs when folding MEM_REF addresses.
8344 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
8345 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
8346 (fold_gimple_assign): ... not here.
8347
8348 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
8349
8350 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
8351 * config/mips/mips.c (mips_shift_truncation_mask): New function.
8352 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8353
8354 2010-09-02 Richard Henderson <rth@redhat.com>
8355
8356 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
8357 instead of readelf in the test.
8358 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
8359 in the .debug_frame section for coff targets.
8360 * configure: Rebuild.
8361
8362 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8363
8364 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
8365 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
8366 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8367 (m32c_class_likely_spilled_p): Make static. Change argument type to
8368 reg_class_t. Change result type to bool.
8369
8370 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8371
8372 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
8373 to convert (double)(long) into a single FRIZ instruction or not
8374 when -ffast-math is used.
8375
8376 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
8377 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
8378 or FRIZ instruction if -ffast-math.
8379 * config/rs6000/rs6000.md (friz): Ditto.
8380
8381 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
8382
8383 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8384
8385 * opth-gen.awk (quote, comma): Remove unused variables.
8386
8387 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
8388
8389 * arm.c (arm_override_options): Correct fall-back code to use
8390 SUBTARGET_CPU_DEFAULT.
8391
8392 2010-09-02 Julian Brown <julian@codesourcery.com>
8393
8394 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
8395 unspecs.
8396 (vcond<mode>, vcondu<mode>): New expanders.
8397 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
8398 comparisons with zero.
8399 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
8400 * config/arm/constraints.md (Dz): New constraint.
8401
8402 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8403
8404 * target.def (class_likely_spilled_p): New hook.
8405 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
8406 * doc/tm.texi: Regenerate.
8407 * targhooks.c (default_class_likely_spilled_p): New function.
8408 * targhooks.h (default_class_likely_spilled_p): Declare.
8409 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
8410 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
8411 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
8412 Use fixed_reg_set instead of fixed_regs.
8413 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8414 * calls.c (avoid_likely_spilled_reg): Ditto.
8415 * ira-conflicts.c (ira_build_conflicts): Ditto.
8416 * ira.c (update_equiv_regs): Ditto.
8417 * mode-switching.c (create_pre_exit): Ditto.
8418 * regmove.c (find_matches): Ditto.
8419 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8420 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
8421 (small_register_class_p): New inline function.
8422 (push_secondary_reload, find_reusable_reload, find_reloads): Use
8423 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
8424
8425 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
8426 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
8427 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8428
8429 2010-09-02 Richard Guenther <rguenther@suse.de>
8430
8431 PR tree-optimization/44937
8432 PR tree-optimization/45412
8433 * ipa-split.c (split_function): Properly remove PHI nodes.
8434
8435 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8436
8437 * opts.h (struct cl_option): Add warn_message field.
8438 (struct cl_decoded_option): Add warn_message field.
8439 * doc/options.texi (Ignore, Warn): Document.
8440 * opt-functions.awk (needs_state_p): Don't consider aliases or
8441 ignored options to need state saved.
8442 * optc-gen.awk: Handle Warn and Ignore.
8443 * opth-gen.awk: Output OPT_SPECIAL_ignore.
8444 * opts-common.c (decode_cmdline_option): Set warn_message field.
8445 Handle ignored options.
8446 (decode_cmdline_options_to_array, generate_option,
8447 generate_option_input_file): Set warn_message field.
8448 (read_cmdline_option): Generate warnings from warn_message field.
8449 Handle ignored options.
8450 * common.opt (Wunreachable-code, fargument-alias,
8451 fargument-noalias, fargument-noalias-global,
8452 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
8453 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
8454 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
8455 ftree-salias): Mark Ignore.
8456 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
8457 -mintel-syntax and -mno-intel-syntax here.
8458 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
8459 using Warn.
8460 * opts.c (common_handle_option): Don't handle options marked as
8461 ignored.
8462 (enable_warning_as_error): Handle ignored options.
8463
8464 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8465
8466 PR driver/44076
8467 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
8468 alias_target fields.
8469 * opt-functions.awk (opt_sanitized_name): Don't handle
8470 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
8471 * optc-gen.awk: Generate alias fields.
8472 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
8473 Don't generate such constants for aliases.
8474 * opts-common.c (generate_canonical_option): New.
8475 (decode_cmdline_option): Handle aliases. Use
8476 generate_canonical_option for known options instead of copying the
8477 input option text.
8478 * doc/options.texi (Alias): Document.
8479 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
8480 fstack-check, specs): Mark as aliases.
8481 * gcc.c (driver_handle_option): Canonicalize -L options to joined
8482 arguments.
8483 (driver_handle_option): Don't handle OPT_specs.
8484 * opts.c (common_handle_option): Don't handle options marked as
8485 aliases.
8486 (enable_warning_as_error): Handle aliases.
8487 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
8488 OPT_Wlarger_than_eq.
8489 * tree-optimize.c (tree_rest_of_compilation): Use
8490 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
8491
8492 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8493
8494 * config/i386/i386.md (nonmemory_operand): New mode attribute.
8495 (push memory peephole2): Macroize peepholes using SWI mode iterator.
8496 (move immediate to memory peephole2): Macroize peepholes using
8497 SWI124 mode iterator.
8498 (non-pairable NOT peephole2): Macroize peepholes using SWI124
8499 mode iterator.
8500 (simple lea add peephole2): Macroize peepholes using SWI48
8501 mode iterator.
8502 (simple lea mult peephole2): Ditto.
8503 (imul by 3,5,9 to lea peephole2): Ditto.
8504 (mov $-1, reg peephole2): Macroize peepholes using SWI248
8505 mode iterator.
8506 (imul $32bit_imm,mem,reg peephole2): Ditto.
8507 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
8508
8509 2010-09-02 Ian Bolton <ian.bolton@arm.com>
8510
8511 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
8512
8513 2010-09-02 Olivier Hainque <hainque@adacore.com>
8514
8515 PR middle-end/44763
8516 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
8517 (allocno_priority_compare_func): Use it instead of a straight
8518 difference computation over priorities.
8519
8520 2010-09-02 Andi Kleen <ak@linux.intel.com>
8521
8522 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
8523
8524 2010-09-02 Ira Rosen <irar@il.ibm.com>
8525
8526 * tree-vectorizer.h (get_later_stmt): New function.
8527 (vect_analyze_data_ref_dependences): Add argument.
8528 * tree-vect-loop.c (vect_analyze_loop): Update call to
8529 vect_analyze_data_ref_dependences.
8530 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
8531 New function.
8532 (vect_analyze_data_ref_dependence): Add argument for basic block
8533 dependencies. Check dependencies in basic block vectorization.
8534 (vect_analyze_data_ref_dependences): Add argument and update call to
8535 vect_analyze_data_ref_dependences.
8536 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
8537 (vect_bb_vectorizable_with_dependencies): New.
8538 (vect_slp_analyze_bb): Check dependencies in basic block.
8539 (vect_schedule_slp_instance): Insert stores before the last store in
8540 SLP instance.
8541
8542 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8543
8544 PR target/45476
8545 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
8546 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8547
8548 2010-09-01 Jakub Jelinek <jakub@redhat.com>
8549
8550 PR middle-end/45458
8551 * bb-reorder.c (add_labels_and_missing_jumps): Treat
8552 bbs ending with throwing insns like blocks ending with a call.
8553 (fix_up_fall_thru_edges): Likewise.
8554
8555 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
8556
8557 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
8558 (m32c_function_arg_advance): Delete.
8559 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8560 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
8561 comments. Take a const_tree and a bool. Declare.
8562 (m32c_function_arg_advance): Likewise.
8563 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8564
8565 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8566
8567 PR target/45476
8568 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
8569 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
8570 * config/i386/mingw32.h: ... here.
8571
8572 2010-09-01 Andi Kleen <ak@linux.intel.com>
8573
8574 PR lto/45475
8575 * lto-streamer-in.c (lto_input_ts_target_option): Add.
8576 (lto_input_tree_pointers): Call lto_input_ts_target_option.
8577 * lto-streamer-out (lto_output_ts_target_option): Add.
8578 (lto_output_tree_pointers): Call lto_output_ts_target_option.
8579
8580 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
8581
8582 PR/target 45452
8583 * config/i386/cygwin.h: Change order of specified import libraries.
8584 * config/i386/mingw32.h: Likewise.
8585 * config/i386/t-cygwin: Likewise.
8586 * config/i386/t-mingw32: Likewise.
8587 * config/i386/t-mingw-w32: Likewise.
8588 * config/i386/t-mingw-w64: Likewise.
8589
8590 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8591
8592 * config/arm/neon-schedgen.ml (core): New type.
8593 (allCores): List of supported cores.
8594 (availability_table): Add supported cores.
8595 (collate_bypasses): Accept core as a parameter.
8596 (worst_case_latencies_and_bypasses): Accept core as a parameter.
8597 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
8598 and coreStr to get tune attribute and prefix for functional units.
8599 (emit_bypasses): Accept core name and use it.
8600 (calculate_per_core_availability_table): New.
8601 (filter_core): New.
8602 (calculate_core_availability_table): New.
8603 (main): Use calculate_core_availablity_table.
8604 * config/arm/cortex-a8-neon.md: Update copyright year.
8605 Regenerated from ml file and merged in.
8606 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
8607 cortex_a8_neon_mrc.
8608
8609 2010-09-01 Ian Bolton <ian.bolton@arm.com>
8610
8611 * Makefile.in (tree-switch-conversion.o): Update dependencies.
8612
8613 2010-09-01 Richard Guenther <rguenther@suse.de>
8614
8615 * alias.c (ao_ref_from_mem): Adjust.
8616 * builtins.c (get_object_alignment): Likewise.
8617 * cfgexpand.c (expand_debug_expr): Likewise.
8618 * gimple.c (get_base_address): Likewise.
8619 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8620 (get_addr_base_and_unit_offset): Likewise. Fix for
8621 both TMR_SYMBOL and TMR_BASE being set.
8622 * tree-eh.c (tree_could_trap_p): Likewise.
8623 * gimplify.c (gimplify_expr): Do not attempt to gimplify
8624 TMR_SYMBOL. Always gimplify TMR_BASE.
8625 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8626 TMR_BASE if there is a TMR_SYMBOL.
8627 * tree-pretty-print.c (dump_generic_node): Adjust.
8628 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8629 (tree_mem_ref_addr): Likewise.
8630 (create_mem_ref_raw): Likewise.
8631 (move_fixed_address_to_symbol): Likewise.
8632 (create_mem_ref): Likewise.
8633 (dump_mem_address): Likewise.
8634 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
8635 Fix for both TMR_SYMBOL and TMR_BASE being set.
8636 (indirect_refs_may_alias_p): Likewise.
8637 * tree-ssa-operands.c (get_tmr_operands): Adjust.
8638 * tree.def (TARGET_MEM_REF): Adjust documentation.
8639
8640 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8641
8642 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
8643 Rename from X86_TUNE_ADD_ESP_4.
8644 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
8645 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
8646 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
8647 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
8648 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
8649 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
8650 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
8651 * config/i386/i386.c (initial_ix86_tune_features)
8652 <X86_TUNE_SINGLE_POP>: Invert members.
8653 <X86_TUNE_DOUBLE_POP>: Ditto.
8654 <X86_TUNE_SINGLE_PUSH>: Ditto.
8655 <X86_TUNE_DOUBLE_PUSH>: Ditto.
8656 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
8657 No longer exported.
8658 (push peephole2 patterns): Macroize peepholes using P mode iterator.
8659 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
8660 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
8661 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
8662
8663 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
8664
8665 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
8666 a volatile LHS if the constructor has only one element.
8667
8668 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
8669
8670 PR bootstrap/45321
8671 * tree.c (stdarg_p): Make fntype parameter const.
8672 * tree.h (stdarg_p): Likewise.
8673 (function_args_iterator): Remove unused fntype field.
8674 (function_args_iter_init): Do not initialize fntype
8675 field. Make fntype parameter const.
8676
8677 2010-09-01 Richard Guenther <rguenther@suse.de>
8678
8679 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
8680 estimate.
8681 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
8682 (execute_vrp): Compute number of iteration estimates.
8683 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
8684 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
8685 * tree-data-ref.c (estimated_loop_iterations): Adjust.
8686 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
8687 Infer loop bounds from undefined behavior based on a new parameter.
8688 (estimate_numbers_of_iterations): Likewise.
8689 (scev_probably_wraps_p): Adjust.
8690 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
8691
8692 2010-09-01 Nick Clifton <nickc@redhat.com>
8693
8694 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
8695 where appropriate.
8696 (xstormy16_legitimate_address_p): Use true and false instead of 1
8697 and 0.
8698 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
8699 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
8700 magic constant 2.
8701 (xstormy16_expand_call): Fix comment at start of function.
8702
8703 2010-09-01 Nick Clifton <nickc@redhat.com>
8704
8705 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
8706 when pushing accumulator register.
8707 (rx_get_stack_layout): Always save call clobbered registers inside
8708 interrupt handlers.
8709 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
8710
8711 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8712
8713 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
8714 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
8715
8716 * libgcc-std.ver (GCC_4.6.0): Define version.
8717
8718 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8719
8720 * tree-nested.c (convert_all_function_calls): Iterate until after the
8721 sum of static chains in the nest doesn't change.
8722
8723 2010-08-31 Anatoly Sokolov <aesok@post.ru>
8724
8725 * config/m32c/m32c.c (classes_intersect): Remove.
8726 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
8727 reg_classes_intersect_p instead of classes_intersect.
8728 (class_can_hold_mode): Change arguments type from enum reg_class to
8729 reg_class_t. Use reg_class_contents instead of class_contents.
8730 (m32c_register_move_cost): Make static. Change arguments type from
8731 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
8732 classes_intersect. Use reg_class_contents instead of class_contents.
8733 (m32c_memory_move_cost): Make static. Change arguments type from
8734 enum reg_class to reg_class_t.
8735 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8736 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8737 * config/m32c/m32c-protos.h (m32c_register_move_cost,
8738 m32c_memory_move_cost): Remove.
8739
8740 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8741
8742 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
8743 (arm_function_arg): Delete.
8744 (arm_needs_doubleword_align): Take a const_tree.
8745 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8746 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
8747 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
8748 (arm_function_arg): Make static. Take a const_tree and a bool.
8749 (arm_function_arg_advance): Likewise.
8750 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8751
8752 2010-08-31 Andi Kleen <ak@linux.intel.com>
8753
8754 * common.opt (fwhopr=): Update for -fwhopr=jobserver
8755 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
8756 * lto-wrapper.c (run_gcc): Add jobserver mode.
8757 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
8758 argument.
8759
8760 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
8761
8762 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
8763 (popsi1): Ditto.
8764 (*popdi1_epilogue): Ditto.
8765 (*popsi1_epilogue): Ditto.
8766 (popsi, popdi peephole2 patterns): Update peepholes for changed
8767 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
8768
8769 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
8770 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
8771
8772 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
8773 (override_options): Do not initialize removed ix86_gen_pop1.
8774 (gen_pop): New static function.
8775 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
8776 (release_scratch_register_on_entry): Ditto.
8777 (ix86_restore_reg_using_pop): Ditto.
8778 (ix86_expand_epilogue): Ditto.
8779
8780 2010-08-31 Jakub Jelinek <jakub@redhat.com>
8781
8782 PR middle-end/45461
8783 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
8784
8785 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8786
8787 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
8788 semicolons.
8789
8790 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8791
8792 * doc/extend.texi: Fix documentation of the return value of
8793 __builtin_choose_expr.
8794
8795 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8796
8797 * config/v850/v850-protos.h (function_arg): Delete.
8798 * config/v850/v850.h (FUNCTION_ARG): Delete.
8799 (FUNCTION_ARG_ADVANCE): Move code to...
8800 * config/v850/v850.c (v850_function_arg_advance): ...here.
8801 (v850_function_arg): Make static. Take a const_tree and a bool.
8802 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8803
8804 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8805
8806 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
8807 these...
8808 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8809 ...and these...
8810 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
8811 ..to here..
8812 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8813 ...and here.
8814 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8815
8816 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8817
8818 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
8819 Delete.
8820 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8821 * config/rx/rx.c (rx_function_arg_size): Make static.
8822 (rx_function_arg): Likewise.
8823 (rx_function_arg_advance): New function.
8824 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8825
8826 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
8827
8828 * config/arm/arm.c (arm_override_options): Remove superfluous test.
8829 Fix indentation.
8830
8831 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8832
8833 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
8834 (dwarf2out_decl) <CONST_DECL>: Likewise.
8835
8836 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
8837
8838 Stack usage support
8839 * common.opt (-fstack-usage): New option.
8840 * doc/invoke.texi (Debugging options): Document it.
8841 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
8842 allocate_dynamic_stack_space.
8843 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
8844 and propagate it to allocate_dynamic_stack_space.
8845 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
8846 * calls.c (initialize_argument_information): Pass TRUE as 4th
8847 argument to allocate_dynamic_stack_space.
8848 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
8849 to 1 when pushing a variable-sized argument onto the stack. Pass
8850 TRUE as 4th argument to allocate_dynamic_stack_space.
8851 Update current_function_pushed_stack_size.
8852 (emit_library_call_value_1): Likewise.
8853 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
8854 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
8855 attempt to find an upper bound. Remove redundant code for the
8856 SETJMP_VIA_SAVE_AREA case.
8857 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
8858 * function.h (struct stack_usage): New structure.
8859 (current_function_static_stack_size): New macro.
8860 (current_function_dynamic_stack_size): Likewise.
8861 (current_function_pushed_stack_size): Likewise.
8862 (current_function_dynamic_alloc_count): Likewise.
8863 (current_function_has_unbounded_dynamic_stack_size): Likewise.
8864 (current_function_allocates_dynamic_stack_space): Likewise.
8865 (struct function): Add new field 'su'.
8866 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
8867 add the value of the dynamic offset to the dynamic stack usage.
8868 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
8869 for variable-sized objects.
8870 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
8871 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
8872 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
8873 BUILT_IN_ALLOCA for variable-sized objects.
8874 * output.h (output_stack_usage): Declare.
8875 * toplev.c (stack_usage_file): New file pointer.
8876 (output_stack_usage): New function.
8877 (open_auxiliary_file): Likewise.
8878 (lang_dependent_init): Open file if flag_stack_usage is set.
8879 (finalize): Close file if stack_usage_file is not null.
8880 * tree.h (ALLOCA_FOR_VAR_P): New macro.
8881 * config/alpha/alpha.c (compute_frame_size): New function.
8882 (alpha_expand_prologue): Use it.
8883 (alpha_start_function): Likewise.
8884 (alpha_expand_epilogue): Likewise. Set stack usage info.
8885 * config/i386/i386.c (ix86_expand_prologue): Likewise.
8886 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8887 * config/mips/mips.c (mips_expand_prologue): Likewise.
8888 * config/pa/pa.c (hppa_expand_prologue): Likewise.
8889 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8890 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8891
8892 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
8893
8894 PR tree-optimization/45427
8895 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
8896 Handle the case that the exit is never taken correctly.
8897 (number_of_iterations_ne): Pass exit_must_be_taken to
8898 number_of_iterations_ne_max.
8899
8900 2010-08-30 Catherine Moore <clm@codesourcery.com>
8901
8902 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
8903 Infer -mdspr2 for the the 74K.
8904
8905 2010-08-30 Jakub Jelinek <jakub@redhat.com>
8906
8907 PR debug/45419
8908 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
8909
8910 PR middle-end/45423
8911 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
8912 and TRUTH_{AND,OR,XOR}_EXPR.
8913 * c-parser.c (c_parser_omp_atomic): Handle boolean
8914 {PRE,POST}_{INC,DEC}REMENT.
8915
8916 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
8917
8918 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
8919 (function_arg): Delete.
8920 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8921 (FUNCTION_INCOMING_ARG): Delete.
8922 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
8923 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
8924 and a bool.
8925 (function_arg): Rename to...
8926 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
8927 a bool.
8928 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
8929 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8930 (TARGET_FUNCTION_INCOMING_ARG): Define.
8931
8932 2010-08-30 Richard Guenther <rguenther@suse.de>
8933
8934 PR tree-optimization/21602
8935 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
8936 using points-to information.
8937
8938 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
8939
8940 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
8941
8942 2010-08-30 Richard Guenther <rguenther@suse.de>
8943
8944 PR tree-optimization/45449
8945 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
8946 variables.
8947
8948 2010-08-30 Joseph Myers <joseph@codesourcery.com>
8949
8950 * opts.h (CL_ERR_NEGATIVE): Define.
8951 * opts.c (unknown_option_callback): Don't postpone warnings for
8952 options marked with CL_ERR_NEGATIVE.
8953 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
8954 for negative versions of CL_REJECT_NEGATIVE options.
8955
8956 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
8957
8958 * config/i386/i386.md (zero_extendsidi2_1): Rename from
8959 zero_extendsidi2_32.
8960 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
8961 using SWI12 mode iterator.
8962 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
8963 to define_insn_and_split pattern.
8964 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
8965 using SWI24 mode iterator.
8966 (*zero_extendqi<mode>2_and): Macroize insn from
8967 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
8968 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
8969 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
8970 SWI24 mode iterator.
8971 (*zero_extendqi<mode>2_movzbl): Ditto from
8972 *zero_extendqi{hi,si}2_movzbl.
8973 (extendsidi2_1): Rename from extendsidi2_32.
8974 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
8975 SWI12 mode iterator.
8976
8977 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
8978
8979 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
8980 general purpose registers.
8981 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
8982 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
8983 with general purpose registers and memory operands. Add associated
8984 CCImode post-reload splitter.
8985 * config/ia64/div.md: Change BImode to CCImode throughout.
8986
8987 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
8988
8989 * config/ia64/ia64.md (cstorebi4): Fix thinko.
8990
8991 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
8992
8993 * config/picochip/picochip.c (reorder_var_tracking_notes): This
8994 function was dropping debug insns which caused PR45299.
8995
8996 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
8997
8998 * config/i386/sse.md (extsuffix): New code attribute.
8999 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
9000 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
9001 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
9002 and sse4_1_zero_extendv4qiv4si2.
9003 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
9004 and sse4_1_zero_extendv2qiv2di2.
9005 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
9006 and sse4_1_zero_extendv4hiv4si2.
9007 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
9008 and sse4_1_zero_extendv2hiv2di2.
9009 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
9010 and sse4_1_zero_extendv2siv2di2
9011
9012 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
9013 using any_extend code iterator.
9014 (*avx_<s>mulv8hi3_highpart): Macroize insn from
9015 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
9016 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
9017
9018 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
9019 gen_sse4_1_sign_extend* functions.
9020 (struct builtin_description bdesc_args): Ditto.
9021
9022 2010-08-27 Xinliang David Li <davidxl@google.com>
9023
9024 PR/45422
9025 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
9026 (iv_ca_set_no_cp): Update used inv expr count.
9027 (iv_ca_set_cp): Ditto.
9028 (iv_ca_new): Initialize new member.
9029 (iv_ca_free): Free memory.
9030
9031 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9032
9033 * config/sh/sh-protos.h (sh_function_arg): Delete.
9034 (sh_function_arg_advance): Delete.
9035 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9036 (PASS_IN_REG_P): Eliminate cast.
9037 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
9038 const_tree and a bool.
9039 (sh_function_arg): Likewise.
9040 (sh_output_mi_thunk): Call sh_function_arg_advance) and
9041 sh_function_arg.
9042 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9043
9044 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
9045 Kaz Kojima <kkojima@gcc.gnu.org>
9046
9047 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
9048 when possible.
9049 (sh_expand_epilogue): Likewise.
9050 * config/sh/sh.md (movml_push_banked): New insn.
9051 (movml_pop_banked): Likewise.
9052
9053 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
9054
9055 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
9056 gen_regexp_oneof, gen_regexp_sequence): Use the string found
9057 in vector element 0 rather than the original string when there's
9058 only one element.
9059 (gen_regexp): Remove extra semicolon.
9060
9061 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9062 thumb2_movsf_vfp): Set attribute "insn".
9063 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9064 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9065 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9066 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9067 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9068 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9069 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9070 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9071 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9072 if_not_arith, if_arith_not, cond_move_not): Likewise.
9073
9074 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9075
9076 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9077 New declaration.
9078 (rs6000_allocate_stack_temp): Ditto.
9079 (rs6000_expand_convert_si_to_sfdf): Ditto.
9080
9081 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9082 line. Update the options set if power6 or power7 server/embedded
9083 type options are used. If we give a warning for no vsx under
9084 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9085 (rs6000_allocate_stack_temp): New function to allocate a stack
9086 tempoary and adjust the address so it meets either REG+OFFSET or
9087 REG+REG addressing requirements.
9088 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9089 that they can be used with the LFIWAX/LFIWZX instrucitons.
9090 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9091 converting signed/unsigned SImode to either SFmode/DFmode.
9092
9093 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9094 whether certain instructions can be generated.
9095 (TARGET_FCTIDZ): Ditto.
9096 (TARGET_STFIWX): Ditto.
9097 (TARGET_LFIWAX): Ditto.
9098 (TARGET_LFIWZX): Ditto.
9099 (TARGET_FCFIDS): Ditto.
9100 (TARGET_FCFIDU): Ditto.
9101 (TARGET_FCFIDUS): Ditto.
9102 (TARGET_FCTIDUZ): Ditto.
9103 (TARGET_FCTIWUZ): Ditto.
9104
9105 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9106 (UNSPEC_FCTID): Ditto.
9107 (UNSPEC_LFIWAX): Ditto.
9108 (UNSPEC_LFIWZX): Ditto.
9109 (UNSPEC_FCTIWUZ): Ditto.
9110 (rreg): Use correct constraints.
9111 (SI_CONVERT_FP): New mode attribute for floating point conversion
9112 tests.
9113 (E500_CONVERT): Ditto.
9114 (lfiwax): New insns for converting from integer to floating point
9115 utilizing newer instructions. Attempt to optimize conversions
9116 that come from memory so that we don't load the value into a GPR,
9117 spill it to the stack and reload it into a FPR.
9118 (floatsi<mode>2_lfiwax): Ditto.
9119 (floatsi<mode>2_lfiwax_mem): Ditto.
9120 (floatsi<mode>2_lfiwax_mem2): Ditto.
9121 (lfiwzx): Ditto.
9122 (floatunssi<mode>2_lfiwzx): Ditto.
9123 (floatunssi<mode>2_lfiwzx_mem): Ditto.
9124 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
9125 (floatdidf2_mem): Ditto.
9126 (floatunsdidf2_fcfidu): Ditto.
9127 (floatunsdidf2_mem): Ditto.
9128 (floatunsdisf2): Ditto.
9129 (floatunsdisf2_fcfidus): Ditto.
9130 (floatunsdisf2_mem): Ditto.
9131 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
9132 Use FCFID on 32-bit hosts that support it.
9133 (floatsidf2_internal): Ditto.
9134 (floatunssisf2): Ditto.
9135 (floatunssidf2): Ditto.
9136 (floatunssidf2_internal): Ditto.
9137 (floatsisf2): Ditto.
9138 (floatdidf2): Ditto.
9139 (floatdidf2_fpr): Ditto.
9140 (floatunsdidf2): Ditto.
9141 (floatdisf2): Ditto.
9142 (floatdisf2_fcfids): Ditto.
9143 (floatdisf2_internal1): Ditto.
9144 (fixuns_truncsfsi2): Delete, merge into common pattern for both
9145 SF/DF. Add power7 support.
9146 (fix_truncsfsi2): Ditto.
9147 (fixuns_truncdfsi2): Ditto.
9148 (fixuns_truncdfdi2): Ditto.
9149 (fix_truncdfsi2): Ditto.
9150 (fix_truncdfsi2_internal): Ditto.
9151 (fix_truncdfsi2_internal_gfxopt): Ditto.
9152 (fix_truncdfsi2_mfpgpr): Ditto.
9153 (fctiwz): Ditto.
9154 (btruncdf2): Ditto.
9155 (btruncdf2_fpr): Ditto.
9156 (btructsf2): Ditto.
9157 (ceildf2): Ditto.
9158 (ceildf2_fpr): Ditto.
9159 (ceilsf2): Ditto.
9160 (floordf2): Ditto.
9161 (floordf2_fpr): Ditto.
9162 (floorsf2): Ditto.
9163 (rounddf2): Ditto.
9164 (rounddf2_fpr): Ditto.
9165 (roundsf2): Ditto.
9166 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
9167 (fix_trunc<mode>di2): Ditto.
9168 (fixuns_trunc<mode>si2): Ditto.
9169 (fixuns_trunc<mode>di2): Ditto.
9170 (fctiwz_<mode>): Ditto.
9171 (btrunc<mode>2): Ditto.
9172 (btrunc<mode>2_fpr): Ditto.
9173 (ceil<mode>2): Ditto.
9174 (ceil<mode>2_fpr): Ditto.
9175 (floor<mode>2): Ditto.
9176 (float<mode>2_fpr): Ditto.
9177 (round<mode>2): Ditto.
9178 (round<mode>2_fpr): Ditto.
9179 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
9180 (fixuns_trunc<mode>si2_stfiwx): Ditto.
9181 (fix_truncdfsi2_internal): Ditto.
9182 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
9183 converted value on stack, loaded into GPR, and then stored into
9184 the final destination.
9185 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
9186 FCTIDZ.
9187 (lrint<mode>di2): New insn, provide the lrint builtin functions.
9188 (ftruncdf2): Delete, unused.
9189 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
9190
9191 * config/rs6000/vsx.md (toplevel): Update copyright year.
9192 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
9193 (VSr3): Ditto.
9194
9195 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
9196 Jeremie Salvucci <jeremie.salvucci@free.fr>
9197
9198 * gengtype.c (output_type_enum): Test the right union member.
9199
9200 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
9201
9202 PR target/41484
9203 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
9204 operands for operand 1.
9205 (sse4_1_extendv4qiv4si2): Ditto.
9206 (sse4_1_extendv2qiv2di2): Ditto.
9207 (sse4_1_extendv4hiv4si2): Ditto.
9208 (sse4_1_extendv2hiv2di2): Ditto.
9209 (sse4_1_extendv2siv2di2): Ditto.
9210 (sse4_1_zero_extendv8qiv8hi2): Ditto.
9211 (sse4_1_zero_extendv4qiv4si2): Ditto.
9212 (sse4_1_zero_extendv2qiv2di2): Ditto.
9213 (sse4_1_zero_extendv4hiv4si2): Ditto.
9214 (sse4_1_zero_extendv2hiv2di2): Ditto.
9215 (sse4_1_zero_extendv2siv2di2): Ditto.
9216 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
9217 (*sse4_1_extendv4qiv4si2): Ditto.
9218 (*sse4_1_extendv2qiv2di2): Ditto.
9219 (*sse4_1_extendv4hiv4si2): Ditto.
9220 (*sse4_1_extendv2hiv2di2): Ditto.
9221 (*sse4_1_extendv2siv2di2): Ditto.
9222 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
9223 (*sse4_1_zero_extendv4qiv4si2): Ditto.
9224 (*sse4_1_zero_extendv2qiv2di2): Ditto.
9225 (*sse4_1_zero_extendv4hiv4si2): Ditto.
9226 (*sse4_1_zero_extendv2hiv2di2): Ditto.
9227 (*sse4_1_zero_extendv2siv2di2): Ditto.
9228
9229 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9230
9231 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
9232 (mips_function_arg): Delete.
9233 (mips_function_arg_boundary): Take a const_tree.
9234 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
9235 (mips_arg_info): Likewise.
9236 (mips_setup_incoming_varargs): Call mips_function_arg_advance
9237 instead of FUNCTION_ARG_ADVANCE.
9238 (mips_function_arg_advance): Adjust prototype. Make static.
9239 (mips_function_arg): Likewise.
9240 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9241 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9242
9243 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9244
9245 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9246 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
9247 (function_arg): Delete.
9248 (function_arg_boundary): Take a const_tree.
9249 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
9250 (rs6000_spe_function_arg): Likewise.
9251 (rs6000_parm_start): Likewise.
9252 (rs6000_arg_size): Likewise.
9253 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
9254 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
9255 (rs6000_mixed_function_arg): Likewise.
9256 (function_arg): Rename to...
9257 (rs6000_function_arg): ...this.
9258 (function_arg_advance): Rename to...
9259 (rs6000_function_arg_advance_1): ...this
9260 (rs6000_function_arg_advance): New function. Call it.
9261 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
9262 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
9263 (rs6000_function_value): Likewise.
9264 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9265
9266 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9267
9268 * config/arm/arm.md (enabled): Test the value of arch_enabled
9269 rather than just using it.
9270
9271 2010-08-27 Olivier Hainque <hainque@adacore.com>
9272 Eric Botcazou <ebotcazou@adacore.com>
9273
9274 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
9275 cover all the possible offsets from this base.
9276 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
9277
9278 2010-08-26 Jakub Jelinek <jakub@redhat.com>
9279
9280 PR tree-optimization/44485
9281 * calls.c (flags_from_decl_or_type): For const or pure
9282 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
9283 together with ECF_CONST resp. ECF_PURE.
9284 * builtins.c (expand_builtin): Use flags_from_decl_or_type
9285 instead of querying flags directly.
9286 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
9287 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9288
9289 2010-08-26 Richard Guenther <rguenther@suse.de>
9290
9291 PR tree-optimization/45255
9292 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
9293 and externals are also invariant.
9294
9295 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9296
9297 PR rtl-optimization/44858
9298 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
9299 newi2pat, make sure they don't affect newpat.
9300
9301 PR rtl-optimization/45400
9302 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
9303 SUBREG_REG if both modes are of MODE_INT class.
9304
9305 2010-08-25 Julian Brown <julian@codesourcery.com>
9306
9307 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
9308 * config/arm/arm.md (generic_sched): No for Cortex-A5.
9309 (generic_vfp): Likewise.
9310 (cortex-a5.md): Include.
9311 * config/arm/cortex-a5.md: New.
9312
9313 2010-08-25 Richard Guenther <rguenther@suse.de>
9314
9315 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
9316 * gimple.c (gimple_get_alias_set): Remove special handling
9317 for pointers.
9318
9319 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
9320
9321 PR middle-end/45355
9322 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
9323 dead_or_set_p when computing i0_feeds_i2_n.
9324
9325 * combine.c (find_split_point): Undo canonicalization of multiply-add
9326 to (minus x (mult)) when it seems likely that this will increase the
9327 chances of a split.
9328
9329 2010-08-25 Richard Guenther <rguenther@suse.de>
9330
9331 PR lto/44562
9332 * lto-streamer.c (lto_record_common_node): Do not mess with
9333 TYPE_CANONICAL when not in lto.
9334 * gimple.c (gimple_register_type): Likewise.
9335
9336 2010-08-25 Richard Guenther <rguenther@suse.de>
9337
9338 PR tree-optimization/45316
9339 * tree-ssa-pre.c (eliminate): Properly clean EH info.
9340
9341 2010-08-25 Richard Guenther <rguenther@suse.de>
9342
9343 PR tree-optimization/45393
9344 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
9345 and clean EH info. Avoid SSA update.
9346 (execute_cse_sincos): Cleanup the CFG if it has changed.
9347
9348 2010-08-25 Richard Guenther <rguenther@suse.de>
9349
9350 PR middle-end/45379
9351 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
9352 TARGET_MEM_REF in alignment computation.
9353
9354 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9355
9356 PR tree-optimization/45059
9357 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
9358 type conversions from newop{1,2}. Assert t is a comparison and
9359 newop{1,2} after the stripping are gimple vals.
9360
9361 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
9362
9363 * config/arm/iterators.md (VU, SE, V_widen_l): New.
9364 (V_unpack, US): New.
9365 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
9366 (vec_unpack<US>_lo_<mode>): Likewise.
9367 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
9368 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9369 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
9370 (vec_widen_<US>mult_hi_<mode>): Likewise.
9371 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
9372 (neon_vec_<US>mult_hi_<mode>"): Likewise.
9373 (neon_unpack<US>_<mode>): Widening move intermediate step for
9374 vectorizing without -mvectorize-with-neon-quad.
9375 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
9376 for vectorizing without -mvectorize-with-neon-quad.
9377 * config/arm/predicates.md (vect_par_constant_high): Check for
9378 high-half lanes of a vector.
9379 (vect_par_constant_low): Check for low-half lanes of a vector.
9380
9381 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9382
9383 * tree-if-conv.c (struct ifc_dr): New.
9384 (IFC_DR): New.
9385 (DR_WRITTEN_AT_LEAST_ONCE): New.
9386 (DR_RW_UNCONDITIONALLY): New.
9387 (memref_read_or_written_unconditionally): Use the cached values
9388 when possible.
9389 (write_memref_written_at_least_once): Same.
9390 (if_convertible_loop_p): Initialize and free DR->aux fields.
9391
9392 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9393
9394 * gimple.c (gimple_could_trap_p_1): Not static anymore.
9395 Pass an extra bool parameter include_mem.
9396 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
9397 (gimple_assign_rhs_could_trap_p): Same.
9398 * gimple.h (gimple_could_trap_p_1): Declared.
9399 * tree-data-ref.h (same_data_refs_base_objects): New.
9400 (same_data_refs): New.
9401 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
9402 (write_memrefs_written_at_least_once): New.
9403 (ifcvt_memrefs_wont_trap): New.
9404 (operations_could_trap): New.
9405 (ifcvt_could_trap_p): New.
9406 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
9407 Gets a vector of data refs.
9408 (if_convertible_stmt_p): Same.
9409 (if_convertible_loop_p_1): New.
9410 (if_convertible_loop_p): Call if_convertible_loop_p_1.
9411
9412 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9413
9414 * common.opt (ftree-loop-if-convert-stores): New flag.
9415 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
9416 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
9417 the created statement before GSI.
9418 (if_convertible_phi_p): Allow virtual phi nodes when
9419 flag_loop_if_convert_stores is set.
9420 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
9421 Do not handle types that do not match is_gimple_reg_type.
9422 Remove loop and bb parameters. Call gimple_could_trap_p instead of
9423 when flag_loop_if_convert_stores is set, as LHS can contain
9424 memory refs.
9425 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
9426 to if_convertible_gimple_assign_stmt_p.
9427 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
9428 (replace_phi_with_cond_gimple_assign_stmt): Renamed
9429 predicate_scalar_phi. Do not handle virtual phi nodes.
9430 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
9431 Call predicate_scalar_phi.
9432 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
9433 just after the labels for flag_loop_if_convert_stores, otherwise
9434 insert the predicate in the end of the BB.
9435 (predicate_mem_writes): New.
9436 (combine_blocks): Call predicate_all_scalar_phis. When
9437 flag_loop_if_convert_stores is set, call predicate_mem_writes.
9438 (tree_if_conversion): Call mark_sym_for_renaming when
9439 flag_loop_if_convert_stores is set.
9440 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
9441 flag_loop_if_convert_stores is set.
9442
9443 2010-08-24 Anatoly Sokolov <aesok@post.ru>
9444
9445 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
9446 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
9447 (pa_function_value): Make static.
9448 (override_options): Rename to...
9449 (pa_option_override): ...this. Make static.
9450 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
9451 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
9452 TARGET_OPTION_OVERRIDE): Define.
9453 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
9454 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
9455 Remove.
9456 * config/pa/pa-protos.h (override_options): Remove.
9457
9458 2010-08-24 Richard Guenther <rguenther@suse.de>
9459
9460 PR middle-end/45379
9461 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
9462 if addr->index is NULL or zero.
9463 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
9464 TARGET_MEM_REF more properly.
9465 (indirect_ref_may_alias_decl_p): Likewise.
9466 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
9467 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
9468
9469 2010-08-23 Anatoly Sokolov <aesok@post.ru>
9470
9471 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
9472 (m32c_override_options): Rename to...
9473 (m32c_option_override): ...this. Make static.
9474 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
9475 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
9476 Remove.
9477 * config/m32c/m32c-protos.h (m32c_override_options,
9478 m32c_function_value_regno_p): Remove.
9479
9480 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9481
9482 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
9483 Fix a typo in a previous commit.
9484
9485 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
9486
9487 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
9488 Pre-initialize innerloop_iters to one.
9489
9490 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9491
9492 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
9493 existing static function global.
9494
9495 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
9496 is changed to global.
9497
9498 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
9499 may_be_nonaddressable_p on base, and don't collect this reference
9500 if the address of the base could not be taken.
9501
9502 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9503
9504 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
9505 enable the compiler to autovectorize mathmetical functions for
9506 power7 using the Mathematical Acceleration Subsystem library.
9507
9508 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
9509 handle which vector math library we have.
9510 (rs6000_override_options): Add -mveclibabi=mass support.
9511 (rs6000_builtin_vectorized_libmass): New function to handle auto
9512 vectorizing math functions that are in the MASS library.
9513 (rs6000_builtin_vectorized_function): Call it.
9514
9515 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9516 -mveclibabi=mass.
9517
9518 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9519
9520 PR boehm-gc/34544
9521 * gthr-posix.h (__gthread_active_init): Delete.
9522 (__gthread_active_p): Do activity check here.
9523 Don't include errno.h on hppa-hpux. Update comment.
9524 * gthr-posix95.h (__gthread_active_init): Delete.
9525 (__gthread_active_p): Do activity check here.
9526 Don't include errno.h on hppa-hpux. Update comment.
9527 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
9528 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
9529 add -lpthread when -mt or -pthread is specified.
9530 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
9531 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9532 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
9533 (stublib.c, pthread_default_stacksize_np-stub.o,
9534 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
9535 $(T)libgcc_stub.a): Add methods.
9536 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
9537 (stublib.c, pthread_default_stacksize_np-stub.o,
9538 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
9539 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9540 pthread_mutex_unlock): New stubs.
9541
9542 2010-08-22 Joseph Myers <joseph@codesourcery.com>
9543
9544 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
9545 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
9546 options.
9547 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
9548 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
9549 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
9550 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
9551 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
9552 "-l".
9553 * cppspec.c: Include opts.h.
9554 (lang_specific_driver): Use cl_decoded_option structures.
9555 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
9556 * doc/tm.texi: Regenerate.
9557 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
9558 (driver_handle_option): Allow driver options needing no special
9559 processing.
9560 (process_command): Decode options before call to
9561 lang_specific_driver. Pass decoded options to
9562 lang_specific_driver.
9563 * gcc.h (lang_specific_driver): Update prototype.
9564 * gccspec.c: Include opts.h.
9565 (lang_specific_driver): Use cl_decoded_option structures.
9566 * opts-common.c (option_ok_for_language, generate_option,
9567 generate_option_input_file): New.
9568 (decode_cmdline_option): Use option_ok_for_language.
9569 (decode_cmdline_options_to_array): Use generate_option_input_file.
9570 (handle_generated_option): Use generate_option.
9571 * opts.h (generate_option, generate_option_input_file): Declare.
9572
9573 2010-08-22 Anatoly Sokolov <aesok@post.ru>
9574
9575 * config/mips/mips.c (mips_override_options): Rename to...
9576 (mips_option_override): ...this. Make static.
9577 (TARGET_OPTION_OVERRIDE): Define.
9578 (mips_in_small_data_p): Update comment.
9579 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
9580 (FIXED_REGISTERS): Update comment.
9581 * config/mips/mips-protos.h (mips_override_options): Remove.
9582
9583 2010-08-21 Olivier Hainque <hainque@adacore.com>
9584
9585 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
9586
9587 2010-08-21 Olivier Hainque <hainque@adacore.com>
9588
9589 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
9590 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
9591
9592 2010-08-20 Jan Hubicka <jh@suse.cz>
9593
9594 * tree-pass.h (pass_ipa_cdtor_merge): New function.
9595 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
9596 heap allocated.
9597 (record_cdtor_fn): Move to ipa.c; do not test for
9598 have_ctors_dtors.
9599 (build_cdtor): Move to ipa.c; add code avoiding construction
9600 when target have ctors/dtors and there is only one ctor/dtor at given
9601 priority.
9602 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
9603 sort; reverse order of constructors.
9604 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
9605 (cgraph_finalize_function): Do not call record_cdtor_fn.
9606 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
9607 (cgraph_build_static_cdtor): Move to ipa.c.
9608 * ipa.c: Include target.h and tree-iterator.h.
9609 (cgraph_build_static_cdtor, static_ctors, static_dtors,
9610 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
9611 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
9612 pass_ipa_cdtor_merge): New.
9613 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
9614 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
9615 bounds access.
9616
9617 2010-08-20 Jan Hubicka <jh@suse.cz>
9618
9619 PR c++/45307
9620 PR c++/17736
9621 * cgraph.h (cgraph_only_called_directly_p,
9622 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
9623 static cdtors.
9624 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
9625 are not needed.
9626 (cgraph_finalize_function): Static cdtors are reachable.
9627 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
9628
9629 2010-08-20 Jan Hubicka <jh@suse.cz>
9630
9631 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
9632 flag_wpa.
9633 * lto-streamer-out.c (lto_output): Likewise.
9634 * passes.c (ipa_write_optimization_summaries): Initialize statement
9635 uids.
9636
9637 2010-08-20 Olivier Hainque <hainque@adacore.com>
9638
9639 * tree.h (alias_diag_flags): New enum.
9640 (alias_pair): Add an 'emitted_diags' field.
9641 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
9642 (assemble_alias): Initialize emitted_diags of new pairs.
9643
9644 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
9645
9646 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9647 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9648 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9649 (STACK_CHECK_PROTECT): Define.
9650 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
9651 (output_probe_stack_range): Likewise.
9652 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
9653 builtin stack checking is enabled.
9654 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
9655 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9656 (probe_stack_range): New insn.
9657
9658 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
9659
9660 PR target/45336
9661 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
9662 short first.
9663
9664 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
9665 char first.
9666
9667 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9668
9669 PR target/45336
9670 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
9671 to cover zero extension into 64-bit register.
9672 (*sse2_pextrw): Likewise.
9673 (*sse4_1_pextrd_zext): New insn.
9674
9675 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9676
9677 revert r163410, partially revert r163267.
9678 * config/rs6000/darwin.h (LIB_SPEC): Remove.
9679 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
9680 Darwin versions.
9681
9682 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9683
9684 PR middle-end/44974
9685 * builtins.c (expand_builtin): Don't optimize away
9686 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
9687
9688 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
9689
9690 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
9691 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
9692 alternative 1 of operand 2.
9693
9694 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9695 Paolo Bonzini <bonzini@gnu.org>
9696
9697 * simplify-rtx.c (simplify_unary_operation_1): Optimize
9698 (sign_extend (zero_extend (...)) and
9699 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
9700
9701 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9702
9703 PR rtl-optimization/45353
9704 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
9705 after bb_note is a BARRIER.
9706
9707 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9708
9709 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
9710 linking libgcc.a.
9711
9712 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9713 Michael Matz <matz@suse.de>
9714
9715 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
9716
9717 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9718
9719 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
9720 (ggc_mark_roots): ...here.
9721
9722 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9723
9724 * vec.h (FOR_EACH_VEC_ELT): Define.
9725 * c-decl.c: Use it.
9726 * cfgloop.c: Likewise.
9727 * cfgloopmanip.c: Likewise.
9728 * cgraph.c: Likewise.
9729 * cgraphunit.c: Likewise.
9730 * combine.c: Likewise.
9731 * config/bfin/bfin.c: Likewise.
9732 * config/mips/mips.c: Likewise.
9733 * config/rs6000/rs6000.c: Likewise.
9734 * dbxout.c: Likewise.
9735 * df-scan.c: Likewise.
9736 * dominance.c: Likewise.
9737 * dse.c: Likewise.
9738 * dwarf2out.c: Likewise.
9739 * except.c: Likewise.
9740 * expr.c: Likewise.
9741 * function.c: Likewise.
9742 * gcse.c: Likewise.
9743 * genattr.c: Likewise.
9744 * ggc-common.c: Likewise.
9745 * gimplify.c: Likewise.
9746 * graphite-blocking.c: Likewise.
9747 * graphite-clast-to-gimple.c: Likewise.
9748 * graphite-dependences.c: Likewise.
9749 * graphite-interchange.c: Likewise.
9750 * graphite-poly.c: Likewise.
9751 * graphite-scop-detection.c: Likewise.
9752 * graphite-sese-to-poly.c: Likewise.
9753 * graphite.c: Likewise.
9754 * haifa-sched.c: Likewise.
9755 * ifcvt.c: Likewise.
9756 * implicit-zee.c: Likewise.
9757 * ipa-prop.c: Likewise.
9758 * ipa-struct-reorg.c: Likewise.
9759 * ipa.c: Likewise.
9760 * ira-build.c: Likewise.
9761 * ira-color.c: Likewise.
9762 * ira-emit.c: Likewise.
9763 * lambda-code.c: Likewise.
9764 * loop-invariant.c: Likewise.
9765 * loop-unroll.c: Likewise.
9766 * lower-subreg.c: Likewise.
9767 * lto-cgraph.c: Likewise.
9768 * lto-opts.c: Likewise.
9769 * lto-streamer-in.c: Likewise.
9770 * lto-streamer-out.c: Likewise.
9771 * lto-streamer.c: Likewise.
9772 * lto-symtab.c: Likewise.
9773 * matrix-reorg.c: Likewise.
9774 * opts.c: Likewise.
9775 * predict.c: Likewise.
9776 * print-tree.c: Likewise.
9777 * sdbout.c: Likewise.
9778 * sel-sched-dump.c: Likewise.
9779 * sel-sched-ir.c: Likewise.
9780 * sel-sched.c: Likewise.
9781 * sese.c: Likewise.
9782 * stor-layout.c: Likewise.
9783 * tree-cfg.c: Likewise.
9784 * tree-cfgcleanup.c: Likewise.
9785 * tree-chrec.c: Likewise.
9786 * tree-data-ref.c: Likewise.
9787 * tree-emutls.c: Likewise.
9788 * tree-inline.c: Likewise.
9789 * tree-into-ssa.c: Likewise.
9790 * tree-loop-distribution.c: Likewise.
9791 * tree-loop-linear.c: Likewise.
9792 * tree-mudflap.c: Likewise.
9793 * tree-outof-ssa.c: Likewise.
9794 * tree-parloops.c: Likewise.
9795 * tree-predcom.c: Likewise.
9796 * tree-pretty-print.c: Likewise.
9797 * tree-scalar-evolution.c: Likewise.
9798 * tree-ssa-live.c: Likewise.
9799 * tree-ssa-loop-im.c: Likewise.
9800 * tree-ssa-loop-ivcanon.c: Likewise.
9801 * tree-ssa-loop-ivopts.c: Likewise.
9802 * tree-ssa-loop-manip.c: Likewise.
9803 * tree-ssa-loop-niter.c: Likewise.
9804 * tree-ssa-loop-prefetch.c: Likewise.
9805 * tree-ssa-phiprop.c: Likewise.
9806 * tree-ssa-pre.c: Likewise.
9807 * tree-ssa-reassoc.c: Likewise.
9808 * tree-ssa-sccvn.c: Likewise.
9809 * tree-ssa-structalias.c: Likewise.
9810 * tree-ssa.c: Likewise.
9811 * tree-vect-data-refs.c: Likewise.
9812 * tree-vect-loop-manip.c: Likewise.
9813 * tree-vect-loop.c: Likewise.
9814 * tree-vect-patterns.c: Likewise.
9815 * tree-vect-slp.c: Likewise.
9816 * tree-vect-stmts.c: Likewise.
9817 * tree-vrp.c: Likewise.
9818 * tree.c: Likewise.
9819 * value-prof.c: Likewise.
9820 * var-tracking.c: Likewise.
9821 * varasm.c: Likewise.
9822 * vmsdbgout.c: Likewise.
9823
9824 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
9825 Richard Guenther <richard.guenther@gmail.com>
9826
9827 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
9828 copy the src value and return a copy.
9829 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
9830 (C++ Volatiles): Adjust to describe C++ semantics only.
9831
9832 2010-08-20 Joseph Myers <joseph@codesourcery.com>
9833
9834 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
9835 be zero or nonzero.
9836 * doc/tm.texi: Regenerate.
9837 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
9838 * df-scan.c (df_get_exit_block_use_set), reginfo.c
9839 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
9840 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
9841 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
9842 to 1.
9843
9844 2010-08-20 Olivier Hainque <hainque@adacore.com>
9845
9846 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
9847 an extra nop past a sibling call at the very end.
9848
9849 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9850
9851 PR bootstrap/45350
9852 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
9853 a comment.
9854
9855 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9856
9857 * target.def (function_arg, function_incoming_arg): Remove const
9858 qualifier on CUMULATIVE_ARGS parameter.
9859 * targhooks.h (default_function_arg, default_function_incoming_arg):
9860 Likewise.
9861 * targhooks.c (default_function_arg, default_function_incoming_arg):
9862 Likewise.
9863 * config/i386/i386.c (ix86_function_arg): Likewise.
9864
9865 2010-08-19 Jakub Jelinek <jakub@redhat.com>
9866
9867 PR target/45336
9868 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
9869 SIGN_EXTENDs or ZERO_EXTENDs.
9870
9871 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9872
9873 PR target/42172
9874 * combine.c (combine_validate_cost): New arg I0. All callers changed.
9875 Take its cost into account if nonnull.
9876 (insn_a_feeds_b): New static function.
9877 (combine_instructions): Look for four-insn combinations.
9878 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
9879 them into account when computing all_adjacent and looking for other
9880 uses.
9881 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
9882 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
9883 (try_combine): New arg I0. Handle four-insn combinations.
9884 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
9885 like ELIM_I1.
9886
9887 2010-08-19 Jason Merrill <jason@redhat.com>
9888
9889 PR c++/45307
9890 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
9891 if ctor is empty.
9892 (gimplify_modify_expr_rhs): Adjust.
9893
9894 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9895
9896 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
9897 bitmap_bit_p.
9898 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
9899 * dominance.c (iterate_fix_dominators): Likewise.
9900 * dse.c (set_usage_bits): Likewise.
9901 (set_position_unneeded, record_store): Likewise.
9902 * gimple-fold.c (get_maxval_strlen): Likewise.
9903 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
9904 * ipa-inline.c (update_caller_keys): Likewise.
9905 * ipa-split.c (verify_non_ssa_vars): Likewise.
9906 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
9907 (close_type_exposed_parameter, close_type_full_escape): Likewise.
9908 (close_addressof_down): Likewise.
9909 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
9910 (setup_allocno_left_conflicts_size): Likewise.
9911 (ira_reassign_conflict_allocnos): Likewise.
9912 (ira_reassign_pseudos): Likewise.
9913 * ira-emit.c (change_loop): Likewise.
9914 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
9915 * lto-streamer-out.c (write_symbol): Likewise.
9916 * predict.c (expr_expected_value_1): Likewise.
9917 * regstat.c (regstat_bb_compute_ri): Likewise.
9918 * sel-sched.c (create_block_for_bookkeeping): Likewise.
9919 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
9920 * stmt.c (expand_case): Likewise.
9921 * tree-eh.c (emit_eh_dispatch): Likewise.
9922 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
9923 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
9924 Likewise.
9925 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
9926 (rdg_build_components): Likewise.
9927 * tree-object-size.c (collect_object_sizes_for): Likewise.
9928 * tree-sra.c (convert_callers): Likewise.
9929 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
9930 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
9931 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
9932
9933 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9934
9935 * config/i386/i386.md (*lea_1): Use P mode iterator.
9936 (lea add splitter): Also handle DImode operands.
9937 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
9938 predicate. Do not use ix86_lea_for_add_ok.
9939 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
9940 (lea ashift splitter): Also handle DImode operands.
9941 (DImode lea ashift splitter): Remove splitter.
9942
9943 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9944
9945 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
9946 ix86_binary_operator_ok.
9947
9948 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
9949
9950 PR rtl-optimization/44691
9951 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
9952 is not a register.
9953
9954 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9955
9956 PR target/45070
9957 * config/arm/arm.c (arm_output_epilogue): Ensure that return
9958 value of size 1-3 is handled correctly.
9959
9960 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9961
9962 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
9963 type for the conditional has wide enough range.
9964
9965 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9966
9967 PR target/45327
9968 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
9969 ix86_binary_operator_ok.
9970
9971 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9972
9973 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
9974 <default>: Swap operands 1 and 2 for alternative 2 to use existing
9975 code to output insn mnemonic. Fix comment.
9976 (*addsi_1_zext): Add r-r-0 alternative 1.
9977 <TYPE_LEA>: Split insn to lea.
9978 <default>: Handle alternative 1.
9979 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
9980 multi-level if_then_else RTX to set "type" attribute.
9981 <default>: Handle alternative 2.
9982 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
9983 Use cond RTX instead of multi-level if_then_else RTX to set
9984 "type" attribute.
9985 <default>: Handle alternatives 2 and 4.
9986 (lea splitters): Update calls to ix86_lea_for_add_ok.
9987
9988 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
9989 argument.
9990 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
9991
9992 2010-08-18 Richard Guenther <rguenther@suse.de>
9993
9994 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
9995 use operand helpers.
9996
9997 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
9998
9999 PR middle-end/45292
10000 * optabs.c (expand_bool_compare_and_swap): Expand pending
10001 pops before trying the optab.
10002
10003 2010-08-18 Yao Qi <yao@codesourcery.com>
10004
10005 PR target/45094
10006 * config/arm/arm.c (output_move_double): Fix typo generating
10007 instructions ('ldr'->'str').
10008
10009 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10010
10011 PR rtl-optimization/42575
10012 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
10013 live ranges.
10014
10015 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
10016
10017 * config/arm/arm-protos.h (arm_expand_sync): New.
10018 (arm_output_memory_barrier, arm_output_sync_insn): New.
10019 (arm_sync_loop_insns): New.
10020 * config/arm/arm.c (FL_ARCH7): New.
10021 (FL_FOR_ARCH7): Include FL_ARCH7.
10022 (arm_arch7): New.
10023 (arm_print_operand): Support %C markup.
10024 (arm_legitimize_sync_memory): New.
10025 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
10026 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
10027 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
10028 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
10029 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
10030 (arm_process_output_sync_insn, arm_output_sync_insn): New.
10031 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
10032 * config/arm/arm.h (struct arm_sync_generator): New.
10033 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
10034 (TARGET_HAVE_MEMORY_BARRIER): New.
10035 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
10036 * config/arm/arm.md: Include sync.md.
10037 (UNSPEC_MEMORY_BARRIER): New.
10038 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
10039 (VUNSPEC_SYNC_OP):New.
10040 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
10041 (sync_result, sync_memory, sync_required_value): New attributes.
10042 (sync_new_value, sync_t1, sync_t2): Likewise.
10043 (sync_release_barrier, sync_op): Likewise.
10044 (length): Add logic to length attribute defintion to call
10045 arm_sync_loop_insns when appropriate.
10046 * config/arm/sync.md: New file.
10047
10048 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10049
10050 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
10051 ENABLE_TREE_CHECKING.
10052 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
10053 and GCC >= 4.3.
10054
10055 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
10056
10057 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
10058 or optimizing for size, always avoid lea if possible.
10059
10060 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10061
10062 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
10063
10064 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10065 Dunmmy function with NULL return unless the target is
10066 OSX >= 10.6 (Darwin10).
10067
10068 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
10069
10070 * gcc.c (spec_function): Add remove-outfile.
10071 (remove_outfile_spec_function): New function.
10072 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10073 * invoke.texi (replace-outfile): Document.
10074
10075 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
10076
10077 PR target/45296
10078 * reginfo.c (globalize_reg): Reject stack registers.
10079
10080 2010-08-17 Richard Guenther <rguenther@suse.de>
10081
10082 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10083 list of conditional equivalences.
10084 (free_all_edge_infos): Adjust.
10085 (record_equivalences_from_incoming_edge): Likewise.
10086 (record_cond): Likewise.
10087 (build_and_record_new_cond): Likewise.
10088 (record_conditions): Likewise.
10089 (dom_opt_leave_block): Likewise.
10090
10091 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
10092
10093 * doc/invoke.texi (ms-extension): Add documentation.
10094
10095 2010-08-17 Richard Guenther <rguenther@suse.de>
10096
10097 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10098
10099 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
10100
10101 PR c/40563
10102 * c-decl.c (diagnose_uninitialized_cst_member): New function.
10103 (finish_decl): Use it to issue a -Wc++-compat warning about
10104 uninitialized const field in struct or union.
10105
10106 (finish_struct): Use strip_array_types.
10107
10108 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10109
10110 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
10111 functions.
10112 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
10113 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
10114 call block_nreverse here.
10115 (blocks_nreverse): Rename decl temporary to block.
10116
10117 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
10118
10119 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
10120 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
10121 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
10122 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
10123 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
10124 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
10125 thumb2_iorsi3): Delete.
10126 (orsi_notsi_si): No longer a named pattern.
10127 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
10128 * config/arm/predicates.md (shift_amount_operand): New.
10129 (mult_operator): New.
10130 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
10131 attr enabled): New.
10132 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
10133 arch matches t2.
10134 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
10135 (not_shiftsi_compare0): Likewise, renamed from
10136 arm_notsi_shiftsi_compare0.
10137 (not_shiftsi_compare0_scratch): Likweise, renamed from
10138 arm_notsi_shiftsi_compare0_scratch.
10139 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
10140 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
10141 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
10142 so that the register alternative is disabled when the shift_operator
10143 is MULT. Use "M" as the constraint for constants.
10144 (arith_shiftsi splitter): Enable for TARGET_32BIT.
10145 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
10146 constraint for constants.
10147 (arith_shiftsi_compare0_scratch): Likewise.
10148 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
10149 Handle Thumb2 alternative.
10150
10151 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10152
10153 * doc/options.texi (NoDriverArg): Document.
10154 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
10155 -MDX and -MMDX.
10156 * opt-functions.awk (switch_flags): Handle NoDriverArg.
10157 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
10158 marking for CL_NO_DRIVER_ARG options when in the driver.
10159 * opts.h (CL_NO_DRIVER_ARG): Define.
10160 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10161 CL_COMMON): Update values.
10162
10163 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10164
10165 * common.opt: Add driver options.
10166 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
10167 * doc/options.texi (Driver, RejectDriver): Document.
10168 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
10169 print_prog_name, print_multi_directory, print_sysroot,
10170 print_multi_os_directory, print_multi_lib,
10171 print_sysroot_headers_suffix, report_times, combine_flag,
10172 use_pipes, wrapper_string): Remove.
10173 (save_switch, driver_unknown_option_callback,
10174 driver_wrong_lang_callback, driver_post_handling_callback,
10175 driver_handle_option): New.
10176 (spec_lang, last_language_n_infiles): Make file-scope static
10177 instead of local to process_command.
10178 (process_command): Use decode_cmdline_options_to_array and
10179 read_cmdline_option for option processing. Compute have_c in
10180 prescan of decoded options.
10181 * opt-functions.awk (switch_flags): Handle Driver and
10182 RejectDriver.
10183 (var_type, var_type_struct): Handle Separate options as generating
10184 const char * variables.
10185 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
10186 CL_TARGET to be passed by caller if required.
10187 (decode_cmdline_options_to_array): Update comment.
10188 * opts.c (complain_wrong_lang): Handle options only valid for the
10189 driver.
10190 (decode_options): Update call to decode_cmdline_options_to_array.
10191 (print_filtered_help): Ignore driver-only options.
10192 (print_specific_help): Ignore CL_DRIVER.
10193 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
10194 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
10195 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
10196 Update values.
10197
10198 2010-08-16 Richard Guenther <rguenther@suse.de>
10199
10200 * tree-cfg.c (verify_types_in_gimple_reference): Verify
10201 TARGET_MEM_REF a bit.
10202 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
10203 (create_mem_ref_raw): Always create TMR_OFFSET, store the
10204 alias pointer type via it.
10205 (copy_mem_ref_info): Adjust.
10206 (maybe_fold_tmr): Likewise.
10207 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
10208 (reference_alias_ptr_type): Likewise.
10209 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
10210 adjust documentation of TMR_OFFSET operand.
10211 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
10212 use the alias pointer type.
10213 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
10214 initialize mem attrs but the TMR itself.
10215 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
10216 similar to MEM_REF.
10217 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
10218 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
10219 (unshare_and_remove_ssa_names): Likewise.
10220 (copy_ref_info): Adjust.
10221 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
10222 TARGET_MEM_REF case.
10223 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
10224 at TMR_ORIGINAL.
10225 * tree.h (TMR_ORIGINAL): Remove.
10226 * gimple.c (get_base_address): For TARGET_MEM_REF with a
10227 symbol return that.
10228 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
10229 with a symbol.
10230 (get_addr_base_and_unit_offset): Likewise.
10231 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
10232 TARGET_MEM_REFs.
10233 (indirect_ref_may_alias_decl_p): Likewise.
10234 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
10235
10236 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
10237
10238 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
10239 with GCC version 4.6, the default setting (when not optimizing
10240 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
10241 been changed to -fomit-frame-pointer.
10242
10243 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
10244
10245 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
10246 Darwin10. Do not link libgcc.a for Darwin >= 9.
10247
10248 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
10249
10250 * doc/invoke.texi (Warning Options): Fix terminology and markup
10251 in the description of how unknown warning options are handled.
10252
10253 2010-08-15 Ira Rosen <irar@il.ibm.com>
10254
10255 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
10256 in basic blocks.
10257 (vect_supportable_dr_alignment): Check alignment for basic blocks.
10258 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
10259 data references.
10260 (vect_bb_vectorization_profitable_p): New function.
10261 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
10262 check if it's worthwhile to vectorize the basic block.
10263
10264 2010-08-14 Anatoly Sokolov <aesok@post.ru>
10265
10266 * reload.h (register_move_cost, memory_move_secondary_cost,
10267 secondary_reload_class): Adjust prototype.
10268 * rtl.h (reg_class_subset_p): Adjust prototype.
10269 * reload.c (secondary_reload_class): Change arguments type from
10270 enum reg_class to reg_class_t. Change result type to reg_class_t.
10271 * reginfo.c (register_move_cost, reg_class_subset_p): Change
10272 arguments type from enum reg_class to reg_class_t.
10273 (memory_move_secondary_cost): Change arguments type from
10274 enum reg_class to reg_class_t. Change type of saved_flags to
10275 reg_class_t.
10276
10277 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10278 Remove macros.
10279 (mips_cost): Remove.
10280 (struct mips_rtx_cost_data): Moved to mips.c.
10281 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
10282 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
10283 (mips_cost): Make static.
10284 (mips_canonicalize_move_class): Change argument type to reg_class_t.
10285 Change result type to reg_class_t.
10286 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
10287 type from enum reg_class to reg_class_t.
10288 (mips_register_move_cost): Make static. Change arguments
10289 type from enum reg_class to reg_class_t.
10290 (mips_memory_move_cost): New function.
10291 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10292
10293 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
10294
10295 PR rtl-optimization/43358
10296 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
10297 of a single hard register, using simplify_subreg_regno to decide
10298 what that register should be.
10299
10300 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
10301
10302 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
10303 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
10304 (loongson_pmull<V_suffix>): Rename to...
10305 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
10306
10307 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
10308
10309 * configure.ac: Enable -fomit-frame-pointer on darwin
10310 which support dwarf2.
10311 * config/i386/i386.c (override_options): Same.
10312
10313 2010-08-13 Jie Zhang <jie@codesourcery.com>
10314
10315 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
10316
10317 2010-08-12 Joseph Myers <joseph@codesourcery.com>
10318
10319 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
10320 -MMD.
10321
10322 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
10323
10324 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
10325 up dot_prod pattern searching if a stmt is outside the loop.
10326
10327 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
10328 Uros Bizjak <ubizjak@gmail.com>
10329
10330 * config.gcc: Handle --enable-frame-pointer.
10331
10332 * configure.ac: Add --enable-frame-pointer.
10333 * configure: Regenerated.
10334
10335 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
10336 (override_options): If not configured with --enable-frame-pointer,
10337 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
10338 optimizing for size), -fasynchronous-unwind-tables and
10339 -maccumulate-outgoing-args by default.
10340
10341 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10342
10343 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
10344
10345 PR middle-end/45262
10346 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
10347 -a overflows. Normalize the range.
10348
10349 2010-08-12 Richard Guenther <rguenther@suse.de>
10350
10351 PR tree-optimization/45232
10352 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
10353 for types with undefined overflow.
10354 (reassociate_bb): Allow re-associating of bit and min/max
10355 operations for types with undefined overflow.
10356 * tree-ssa-forwprop.c (associate_plusminus): New function.
10357 (tree_ssa_forward_propagate_single_use_vars): Call it.
10358
10359 2010-08-12 Richard Guenther <rguenther@suse.de>
10360
10361 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
10362 * tree-ssa-alias.c (get_ptr_info): Move ...
10363 * tree-ssanames.c (get_ptr_info): ... here. Initialize
10364 align and misalign fields conservatively.
10365 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
10366 derive alignment information.
10367 (evaluate_stmt): Derive alignment information from memory
10368 allocation functions.
10369 * tree.h (get_pointer_alignment): Make unsigned.
10370 * builtins.c (get_object_alignment): Use alignment information we
10371 have computed for pointers.
10372 (get_pointer_alignment): Likewise. Make conservative, return
10373 and unsigned value.
10374 (expand_builtin_strlen): Adjust.
10375 (expand_builtin_memcmp): Likewise.
10376 (expand_builtin_strcmp): Likewise.
10377 (expand_builtin_strncmp): Likewise.
10378 (get_builtin_sync_mem): Use at least mode alignment.
10379 (fold_builtin_memset): Adjust.
10380 (fold_builtin_memory_op): Likewise.
10381 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
10382 information also dump pointer alignment knowledge.
10383 (dump_gimple_stmt): Likewise.
10384
10385 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
10386
10387 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
10388 (EMPTY_FIELD_BOUNDARY): Remove.
10389 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
10390
10391 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10392
10393 PR debug/45259
10394 * caller-save.c (save_call_clobbered_regs): Only swap notes with
10395 DEBUG_INSNs if n_regs_saved.
10396
10397 2010-08-12 Wei Guozhi <carrot@google.com>
10398
10399 PR target/44999
10400 * config/arm/arm.md (andsi3): Change to zero extension if possible.
10401 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
10402
10403 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
10404
10405 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
10406
10407 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
10408
10409 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10410
10411 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
10412 the case removed in the previous patch, when the only phi argument
10413 is defined in the same loop as the phi node itself. Handle it
10414 separately from the invariant case by both propagating it outside
10415 the region and replacing the phi node with an assign.
10416
10417 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10418
10419 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
10420 constant phi nodes with one argument are is_gimple_min_invariant
10421 and SSA_NAME_IS_DEFAULT_DEF.
10422
10423 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10424
10425 * graphite-cloog-util.c (oppose_constraint):
10426 Extend loop counter's value range (CLOOG_ORG).
10427 (cloog_matrix_to_ppl_constraint): Same.
10428 (new_Constraint_System_from_Cloog_matrix): Same.
10429 * graphite-cloog-compat.h (matrix_num_type): New.
10430
10431 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10432
10433 * graphite.c (graphite_initialize): Do not initialize
10434 CLooG and initialize the Parma Polyhedra Library
10435 manually when using CLOOG_ORG.
10436 (graphite_finalize): Do not finalize CLooG and finalize
10437 the Parma Polyhedra Library manually when using CLOOG_ORG.
10438 * graphite-cloog-compat.h (cloog_initialize): Hide function
10439 when using CLOOG_ORG.
10440 (cloog_finalize): Same.
10441
10442 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10443
10444 * graphite-clast-to-gimple.c (free_scattering): Change
10445 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
10446 (CLOOG_ORG).
10447 (build_cloog_prog): Same.
10448 * graphite-cloog-compat.h (cloog_domain): Removed.
10449 (cloog_scattering): New.
10450 (cloog_set_domain): Removed.
10451 (cloog_set_scattering): New.
10452 (cloog_next_domain): Removed.
10453 (cloog_next_scattering): New.
10454 (cloog_set_next_domain): Removed.
10455 (cloog_set_next_scattering): New.
10456 (CloogScatteringList): New.
10457 (CloogScattering): New.
10458 (cloog_scattering_free): New.
10459 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
10460 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
10461 New.
10462
10463 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10464
10465 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
10466 CloogState.
10467 (set_cloog_options): Same.
10468 (print_clast_stmt): Same.
10469 (scop_to_clast): Same.
10470 (print_generated_program): Same.
10471 (gloog): Same.
10472 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
10473 (scop_to_clast): Extend with CloogState.
10474 * graphite-cloog-util.c: Include graphite-cloog-compat.h
10475 (new_Cloog_Domain_from_ppl_Polyhedron):
10476 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
10477 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
10478 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10479 * graphite-cloog-util.h (build_cloog_prog): Same.
10480 * graphite-cloog-copat.h (build_cloog_prog): New.
10481 (CloogState): New.
10482 (cloog_state_malloc): New.
10483 (cloog_state_free): New.
10484 (cloog_loop_malloc): New.
10485 (cloog_options_malloc): New.
10486 (cloog_statement_alloc): New.
10487 (cloog_domain_from_cloog_matrix): New.
10488 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
10489 (new_Cloog_Domain_from_ppl_Polyhedron): New.
10490
10491 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10492
10493 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
10494 type of NAME now depends on used CLooG version.
10495 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
10496 (gcc_type_for_clast_expr): Same.
10497 (print_clast_stmt): Replace pprint with clast_pprint.
10498 * graphite-cloog-compat.h: Provide compatibility macros for
10499 CLooG Legacy.
10500 (clast_name_p): New.
10501 (clast_expr_term): New.
10502 (clast_expr_red): New.
10503 (clast_expr_bin): New.
10504 (clast_pprint): New.
10505
10506 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10507
10508 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
10509 compatible to newer CLooG releases (CLOOG_ORG).
10510 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
10511 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
10512 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
10513 (build_cloog_prog) : New.
10514 (cloog_program_extract_scalars): New.
10515 (cloog_program_scatter): New.
10516
10517 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10518
10519 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
10520 conditionally (CLOOG_ORG).
10521 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
10522 (cloog_statement_usr): New.
10523 (cloog_domain): Same.
10524 (cloog_set_domain): Same.
10525 (cloog_next_domain): Same.
10526 (cloog_set_next_domain): Same.
10527 (cloog_program_nb_scattdims): Same.
10528 (cloog_program_set_nb_scattdims): Same.
10529 (cloog_program_names): Same.
10530 (cloog_program_set_names): Same.
10531 (cloog_program_set_context): Same.
10532 (cloog_program_set_loop): Same.
10533 (cloog_program_blocklist): Same.
10534 (cloog_program_set_blocklist): Same.
10535 (cloog_program_scaldims): Same.
10536 (cloog_program_set_scaldims): Same.
10537 (cloog_names_nb_parameters): Same.
10538 (cloog_names_set_nb_parameters): Same.
10539 (cloog_names_parameters): Same.
10540 (cloog_names_set_parameters): Same.
10541 (cloog_names_set_nb_iterators): Same.
10542 (cloog_names_set_iterators): Same.
10543 (cloog_names_set_nb_scattering): Same.
10544 (cloog_names_set_scattering): Same.
10545 (cloog_statement_set_usr): Same.
10546 (cloog_loop_set_next): Same.
10547 (cloog_loop_set_domain): Same.
10548 (cloog_loop_set_block): Same.
10549 (cloog_block_list_next): Same.
10550 (cloog_block_list_set_next):
10551 (cloog_block_list_set_block): Same.
10552
10553 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10554
10555 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
10556 a bool.
10557 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
10558 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
10559 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
10560 when something has been changed.
10561 (rewrite_commutative_reductions_out_of_ssa): Same.
10562
10563 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10564
10565 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
10566 handle the case when def is in the sese region.
10567 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
10568 for invariant expressions.
10569 (rewrite_cross_bb_phi_deps): Removed.
10570 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
10571 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
10572 rewrite_cross_bb_phi_deps.
10573
10574 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10575
10576 * graphite-sese-to-poly.c
10577 (rewrite_commutative_reductions_out_of_ssa_loop): Call
10578 scev_analyzable_p only on is_gimple_reg
10579
10580 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10581
10582 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
10583 (rewrite_close_phi_out_of_ssa): Propagate constant values or
10584 parametric expressions outside the scop region.
10585 (rewrite_cross_bb_scalar_deps): Same.
10586 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
10587
10588 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10589
10590 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
10591 SSA_NAME_DEF_STMT only on SSA_NAMEs.
10592
10593 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10594
10595 * tree-scalar-evolution.c (instantiate_scev_name): Do not
10596 instantiate default definitions.
10597
10598 2010-08-11 Vladimir Kargov <kargov@gmail.com>
10599 Sebastian Pop <sebastian.pop@amd.com>
10600
10601 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
10602 (loop_exits_from_bb_p): New.
10603 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
10604 (loop_exits_from_bb_p): Declared.
10605 * graphite-scop-detection.c (scopdet_basic_block_info): Call
10606 loop_exits_to_bb_p.
10607
10608 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10609
10610 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
10611 extra parameter for the region. Call scev_analyzable_p.
10612 (rewrite_reductions_out_of_ssa): Update call to
10613 rewrite_close_phi_out_of_ssa.
10614 (rewrite_cross_bb_phi_deps): Same.
10615 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
10616 parameter for the region. Call scev_analyzable_p.
10617 (rewrite_commutative_reductions_out_of_ssa): Update call to
10618 rewrite_commutative_reductions_out_of_ssa_loop.
10619
10620 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10621
10622 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
10623
10624 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10625
10626 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
10627 SSA scalar phi nodes that can be scev_analyzable_p.
10628
10629 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10630
10631 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
10632 handle SSA_NAME_IS_DEFAULT_DEF.
10633
10634 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10635
10636 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
10637
10638 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10639
10640 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
10641 case non close-phi nodes with one argument.
10642
10643 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10644
10645 * sese.h (scev_analyzable_p): Scevs could be expressions without
10646 chrecs and still be scev_analyzable_p.
10647
10648 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10649
10650 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10651
10652 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10653
10654 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
10655 * cfgloop.h (struct loop): Remove single_iv field.
10656 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
10657 (scop_canonicalize_loops): Removed.
10658 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
10659 over all the loop phi nodes in loop->header.
10660 (build_poly_scop): Remove use of scop_canonicalize_loops.
10661
10662 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10663
10664 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
10665 handle GIMPLE_CALL.
10666
10667 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10668
10669 * tree-chrec.c (chrec_apply): Should only apply to the specified
10670 variable. Also handle multivariate chains of recurrences that
10671 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
10672
10673 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10674
10675 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
10676 (debug_clast_name_indexes_1): Removed.
10677 (debug_clast_name_indexes): Removed.
10678 (pbb_to_depth_to_oldiv): Removed.
10679 (build_iv_mapping): Replace the use of rename_map with iv_map.
10680 (translate_clast_user): Remove uses of rename_map. Allocate and
10681 free iv_map.
10682 (translate_clast_for_loop): Remove uses of rename_map.
10683 (translate_clast_for): Same.
10684 (translate_clast_guard): Same.
10685 (translate_clast): Same.
10686 (gloog): Same.
10687 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
10688 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
10689 * sese.c (set_rename): Now static.
10690 (rename_variables_in_stmt): Removed.
10691 (rename_uses): New.
10692 (is_parameter): Removed.
10693 (is_iv): Removed.
10694 (expand_scalar_variables_call): Removed.
10695 (expand_scalar_variables_ssa_name): Removed.
10696 (expand_scalar_variables_expr): Removed.
10697 (expand_scalar_variables_stmt): Removed.
10698 (expand_scalar_variables): Removed.
10699 (rename_variables): Removed.
10700 (remove_condition): Removed.
10701 (get_true_edge_from_guard_bb): Removed.
10702 (get_false_edge_from_guard_bb): Removed.
10703 (struct igp): Removed.
10704 (default_before_guard): Removed.
10705 (convert_for_phi_arg): Removed.
10706 (add_guard_exit_phis): Removed.
10707 (insert_guard_phis): Removed.
10708 (graphite_copy_stmts_from_block): Now also uses iv_map and a
10709 region. Do not copy conditions. Do not copy induction variables.
10710 Call rename_uses.
10711 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
10712 the translated statement. Use the iv_map for the induction
10713 variable renaming.
10714 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10715 (set_rename): Removed declaration.
10716 (scev_analyzable_p): ...here.
10717 * tree-chrec.c (chrec_apply_map): New.
10718 * tree-chrec.h (chrec_apply_map): Declared.
10719
10720 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10721
10722 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
10723 insert_loop_close_phis.
10724 * sese.c (name_defined_in_loop_p): Removed.
10725 (expr_defined_in_loop_p): Removed.
10726 (alive_after_loop): Removed.
10727 (close_phi_not_yet_inserted_p): Removed.
10728 (struct alep): Removed.
10729 (add_loop_exit_phis): Removed.
10730 (insert_loop_close_phis): Removed.
10731
10732 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10733
10734 * graphite-cloog-util.c
10735 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
10736 * graphite-poly.c
10737 (psct_scattering_dim_for_loop_depth): Same.
10738
10739 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10740
10741 * graphite-cloog-util.h: Added cloog.h.
10742 * graphite-blocking.c: Removed cloog.h.
10743 * graphite-dependences.c: Same.
10744 * graphite-interchange.c: Same.
10745 * graphite-poly.c: Same.
10746 * graphite-ppl.c: Same.
10747 * graphite-scop-detection.c: Same.
10748 * graphite-sese-to-poly.c:
10749 Removed cloog.h.
10750 Removed graphite-clast-to-gimple.h.
10751 (check_poly_representation): Removed (unused).
10752 * graphite-sese-to-poly.h
10753 (check_poly_representation): Removed (unused).
10754
10755 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10756
10757 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
10758 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
10759 (graphite-cloog-util.o): New.
10760 (graphite-ppl.o): Added graphite-cloog-util.h.
10761 * graphite-clast-to-gimple.c:
10762 Added graphite-cloog-util.h to include statements.
10763 * graphite-cloog-util.c: New.
10764 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
10765 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10766 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10767 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10768 (insert_constraint_into_matrix): Same.
10769 (ppl_Constrain_System_number_of_constraints): Same.
10770 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10771 (oppose_constraint): Same.
10772 (cloog_matrix_to_ppl_constraint): Same.
10773 (new_Constraint_System_from_Cloog_Matrix): Same.
10774 * graphite-cloog-util.h: New.
10775 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
10776 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10777 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10778 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10779 (insert_constraint_into_matrix): Same.
10780 * graphite-ppl.c:
10781 Added graphite-cloog-util.h to include statements.
10782 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
10783 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10784 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10785 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10786 (insert_constraint_into_matrix): Same.
10787 (ppl_Constrain_System_number_of_constraints): Same.
10788 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10789 (oppose_constraint): Same.
10790 (cloog_matrix_to_ppl_constraint): Same.
10791 (new_Constraint_System_from_Cloog_Matrix): Same.
10792 * graphite-ppl.h:
10793 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
10794 graphite-cloog-util.h.
10795 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10796 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10797 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10798 (insert_constraint_into_matrix): Same.
10799
10800 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10801
10802 * graphite-clast-to-gimple.c
10803 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
10804 (precision_for_interval): Same.
10805 (gcc_type_for_interval): Same.
10806 (compute_type_for_level): Same.
10807 * graphite-interchange.c
10808 (lst_interchange_profitable_p): Same.
10809 * graphite-poly.c
10810 (psct_scattering_dim_for_loop_depth): Same.
10811 * graphite-ppl.c
10812 (ppl_max_for_le_pointset): Same.
10813 (ppl_min_for_le_pointset): Same.
10814
10815 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10816
10817 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
10818 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
10819
10820 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10821
10822 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
10823 rewrite_close_phi_out_of_ssa.
10824
10825 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10826
10827 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
10828
10829 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10830
10831 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
10832 rename_map.
10833 * sese.c (debug_rename_map): Same.
10834 (get_rename): Same.
10835 (set_rename): Same.
10836 (rename_variables_in_stmt): Same.
10837 (expand_scalar_variables_call): Same.
10838 (expand_scalar_variables_ssa_name): Same.
10839 (expand_scalar_variables_expr): Same.
10840 (expand_scalar_variables_stmt): Same.
10841 (expand_scalar_variables): Same.
10842 (rename_variables): Same.
10843 (graphite_copy_stmts_from_block): Same.
10844 (copy_bb_and_scalar_dependences): Same.
10845
10846 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10847
10848 * graphite-clast-to-gimple.c (copy_renames): Removed.
10849 (translate_clast_for): Do not call copy_renames.
10850 (translate_clast_guard): Same.
10851
10852 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10853
10854 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
10855 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
10856 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
10857 before rewrite_cross_bb_scalar_deps.
10858
10859 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10860
10861 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
10862 Early return in when flag_associative_math is not set.
10863
10864 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10865
10866 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
10867 of SSA copies on edges except for loop->latch.
10868
10869 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10870
10871 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
10872 Split out of rewrite_reductions_out_of_ssa.
10873 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
10874 Declared.
10875 * graphite.c (graphite_transform_loops): Call it.
10876
10877 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10878
10879 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
10880
10881 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
10882
10883 * dbgcnt.def (graphite_scop): New counter.
10884 * graphite.c: Include dbgcnt.h.
10885 (graphite_transform_loops): Use new counter to limit transformations.
10886 * Makefile.in (graphite.o): Depend on DBGCNT_H.
10887
10888 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10889
10890 * passes.c (init_optimization_passes): Add pass_graphite.
10891 Schedule a pass_copy_prop before pass_graphite_transforms.
10892 * timevar.def (TV_GRAPHITE): Declared.
10893 * tree-pass.h (pass_graphite): Declared.
10894 * tree-ssa-loop.c (pass_graphite): New.
10895
10896 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10897
10898 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
10899 Remove calls to rename_nb_iterations and rename_sese_parameters.
10900 * graphite-clast-to-gimple.h (gloog): Update declaration.
10901 * graphite.c (graphite_transform_loops): Update call to gloog.
10902 * sese.c (rename_variables_in_expr): Removed.
10903 (rename_nb_iterations): Removed.
10904 (rename_sese_parameters): Removed.
10905 * sese.h (rename_nb_iterations): Removed.
10906 (rename_sese_parameters): Removed.
10907
10908 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10909
10910 * graphite-clast-to-gimple.c (gloog): Remove call to
10911 sese_adjust_liveout_phis.
10912 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
10913 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
10914 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
10915 rewrite_phi_out_of_ssa.
10916 * sese.c (get_vdef_before_sese): Removed.
10917 (sese_adjust_vphi): Removed.
10918 (sese_adjust_liveout_phis): Removed.
10919 * sese.h (sese_adjust_liveout_phis): Removed.
10920
10921 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10922
10923 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
10924 argument for the place after which to insert the out of SSA copy.
10925 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
10926 (rewrite_phi_out_of_ssa): Same.
10927 (rewrite_cross_bb_scalar_deps): Same.
10928 (insert_copyout): Removed.
10929 (insert_copyin): Removed.
10930 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
10931 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
10932 insert_copyin.
10933
10934 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10935
10936 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
10937 (rewrite_reductions_out_of_ssa): Same.
10938 (rewrite_commutative_reductions_out_of_ssa): Same.
10939 (build_poly_scop): Do not call these functions.
10940 * graphite-sese-to-poly.h (build_poly_scop): Declared.
10941 (rewrite_reductions_out_of_ssa): Declared.
10942 (rewrite_commutative_reductions_out_of_ssa): Declared.
10943 * graphite.c (graphite_transform_loops): Call on every scop
10944 rewrite_commutative_reductions_out_of_ssa before calling
10945 rewrite_reductions_out_of_ssa and build_scop_bbs.
10946
10947 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10948
10949 * graphite-dependences.c (dot_deps): Make system call to dotty run
10950 in background.
10951 (dot_deps_stmt): Same.
10952 * graphite-poly.c (dot_lst): Same.
10953
10954 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10955
10956 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
10957 phi_arg_in_outermost_loop.
10958 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
10959 (remove_invariant_phi): Same.
10960
10961 2010-08-11 Anatoly Sokolov <aesok@post.ru>
10962
10963 * target.def (output_addr_const_extra): New hook.
10964 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
10965 * doc/tm.texi: Regenerate.
10966 * targhooks.c (default_asm_output_addr_const_extra): New function.
10967 * targhooks.h (default_asm_output_addr_const_extra): Declare.
10968 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
10969 target hook.
10970
10971 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10972 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
10973 * config/i386/i386.h (output_addr_const_extra): Rename to...
10974 (i386_asm_output_addr_const_extra): ...this. Make static.
10975 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10976
10977 2010-08-11 Richard Henderson <rth@redhat.com>
10978
10979 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
10980
10981 2010-08-11 Nick Clifton <nickc@redhat.com>
10982
10983 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
10984 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
10985 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10986 stormy16-lib2-cmpsi.c.
10987
10988 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
10989 -O2.
10990
10991 2010-08-11 Joseph Myers <joseph@codesourcery.com>
10992
10993 * opts.h (struct cl_option_handler_func): Make handler take
10994 cl_decoded_option structure as parameter, not individual elements.
10995 (struct cl_option_handlers): Make callbacks take cl_decoded_option
10996 structure as parameter, not individual elements.
10997 (handle_option): Take cl_decoded_option structure as parameter,
10998 not individual elements.
10999 (handle_generated_option): Declare.
11000 * opts-common.c (handle_option): Take cl_decoded_option structure
11001 as parameter, not individual elements. Update calls to callback
11002 and handler functions.
11003 (handle_generated_option): New.
11004 (read_cmdline_option): Update calls to callback functions and
11005 handle_option.
11006 * opts.c (common_handle_option, complain_wrong_lang,
11007 unknown_option_callback, post_handling_callback,
11008 lang_handle_option, target_handle_option): Take cl_decoded_option
11009 structure as parameter, not individual elements.
11010 (lang_handle_option, target_handle_option, common_handle_option):
11011 Assert option has at most one argument.
11012 (enable_warning_as_error): Call handle_generated_option instead of
11013 handle_option. Do not pass -Werror argument as argument of
11014 generated option.
11015
11016 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11017
11018 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11019 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11020 (SUBWORD_BOOL_CAS): Likewise.
11021 (SUBWORD_SYNC_OP): Likewise.
11022 (SUBWORD_TEST_AND_SET): Likewise.
11023 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11024 (SUBWORD_SYNC_OP): Likewise.
11025 (OP_AND_FETCH_WORD): Likewise.
11026
11027 2010-08-10 Xinliang David Li <davidxl@google.com>
11028
11029 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
11030 compute max/min offset in address.
11031
11032 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
11033
11034 * ira-live.c: Include sbitmap.h.
11035 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
11036 Compress live ranges even more.
11037
11038 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11039
11040 * coverage.c (ctr_labels): Delete.
11041
11042 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11043
11044 PR bootstrap/45177
11045 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
11046 test here from arm_gen_load_multiple_1.
11047 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
11048 multiple_operation_profitable_p.
11049
11050 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11051
11052 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
11053 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
11054
11055 2010-08-10 Richard Henderson <rth@redhat.com>
11056
11057 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
11058 after saving registers. Assert that SSE registers are only saved
11059 with a sufficiently aligned frame.
11060 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11061 remove stack_realign_fp handling.
11062 (ix86_expand_prologue): Save int registers before stack_realign_fp,
11063 and do not mark the stack alignment as frame related.
11064 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11065
11066 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11067 saves when re-aligning the stack.
11068
11069 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11070
11071 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11072 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11073 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11074
11075 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11076
11077 * dwarf2out.c (struct die_struct): Move die_tag to the end.
11078
11079 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
11080
11081 * config/arm/iterators.md: New file.
11082 * config/arm/arm.md: Include iterators.md.
11083 (QHSI): Move to new file.
11084 (LTUGEU, cnb, optab, ior_xor): Likewise.
11085 * config/arm/iwmmxt.md (VMMX): Move to new file.
11086 (VSHFT, MMX_char): Likewise.
11087 * config/arm/neon.md (VD): Move to new file.
11088 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11089 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11090 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11091 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11092 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11093 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11094 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11095 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11096 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11097 (Is_d_reg, V_mode_nunits): Likewise.
11098 * config/arm/vec-common.md (VALL): Move to new file.
11099 (VALLW, VINT, VINTW): Likewise.
11100
11101 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11102
11103 PR middle-end/45182
11104 * combine.c (make_compound_operation): Don't try to convert
11105 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11106
11107 2010-08-10 Richard Guenther <rguenther@suse.de>
11108
11109 * tree.h (get_object_alignment): Adjust prototype.
11110 * builtins.c (get_object_alignment): Return unsigned int,
11111 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
11112 and TARGET_MEM_REF properly.
11113 (get_pointer_alignment): Adjust.
11114 * emit-rtl.c (get_mem_align_offset): Adjust comment.
11115 (set_mem_attributes_minus_bitpos): Adjust.
11116 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
11117
11118 2010-08-10 Richard Guenther <rguenther@suse.de>
11119
11120 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
11121 (copy_prop_visit_assignment): Simplify.
11122 (copy_prop_visit_stmt): Also visit assignments from
11123 constants.
11124 (copy_prop_visit_phi_node): Use operand_equal_p.
11125
11126 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11127
11128 * ipa-split.c (find_split_points): Free stack.
11129
11130 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11131
11132 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
11133 * tree.c (tree_node_kind): Delete corresponding entries.
11134
11135 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
11136
11137 * alias.c (may_alias_p): Remove unused ret.
11138
11139 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
11140
11141 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
11142 alias_sets_conflict_p.
11143 (walk_mems_1): Moved from alias.c.
11144 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
11145 in alias.c.
11146 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
11147 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
11148 * alias.c (walk_mems_2): Moved to ddg.c.
11149 (walk_mems_1): Ditto.
11150 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
11151 to ddg.c.
11152 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
11153 disambiguation.
11154 *(may_alias_p): New function to check whether two memory expression
11155 may alias or not. Currently used in buidling inter-iteration memory
11156 dependence.
11157 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
11158 (insn_alias_sets_conflict_p): Removed
11159 *rtl.h (may_alias_p): New function prototype.
11160
11161 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11162
11163 * tree.c (nreverse): Assert that we don't have a BLOCK.
11164
11165 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11166
11167 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
11168 * config/arm/arm.c (arm_get_pcs_model): Likewise.
11169 * config/avr/avr.c (init_cumulative_args): Likewise.
11170 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11171 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11172 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
11173 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11174 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11175 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11176 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11177 * dwarf2out.c (gen_subprogram_die): Likewise.
11178 * function.c (allocate_struct_function): Likewise.
11179 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
11180 (deserves_ellipsis): Delete.
11181
11182 2010-08-09 Richard Guenther <rguenther@suse.de>
11183
11184 * tree-ssa-copy.c (cached_last_copy_of): Remove.
11185 (valueize_val): New function.
11186 (get_last_copy_of): Remove.
11187 (set_copy_of_val): Simplify.
11188 (dump_copy_of): Likewise.
11189 (copy_prop_visit_cond_stmt): Use valueize_val.
11190 (copy_prop_visit_phi_node): Properly handle unvisited names.
11191 Drop code managing copy-of chains.
11192 (init_copy_prop): Adjust.
11193 (fini_copy_prop): Likewise.
11194 (execute_copy_prop): Remove obsolete comment.
11195
11196 2010-08-09 Richard Guenther <rguenther@suse.de>
11197
11198 PR middle-end/44632
11199 * function.c (gimplify_parameters): Do not clear addressable
11200 bit of the original parameter.
11201
11202 2010-08-09 Richard Guenther <rguenther@suse.de>
11203
11204 PR middle-end/45212
11205 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
11206 alignment from MEM_REF offset only if we took it from the
11207 base object.
11208
11209 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
11210
11211 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
11212
11213 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11214
11215 * c-tree.h (build_arg_info): Declare.
11216 * c-decl.c (build_arg_info): Define.
11217 (get_parm_info): Call it. Delete initialization code.
11218 * c-parser.c (c_parser_parms_declarator): Likewise.
11219 (c_parser_parms_list_declaractor): Likewise.
11220
11221 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11222
11223 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
11224 (struct c_arg_info): Change type of tags field.
11225 * c-decl.c (grokdeclarator): Update for changed type of tags field.
11226 (get_parm_info): Likewise.
11227 (store_parm_decls_newstyle): Likewise.
11228
11229 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11230
11231 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
11232 (branch_island_list): Delete.
11233 (branch_islands): Declare.
11234 (add_compiler_branch_island): Adjust for branch_islands instead of
11235 branch_island_list.
11236 (macho_branch_islands): Likewise.
11237 (no_previous_def): Likewise.
11238 (get_prev_label): Likewise.
11239
11240 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11241
11242 PR boehm-gc/34544
11243 * gthr-posix.h (__gthread_start): Delete.
11244 (__gthread_active_init): Use pthread_default_stacksize_np instead of
11245 pthread_create to determine if hpux pthreads are active.
11246 * gthr-posix95.h (__gthread_start): Delete.
11247 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
11248
11249 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
11250
11251 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
11252 _WIN64 not expanded.
11253
11254 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
11255 H.J. Lu <hongjiu.lu@intel.com>
11256
11257 PR target/45213
11258 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
11259 to output 32bit SFmode immediate as 8 byte sign extended value.
11260
11261 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11262
11263 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11264 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11265 (SUBWORD_BOOL_CAS): Likewise.
11266 (SUBWORD_SYNC_OP): Likewise.
11267 (SUBWORD_TEST_AND_SET): Likewise.
11268 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11269 (SUBWORD_SYNC_OP): Likewise.
11270 (OP_AND_FETCH_WORD): Likewise.
11271
11272 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11273
11274 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
11275 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
11276 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
11277 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
11278 generic part.
11279 (cortex_a9_sched_adjust_cost): New function.
11280 (xscale_sched_adjust_cost): New function.
11281 * config/arm/arm-protos.h (struct tune_params): New field
11282 sched_adjust_cost.
11283 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
11284
11285 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
11286
11287 PR target/44942
11288 * config/sparc/sparc.c (function_arg_advance): Always take into account
11289 the padding, if any.
11290
11291 2010-08-06 Richard Guenther <rguenther@suse.de>
11292
11293 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
11294 (dump_lattice_value): Dump it.
11295 (get_default_value): Adjust.
11296 (get_constant_value): Likewise.
11297 (set_value_varying): Likewise.
11298 (set_lattice_value): Make sure to not go up the lattice
11299 with bitwise constant values.
11300 (get_value_for_expr): Handle ADDR_EXPRs.
11301 (value_to_double_int): New function.
11302 (get_value_from_alignment): Likewise.
11303 (do_dbg_cnt): Adjust.
11304 (ccp_lattice_meet): Handle partially constant values.
11305 (bit_value_unop_1): New function.
11306 (bit_value_binop_1): Likewise.
11307 (bit_value_unop): Likewise.
11308 (bit_value_binop): Likewise.
11309 (evaluate_stmt): Track partially constant values if
11310 flag_tree_bit_ccp is set.
11311 (ccp_fold_stmt): Dump if we folded a predicate.
11312 (ccp_visit_stmt): Adjust.
11313 * common.opt (ftree-bit-ccp): New flag.
11314 * doc/invoke.texi (ftree-bit-ccp): Document.
11315 * opts.c (decode_options): Enable bit-CCP at -O1.
11316
11317 2010-08-06 Alan Modra <amodra@gmail.com>
11318
11319 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
11320 and -mrelocatable-lib description.
11321
11322 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
11323
11324 From Martin Thuresson <martint@google.com>
11325 * postreload.c (reload_cse_simplify_operands): Use
11326 SET_REGNO_RAW instead of SET_REGNO.
11327 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
11328 SET_REGNO.
11329 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
11330 instead of SET_REGNO.
11331 * rtl.h (SET_REGNO_RAW): New macro.
11332
11333 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
11334
11335 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
11336 computations. Fix formatting issues.
11337 (num_sign_bit_copies1): Likewise.
11338 (canonicalize_condition): Likewise.
11339
11340 2010-08-05 Richard Henderson <rth@redhat.com>
11341
11342 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
11343 (floor_log2): Use clz_hwi.
11344 (exact_log2): Use ctz_hwi.
11345 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
11346 * builtins.c (fold_builtin_bitop): Use them.
11347 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11348 * combine.c (get_pos_from_mask): Use ctz_hwi.
11349 * double-int.c (double_int_ctz): Likewise.
11350 * explow.c (force_reg): Likewise.
11351 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
11352
11353 2010-08-05 Richard Henderson <rth@redhat.com>
11354
11355 PR target/45189
11356 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
11357 the alignment constant is properly sign-extended.
11358
11359 2010-08-05 Richard Guenther <rguenther@suse.de>
11360
11361 * expr.c (store_expr): Use emit_block_move only if both
11362 source and target are MEMs. Use store_bit_field if only
11363 the target is a MEM.
11364
11365 2010-08-05 Richard Henderson <rth@redhat.com>
11366
11367 PR debug/45188
11368 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
11369 (INCOMING_RETURN_ADDR_RTX): Likewise.
11370 (dwarf2out_do_frame): Remove conditional compilation.
11371 (dwarf2out_frame_init): Likewise.
11372
11373 2010-08-05 Nicolas Setton <setton@adacore.com>
11374
11375 * gcov.c (flag_display_progress): New static variable.
11376 (main): Display progress info on standard output if requested.
11377 (options): Add -d/--display-progress.
11378 (print_usage): Print them.
11379 (process_args): Handle them.
11380 * doc/gcov.texi: Document them.
11381
11382 2010-08-05 Martin Jambor <mjambor@suse.cz>
11383
11384 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
11385 (ipcp_insert_stage): Redirect only edges not flagged with
11386 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
11387 discovered constants.
11388
11389 2010-08-05 Martin Jambor <mjambor@suse.cz>
11390
11391 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
11392 (struct ipa_param_descriptor): New fields types and
11393 cannot_devirtualize.
11394 (ipa_param_cannot_devirtualize_p): New function.
11395 (ipa_param_types_vec_empty): Likewise.
11396 (ipa_make_edge_direct_to_target): Declare.
11397 * ipa-cp.c: Fixed first stage driver name in initial comment,
11398 described devirtualization there too.
11399 (ipcp_analyze_node): Call ipa_analyze_params_uses.
11400 (ipcp_print_all_lattices): Print devirtualization info.
11401 (ipa_set_param_cannot_devirtualize): New function.
11402 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
11403 lattice to BOTTOM.
11404 (ipcp_init_stage): Merged into...
11405 (ipcp_generate_summary): ...its caller.
11406 (ipcp_change_tops_to_bottom): Also process type lists.
11407 (ipcp_add_param_type): New function.
11408 (ipcp_copy_types): Likewise.
11409 (ipcp_propagate_types): Likewise.
11410 (ipcp_propagate_stage): Also propagate types.
11411 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
11412 Also return true if propagated types require it.
11413 (ipcp_update_callgraph): Dump redirection info.
11414 (ipcp_process_devirtualization_opportunities): New function.
11415 (ipcp_const_param_count): Include known type information.
11416 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
11417 on new node. Fixed formatting.
11418 * ipa-prop.c (make_edge_direct_to_target): Renamed to
11419 ipa_make_edge_direct_to_target and changed all callers. Made
11420 externally visible.
11421 (ipa_node_duplication_hook): Duplicate types vector.
11422 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
11423 redirect outgoing calls for which we can't get a decl from the
11424 statement. Check that we can get a decl from the call statement.
11425 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11426 ipa_analyze_params_uses only when ipa-cp is disabled.
11427 * tree-inline.c (get_indirect_callee_fndecl): Removed.
11428 (expand_call_inline): Do not call get_indirect_callee_fndecl.
11429 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
11430 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
11431
11432 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11433
11434 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
11435 temporary. Emit move from temporary to accum, so REG_EQUAL note will
11436 be attached to this insn in correct mode.
11437
11438 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11439
11440 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
11441 using REGNO of base_reg directly.
11442
11443 2010-08-05 Jie Zhang <jie@codesourcery.com>
11444
11445 PR tree-optimization/45144
11446 * tree-sra.c (type_consists_of_records_p): Return false
11447 if the record contains bit-field.
11448
11449 2010-08-04 Richard Henderson <rth@redhat.com>
11450
11451 * config/i386/i386.c (struct ix86_frame): Remove padding and
11452 to_allocate members.
11453 (ix86_compute_frame_layout): Don't store them.
11454 (ix86_can_use_return_insn_p): Use a more direct and more obviously
11455 correct condition for the position of the stack pointer.
11456 (ix86_expand_prologue): Compute remaining stack allocation based
11457 on the ultimate stack pointer offset.
11458 (ix86_expand_epilogue): Use more obvious expressions testing for
11459 the stack pointer already pointing to the saved registers.
11460
11461 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
11462 duplication deconstructing the frame pointer. Simplify
11463 deallocation of the local stack frame.
11464
11465 * reg-notes.def (CFA_EXPRESSION): New.
11466 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11467 (dwarf2out_frame_debug_cfa_expression): New.
11468 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
11469
11470 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
11471 * config/i386/i386.c (ix86_expand_prologue): Set it.
11472 (ix86_expand_epilogue): Clear it.
11473 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
11474 context, add REG_CFA_EXPRESSION notes.
11475
11476 * config/i386/i386.h (struct machine_frame_state): Rename from
11477 machine_cfa_state. Add members tracking SP and FP regardless
11478 of the current CFA register.
11479 (ix86_cfa_state): Remove.
11480 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
11481 and sse_reg_save_offset members.
11482 (ix86_compute_frame_layout): Set them.
11483 (gen_push): Increment sp_offset too.
11484 (choose_baseaddr_len, choose_baseaddr): New.
11485 (ix86_emit_save_reg_using_mov): New.
11486 (ix86_emit_save_regs_using_mov): Use it.
11487 (ix86_emit_save_sse_regs_using_mov): Likewise.
11488 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
11489 compare vs the saved red_zone_offset.
11490 (pro_epilogue_adjust_stack): Adjust sp_offset.
11491 (ix86_adjust_stack_and_probe): Likewise.
11492 (ix86_expand_prologue): Set up, use, and validate the new
11493 frame_state_info members. Use gen_frame_mem.
11494 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
11495 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
11496 new frame_state_info members.
11497 (ix86_emit_leave): Likewise.
11498 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
11499 out-of-range stack pointer offsets here.
11500 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11501 (ix86_expand_epilogue): Use and validate the new frame_state_info
11502 members. Break up and simplify the logic selecting the
11503 restore_regs_via_mov code path. Ensure that there will be no
11504 out-of-range stack pointer offsets.
11505
11506 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
11507
11508 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
11509 argument name to reflect the expected tree; fix indentation.
11510 (ix86_asm_output_function_label): Output the entire 32-bit
11511 ms_hook here as bytes ...
11512 (ix86_expand_prologue): ... not here as insns. Attach the
11513 unwind info for the ms_hook to a blockage insn.
11514 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
11515 (ix86_ms_bitfield_layout_p): Fix indentation.
11516 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
11517
11518 * config/i386/i386.c (ix86_using_red_zone): New.
11519 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
11520 ix86_expand_prologue, ix86_force_to_memory): Use it.
11521
11522 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
11523 saving the int registers.
11524
11525 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
11526 and DWARF2_UNWIND_INFO conditional compilation.
11527
11528 2010-08-04 Richard Henderson <rth@redhat.com>
11529
11530 PR debug/45171
11531 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
11532 an is_naming_typedef_decl.
11533
11534 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
11535
11536 PR rtl-optimization/45162
11537 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
11538 * dce.c (word_dce_process_block): Likewise.
11539
11540 2010-08-04 Steve Ellcey <sje@cup.hp.com>
11541
11542 PR target/44583
11543 * config/ia64/constraints.md (Z): New.
11544 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
11545 (xfreg_or_signed_fp01_operand): New.
11546 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
11547 with fr_reg_or_signed_fp01_operand and constraint G with Z.
11548 (subsf3): Ditto.
11549 (*maddsf4): Ditto.
11550 (*msubsf4): Ditto.
11551 (adddf3): Ditto.
11552 (adddf3_trunc): Ditto.
11553 (subdf3): Ditto.
11554 (*subdf3_trunc): Ditto.
11555 (*madddf4): Ditto.
11556 (*madddf4_trunc): Ditto.
11557 (*msubdf4): Ditto.
11558 (*msubdf4_trunc): Ditto.
11559 (addxf3): Replace xfreg_or_fp01_operand with
11560 xfreg_or_signed_fp01_operand and constraint G with Z.
11561 (*addxf3_truncsf): Ditto.
11562 (*addxf3_truncdf): Ditto.
11563 (subxf3): Ditto.
11564 (*subxf3_truncsf): Ditto.
11565 (*subxf3_truncdf): Ditto.
11566 (*maddxf4): Ditto.
11567 (*maddxf4_truncsf): Ditto.
11568 (*maddxf4_truncdf): Ditto.
11569 (*msubxf4): Ditto.
11570 (*msubxf4_truncsf): Ditto.
11571 (*msubxf4_truncdf): Ditto.
11572
11573 2010-08-04 Richard Guenther <rguenther@suse.de>
11574
11575 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
11576 if either alias-set is zero.
11577
11578 2010-08-04 Richard Guenther <rguenther@suse.de>
11579
11580 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
11581 * tree-ssa-ccp.c: ... here.
11582 * tree-ssa-copy.c: ... and here.
11583 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
11584 value_range_t): Move ...
11585 * tree-vrp.c: ... here.
11586 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
11587 (substitute_and_fold): Adjust prototype.
11588 * tree-ssa-propagate.c (replace_uses_in): Adjust.
11589 (replace_phi_args_in): Likewise.
11590 (substitute_and_fold): Take callback to query lattice instead
11591 of pointer to lattice. Replace SSA name defs with lattice
11592 values first.
11593 * tree-ssa-ccp.c (ccp_finalize): Adjust.
11594 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
11595 (get_value): New function.
11596 (fini_copy_prop): Adjust.
11597 * tree-vrp.c (vrp_finalize): Adjust.
11598
11599 2010-08-04 Richard Guenther <rguenther@suse.de>
11600
11601 PR middle-end/45176
11602 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
11603 points-to set for original MEM_REF.
11604
11605 2010-08-04 Richard Guenther <rguenther@suse.de>
11606
11607 * tree-ssa-ccp.c (get_constant_value): New function.
11608 (get_rhs_assign_op_for_ccp): Remove.
11609 (valueize_op): New function.
11610 (ccp_fold): Use get_constant_value and valueize_op.
11611 (fold_const_aggregate_ref): Likewise.
11612 (ccp_fold_stmt): Likewise.
11613 (visit_assignment): Simplify.
11614
11615 2010-08-04 Richard Guenther <rguenther@suse.de>
11616
11617 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
11618 * double-int.h (double_int_ctz): Declare.
11619 * double-int.c (double_int_ctz): New function.
11620
11621 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
11622
11623 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
11624 Define.
11625 picochip_expand_movmemhi : Expand movmem pattern.
11626 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
11627 Declare.
11628 * config/picochip/picochip.md (movmemhi) : New pattern.
11629
11630 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11631
11632 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
11633
11634 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
11635
11636 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
11637 NEG as operand of a MULT by merging it with the other operand.
11638 * combine.c (make_compound_operation): Use trunc_int_for_mode when
11639 generating a MULT with constant. Canonicalize PLUS and MINUS involving
11640 MULT.
11641 * config/arm/constraints.md (M): Examine only 32 bits of a
11642 HOST_WIDE_INT.
11643 * config/arm/predicates.md (power_of_two_operand): Likewise.
11644
11645 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11646
11647 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
11648 non-NOTE insns.
11649
11650 2010-08-03 Jan Hubicka <jh@suse.cz>
11651
11652 * ipa-split.c (struct split_point): Add split_part_set_retval.
11653 (find_retval): Forward declare.
11654 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
11655 (consider_split): Compute current->split_part_set_retval.
11656 (visit_bb): Do not look into return value.
11657 (split_function): Handle !split_part_set_retval
11658
11659 2010-08-03 Martin Jambor <mjambor@suse.cz>
11660
11661 * tree-sra.c (completely_scalarize_record): New parameter REF, create
11662 its own access->expr intead of using build_ref_for_offset.
11663
11664 2010-08-03 Joseph Myers <joseph@codesourcery.com>
11665
11666 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
11667 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
11668 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
11669 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
11670 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
11671 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
11672 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
11673 DEFAULT_SWITCH_TAKES_ARG.
11674 * config/rx/rx.opt (-patch=): Remove option.
11675 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
11676 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
11677 * doc/invoke.texi (RX Options): Remove -patch=.
11678 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
11679 (option_map): Remove --profile-blocks, --quiet and --silent.
11680
11681 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11682
11683 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
11684 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
11685 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
11686 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11687 Update calls to ix86_expand_compare and ix86_expand_branch.
11688 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
11689 ix86_expand_compare.
11690 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
11691 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11692 Make static.
11693 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
11694 and ix86_compare_op1. Update calls to ix86_expand_compare.
11695 (ix86_expand_int_movcc): Ditto.
11696 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
11697 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
11698 (ix86_expand_setcc): Ditto.
11699 (ix86_expand_compare): Remove prototype.
11700 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
11701 ix86_compare_op0 and ix86_compare_op1. Update calls
11702 to ix86_expand_branch to directly pass operands[1] and operands[2].
11703 (cbranchxf4): Ditto.
11704 (cbranch<MODEF:mode>4): Ditto.
11705 (cbranchcc4): Ditto.
11706 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
11707 Update calls to ix86_expand_setcc to directly pass operands[2] and
11708 operands[3].
11709 (cstorexf4): Ditto.
11710 (cstore<MODEF:mode>4): Ditto.
11711 (cstorecc4): Ditto.
11712
11713 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11714
11715 PR target/45063
11716 * caller-save.c (save_call_clobbered_regs): Remove regs from
11717 hard_regs_saved when they are set.
11718
11719 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11720
11721 PR target/41089
11722 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11723 as volatile.
11724
11725 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
11726
11727 * common.opt (ftree-loop-distribute-patterns): New.
11728 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
11729 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
11730 at -O3.
11731 * tree-data-ref.c (stores_zero_from_loop): New.
11732 * tree-data-ref.h (stores_zero_from_loop): Declared.
11733 * tree-loop-distribution.c (tree_loop_distribution): Call
11734 stores_zero_from_loop.
11735 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
11736
11737 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11738
11739 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
11740 into account.
11741
11742 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
11743 * config/arm/arm.c (thumb1_code): New variable.
11744 (arm_override_options): Set it.
11745 (thumb1_final_prescan_insn): Keep track of condition code status.
11746 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
11747 jumps that depend on them.
11748 * config/arm/arm.h (thumb1_code): Declare variable.
11749 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
11750 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
11751 thumb1_cc_mode.
11752 (CC_STATUS_INIT): New macro.
11753 * config/arm/constraints.md (Pd): New constraint.
11754 * config/arm/predicates.md (noov_comparison_operator): New predicate.
11755 * config/arm/arm.md (is_thumb1): New define_attr.
11756 (conds): Set default to "clob" when generating Thumb1 code.
11757 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
11758 code are set. Use two-operand assembly syntax.
11759 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
11760 pattern.
11761 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
11762 codes are set. Use two-operand assembly syntax.
11763 (zero_extendhisi splitter): Remove constraints.
11764 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
11765 thumb1_movsf_insn): Set conds attribute as appropriate.
11766 (cbranchsi4_insn): Use condition code status from struct
11767 machine_function to determine whether the comparison can be eliminated.
11768 Discourage the alternative using high registers.
11769 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
11770 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
11771 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
11772 subsi3_cbranch): Delete.
11773 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
11774 one subtract and one cbranch insn.
11775
11776 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
11777 thumb2_movdf_soft_insn): Delete patterns.
11778 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
11779 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
11780 (pool_range, neg_pool_range): Use them to define defaults.
11781 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
11782 and allow for TARGET_32BIT.
11783
11784 PR target/40457
11785 * config/arm/arm.h (arm_regs_in_sequence): Declare.
11786 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
11787 load_multiple_sequence, store_multiple_sequence): Delete
11788 declarations.
11789 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
11790 declarations.
11791 * config/arm/ldmstm.md: New file.
11792 * config/arm/arm.c (arm_regs_in_sequence): New array.
11793 (load_multiple_sequence): Now static. New args SAVED_ORDER,
11794 CHECK_REGS. All callers changed.
11795 If SAVED_ORDER is nonnull, copy the computed order into it.
11796 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
11797 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
11798 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
11799 If SAVED_ORDER is nonnull, copy the computed order into it.
11800 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
11801 like REGS. Handle Thumb mode.
11802 (arm_gen_load_multiple_1): New function, broken out of
11803 arm_gen_load_multiple.
11804 (arm_gen_store_multiple_1): New function, broken out of
11805 arm_gen_store_multiple.
11806 (arm_gen_multiple_op): New function, with code from
11807 arm_gen_load_multiple and arm_gen_store_multiple moved here.
11808 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
11809 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
11810 changed.
11811 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
11812 * config/arm/predicates.md (commutative_binary_operator): New.
11813 (load_multiple_operation, store_multiple_operation): Handle more
11814 variants of these patterns with different starting offsets. Handle
11815 Thumb-1.
11816 * config/arm/arm.md: Include "ldmstm.md".
11817 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
11818 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
11819 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
11820 peepholes): Delete.
11821 * config/arm/ldmstm.md: New file.
11822 * config/arm/arm-ldmstm.ml: New file.
11823
11824 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
11825 if statement which adds extra costs to frame-related expressions.
11826
11827 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11828
11829 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
11830
11831 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
11832
11833 PR target/45142
11834 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
11835 alternative 2.
11836 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
11837 split V4SI operands.
11838
11839 2010-08-01 Anatoly Sokolov <aesok@post.ru>
11840
11841 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11842 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
11843 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
11844 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
11845
11846 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
11847
11848 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
11849 LOCAL_INCLUDE_DIR.
11850
11851 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11852
11853 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
11854 used in the call to optab_for_tree_code. Fix the second
11855 is_widening_mult_p call. Check that both unwidened operands
11856 have the same sign.
11857
11858 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
11859
11860 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
11861
11862 2010-07-31 Anatoly Sokolov <aesok@post.ru>
11863
11864 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11865
11866 2010-07-30 DJ Delorie <dj@redhat.com>
11867
11868 * config/rx/predicates.md (rx_constshift_operand): New.
11869 * config/rx/rx.md (zs_cond): New.
11870 (cbranchsi4): Remove mode.
11871 (*cbranchsi4_<code>): Likewise.
11872 (*tstbranchsi4_<code>): New.
11873 (*tstbranchsi4r_<code>): New.
11874 (*tstbranchsi4m_eq): New.
11875 (*tstbranchsi4m_ne): New.
11876 (cbranchsf4): Remove mode.
11877 (*cbranchsf4_<code>): Likewise.
11878
11879 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
11880
11881 * rtlanal.c (simplify_subreg_regno): Don't treat
11882 HARD_FRAME_POINTER_REGNUM specially.
11883
11884 2010-07-30 Joseph Myers <joseph@codesourcery.com>
11885
11886 * common.opt (-G): Don't define option here.
11887 * config/g.opt: New.
11888 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
11889 rs6000/powerpc and score targets.
11890 * opts.c (common_handle_option): Don't handle -G here.
11891 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
11892 * config/frv/frv.c (frv_handle_option): Handle -G.
11893 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
11894 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
11895 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
11896 * config/mips/mips.c (mips_handle_option): Handle -G.
11897 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
11898 * config/score/score.c (score_handle_option): Handle -G.
11899
11900 2010-07-30 Anatoly Sokolov <aesok@post.ru>
11901
11902 * config/mmix/mmix.c: Include basic-block.h.
11903
11904 2010-07-30 Jakub Jelinek <jakub@redhat.com>
11905
11906 PR debug/45055
11907 PR rtl-optimization/45137
11908 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
11909 prototypes.
11910 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
11911 New functions.
11912 * combine.c (next_nonnote_nondebug_insn): Removed.
11913 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
11914 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
11915 * sched-deps.c (sched_analyze_insn): Likewise.
11916 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
11917 * rtlanal.c (canonicalize_condition): Likewise.
11918 * postreload.c (reload_combine_recognize_pattern): Likewise.
11919 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
11920
11921 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
11922
11923 * config/i386/i386.md (int_cond): Remove code iterator.
11924 (fp_cond): Ditto.
11925 (cbranch<mode>4): Use ordered_comparison_operator predicate
11926 for operator0.
11927 (cstore<mode>4): Ditto for operator1.
11928 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
11929 (add<mode>cc): ditto.
11930
11931 2010-07-30 Richard Guenther <rguenther@suse.de>
11932
11933 PR middle-end/45141
11934 * expr.c (expand_expr_real_1): Check for not handled base address.
11935
11936 2010-07-30 Richard Guenther <rguenther@suse.de>
11937
11938 * ipa-prop.c (ipa_modify_formal_parameters): Use
11939 build_distinct_type_copy.
11940
11941 2010-07-30 Anthony Green <green@moxielogic.com>
11942
11943 * config/moxie/rtems.h: New file.
11944 * config.gcc: Add moxie-rtems support.
11945
11946 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11947
11948 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
11949 df flags as in run_fast_df_dce.
11950
11951 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11952
11953 Revert:
11954 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11955
11956 * rtl.def (NOTE): Swap operands 4 and 5.
11957 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
11958 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
11959 Adjust accordingly.
11960 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
11961
11962 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11963
11964 PR debug/45110
11965 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
11966 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
11967 (gen_subprogram_die): Likewise. Remove it when removing declaration's
11968 formal parameters.
11969 (gen_decl_die): Change return type to dw_die_ref, return what
11970 gen_formal_parameter_die returned.
11971
11972 2010-07-29 Martin Jambor <mjambor@suse.cz>
11973
11974 * dbgcnt.def (eipa_sra): New counter.
11975 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
11976
11977 2010-07-29 Xinliang David Li <davidxl@google.com>
11978
11979 PR bootstrap/45119
11980 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
11981 in revision 162652.
11982
11983 2010-07-29 Richard Guenther <rguenther@suse.de>
11984
11985 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
11986 (TV_TREE_STORE_CCP): Likewise.
11987 (TV_TREE_REDPHI): Likewise.
11988
11989 2010-07-29 Richard Guenther <rguenther@suse.de>
11990
11991 * double-int.h (double_int_and_not): New function.
11992 * combine.c (try_combine): Use it.
11993 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
11994
11995 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11996
11997 PR rtl-optimization/42575
11998 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
11999 Argument AU removed. All callers changed. Ignore artificial refs.
12000 Use return value of df_word_lr_simulate_defs to decide whether an insn
12001 is necessary.
12002 (fast_dce): Rename arg to WORD_LEVEL.
12003 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
12004 static.
12005 (pass_fast_rtl_byte_dce): Delete.
12006 * dce.h (run_word_dce): Declare.
12007 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
12008 All callers changed. Simplify code to only deal with two-word regs.
12009 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
12010 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
12011 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
12012 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
12013 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
12014 (df_word_lr_mark_ref): Declare.
12015 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
12016 df_word_lr_simulate_uses): Declare or rename from byte variants.
12017 (df_byte_lr_simulate_artificial_refs_at_top,
12018 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12019 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
12020 declarations.
12021 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
12022 (enum df_mm): Delete.
12023 * df-byte-scan.c: Delete file.
12024 * df-problems.c (df_word_lr_problem_data): Renamed from
12025 df_byte_lr_problem_data, all members deleted except for
12026 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
12027 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
12028 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12029 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
12030 df_byte_lr_confluence_0): Delete functions.
12031 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
12032 callers changed.
12033 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
12034 Don't initialize members that were deleted, don't try to discover data
12035 about registers. Ignore hard regs.
12036 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
12037 (df_word_lr_mark_ref): New function.
12038 (df_word_lr_bb_local_compute): Renamed from
12039 df_byte_bb_lr_local_compute; all callers changed. Use
12040 df_word_lr_mark_ref. Assert that artificial refs don't include
12041 pseudos. Ignore hard registers.
12042 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
12043 Assert that exit block uses don't contain pseudos.
12044 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
12045 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
12046 callers changed. Ignore hard regs.
12047 (df_word_lr_transfer_function): Renamed from
12048 df_byte_lr_transfer_function; all callers changed.
12049 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
12050 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
12051 changed.
12052 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
12053 callers changed.
12054 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
12055 confluence operator 0 set to NULL.
12056 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
12057 callers changed.
12058 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
12059 Return bool, true if bitmap changed or insn otherwise necessary.
12060 All callers changed. Simplify using df_word_lr_mark_ref.
12061 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12062 all callers changed. Simplify using df_word_lr_mark_ref.
12063 * lower-subreg.c: Include "dce.h"
12064 (decompose_multiword_subregs): Call run_word_dce if df available.
12065 * Makefile.in (lower-subreg.o): Adjust dependencies.
12066 (df-byte-scan.o): Delete.
12067 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12068
12069 2010-07-29 Richard Guenther <rguenther@suse.de>
12070
12071 * tree.c (build_vector): Assert that the vector constant
12072 has enough elements.
12073 (build_vector_from_ctor): Pad with trailing zeros.
12074
12075 2010-07-29 Richard Guenther <rguenther@suse.de>
12076
12077 PR tree-optimization/45120
12078 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12079 Handle offset in DEREFs properly.
12080 (get_constraint_for_1): Handle MEM_REF offset properly.
12081
12082 2010-07-29 Richard Guenther <rguenther@suse.de>
12083
12084 PR middle-end/45034
12085 * convert.c (convert_to_integer): Always use an unsigned
12086 type for narrowed negate and bitwise not.
12087
12088 2010-07-29 Ira Rosen <irar@il.ibm.com>
12089
12090 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12091 to outer loop when creating reduction epilogue for double reduction,
12092 and switch back to the inner loop when updating the phi nodes.
12093 Update uses of outer loop exit phi nodes in double reduction (instead
12094 of uses of reduction).
12095
12096 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12097
12098 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12099 popcount on power7 and parity on power6 systems.
12100 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12101 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12102 instructions.
12103
12104 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12105 (UNSPEC_PARITY): Ditto.
12106 (SFDF): New iterator for SF/DF.
12107 (rreg2): New mode attribute for floating register constraint.
12108 (TARGET_FLOAT): New mode attribute for whether single/double float
12109 is supported.
12110 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
12111 pattern.
12112 (parity<mode>2_cmpb): New insn for parity on power6 and newer
12113 machines.
12114 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
12115 pattern. Add support for fcpsgn instruction added in power6.
12116 (copysignsf3): Delete.
12117 (copysigndf3): Delete.
12118 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
12119 instead of if_then_else in RTL to avoid problems with -0.
12120
12121 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
12122 of if_then_else to mirror scalar code.
12123 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
12124 rs6000.md.
12125
12126 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
12127 instead of if_then_else.
12128
12129 2010-07-28 Xinliang David Li <davidxl@google.com>
12130
12131 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
12132 (dump_cand): Dump var_before/after.
12133 (htab_inv_expr_eq): New function.
12134 (htab_inv_expr_hash): New function.
12135 (tree_ssa_iv_optimize_init): Support pseudo invariants.
12136 (add_candidate_1): consider base type precision.
12137 (set_use_iv_cost): New parameter.
12138 (adjust_setup_cost): Use profile information.
12139 (get_address_cost): Do not hard code width in computing address
12140 offset limits.
12141 (compare_aff_trees): New function.
12142 (get_loop_invariant_expr_id): New function.
12143 (get_computation_cost_at): New parameter and use profile information.
12144 (get_computation_cost): New parameter.
12145 (determine_use_iv_cost_generic): Pass new parameter.
12146 (determine_use_iv_cost_address): Ditto.
12147 (determine_use_iv_cost_condition): Ditto.
12148 (autoinc_possible_for_pair): Ditto.
12149 (determine_use_iv_costs): More dumps.
12150 (iv_ca_get_num_inv_exprs): New function.
12151 (iv_ca_recount_cost): Consider loop invariants in register pressure
12152 cost.
12153 (iv_ca_add_use): New parameter.
12154 (iv_ca_dump): Better dumping.
12155 (iv_ca_extend): New parameter.
12156 (try_add_cand_for): Attempt to get better partial solution.
12157 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
12158 (create_new-ivs): More dumps.
12159 (rewrite_use_compare): Ditto.
12160 (free_loop_data): More cleanup.
12161 (treee_ssa_iv_optimize_finalize): Ditto.
12162
12163 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
12164
12165 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
12166 * config/i386/i386.c (ix86_profile_before_prologue): New.
12167 (override_options): Add special handling for -mfentry.
12168 (ix86_function_regparm): Likewise.
12169 (ix86_function_sseregparm): Likewise.
12170 (ix86_frame_pointer_required): Likewise.
12171 (ix86_expand_prologue): Check for ms_hook_prologue.
12172 (x86_function_profiler): Adjust mcount output.
12173 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
12174 * config/i386/i386.opt (mfentry): New.
12175 * doc/invoke.texi (mfentry): Add documentation.
12176 * doc/tm.texi: Regenerated..
12177 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
12178 * final.c (final_start_function): Replace macro
12179 PROFILE_BEFORE_PROLOGUE by target hook.
12180 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12181 * target.def (profile_before_prologue): New hook.
12182 * targhooks.c (default_profile_before_prologue): New.
12183 * targhooks.h (default_profile_before_prologue): New.
12184
12185 2010-07-28 Jakub Jelinek <jakub@redhat.com>
12186
12187 PR debug/45105
12188 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
12189
12190 PR debug/45103
12191 * dwarf2out.c (dwarf2out_var_location): Always consider
12192 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
12193
12194 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12195
12196 PR rtl-optimization/45107
12197 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
12198
12199 2010-07-28 Richard Guenther <rguenther@suse.de>
12200
12201 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
12202 (set_lattice_value): Do not query an old default value.
12203 (get_value_for_expr): New function. Properly canonicalize
12204 float values.
12205 (ccp_visit_phi_node): Use it.
12206
12207 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
12208
12209 * config/arm/arm.c (arm_pcs_default): Remove static.
12210 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
12211 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
12212 (arm_pcs_default): Declare.
12213
12214 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
12215
12216 * config/rs6000/rs6000.c (rs6000_override_options):
12217 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
12218 ... to darwin_rs6000_override_options.
12219 (rs6000_return_in_memory): Update preceding comment for darwin
12220 64 bit ABI. Use TARGET_MACHO inline.
12221 (rs6000_darwin64_struct_check_p): New.
12222 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
12223 (function_arg): Likewise.
12224 (rs6000_arg_partial_bytes): Likewise.
12225 (rs6000_function_value): Likewise.
12226
12227 2010-07-28 Andi Kleen <ak@linux.intel.com>
12228
12229 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
12230
12231 2010-07-28 Richard Guenther <rguenther@suse.de>
12232
12233 PR middle-end/44903
12234 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
12235 targets try harder to not generate unaligned accesses.
12236
12237 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12238
12239 PR rtl-optimization/45101
12240 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
12241 for gcse-las.
12242
12243 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12244
12245 PR tree-optimization/44885
12246 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
12247 with non-aliased component.
12248
12249 2010-07-28 Joseph Myers <joseph@codesourcery.com>
12250
12251 * config/darwin-driver.c (SWITCH_TAKES_ARG,
12252 WORD_SWITCH_TAKES_ARG): Remove.
12253 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
12254 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
12255 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
12256 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
12257 definitions from gcc.c.
12258 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
12259 defaults.h.
12260 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
12261 Move to defaults.h.
12262 * opts-common.c: Include tm.h.
12263 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
12264 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
12265 Handle more than one argument. Set canonical_option_num_elements.
12266 (decode_cmdline_options_to_array): Set
12267 canonical_option_num_elements and trailing elements of
12268 canonical_option.
12269 * opts.h (struct cl_decoded_option): Allow four elements in
12270 canonical_option. Add field canonical_option_num_elements.
12271 * Makefile.in (opts-common.o): Update dependencies.
12272
12273 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12274
12275 PR middle-end/44790
12276 PR middle-end/44993
12277 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
12278 sure the base has address_mode before adding the offset.
12279
12280 2010-07-27 Xinliang David Li <davidxl@google.com>
12281
12282 * tree-flow.h (create_mem_ref): Add one new parameter.
12283 * tree-ssa-address.c (create_mem_ref): New parameter.
12284 (addr_to_parts): Ditto.
12285 (move_variant_to_index): New function.
12286 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
12287
12288 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12289
12290 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
12291 4 and 5.
12292 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
12293 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
12294 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
12295 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
12296 CODE_LABELs and NOTEs.
12297 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
12298 * combine.c (try_combine): Likewise.
12299 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12300 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
12301
12302 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12303
12304 * coretypes.h (struct cl_option_handlers): Declare.
12305 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
12306 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
12307 * langhooks-def.h (lhd_handle_option): Declare.
12308 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
12309 * langhooks.c (lhd_handle_option): New.
12310 * langhooks.h (struct lang_hooks): Update prototype and return
12311 value type of handle_option hook.
12312 * optc-gen.awk: Generate target_flags_explicit definition for the
12313 driver.
12314 * opts-common.c: Include diagnostic.h.
12315 (handle_option): Move from opts.c. Update prototype and return
12316 value type. Use handlers structure.
12317 (read_cmdline_option): Move from opts.c. Update prototype. Use
12318 handlers structure.
12319 (set_option): Move from opts.c.
12320 * opts.c (common_handle_option): Update prototype and return value
12321 type. Update calls to handle_option and enable_warning_as_error.
12322 (unknown_option_callback, post_handling_callback,
12323 lang_handle_option, target_handle_option): New.
12324 (handle_option, read_cmdline_option): Move to opts-common.c.
12325 (read_cmdline_options): Update prototype. Update call to
12326 read_cmdline_option.
12327 (decode_options): Initialize and use handlers structure.
12328 (set_option): Move to opts-common.c.
12329 (enable_warning_as_error): Update prototype. Update call to
12330 handle_option.
12331 * opts.h (struct cl_option_handler_func, struct
12332 cl_option_handlers): New.
12333 (handle_option, enable_warning_as_error): Update prototypes.
12334 (read_cmdline_option): Declare.
12335 * Makefile.in (opts-common.o): Update dependencies.
12336
12337 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12338
12339 * config/arm/arm.c (params.h): Include.
12340 (arm_override_options): Tune gcse-unrestricted-cost.
12341 * config/arm/t-arm (arm.o): Define dependencies.
12342
12343 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12344
12345 PR target/42495
12346 PR middle-end/42574
12347 * basic-block.h (get_dominated_to_depth): Declare.
12348 * dominance.c (get_dominated_to_depth): New function, use
12349 get_all_dominated_blocks as a base.
12350 (get_all_dominated_blocks): Use get_dominated_to_depth.
12351
12352 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
12353 (hoist_exprs): Remove.
12354 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
12355 (compute_code_hoist_vbeinout): Add debug print outs.
12356 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
12357
12358 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
12359 quadratic behavior.
12360 * params.h (MAX_HOIST_DEPTH): New macro.
12361 * doc/invoke.texi (max-hoist-depth): Document.
12362
12363 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12364
12365 PR rtl-optimization/40956
12366 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
12367 constants.
12368
12369 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12370
12371 PR target/42495
12372 PR middle-end/42574
12373 * config/arm/arm.c (legitimize_pic_address): Use
12374 gen_calculate_pic_address pattern to emit calculation of PIC address.
12375 (will_be_in_index_register): New function.
12376 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
12377 (thumb1_legitimate_address_p): Use it provided !strict_p.
12378 * config/arm/arm.md (calculate_pic_address): New expand and split.
12379
12380 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12381
12382 PR target/42495
12383 PR middle-end/42574
12384 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
12385 * config/arm/arm.md (define_split "J", define_split "K"): Make
12386 IRA/reload friendly.
12387
12388 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12389
12390 * gcse.c (insert_insn_end_basic_block): Update signature, remove
12391 unused checks.
12392 (pre_edge_insert, hoist_code): Update.
12393
12394 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12395
12396 PR target/42495
12397 PR middle-end/42574
12398 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
12399
12400 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12401
12402 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
12403
12404 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12405
12406 PR rtl-optimization/40956
12407 PR target/42495
12408 PR middle-end/42574
12409 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
12410 for hoisting.
12411 (hoist_code): Count occurences in current block too.
12412
12413 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12414
12415 * gcse.c (struct expr:max_distance): New field.
12416 (doing_code_hoisting_p): New static variable.
12417 (want_to_gcse_p): Change signature. Allow constrained hoisting of
12418 simple expressions, don't change behavior for PRE. Set max_distance.
12419 (insert_expr_in_table): Set new max_distance field.
12420 (hash_scan_set): Update.
12421 (hoist_expr_reaches_here_p): Stop search after max_distance
12422 instructions.
12423 (find_occr_in_bb): New static function. Use it in ...
12424 (hoist_code): Calculate sizes of basic block before any changes are
12425 done. Pass max_distance to hoist_expr_reaches_here_p.
12426 (one_code_hoisting_pass): Set doing_code_hoisting_p.
12427
12428 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
12429 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
12430 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
12431 macros.
12432 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
12433 Document.
12434
12435 2010-07-27 Jeff Law <law@redhat.com>
12436 Maxim Kuvyrkov <maxim@codesourcery.com>
12437
12438 * gcse.c (compute_transpout, transpout): Remove, move logic
12439 to prune_expressions.
12440 (compute_pre_data): Move pruning of trapping expressions ...
12441 (prune_expressions): ... here. New static function.
12442 (compute_code_hoist_data): Use it.
12443 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
12444
12445 2010-07-27 Xinliang David Li <davidxl@google.com>
12446
12447 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
12448 (rewrite_use_address): Adjust iv update position when needed.
12449
12450 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12451
12452 * dbgcnt.def (hoist_insn): New debug counter.
12453 * gcse.c (hoist_code): Use it.
12454
12455 2010-07-27 Xinliang David Li <davidxl@google.com>
12456
12457 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
12458 (niter_for_single_dom_exit): Passes additional parameter.
12459 (iv_period): Fix comments.
12460 (may_eliminate_iv): Handles multiple exit loops properly.
12461 (free_tree_niter_desc): New function.
12462 (free_loop_data): Frees up loop iteration descriptors.
12463
12464 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12465
12466 PR target/44542
12467 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
12468 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
12469 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
12470 (expand_one_var): Don't consider DECL_ALIGN for variables for
12471 which expand_one_stack_var_at has been already called.
12472
12473 PR testsuite/44701
12474 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
12475 constraints on IA-64.
12476
12477 2010-07-27 Jie Zhang <jie@codesourcery.com>
12478
12479 PR target/44290
12480 Revert:
12481 2010-07-23 Jie Zhang <jie@codesourcery.com>
12482
12483 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12484 false if ! tree_versionable_function_p.
12485
12486 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12487
12488 * dwarf2out.c (add_data_member_location_attribute): Use
12489 add_AT_unsigned instead of add_AT_int if offset is non-negative.
12490
12491 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12492
12493 * postreload.c (try_replace_in_use): New static function.
12494 (reload_combine_recognize_const_pattern): Use it here. Allow
12495 substituting into a final add insn, and substituting into a memory
12496 reference in an insn that sets the reg.
12497
12498 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12499
12500 * common.opt (o): Add MissingArgError.
12501 * doc/options.texi (MissingArgError): Document.
12502 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
12503 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
12504 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12505 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
12506 * langhooks.h (struct lang_hooks): Remove missing_argument.
12507 * optc-gen.awk: Handle MissingArgError and output new structure
12508 field initializers.
12509 * opts.c (read_cmdline_option): Use missing_argument_error field
12510 instead of missing_argument langhook.
12511 * opts.h (struct cl_option): Add missing_argument_error field.
12512 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
12513
12514 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12515
12516 PR target/29090
12517 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
12518 Darwin64 ABI, for zero-sized objects.
12519
12520 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12521
12522 PR target/35491
12523 PR target/29090
12524
12525 Merge from Apple local 4.2.1.
12526 2005-05-11 Stan Shebs <shebs@apple.com>
12527 Fix 64-bit varargs for Darwin (Radar 4028089).
12528 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
12529 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12530 Add argument, add case for 8-byte register half-filled with a float.
12531 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
12532 single-precision floats specially.
12533
12534 2010-07-27 Ira Rosen <irar@il.ibm.com>
12535
12536 PR tree-optimization/44152
12537 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
12538 complex numbers for further check.
12539 (vect_supported_load_permutation_p): Check nodes with
12540 complex numbers.
12541
12542 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12543
12544 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
12545 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
12546 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
12547 (LANG_HOOKS_INITIALIZER): Add new hooks.
12548 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
12549 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
12550 and complain_wrong_lang_p. Update init_options prototype.
12551 * c-objc-common.c (c_initialize_diagnostics): First call
12552 c_common_initialize_diagnostics.
12553 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
12554 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
12555 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
12556 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
12557 (hook_uint_void_0): New.
12558 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
12559 (hook_uint_void_0): New.
12560 * opts-common.c (decode_cmdline_option,
12561 decode_cmdline_options_to_array): Also fill in canonical_option field.
12562 * opts.c (complain_wrong_lang): Use langhook to determine whether
12563 to complain instead of special-casing LTO.
12564 (decode_options): Separate lang_mask determination with
12565 option_lang_mask hook from call of init_options hook.
12566 * opts.h (struct cl_decoded_option): Add canonical_option.
12567
12568 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12569
12570 PR tree-optimization/45083
12571 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
12572
12573 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12574
12575 * postreload.c (reload_combine_recognize_const_pattern): Move test
12576 for limiting the insn movement to the right scope.
12577
12578 PR rtl-optimization/45051
12579 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
12580 than reg_mentioned_p.
12581
12582 2010-07-26 Richard Henderson <rth@redhat.com>
12583
12584 PR target/44132
12585 * tree-emutls.c: New file.
12586 * Makefile.in (OBJS-common): Add it.
12587 * tree-pass.h (pass_ipa_lower_emutls): Declare.
12588 * passes.c (init_optimization_passes): Add it.
12589
12590 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
12591 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
12592 * expr.c (emutls_var_address): Delete.
12593 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
12594 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
12595 (emutls_finish): Delete.
12596 * toplev.c (compile_file): Don't call it.
12597 * tree.h (emutls_decl): Delete.
12598 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
12599 (emutls_finish, emutls_finalize_control_var): Delete.
12600 (emutls_object_type): Move to tree-emutls.c.
12601 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
12602 default_emutls_var_fields, get_emutls_object_type,
12603 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
12604 default_emutls_var_init): Likewise.
12605 (get_variable_section): Don't special case emutls.
12606 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
12607 default_elf_select_section, default_unique_section,
12608 default_encode_section_info): Likewise.
12609 * varpool.c (decide_is_variable_needed): Likewise.
12610 * gimple-iterator.c (update_call_edge_frequencies): New
12611 (gsi_insert_on_edge_immediate): Use it.
12612 (gsi_insert_seq_on_edge_immediate): Likewise.
12613 (gsi_commit_one_edge_insert): Likewise.
12614
12615 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
12616 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
12617 (x86_64_elf_unique_section): Likewise.
12618
12619 2010-07-26 Jan Hubicka <jh@suse.cz>
12620
12621 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
12622 GTY((skip)).
12623
12624 2010-07-26 Anatoly Sokolov <aesok@post.ru>
12625
12626 * target.def (output_source_filename): New hook.
12627 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
12628 * doc/tm.texi: Regenerate.
12629 * toplev.c (output_file_directive) Remove function.
12630 * toplev.h (output_file_directive) Remove.
12631 * output.h (default_asm_output_source_filename,
12632 output_file_directive): Declare.
12633 * varasm.h (default_asm_output_source_filename,
12634 output_file_directive): New functions.
12635
12636 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12637 * config/mips/mips-protos.h (mips_output_filename): Remove.
12638 * config/mips/mips.c (mips_output_filename): Make Static.
12639 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12640
12641 2010-07-26 Richard Guenther <rguenther@suse.de>
12642
12643 PR tree-optimization/43784
12644 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
12645 if the destination is used by the call.
12646
12647 2010-07-26 Richard Guenther <rguenther@suse.de>
12648
12649 PR middle-end/45073
12650 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
12651 SSA updating on being in SSA form.
12652
12653 2010-07-26 Richard Guenther <rguenther@suse.de>
12654
12655 PR middle-end/45056
12656 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
12657
12658 2010-07-26 Richard Guenther <rguenther@suse.de>
12659
12660 PR tree-optimization/45071
12661 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
12662 adjust op->opcode.
12663
12664 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
12665
12666 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
12667 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
12668 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
12669 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
12670 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
12671 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
12672 save_r31, return_r31, save_interrupt, return_interrupt,
12673 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
12674 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
12675 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
12676 new ABI requirements.
12677 (save_r6_r9, L_callt_save_r6_r9): Remove.
12678 * config/v850/predicates.md (even_reg_operand, disp23_operand,
12679 const_float_1_operand const_float_0_operand): New Predicates.
12680 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
12681 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
12682 * config/v850/t-v850: Update multilibs for new target variants.
12683 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
12684 * config/v850/t-v850e: Likewise.
12685 * config/v850/v850.c (v850_issue_rate): New.
12686 (v850_strict_argument_naming): New.
12687 (function_arg): Modify to generate a different ABI.
12688 (print_operand): Update case 'z' to support float modes.
12689 (output_move_single): Modify to generate appropriate and better
12690 assembly.
12691 (v850_float_z_comparison_operator, v850_select_cc_mode,
12692 v850_float_nz_comparison_operator, v850_gen_float_compare,
12693 v850_gen_compare): New functions to support comparison of float values.
12694 (ep_memory_offset): Add support for V850E2 targets.
12695 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
12696 (INTERRUPT_REGPARM_NUM): Remove.
12697 (compute_register_save_size): Add extra case to save/restore long call.
12698 (use_prolog_function): New function to support prologue.
12699 (expand_prologue): Add support for V850E2 targets and modified
12700 as per the current ABI requirements.
12701 (expand_epilogue): Likewise.
12702 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
12703 (construct_save_jarl): Likewise.
12704 (construct_dispose_instruction): Update as per the current ABI
12705 requirements.
12706 (construct_prepare_instruction): Likewise.
12707 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
12708 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
12709 (CPP_SPEC): Updated to support v850e2 targets.
12710 (STRICT_ALIGNMENT): Modified.
12711 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
12712 (FIXED_REGISTERS): Likewise.
12713 (CALL_USED_REGISTERS): Likewise.
12714 (CONDITIONAL_REGISTER_USAGE): Updated.
12715 (HARD_REGNO_MODE_OK): Updated.
12716 (reg_class): Updated to add even registers.
12717 (REG_CLASS_NAMES): Likewise.
12718 (REG_CLASS_CONTENTS): Likewise.
12719 (REGNO_REG_CLASS): Updated for CC registers.
12720 (REG_CLASS_FROM_LETTER): Added support for even registers.
12721 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
12722 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
12723 ARG_POINTER_REGNUM): Updated.
12724 (FUNCTION_ARG_ADVANCE): Define.
12725 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
12726 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
12727 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
12728 (GO_IF_LEGITIMATE_ADDRESS): Updated.
12729 (SELECT_CC_MODE): Define.
12730 (REGISTER_NAMES): Updated to add psw and fcc registers.
12731 (ADDITIONAL_REGISTER_NAMES): Updated.
12732 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
12733 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
12734 * config/v850/v850.md (define_constants): Define new constants.
12735 (type): Update store,bit1,macc,div,fpu and single attributes.
12736 (cpu): New attribute.
12737 (cc): Add set_z attribute.
12738 (unsign23byte_load, sign23byte_load, unsign23hword_load,
12739 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
12740 23word_store): New instructions for 23-bit displacement load and store.
12741 (movqi_internal, movhi_internal): Update the attributes.
12742 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
12743 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
12744 the attributes.
12745 (v850_tst1): Modified using CC_REGNUM.
12746 (tstsi): Remove.
12747 (cmpsi): Modified as define_expand from define_insn.
12748 (cmpsi_insn, cmpsf, cmpdf): New instructions.
12749 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
12750 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
12751 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
12752 one_cmplsi2): Clobber the CC_REGNUM register.
12753 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
12754 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
12755 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
12756 (setf_insn, set_z_insn, set_nz_insn): New instructions for
12757 v850e2v3 target.
12758 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
12759 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
12760 targets.
12761 (sasf_1, sasf_2): Remove.
12762 (sasf): New instruction.
12763 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
12764 targets. CC_REGNUM register is clobbered and attributes are
12765 updated.
12766 (branch_z_normal, branch_z_invert, branch_nz_normal,
12767 branch_nz_invert): New branch related instructions.
12768 (jump): Updated the attributes.
12769 (switch): Update to support new targets. CC_REGNUM register is
12770 clobbered and attributes are updated.
12771 (call_internal_short, call_internal_long, call_value_internal_short,
12772 call_value_internal_long): Updated the attributes.
12773 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
12774 clobbered and attributes are updated.
12775 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
12776 Update to support new targets. CC_REGNUM register is clobbered.
12777 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
12778 instructions.
12779 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
12780 are updated.
12781 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
12782 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
12783 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
12784 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
12785 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
12786 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
12787 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
12788 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
12789 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
12790 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
12791 point instructions defined for V850e2v3 target.
12792 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
12793 Add support for V850E2 targets and CC_REGNUM register is clobbered.
12794 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
12795 support for new targets.
12796 * config/v850/v850-modes.def: New file.
12797 * config/v850/v850.opt(mstrict-align): Remove.
12798 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
12799 mv850e2v3): New command line options for V850.
12800 * config.gcc: Update the newly added files.
12801 * doc/invoke.texi: Update the newly added command line options for
12802 V850 target.
12803
12804 2010-07-26 Richard Guenther <rguenther@suse.de>
12805
12806 PR tree-optimization/45052
12807 * ipa-pure-const.c (check_stmt): Check volatileness.
12808
12809 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12810
12811 PR target/44707
12812 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
12813 * config/sparc/sparc.c: Include reload.h.
12814 (legitimize_tls_address): Rename into...
12815 (sparc_legitimize_tls_address): ...this.
12816 (legitimize_pic_address): Rename into...
12817 (sparc_legitimize_pic_address): ...this.
12818 (sparc_expand_move): Adjust to above renaming.
12819 (sparc_tls_referenced_p): Likewise.
12820 (sparc_legitimize_tls_address): Likewise.
12821 (sparc_legitimize_pic_address): Likewise.
12822 (sparc_legitimize_address): Likewise.
12823 (sparc_output_mi_thunk): Likewise.
12824 (sparc_legitimize_reload_address): New global function. Recognize
12825 (lo_sum (high ...) ...) patterns generated by earlier passes.
12826 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
12827
12828 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12829
12830 PR target/44484
12831 * config/sparc/predicates.md (memory_reg_operand): Delete.
12832 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
12833 (*sync_compare_and_swap): Encode the address form in the pattern.
12834 (*sync_compare_and_swapdi_v8plus): Likewise.
12835
12836 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
12837
12838 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
12839 Streamline paragraph on compatibility with the system compiler.
12840
12841 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
12842
12843 PR middle-end/45035
12844 * alias.c (true_dependence_1): Fix thinko in merge of old
12845 true_dependence and canon_true_dependence.
12846
12847 2010-07-23 Jan Hubicka <jh@suse.cz>
12848
12849 * lto-streamer-out.c (write_symbol): Fix visibilities of external
12850 references.
12851
12852 2010-07-23 Le-Chun Wu <lcwu@google.com>
12853
12854 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
12855 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
12856 and an unnecessary assignment.
12857 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
12858 self-assign warning.
12859 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
12860 unnecessary self-init.
12861
12862 2010-07-23 Richard Guenther <rguenther@suse.de>
12863
12864 PR lto/43071
12865 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
12866 for -flto and -fwhopr.
12867
12868 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
12869
12870 PR target/41943
12871 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
12872 (stmp-int-hdrs): Prefix/postfix headers by include_next.
12873 * config.gcc (user_headers_inc_next_pre): New.
12874 (user_headers_inc_next_post): Likewise.
12875 (*-w64-mingw*): Use for float.h post-fixing, and for
12876 stddef.h/stdarg.h pre-fixing by include_next.
12877 * configure.ac (user_headers_inc_next_post): New.
12878 (user_headers_inc_next_pre): New.
12879 * configure: Regenerated.
12880
12881 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12882
12883 * configure.ac: Don't disable TLS on Solaris 8/9 by default
12884 Set tga_func for Solaris 2/x86 resp. SPARC.
12885 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
12886 (LIB_THREAD_LDFLAGS_SPEC): Define.
12887 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
12888 * configure: Regenerate.
12889 * config.in: Regenerate.
12890 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
12891 -pthread, -threads, LIB_TLS_SPEC with -pthread.
12892 * doc/install.texi (Specific, *-*-solaris2*): Document use of
12893 alternate thread libraries on Solaris 8.
12894 Document TLS patch requirements.
12895 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
12896 Document tls.
12897
12898 PR target/18788
12899 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
12900 -shared.
12901
12902 2010-07-23 Jakub Jelinek <jakub@redhat.com>
12903
12904 * tree.h (struct tree_base): Add nameless_flag bitfield.
12905 (TYPE_NAMELESS, DECL_NAMELESS): Define.
12906 * omp-low.c (create_omp_child_function, scan_omp_parallel,
12907 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
12908 DECL_ARTIFICIAL where needed.
12909 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
12910 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
12911 has DECL_NAMELESS set.
12912
12913 2010-07-23 Martin Jambor <mjambor@suse.cz>
12914
12915 PR tree-optimization/44915
12916 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
12917 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
12918 (analyze_function): Likewise.
12919
12920 2010-07-23 Martin Jambor <mjambor@suse.cz>
12921
12922 PR tree-optimization/44914
12923 * tree-sra.c (sra_modify_function_body): Return true if CFG was
12924 changed, add purging dead eh edges.
12925 (ipa_sra_modify_function_body): Return true if CFG was changed,
12926 simplify purging dead eh edges.
12927 (modify_function): Return true if CFG was changed.
12928 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
12929 was changed.
12930 (ipa_early_sra): Likewise.
12931
12932 2010-07-23 Jie Zhang <jie@codesourcery.com>
12933
12934 PR target/44290
12935 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
12936 if "naked".
12937 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12938 false if ! tree_versionable_function_p.
12939
12940 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
12941
12942 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
12943 * ipa-pure-const.c (special_builtlin_state): Remove
12944 BUILT_IN_ARGS_INFO case.
12945 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12946 * builtins.c (expand_builtin): Likewise.
12947 (expand_builtin_args_info): Remove.
12948 * doc/tm.texi (__builtin_args_info): Remove.
12949 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
12950 * doc/tm.text.in: Likewise.
12951
12952 2010-07-23 Richard Guenther <rguenther@suse.de>
12953
12954 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
12955 (lto_symtab_merge_decls_2): Likewise.
12956 * tree-ssa.c (useless_type_conversion_p): Likewise.
12957 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12958 * gimple.c (gtc_visited2, gtc_ob2): Remove.
12959 (struct type_pair_d): Make same_p an array indexed by mode.
12960 Update comment.
12961 (lookup_type_pair): Update initialization.
12962 (struct sccs): Adjust same_p type.
12963 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
12964 Adjust.
12965 (print_gimple_types_stats): Likewise.
12966 * gimple.h (enum gtc_mode): New.
12967 (gimple_types_compatible_p): Adjust prototype.
12968
12969 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
12970
12971 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
12972 again after processing insn.
12973
12974 2010-07-23 Jie Zhang <jie@codesourcery.com>
12975
12976 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
12977 proper words when !tree_versionable_function_p.
12978
12979 2010-07-23 Richard Guenther <rguenther@suse.de>
12980
12981 PR tree-optimization/45037
12982 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
12983
12984 2010-07-23 Jie Zhang <jie@codesourcery.com>
12985
12986 * doc/extend.texi: Remove IP2K from the description of naked attribute.
12987 Add MCORE instead.
12988
12989 2010-07-10 Andi Kleen <ak@linux.intel.com>
12990
12991 PR lto/44992
12992 * lto-opts.c (lto_write_options): Add NULL file_data argument to
12993 lto_get_section_name.
12994 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12995 * lto-streamer-out.c (produce_asm): Likewise.
12996 (copy_function): Likewise.
12997 (produce_symtab): Likewise.
12998 (produce_asm_for_decls): Likewise.
12999 * lto-streamer.c (lto_get_section_name): Add file_data argument.
13000 Rewrite to add random postfix to LTO sections.
13001 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
13002 (lto_get_section_name): Add file_data argument to prototype.
13003
13004 2010-07-10 Andi Kleen <ak@linux.intel.com>
13005
13006 * lto-section-in.c (lto_section_name): Synchronize names
13007 with lto_get_section_name.
13008
13009 2010-07-10 Andi Kleen <ak@linux.intel.com>
13010
13011 * lto-opts.c (lto_read_file_options): Check for missing section.
13012
13013 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13014
13015 * ira.c (check_allocation): Correctly handle the case where an allocno
13016 with two objects was allocated to a single reg.
13017
13018 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
13019
13020 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
13021 (is_widening_mult_p): Likewise.
13022 (convert_to_widen): Use them.
13023 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
13024 well as integer ones.
13025
13026 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
13027
13028 * alias.c (true_dependence_1): New function, merged version of
13029 true_dependence and canon_true_dependence.
13030 (true_dependence): Simplify.
13031 (canon_true_dependence): Simplify.
13032
13033 2010-07-22 Richard Henderson <rth@redhat.com>
13034
13035 PR target/45027
13036 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
13037 of V4SFmode for the SSE saves; increase stack alignment if needed.
13038 (ix86_gimplify_va_arg): Don't increase stack alignment here.
13039
13040 2010-07-22 Jakub Jelinek <jakub@redhat.com>
13041
13042 PR bootstrap/45028
13043 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
13044 call cprop_find_used_regs again via note_uses.
13045
13046 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
13047
13048 * alias.c (get_alias_set): Fix formatting issues.
13049
13050 2010-07-22 Steve Ellcey <sje@cup.hp.com>
13051
13052 PR middle-end/44878
13053 * stmt.c (expand_value_return): Call promote_function_mode with
13054 a for_return argument of 2 when returning by reference.
13055
13056 2010-07-22 Dodji Seketeli <dodji@redhat.com>
13057
13058 PR debug/45024
13059 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13060 unit DIE if we can find the scope DIE.
13061
13062 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13063
13064 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13065 changed. Initialize OBJECT_SUBWORD.
13066 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13067 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13068 all callers changed.
13069 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13070 (finish_allocno): Likewise.
13071 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13072 (remove_low_level_allocnos): Likewise.
13073 (update_bad_spill_attribute): Likewise.
13074 (setup_min_max_allocno_live_range_point): Likewise.
13075 (sort_conflict_id_map): Likewise.
13076 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
13077 (ior_hard_reg_conflicts): New function.
13078 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13079 (compress_conflict_vecs): Iterate over objects, not allocnos.
13080 (ira_add_live_range_to_object): New function.
13081 (object_range_compare_func): Renamed from allocno_range_compare_func.
13082 All callers changed.
13083 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13084 subobjects, widen the min/max range of the lowest-order object to
13085 potentially include all other such low-order objects.
13086 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13087 (check_allocation): Likewise. Use more fine-grained tests for register
13088 conflicts.
13089 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13090 allocno subobjects.
13091 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
13092 choices about which bits to set in each set. Don't use
13093 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13094 using the multiple sets we computed.
13095 (push_allocno_to_stack): Iterate over allocno subobjects.
13096 (all_conflicting_hard_regs_coalesced): New static function.
13097 (setup_allocno_available_regs_num): Use it.
13098 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
13099 subobjects.
13100 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13101 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13102 by ALLOCNO_NUM_OBJECTS.
13103 (calculate_spill_cost): Likewise.
13104 (color_pass): Express if statement in a more normal way.
13105 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13106 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13107 (setup_slot_coalesced_allocno_live_ranges): Likewise.
13108 (allocno_reload_assign): Likewise.
13109 (ira_reassign_pseudos): Likewise.
13110 (fast_allocation): Likewise.
13111 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13112 (print_allocno_conflicts): Likewise.
13113 (ira_build_conflicts): Likewise.
13114 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
13115 callers changed. Test subword 0 of each allocno for conflicts.
13116 (build_object_conflicts): Renamed from build_allocno_conflicts. All
13117 callers changed. Iterate over allocno subobjects.
13118 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
13119 * ira-int.h (struct ira_allocno): New member: num_objects.
13120 Rename object to objects and change it into an array.
13121 (ALLOCNO_OBJECT): Add new argument N.
13122 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
13123 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
13124 (ior_hard_reg_conflicts): Declare.
13125 (ira_add_live_range_to_object): Declare.
13126 (ira_allocno_object_iterator): New.
13127 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
13128 (FOR_EACH_ALLOCNO_OBJECT): New macro.
13129 * ira-lives.c (objects_live): Renamed from allocnos_live; all
13130 uses changed.
13131 (allocnos_processed): New sparseset.
13132 (make_object_born): Renamed from make_allocno_born; take an
13133 ira_object_t argument. All callers changed.
13134 (make_object_dead): Renamed from make_allocno_dead; take an
13135 ira_object_t argument. All callers changed.
13136 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
13137 All callers changed.
13138 (mark_pseudo_regno_live): Iterate over allocno subobjects.
13139 (mark_pseudo_regno_dead): Likewise.
13140 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
13141 functions.
13142 (mark_ref_live): Detect subword accesses and call
13143 mark_pseudo_regno_subword_live as appropriate.
13144 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
13145 (process_bb_nodes_live): Deal with object-related updates first; set
13146 and test bits in allocnos_processed to avoid computing allocno
13147 statistics more than once.
13148 (create_start_finish_chains): Iterate over objects, not allocnos.
13149 (print_object_live_ranges): New function.
13150 (print_allocno_live_ranges): Use it.
13151 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
13152 and objects_live.
13153
13154 2010-07-22 Richard Guenther <rguenther@suse.de>
13155
13156 PR lto/42451
13157 * gimple.c (gtc_next_dfs_num): New global.
13158 (struct sccs): Make value a union, add integer same_p member.
13159 (gtc_visit): New function.
13160 (gimple_types_compatible_p_1): New function, split out from ...
13161 (gimple_types_compatible_p): ... here. Start a DFS walk here.
13162 (iterative_hash_gimple_type): Adjust for sccs change.
13163
13164 2010-07-22 Martin Jambor <mjambor@suse.cz>
13165
13166 PR tree-optimization/44891
13167 * tree-sra.c: Include gimple-pretty-print.h.
13168 (replace_uses_with_default_def_ssa_name): Renamed to
13169 get_repl_default_def_ssa_name, return the new SSA name instead of
13170 replacing the old one.
13171 (sra_modify_assign): Dump a message when removing a load, if the LHS
13172 is an SSA_NAME, do not do any propagation, just set the RHS to a
13173 default definition SSA NAME, type convert if necessary.
13174 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
13175
13176 2010-07-22 Richard Guenther <rguenther@suse.de>
13177
13178 PR tree-optimization/45017
13179 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
13180 TYPE_PRECISION of integral types in addition to size.
13181
13182 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
13183
13184 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
13185 when no C library is specified.
13186
13187 2010-07-22 Martin Jambor <mjambor@suse.cz>
13188
13189 * ipa-prop.h (struct ipa_node_params): Updated comment.
13190 (struct ipa_edge_args): Likewise.
13191 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
13192
13193 2010-07-22 Martin Jambor <mjambor@suse.cz>
13194
13195 * cgraphunit.c (verify_edge_count_and_frequency): New function.
13196 (verify_cgraph_node): Verify frequencies of indirect edges.
13197 * tree-inline.c (tree_function_versioning): Update frequencies of
13198 indirect edges.
13199
13200 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13201
13202 PR target/43698
13203 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
13204 Set *arm_rev to be predicable.
13205
13206 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13207
13208 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
13209 (LINK_COMMAND_SPEC_A): New.
13210 (DSYMUTIL): New.
13211 (DSYMUTIL_SPEC): New.
13212 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
13213 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
13214
13215 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13216
13217 * calls.c (load_register_parameters): Move check for zero
13218 sized items so that only the call to
13219 mem_overlaps_already_clobbered_arg_p () is protected.
13220
13221 2010-07-22 Jan Hubicka <jh@suse.cz>
13222
13223 * ipa-pure-const.c (varying_state): Break out from ...
13224 (get_function_state): ... here; always return varying_state
13225 when state would be NULL otherwise.
13226 (remove_node_data): Do not free varying state.
13227
13228 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13229
13230 PR bootstrap/44970
13231 PR middle-end/45009
13232 * postreload.c: Include "target.h".
13233 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
13234 into account.
13235 (fixup_debug_insns): Don't copy the rtx.
13236 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
13237 Don't copy when replacing. Call fixup_debug_insns in the case where
13238 we merged one add with another.
13239 (reload_combine_recognize_pattern): Fail if there aren't any uses.
13240 Try harder to determine whether we're picking a valid index register.
13241 Don't set store_ruid for an insn we're going to scan in the
13242 next iteration.
13243 (reload_combine): Remove unused code.
13244 (reload_combine_note_use): When updating use information for
13245 an old insn, ignore a use that occurs after store_ruid.
13246 * Makefile.in (postreload.o): Update dependencies.
13247
13248 * function.c (record_hard_reg_sets): Restrict the previous change
13249 to cases where the incoming nominal mode is the same as the
13250 incoming promoted mode and everything happens in MODE_INT.
13251
13252 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13253
13254 PR debug/45015
13255 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
13256 ASM_OPERANDS_OUTPUT_IDX.
13257 (adjust_insn): For inline asm with multiple sets ensure first
13258 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
13259 the insn.
13260
13261 2010-07-21 Richard Henderson <rth@redhat.com>
13262
13263 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
13264 comparison for avoiding xmm register saves. Emit the xmm register
13265 saves explicitly.
13266 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
13267 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
13268 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
13269 Remove patterns and the associated splitters.
13270
13271 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
13272
13273 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
13274 and imagine parts of a complex, so that they can have the same
13275 base and fall into the same group.
13276
13277 2010-07-21 Richard Guenther <rguenther@suse.de>
13278
13279 PR lto/45018
13280 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
13281 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
13282 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
13283
13284 2010-07-21 Martin Jambor <mjambor@suse.cz>
13285
13286 PR tree-optimization/44900
13287 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
13288 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
13289
13290 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
13291
13292 PR middle-end/44738
13293 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
13294
13295 2010-07-21 Richard Guenther <rguenther@suse.de>
13296
13297 PR middle-end/45013
13298 * tree-ssa.c (useless_type_conversion_p): Dispatch to
13299 gimple_types_compatible_p only when in lto.
13300 * gimple.c (gimple_types_compatible_p): Use canonical types
13301 to speed up comparison.
13302
13303 2010-07-21 Richard Guenther <rguenther@suse.de>
13304
13305 * tree-flow.h (referenced_var): Move define ...
13306 * tree-flow-inline.h (referenced_var): ... here as an inline
13307 function. Assert here ...
13308 * tree-dfa.c (referenced_var_lookup): ... instead of here.
13309 * tree-ssa.c (maybe_optimize_var): Check if the variable
13310 is in referenced vars.
13311 (execute_update_addresses_taken): Remove old broken check.
13312 * gimple-pretty-print.c (pp_points_to_solution): Use
13313 referenced_var_lookup.
13314 * tree-into-ssa.c (dump_decl_set): Likewise.
13315
13316 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13317
13318 PR debug/45003
13319 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
13320 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
13321 ZERO_EXTEND here.
13322
13323 2010-07-20 Richard Henderson <rth@redhat.com>
13324
13325 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
13326
13327 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13328
13329 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
13330 computing the sum of the stack pointer and a large constant.
13331 * config/arm/constraints.md (M): Remove superfluous parentheses.
13332 (Pc): New constraint.
13333
13334 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13335
13336 PR debug/45006
13337 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
13338 operand's type if exp is tcc_unary class tree.
13339
13340 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13341
13342 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
13343 Reverse sense of if_then_else condition.
13344
13345 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13346
13347 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
13348 * config/rs6000/rs6000.c (rs6000_override_options): Set
13349 rs6000_block_move_inline_limit appropriately.
13350 (expand_block_move): Use rs6000_block_move_inline_limit.
13351 * doc/invoke.texi (mblock-move-inline-limit): Document.
13352
13353 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13354
13355 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
13356 FROM and TO. All callers changed. Don't look for tracked uses,
13357 just scan the RTL for DEBUG_INSNs and substitute.
13358 (reload_combine_recognize_pattern): Call fixup_debug_insns.
13359 (reload_combine): Ignore DEBUG_INSNs.
13360
13361 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13362
13363 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
13364 depth to 8 from 5.
13365
13366 PR debug/45003
13367 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
13368 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
13369 instead of the result's type.
13370
13371 2010-07-20 Richard Guenther <rguenther@suse.de>
13372
13373 PR tree-optimization/44977
13374 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
13375 SSA form.
13376
13377 2010-07-20 Richard Guenther <rguenther@suse.de>
13378
13379 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
13380 (lto_symtab_merge_decls_2): Likewise.
13381 * gimple.h (gimple_types_compatible_p): Declare.
13382 * gimple.c (gimple_queue_type_fixup): Remove.
13383 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
13384 (gimple_compatible_complete_and_incomplete_type_p): New function.
13385 (gimple_types_compatible_p): Adjust.
13386 (gimple_register_type): Remove type fixup code.
13387 (print_gimple_types_stats): Adjust.
13388 (free_gimple_type_tables): Likewise.
13389 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
13390 * tree-ssa.c (useless_type_conversion_p): Likewise.
13391
13392 2010-07-20 Richard Guenther <rguenther@suse.de>
13393
13394 PR middle-end/44971
13395 PR middle-end/44988
13396 * tree-ssa.c (maybe_optimize_var): New function split out from ...
13397 (execute_update_addresses_taken): ... here.
13398 (non_rewritable_mem_ref_base): Likewise.
13399 (execute_update_addresses_taken): Do not iterate over all referenced
13400 vars but just all local decls and parms.
13401 Properly check call and asm arguments and rewrite call arguments.
13402
13403 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
13404
13405 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
13406 to top level.
13407 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
13408 definitions ...
13409 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
13410 New macro.
13411 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
13412
13413 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13414
13415 * gengtype.c (start_root_entry): New function, split out from
13416 write_root. Check whether V is null and raise an error if so.
13417 (write_field_root): Check for V being null. Don't raise an error here;
13418 set V to null instead.
13419 (write_root): Update comment above function. Use start_root_entry.
13420
13421 2010-07-19 Xinliang David Li <davidxl@google.com>
13422
13423 PR testsuite/44932
13424 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
13425 def edges.
13426 (find_uninit_use): Add dump.
13427 (is_use_properly_guarded): Ditto.
13428 (warn_uninitialized_phi): Ditto.
13429 (execute_late_warn_uninitialized): Ditto.
13430
13431 2010-07-19 Richard Guenther <rguenther@suse.de>
13432
13433 PR middle-end/44941
13434 * expr.c (emit_block_move_hints): Move zero size check first.
13435 Move asserts to more useful places.
13436 * calls.c (load_register_parameters): Check for zero size.
13437
13438 2010-07-19 Richard Henderson <rth@redhat.com>
13439
13440 * tree-optimize.c (execute_all_early_local_passes): New. Change
13441 cgraph_state here ...
13442 (execute_early_local_optimizations): ... not here. Remove.
13443 (pass_early_local_passes, pass_all_early_optimizations): Update.
13444
13445 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
13446
13447 * postreload.c (reload_combine_closest_single_use): Ignore the
13448 number of uses for DEBUG_INSNs.
13449 (fixup_debug_insns): New static function.
13450 (reload_combine_recognize_const_pattern): Use it. Don't let the
13451 main loop be affected by DEBUG_INSNs.
13452 Really disallow moving adds past a jump insn.
13453 (reload_combine_recognize_pattern): Don't update use_ruid here.
13454 (reload_combine_note_use): Do it here.
13455 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
13456
13457 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
13458
13459 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
13460 of a loop.
13461 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
13462
13463 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
13464
13465 * config/i386/darwin.h: Define darwin_emit_branch_islands.
13466 (TARGET_MACHO_BRANCH_ISLANDS): New.
13467 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
13468 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
13469 default value.
13470 * config/i386/i386.c (output_pic_addr_const): Do not emit
13471 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
13472 (x86_output_mi_thunk): Adjust symbol creation.
13473 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
13474 Remove out of date comment.
13475 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
13476 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13477 (DARWIN_GENERATE_ISLANDS): Ditto.
13478 (output_call): Do not emit branch islands unless
13479 darwin_emit_branch_islands is set.
13480 * config/darwin.c: Declare darwin_emit_branch_islands.
13481 (machopic_indirect_data_reference): Do not emit unless
13482 darwin_emit_branch_islands is set.
13483 (darwin_override_options): Set darwin_emit_branch_islands
13484 where it is needed.
13485 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13486
13487 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13488
13489 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13490 sse_runtime, sse2_runtime.
13491
13492 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
13493
13494 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
13495 low half of a single-register SCmode return value before ORing
13496 it with the high half.
13497 * config/mips/mips16.S (MERGE_GPRf): Likewise.
13498
13499 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13500
13501 PR target/44805
13502 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
13503 on all targets.
13504
13505 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
13506
13507 PR target/42235
13508 * postreload.c (reload_cse_move2add): Return bool, true if anything.
13509 changed. All callers changed.
13510 (move2add_use_add2_insn): Likewise.
13511 (move2add_use_add3_insn): Likewise.
13512 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
13513 reload_combine.
13514 (RELOAD_COMBINE_MAX_USES): Bump to 16.
13515 (last_jump_ruid): New static variable.
13516 (struct reg_use): New members CONTAINING_MEM and RUID.
13517 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
13518 (reload_combine_split_one_ruid, reload_combine_split_ruids,
13519 reload_combine_purge_insn_uses, reload_combine_closest_single_use
13520 reload_combine_purge_reg_uses_after_ruid,
13521 reload_combine_recognize_const_pattern): New static functions.
13522 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
13523 is true for our reg and that we have available index regs.
13524 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
13525 callers changed. Use them to initialize fields in struct reg_use.
13526 (reload_combine): Initialize last_jump_ruid. Be careful when to
13527 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
13528 Call reload_combine_recognize_const_pattern.
13529 (reload_combine_note_store): Update REAL_STORE_RUID field.
13530
13531 2010-07-16 Jason Merrill <jason@redhat.com>
13532
13533 * Makefile.in (opts-common.o): Depend on options.h.
13534
13535 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13536
13537 * tree.c (build_common_builtin_nodes): Use build_function_type_list
13538 instead of build_function_type.
13539 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13540 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13541
13542 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13543
13544 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
13545 do all the work.
13546 (rs6000_emit_int_cmove): Use function pointers for insn generation.
13547 Don't force values into registers unnecessarily.
13548 (output_isel): Assert that we're not given conditions we can't handle.
13549 Delete corresponding code.
13550 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
13551 scc_comparison_operator constraint. Permit 0 for the consequent
13552 operand. Permit any GPR for the alternative operand.
13553 (isel_unsigned_<mode>): Likewise.
13554
13555 2010-07-16 Jakub Jelinek <jakub@redhat.com>
13556
13557 PR target/44942
13558 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
13559 argument to const_tree.
13560 * config/i386/i386.c (function_arg_advance): If padding needs to be
13561 inserted before argument, increment cum->words by number of padding
13562 words as well.
13563 (contains_aligned_value_p): Change argument to const_tree.
13564 (ix86_function_arg_boundary): Change second argument to const_tree.
13565
13566 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
13567
13568 PR target/42235
13569 * function.c (record_hard_reg_sets): New static function.
13570 (assign_parm_setup_reg): If an optab for extending exists and the
13571 generated code clobbbers no hard regs, emit the insn directly and
13572 create a REG_EQUIV note.
13573
13574 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13575
13576 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
13577 TREE_CHAIN.
13578 * c-typeck.c (push_init_level): Likewise.
13579 (process_init_element): Likewise.
13580
13581 2010-07-15 Anatoly Sokolov <aesok@post.ru>
13582
13583 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
13584 (integer_three_node): Add.
13585 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
13586 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
13587 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
13588 of call build_int_cst.
13589 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
13590 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
13591 (find_interesting_uses_address): Ditto.
13592 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
13593 * tree-eh.c (lower_eh_constructs_2): Ditto.
13594 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
13595 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
13596 * expmed.c (expand_divmod): Ditto.
13597 * tree-mudflap.c (mx_register_decls): Ditto.
13598 * varasm.c (array_size_for_constructor): Ditto.
13599 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
13600 * c-parser.c (c_parser_postfix_expression): Ditto.
13601
13602 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
13603
13604 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
13605 New static variables.
13606 (reload_combine_recognize_pattern): New static function, broken out
13607 of reload_combine.
13608 (reload_combine): Use it. Only initialize first_index_reg and
13609 last_index_reg once.
13610
13611 2010-07-15 Richard Henderson <rth@redhat.com>
13612
13613 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
13614 when done.
13615
13616 2010-07-15 Jan Hubicka <jh@suse.cz>
13617
13618 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
13619 comdats for broken gold.
13620 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
13621
13622 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13623
13624 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
13625
13626 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13627
13628 * tree.h (DECL_CHAIN): Define.
13629 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
13630 * c-decl.c: Likewise.
13631 * c-parser.c: Likewise.
13632 * c-typeck.c: Likewise.
13633 * cfgexpand.c: Likewise.
13634 * cgraph.c: Likewise.
13635 * cgraphunit.c: Likewise.
13636 * combine.c: Likewise.
13637 * config/alpha/alpha.c: Likewise.
13638 * config/arm/arm.c: Likewise.
13639 * config/frv/frv.c: Likewise.
13640 * config/i386/i386.c: Likewise.
13641 * config/i386/winnt-cxx.c: Likewise.
13642 * config/ia64/ia64.c: Likewise.
13643 * config/iq2000/iq2000.c: Likewise.
13644 * config/mep/mep.c: Likewise.
13645 * config/mips/mips.c: Likewise.
13646 * config/pa/som.h: Likewise.
13647 * config/rs6000/rs6000.c: Likewise.
13648 * config/s390/s390.c: Likewise.
13649 * config/sh/sh.c: Likewise.
13650 * config/sh/symbian-cxx.c: Likewise.
13651 * config/sparc/sparc.c: Likewise.
13652 * config/spu/spu.c: Likewise.
13653 * config/stormy16/stormy16.c: Likewise.
13654 * config/vxworks.c: Likewise.
13655 * config/xtensa/xtensa.c: Likewise.
13656 * coverage.c: Likewise.
13657 * dbxout.c: Likewise.
13658 * dwarf2out.c: Likewise.
13659 * emit-rtl.c: Likewise.
13660 * expr.c: Likewise.
13661 * function.c: Likewise.
13662 * gimple-low.c: Likewise.
13663 * gimple-pretty-print.c: Likewise.
13664 * gimplify.c: Likewise.
13665 * integrate.c: Likewise.
13666 * ipa-inline.c: Likewise.
13667 * ipa-prop.c: Likewise.
13668 * ipa-split.c: Likewise.
13669 * ipa-struct-reorg.c: Likewise.
13670 * ipa-type-escape.c: Likewise.
13671 * langhooks.c: Likewise.
13672 * lto-cgraph.c: Likewise.
13673 * omp-low.c: Likewise.
13674 * stor-layout.c: Likewise.
13675 * tree-cfg.c: Likewise.
13676 * tree-complex.c: Likewise.
13677 * tree-dfa.c: Likewise.
13678 * tree-dump.c: Likewise.
13679 * tree-inline.c: Likewise.
13680 * tree-mudflap.c: Likewise.
13681 * tree-nested.c: Likewise.
13682 * tree-object-size.c: Likewise.
13683 * tree-pretty-print.c: Likewise.
13684 * tree-sra.c: Likewise.
13685 * tree-ssa-live.c: Likewise.
13686 * tree-ssa-loop-niter.c: Likewise.
13687 * tree-ssa-math-opts.c: Likewise.
13688 * tree-ssa-reassoc.c: Likewise.
13689 * tree-ssa-sccvn.c: Likewise.
13690 * tree-ssa-structalias.c: Likewise.
13691 * tree-tailcall.c: Likewise.
13692 * tree-vrp.c: Likewise.
13693 * tree.c: Likewise.
13694 * var-tracking.c: Likewise.
13695 * varasm.c: Likewise.
13696
13697 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13698
13699 PR target/44877
13700 * config/spu/spu.c (spu_expand_builtin_1): Allow references
13701 (as well as pointers) as argument to mask_for_load builtins.
13702
13703 2010-07-15 Richard Guenther <rguenther@suse.de>
13704
13705 PR tree-optimization/44946
13706 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
13707 with accessing only padding properly.
13708
13709 2010-07-15 Jan Hubicka <jh@suse.cz>
13710
13711 * ipa.c (function_and_variable_visibility): Variables marked as used
13712 should not be localized.
13713
13714 2010-07-15 Jan Hubicka <jh@suse.cz>
13715
13716 * cgraph.c: Include lto-streamer.h
13717 (change_decl_assembler_name): Work when assembler name hash is at place.
13718 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
13719 be sure to rename it to avoid name clash.
13720 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
13721 Localize hidden symbols only when locally defined.
13722
13723 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
13724
13725 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
13726
13727 2010-07-15 Magnus Granberg <zorry@gentoo.org>
13728 Kevin F. Quinn <kevquinn@gentoo.org>
13729
13730 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
13731 * common.opt: Add -Wtrampolines.
13732 * doc/invoke.texi: Add -Wtrampolines.
13733
13734 2010-07-15 Jie Zhang <jie@codesourcery.com>
13735
13736 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
13737 cortex_a8_issue_ls.
13738
13739 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
13740
13741 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
13742 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
13743
13744 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13745
13746 * config/spu/spu.c (reg_names): Remove prototype.
13747 (call_used_regs): Likewise.
13748
13749 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
13750
13751 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
13752 "unused" with attribute "used".
13753 (__JCR_END__): Likewise.
13754 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
13755 "used" attribute.
13756 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
13757
13758 2010-07-14 Richard Guenther <rguenther@suse.de>
13759
13760 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
13761 (maybe_fixup_decls): Likewise.
13762 (input_gimple_stmt): Do not fixup anything.
13763 * lto-streamer-out.c (output_gimple_stmt): Make sure all
13764 non-automatic variable uses are wrapped inside a MEM_REF.
13765
13766 2010-07-14 Richard Henderson <rth@redhat.com>
13767
13768 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
13769 for functions.
13770 * varasm.c (assemble_variable): Remove early exit for functions;
13771 assert that we're given a variable.
13772
13773 2010-07-14 Jie Zhang <jie@codesourcery.com>
13774
13775 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
13776 cortex_a8_default when neon_type is not none.
13777
13778 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13779
13780 * lower-subreg.c (subreg_context): New static bitmap.
13781 (decompose_multiword_subregs): Allocate and free it.
13782 (find_decomposable_subregs): Set a bit in it for a register that
13783 occurs in a subreg that changes mode but not size.
13784 (can_decompose_p): Test it instead of non_decomposable_context.
13785
13786 2010-07-14 Richard Guenther <rguenther@suse.de>
13787
13788 PR tree-optimization/44824
13789 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
13790 is_gimple_mem_ref_addr.
13791 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
13792 non-decl_address_invariant_p addresses.
13793
13794 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13795
13796 * reload.c (find_reloads): Revert code to penalize small register
13797 classes that was brought in with the IRA merge.
13798
13799 2010-07-14 Richard Guenther <rguenther@suse.de>
13800
13801 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
13802 as base of ARRAY_REFs.
13803
13804 2010-07-14 Richard Guenther <rguenther@suse.de>
13805
13806 PR middle-end/44930
13807 * tree-pretty-print.c (do_niy): Do not print a newline.
13808
13809 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13810
13811 * ira-int.h (struct ira_object): New.
13812 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
13813 (struct ira_allocno): Remove members min, max,
13814 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
13815 conflict_allocnos_num and conflict_vec_p. Add new member object.
13816 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
13817 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
13818 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
13819 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
13820 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
13821 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
13822 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
13823 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
13824 an ira_object_t rather than ira_allocno_t. All uses changed.
13825 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13826 contains a vector of ira_object_t; all uses changed.
13827 (ira_objects_num): Declare variable.
13828 (ira_create_allocno_object): Declare function.
13829 (ira_conflict_vector_profitable_p): Adjust prototype.
13830 (ira_allocate_conflict_vec): Renamed from
13831 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
13832 (ira_allocate_object_conflicts): Renamed from
13833 ira_allocate_allocno_conflicts; first arg now ira_object_t.
13834 (struct ira_object_iterator): New.
13835 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
13836 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
13837 to conflict_vec_p. All uses changed.
13838 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
13839 Changed to take into account that conflicts are now tracked for
13840 objects.
13841 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
13842 Args changed to accept ira_object_t. All uses changed.
13843 (allocnos_conflict_p): New static function.
13844 (collected_conflict_objects): Renamed from collected_allocno_objects;
13845 now a vector of ira_object_t. All uses changed.
13846 (build_conflict_bit_table): Changed to take into account that
13847 conflicts are now tracked for objects.
13848 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
13849 (print_allocno_conflicts, ira_build_conflicts): Likewise.
13850 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
13851 setup_allocno_left_conflicts_size, allocno_reload_assign,
13852 fast_allocation): Likewise.
13853 * ira-lives.c (make_hard_regno_born, make_allocno_born)
13854 process_single_reg_class_operands, process_bb_node_lives): Likewise.
13855 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
13856 Likewise.
13857 * ira-build.c (ira_objects_num): New variable.
13858 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13859 contains a vector of ira_object_t; all uses changed.
13860 (ira_object_id_map_vec): Corresponding change.
13861 (object_pool): New static variable.
13862 (initiate_allocnos): Initialize it.
13863 (finish_allocnos): Free it.
13864 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
13865 New functions.
13866 (ira_create_allocno): Don't set members that were removed.
13867 (ira_set_allocno_cover_class): Don't change conflict hard regs.
13868 (merge_hard_reg_conflicts): Changed to take into account that
13869 conflicts are now tracked for objects.
13870 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
13871 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
13872 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
13873 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
13874 setup_min_max_conflict_allocno_ids, ): Likewise.
13875 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
13876 to ira_object_t; all callers changed.
13877 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
13878 to ira_object_t, all callers changed.
13879 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
13880 to ira_object_t, all callers changed.
13881 (conflict_check, curr_conflict_check_tick): Renamed from
13882 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
13883 changed.
13884 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
13885 arg changed to ira_object_t, all callers changed.
13886 (create_cap_allocno): Call ira_create_allocno_object.
13887 (finish_allocno): Free the corresponding object.
13888 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
13889 callers changed. Adjusted for dealing with objects.
13890 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
13891 dealing with objects.
13892 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
13893
13894 * ira-int.h (struct live_range): Rename allocno member to object
13895 and change type to ira_object_t.
13896 (struct ira_object): New member live_ranges.
13897 (struct ira_allocno): Remove member live_ranges.
13898 (ALLOCNO_LIVE_RANGES): Remove.
13899 (OBJECT_LIVE_RANGES): New macro.
13900 (ira_create_live_range, ira_copy_live_range_list,
13901 ira_merge_live_range_list, ira_live_ranges_intersect_p,
13902 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
13903 * ira-build.c (ira_create_object): Initialize live ranges here.
13904 (ira_create_allocno): Not here.
13905 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
13906 changed to ira_object_t, all callers changed.
13907 (copy_live_range): Rename from copy_allocno_live_range, all callers
13908 changed.
13909 (ira_copy_live_range_list): Rename from
13910 ira_copy_allocno_live_range_list, all callers changed.
13911 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
13912 all callers changed.
13913 (ira_live_ranges_intersect_p): Rename from
13914 ira_allocno_live_ranges_intersect_p, all callers changed.
13915 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
13916 callers changed.
13917 (ira_finish_live_range_list): Rename from
13918 ira_finish_allocno_live_range_list, all callers changed.
13919 (change_object_in_range_list): Rename from change_allocno_in_range_list,
13920 last arg changed to ira_object_t, all callers changed.
13921 (finish_allocno): Changed to expect live ranges in the allocno's object.
13922 (move_allocno_live_ranges, copy_allocno_live_ranges,
13923 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
13924 ira_flattening, ira_build): Likewise.
13925 * ira-color.c (allocnos_have_intersected_live_ranges_p,
13926 slot_coalesced_allocno_live_ranges_intersect,
13927 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
13928 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13929 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13930 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
13931 make_allocno_dead, create_start_finish_chains,
13932 remove_some_program_points_and_update_live_ranges,
13933 ira_debug_live_range_list): Likewise.
13934
13935 * ira-int.h (ira_object_conflict_iterator): Rename from
13936 ira_allocno_conflict_iterator.
13937 (ira_object_conflict_iter_init): Rename from
13938 ira_allocno_conflict_iter_init, second arg changed to
13939 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
13940 FOR_EACH_ALLOCNO_CONFLICT.
13941 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
13942 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
13943 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
13944 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13945
13946 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
13947
13948 PR other/44874
13949 * tree-dump.c (dump_options): Add enumerate_locals entry.
13950 Add TDF_NOID exclusion to all entry.
13951 * tree-dump.h (dump_enumerated_decls): Declare.
13952 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
13953 Don't display type uid.
13954 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
13955 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
13956 * tree-ssa-live.c: Include gimple.h.
13957 (numbered_tree_d): New struct.
13958 (numbered_tree): New typedef.
13959 (DEF_VEC_O (numbered_tree): New.
13960 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
13961 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
13962 (dump_enumerated_decls): Likewise.
13963 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
13964 debug info and flag_dump_final_insns, call dump_enumerated_decls.
13965 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
13966 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
13967
13968 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
13969
13970 * expmed.h (MAX_BITS_PER_WORD): Move to...
13971 * defaults.h (MAX_BITS_PER_WORD): ...here.
13972
13973 2010-07-13 DJ Delorie <dj@redhat.com>
13974
13975 * config/h8300/h8300.c (h8300_init_once): Default to
13976 -fstrict_volatile_bitfields.
13977
13978 * config/sh/sh.c (sh_override_options): Default to
13979 -fstrict_volatile_bitfields.
13980
13981 * config/rx/rx.c (rx_option_override): New.
13982
13983 * config/m32c/m32c.c (m32c_override_options): Default to
13984 -fstrict_volatile_bitfields.
13985
13986 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
13987
13988 * tree.h (build_function_call_expr): Delete.
13989 (build_call_expr_loc_array): New function.
13990 (build_call_expr_loc_vec): New function.
13991 * tree-flow.h (struct omp_region): Change type of ws_args field
13992 to a VEC.
13993 * builtins.c (build_function_call_expr): Delete.
13994 (build_call_expr_loc_array): New function.
13995 (build_call_expr_loc): Call it. Use XALLOCAVEC.
13996 (build_call_expr): Likewise.
13997 (build_call_expr_loc_vec): New function.
13998 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
13999 build_function_call_expr.
14000 * expr.c (emutls_var_address): Likewise.
14001 * varasm.c (emutls_common_1): Likewise.
14002 * omp-low.c (expand_omp_atomic_mutex): Likewise.
14003 (expand_omp_taskreg): Adjust for new type of region->ws_args.
14004 (get_ws_args_for): Return a VEC instead of a tree.
14005 (expand_parallel_call): Call build_call_expr_loc_vec instead of
14006 build_function_call_expr.
14007 * stor-layout.c (self_referential_size): Likewise.
14008
14009 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14010
14011 PR testsuite/44701
14012 * recog.c (constrain_operands): Allow side-effects in memory
14013 operands if either < or > constraint is used, rather than if
14014 both < and > is used.
14015
14016 2010-07-13 Richard Guenther <rguenther@suse.de>
14017
14018 PR middle-end/44911
14019 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
14020 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
14021 without name.
14022
14023 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
14024
14025 PR target/44761
14026 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
14027 to variable emited.
14028 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
14029 * config/sh/sh.md (symGOT_load): Likewise.
14030 (symDTPOFF2reg): Likewise.
14031 (symTPOFF2reg): Likewise.
14032
14033 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14034
14035 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
14036 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
14037
14038 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14039
14040 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
14041 explanation.
14042 Find ucontext_t * on Solaris 11.
14043 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
14044 Handle new Solaris 11 __sighndlr patterns.
14045
14046 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14047
14048 PR debug/44901
14049 * vec.h (VEC_block_remove): Fix comment.
14050 * tree-ssa-live.c (remove_unused_locals): Don't use
14051 VEC_unordered_remove on local_decls, instead replace a single
14052 vector element in each iteration if at least one element had
14053 to be removed and VEC_truncate at the end.
14054 * omp-low.c (expand_omp_taskreg): Likewise.
14055
14056 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14057
14058 * c-decl.c (finish_function): Fix typo in comment.
14059
14060 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
14061
14062 PR bootstrap/44921
14063 * postreload.c (move2add_use_add3_insn): Silence gcc warning
14064 on min_regno.
14065
14066 2010-07-12 Jakub Jelinek <jakub@redhat.com>
14067
14068 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14069 (simplify_stmt_using_ranges): Use it.
14070
14071 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14072
14073 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14074 member. Do not mark as GTY(()).
14075 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14076 (spu_builtin_decls): New static variable.
14077 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14078 (spu_init_builtins): Likewise.
14079 (spu_builtin_mul_widen_even): Likewise.
14080 (spu_builtin_mul_widen_odd): Likewise.
14081 (spu_builtin_mask_for_load): Likewise.
14082 (spu_builtin_vec_perm): Likewise.
14083 * config/spu/spu-c.c: Include "target.h".
14084 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14085 of using spu_builtins[].fndecl.
14086
14087 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14088
14089 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14090 imply -minterlink-mips16.
14091
14092 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14093
14094 * config/mips/mips.h (mips16_globals): Declare.
14095 (SWITCHABLE_TARGET): Define.
14096 * config/mips/mips.c: Include target-globals.h.
14097 (mips16_globals): New variable.
14098 (mips_set_mips16_mode): Use save_target_globals and
14099 restore_target_globals instead of target_reinit.
14100
14101 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14102
14103 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
14104 to say that the function can be called more than once.
14105 * target-globals.c (save_target_globals): Call init_reg_sets.
14106
14107 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14108
14109 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14110 * bb-reorder.h: New file.
14111 * bb-reorder.c (default_target_bb_reorder): New variable.
14112 (this_target_bb_reorder): New conditional variable.
14113 (uncond_jump_length): Redefine as a macro.
14114 * target-globals.h (this_target_bb_reorder): Declare.
14115 (target_globals): Add a bb_reorder field.
14116 (restore_target_globals): Copy the bb_reorder field to
14117 this_target_bb-reorder.
14118 * target-globals.c: Include bb-reorder.h.
14119 (default_target_globals): Initialize the bb_reorder field.
14120 (save_target_globals): Likewise.
14121
14122 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14123
14124 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
14125 * gcse.h: New file.
14126 * gcse.c: Include gcse.h.
14127 (default_target_gcse): New variable.
14128 (this_target_gcse): New conditional variable.
14129 (can_copy): Redefine as a macro.
14130 (can_copy_init_p): New macro.
14131 (can_copy_p): Remove can_copy_init_p.
14132 * target-globals.h (this_target_gcse): Declare.
14133 (target_globals): Add a gcse field.
14134 (restore_target_globals): Copy the gcse field to this_target_gcse.
14135 * target-globals.c: Include gcse.h.
14136 (default_target_globals): Initialize the gcse field.
14137 (save_target_globals): Likewise.
14138
14139 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14140
14141 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
14142 and x_ira_prohibited_mode_move_regs_initialized_p.
14143 (ira_prohibited_mode_move_regs): Redefine as a macro.
14144 * ira.c (ira_prohibited_mode_move_regs): Delete.
14145 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
14146
14147 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14148
14149 * reload.h (target_reload): Add x_cached_reg_save_code and
14150 x_cached_reg_restore_code.
14151 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
14152 Redefine as macros.
14153
14154 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14155
14156 * Makefile.in (target-globals.o): Depend on builtins.h.
14157 * builtins.h: New file.
14158 * builtins.c: Include builtins.h.
14159 (default_target_builtins): New variable.
14160 (this_target_builtins): New conditional variable.
14161 (apply_args_mode, apply_result_mode): Redefine as macros.
14162 * target-globals.h (this_target_builtins): Declare.
14163 (target_globals): Add a builtins field.
14164 (restore_target_globals): Copy the builtins field to
14165 this_target_builtins.
14166 * target-globals.c: Include builtins.h.
14167 (default_target_globals): Initialize the builtins field.
14168 (save_target_globals): Likewise.
14169
14170 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14171
14172 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
14173 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
14174 from expmed.c.
14175 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
14176 (alg_hash, alg_hash_used_p): New macros.
14177 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
14178 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
14179 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
14180
14181 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14182
14183 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
14184 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
14185 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
14186 (this_op_costs, costs_classes): Redefine as macros.
14187 (record_reg_classes): Don't take op_costs as a parameter.
14188 (record_operand_costs): Likewise. Update calls to record_reg_classes.
14189 (scan_one_insn): Update call to record_operand_costs.
14190
14191 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14192
14193 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
14194 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
14195 (target_ira_int): New structure.
14196 (default_target_ira_int): Declare.
14197 (this_target_ira_int): Declare as a variable or define as a macro.
14198 (ira_reg_mode_hard_regset, ira_register_move_cost)
14199 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
14200 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
14201 (prohibited_class_mode_regs, ira_important_classes_num)
14202 (ira_important_classes, ira_reg_class_intersect)
14203 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
14204 (ira_reg_class_union): Redefine as macros.
14205 * ira.h (target_ira): New structure.
14206 (default_target_ira): Declare.
14207 (this_target_ira): Declare as a variable or define as a macro.
14208 (ira_available_class_regs, ira_hard_regno_cover_class)
14209 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
14210 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
14211 (ira_class_hard_regs_num): Redefine as macros.
14212 * ira.c (default_target_ira, default_target_ira_int): New variables.
14213 (this_target_ira, this_target_ira_int): New conditional variables.
14214 (ira_reg_mode_hard_regset, ira_memory_move_cost)
14215 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
14216 (ira_class_subset_p): Delete.
14217 (no_unit_alloc_regs): Redefine as a macro.
14218 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
14219 (ira_class_hard_regs_num, ira_class_hard_reg_index)
14220 (ira_available_class_regs): Delete.
14221 (alloc_reg_class_subclasses): Redefine as a macro.
14222 (ira_reg_class_cover_size, ira_reg_class_cover)
14223 (ira_important_classes_num, ira_important_classes)
14224 (ira_important_class_nums, ira_class_translate): Delete.
14225 (cover_class_order): Document the variable's lifetime.
14226 (reorder_important_classes): Don't set ira_important_class_nums.
14227 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
14228 (ira_reg_class_super_classes, ira_reg_class_union)
14229 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
14230 Delete.
14231 (setup_reg_class_nregs): Don't set ira_max_regs.
14232 (prohibited_class_mode_regs): Delete.
14233 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
14234 (target_globals): Add ira and ira_int fields.
14235 (restore_target_globals): Copy the ira field to this_target_ira
14236 and the ira_int field to this_target_ira_int.
14237 * target-globals.c: Include ira-int.h.
14238 (default_target_globals): Initialize the ira and ira_int fields.
14239 (save_target_globals): Likewise.
14240
14241 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14242
14243 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
14244 * cfgloop.h (target_cfgloop): New structure.
14245 (default_target_cfgloop): Declare.
14246 (this_target_cfgloop): Declare as a variable or define as a macro.
14247 (target_avail_regs, target_clobbered_regs, target_res_regs)
14248 (target_reg_cost, target_spill_cost): Redefine as macros.
14249 * cfgloopanal.c (default_target_cfgloop): New variable.
14250 (this_target_cfgloop): New conditional variable.
14251 (target_avail_regs, target_clobbered_regs, target_res_regs)
14252 (target_reg_cost, target_spill_cost): Delete.
14253 * target-globals.h (this_target_cfgloop): Declare.
14254 (target_globals): Add a cfgloop field.
14255 (restore_target_globals): Copy the cfgloop field to
14256 this_target_cfgloop.
14257 * target-globals.c: Include cfgloop.h.
14258 (default_target_globals): Initialize the cfgloop field.
14259 (save_target_globals): Likewise.
14260
14261 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14262
14263 * regs.h (target_regs): Add x_direct_load, x_direct_store and
14264 x_float_extend_from_mem.
14265 (direct_load, direct_store, float_extend_from_mem): New macros.
14266 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
14267
14268 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14269
14270 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
14271 (target-globals.o): Depend on $(LIBFUNCS_H).
14272 * libfuncs.h: Include hashtab.h.
14273 (libfunc_entry): Moved from optabs.c.
14274 (target_libfuncs): New structure.
14275 (default_target_libfuncs): Declare.
14276 (this_target_libfuncs): Declare as a variable or define as a macro.
14277 (libfunc_table): Redefine as a macro.
14278 * optabs.c (default_target_libfuncs): New variable.
14279 (this_target_libfuncs): New conditional variable.
14280 (libfunc_table): Delete.
14281 (libfunc_entry): Moved to optabs.h.
14282 (libfunc_hash): Redefine as a macro.
14283 (hash_libfunc, eq_libfunc): Fix comments.
14284 (init_optabs): Use libfunc_hash to detect cases where the function
14285 has already been called. Clear the hash table instead of
14286 recreating it.
14287 * target-globals.h (this_target_libfuncs): Declare.
14288 (target_globals): Add a libfuncs field.
14289 (restore_target_globals): Copy the libfuncs field to
14290 this_target_libfuncs.
14291 * target-globals.c: Include libfuncs.h.
14292 (default_target_globals): Initialize the libfuncs field.
14293 (save_target_globals): Likewise.
14294
14295 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14296
14297 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
14298 in all dependency lists.
14299
14300 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14301
14302 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
14303 * optabs.h (target_optabs): New structure.
14304 (default_target_optabs): Declare.
14305 (this_target_optabs): Declare as a variable or define as a macro.
14306 (optab_table, convert_optab_table, direct_optab_table): Redefine
14307 as macros.
14308 * optabs.c (default_target_optabs): New variable.
14309 (this_target_optabs): New conditional variable.
14310 (optab_table, convert_optab_table, direct_optab_table): Delete.
14311 * target-globals.h (this_target_optabs): Declare.
14312 (target_globals): Add a optabs field.
14313 (restore_target_globals): Copy the optabs field to
14314 this_target_optabs.
14315 * target-globals.c: Include expr.h and optabs.h.
14316 (default_target_globals): Initialize the optabs field.
14317 (save_target_globals): Likewise.
14318
14319 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14320
14321 * flags.h (target_flagstate): Add x_flag_excess_precision.
14322 (flag_excess_precision): Redefine as a macro.
14323 * toplev.c (flag_excess_precision): Delete.
14324
14325 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14326
14327 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
14328 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
14329 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
14330 (no_caller_save_reg_set): Redefine as a macro.
14331 * reload.h (target_reload): Add x_caller_save_initialized_p and
14332 x_regno_save_mode.
14333 (caller_save_initialized_p): Redefine as a macro.
14334 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
14335 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
14336 (regno_save_mode): Redefine as a macro.
14337
14338 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14339
14340 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
14341 * expmed.h: New file.
14342 * expmed.c (default_target_costs): New variable.
14343 (this_target_costs): New conditional variable.
14344 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
14345 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
14346 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
14347 * target-globals.h (this_target_expmed): Declare.
14348 (target_globals): Add a expmed field.
14349 (restore_target_globals): Copy the expmed field to
14350 this_target_expmed.
14351 * target-globals.c: Include expmed.h.
14352 (default_target_globals): Initialize the expmed field.
14353 (save_target_globals): Likewise.
14354
14355 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14356
14357 * Makefile.in (target-globals.o): Depend on reload.h.
14358 * reload.h (target_reload): New structure.
14359 (default_target_reload): Declare.
14360 (this_target_reload): Declare as a variable or define as a macro.
14361 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
14362 * reload1.c (default_target_reload): New variable
14363 (this_target_reload): New conditional variable.
14364 (indirect_symref_ok, double_reg_address_ok): Delete.
14365 (spill_indirect_levels): Redefine as a macro.
14366 * target-globals.h (this_target_reload): Declare.
14367 (target_globals): Add a reload field.
14368 (restore_target_globals): Copy the reload field to
14369 this_target_reload.
14370 * target-globals.c: Include hard-reg-set.h.
14371 (default_target_globals): Initialize the reload field.
14372 (save_target_globals): Likewise.
14373
14374 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14375
14376 * rtl.h (target_rtl): Add x_static_reg_base_value.
14377 * alias.c (static_reg_base_value): Redefine as a macro.
14378
14379 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14380
14381 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
14382 (GTFILES): Remove reginfo.c.
14383 * rtl.h (target_rtl): Add x_top_of_stack.
14384 (top_of_stack): New macro.
14385 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
14386 (top_of_stack): Delete.
14387
14388 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14389
14390 * regs.h (target_regs): Add x_hard_regs_of_mode,
14391 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
14392 x_may_move_out_cost and x_last_mode_for_init_move_cost.
14393 (have_regs_of_mode, contains_reg_of_mode, move_cost)
14394 (may_move_in_cost, may_move_out_cost): Redefine as macros.
14395 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
14396 (may_move_in_cost, may_move_out_cost): Delete.
14397 (last_mode_for_init_move_cost): Redefine as a macro.
14398
14399 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14400
14401 * hard-reg-set.h (target_hard_regs): New structure.
14402 (default_target_hard_regs): Declare.
14403 (this_target_hard_regs): Declare as a variable or define as a macro.
14404 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
14405 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
14406 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
14407 (reg_class_size, reg_class_subclasses, reg_class_subunion)
14408 (reg_class_superunion, reg_names): Redefine as macros.
14409 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
14410 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
14411 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
14412 (reg_class_contents, reg_class_size, reg_class_subclasses)
14413 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
14414 (default_target_hard_regs): New variable
14415 (this_target_hard_regs, initial_call_really_used_regs)
14416 (initial_reg_alloc_order): New conditional variables.
14417 (initial_reg_names): New variable.
14418 (init_reg_sets): Assert that initial_call_really_used_regs,
14419 initial_reg_alloc_order and initial_reg_names
14420 are all the same size as their variable counterparts. Use them to
14421 initialize those counterparts.
14422 * target-globals.h (this_target_hard_regs): Declare.
14423 (target_globals): Add a hard_regs field.
14424 (restore_target_globals): Copy the hard_regs field to
14425 this_target_hard_regs.
14426 * target-globals.c: Include hard-reg-set.h.
14427 (default_target_globals): Initialize the hard_regs field.
14428 (save_target_globals): Likewise.
14429
14430 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14431
14432 * Makefile.in (target-globals.o): Depend on $(RTL_H).
14433 * rtl.h (target_rtl): New structure.
14434 (default_target_rtl): Declare.
14435 (this_target_rtl): Declare as a variable or define as a macro.
14436 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
14437 Redefine as macros.
14438 * emit-rtl.c (default_target_rtl): New variable.
14439 (this_target_rtl): New conditional variable.
14440 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
14441 (return_address_pointer_rtx): Delete.
14442 (initial_regno_reg_rtx): New macro.
14443 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
14444 (init_emit_regs): Likewise.
14445 * target-globals.h (this_target_rtl): Declare.
14446 (target_globals): Add a rtl field.
14447 (restore_target_globals): Copy the rtl field to this_target_rtl.
14448 * target-globals.c: Include rtl.h.
14449 (default_target_globals): Initialize the rtl field.
14450 (save_target_globals): Likewise.
14451
14452 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14453
14454 * Makefile.in (target-globals.o): Depend on $(REGS_H).
14455 * regs.h (target_reg_modes): New structure.
14456 (default_target_reg_modes): Declare.
14457 (this_target_reg_modes): Declare as a variable or define as a macro.
14458 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
14459 * reginfo.c (default_target_reg_modes): New variable.
14460 (this_target_reg_modes): New conditional variable.
14461 (hard_regno_nregs, reg_raw_mode): Delete.
14462 * target-globals.h (this_target_regs): Declare.
14463 (target_globals): Add a regs field.
14464 (restore_target_globals): Copy the regs field to this_target_regs.
14465 * target-globals.c: Include regs.h.
14466 (default_target_globals): Initialize the regs field.
14467 (save_target_globals): Likewise.
14468
14469 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14470
14471 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
14472 * doc/tm.texi: Regenerate.
14473 * Makefile.in (OBJS-common): Add target-globals.o.
14474 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
14475 and target-globals.h.
14476 (target-globals.o): New rule.
14477 (GTFILES): Include $(srcdir)/target-globals.h.
14478 * defaults.h (SWITCHABLE_TARGET): Define.
14479 * gengtype.c (open_base_files): Add target-globals.h to the
14480 list of includes.
14481 * target-globals.h: New file.
14482 * target-globals.c: Likewise.
14483
14484 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
14485 * flags.h (target_flag_state): New structure.
14486 (default_target_flag_state): Declare.
14487 (this_target_flag_state): Declare as a variable or define as a macro.
14488 (align_loops_log): Redefine as a macro.
14489 (align_loops_max_skip, align_jumps_log): Likewise.
14490 (align_jumps_max_skip, align_labels_log): Likewise.
14491 (align_labels_max_skip, align_functions_log): Likewise.
14492 * toplev.c (default_target_flag_state): New variable.
14493 (this_target_flag_state): New conditional variable.
14494 (align_loops_log): Delete.
14495 (align_loops_max_skip, align_jumps_log): Likewise.
14496 (align_jumps_max_skip, align_labels_log): Likewise.
14497 (align_labels_max_skip, align_functions_log): Likewise.
14498 * target-globals.h (this_target_flag_state): Declare.
14499 (target_globals): Add a flag_state field.
14500 (restore_target_globals): Copy the flag_state field to
14501 this_target_flag_state.
14502 * target-globals.c: Include flags.h.
14503 (default_target_globals): Initialize the flag_state field.
14504 (save_target_globals): Likewise.
14505
14506 2010-07-12 Jie Zhang <jie@codesourcery.com>
14507
14508 * postreload.c (reg_symbol_ref[]): New.
14509 (move2add_use_add2_insn): New.
14510 (move2add_use_add3_insn): New.
14511 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
14512 (move2add_note_store): Likewise.
14513
14514 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
14515
14516 PR rtl-optimization/44752
14517 * genautomata.c (main): Don't emit an empty file even if there
14518 is no automaton.
14519
14520 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14521
14522 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
14523 ix86_solaris_return_in_memory.
14524 * config/i386-protos.h: Reflect this.
14525 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14526 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14527 Move ...
14528 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
14529
14530 2010-07-12 Jie Zhang <jie@codesourcery.com>
14531
14532 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
14533 align the stack when it's going to be saved.
14534
14535 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14536
14537 PR pch/14940
14538 * config/host-solaris.c (mmap_fixed): New function.
14539 (sol_gt_pch_get_address): Use it.
14540 (sol_gt_pch_use_address): Likewise.
14541
14542 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14543
14544 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14545 pentiumpro on Solaris 8 and 9/x86.
14546 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
14547 Document SSE/SSE2 support.
14548 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
14549
14550 2010-07-12 Andi Kleen <ak@linux.intel.com>
14551
14552 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
14553 instead of gcc_assert to print better error message for multiple
14554 prevailing defs.
14555
14556 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
14557
14558 * config/i386/i386.c (ix86_asm_output_function_label): Change format
14559 string placeholder from 0x%x to %#x.
14560 (ix86_code_end): Use putc to output '\n'.
14561 (ix86_print_operand) <case ';'>: Use putc to output ';'.
14562
14563 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
14564
14565 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
14566 in directive -export.
14567
14568 2010-07-10 Anatoly Sokolov <aesok@post.ru>
14569
14570 * reginfo.h (reg_classes_intersect_p): Change arguments type to
14571 reg_class_t.
14572 * rtl.h (reg_classes_intersect_p): Adjust prototype.
14573
14574 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14575 Remove macros.
14576 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
14577 rs6000_memory_move_cost): Remove
14578 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
14579 TARGET_MEMORY_MOVE_COST): Define.
14580 (rs6000_register_move_cost): Make static. Change arguments type from
14581 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
14582 (rs6000_memory_move_cost): Make static. Change arguments type from
14583 'enum reg_class' to reg_class_t.
14584
14585 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
14586
14587 PR middle-end/42505
14588 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
14589 lookup code into....
14590 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
14591 new functions.
14592 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
14593 * cfgloopanal.c (target_clobbered_regs): Define.
14594 (init_set_costs): Initialize target_clobbered_regs.
14595 (estimate_reg_pressure_cost): Add call_p argument. When true,
14596 adjust the number of available registers to exclude the
14597 call-clobbered registers.
14598 * cfgloop.h (target_clobbered_regs): Declare.
14599 (estimate_reg_pressure_cost): Adjust declaration.
14600 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
14601 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
14602 (determine_set_costs): Dump target_clobbered_regs.
14603 (loop_body_includes_call): New function.
14604 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
14605 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
14606 call_p flag through.
14607 (best_gain_for_invariant): Likewise.
14608 (find_invariants_to_move): Likewise.
14609 (move_single_loop_invariants): Likewise, using already-computed
14610 has_call field.
14611
14612 2010-07-10 Richard Guenther <rguenther@suse.de>
14613 Joern Rennecke <joern.rennecke@embecosm.com>
14614
14615 PR debug/44832
14616 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
14617 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
14618 unless they have DECL_IGNORED_P set.
14619
14620 2010-07-10 Richard Guenther <rguenther@suse.de>
14621
14622 PR lto/44889
14623 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
14624 helper function.
14625 (gimple_types_compatible_p): Similar to pointed-to
14626 types allow and merge a mix of complete and incomplete aggregate.
14627 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
14628 (iterative_hash_gimple_type): Adjust for that.
14629
14630 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
14631
14632 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
14633
14634 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
14635
14636 PR objc/44140
14637 * config/darwin.c (output_objc_section_asm_op): Save and restore
14638 section when outputting ObjC section list.
14639
14640 2010-07-09 Jan Hubicka <jh@suse.cz>
14641
14642 * lto-streamer-out.c (produce_symtab): Do not write alias
14643 cgraph/varpool nodes.
14644
14645 2010-07-09 Jan Hubicka <jh@suse.cz>
14646
14647 * tree-inline.c (declare_return_variable): Fix ICE while
14648 inlining DECL_BY_VALUE function not in SSA form
14649
14650 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
14651
14652 PR tree-optimization/44576
14653 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
14654 New. Pull out from is_loop_prefetching_profitable to implement
14655 the trip count to ahead ratio heuristic.
14656 (mem_ref_count_reasonable_p): New. Pull out from
14657 is_loop_prefetching_profitable to implement the instruction to
14658 memory reference ratio heuristic. Also consider not reasonable if
14659 the memory reference count is above a threshold (to avoid
14660 explosive compilation time.
14661 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
14662 is_loop_prefetching_profitable to implement the instruction to
14663 prefetch ratio heuristic.
14664 (is_loop_prefetching_profitable): Removed.
14665 (loop_prefetch_arrays): Distribute the cost analysis across the
14666 function to allow early exit of the prefetch analysis.
14667 is_loop_prefetching_profitable is splitted into three functions,
14668 with each one called as early as possible.
14669 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
14670 number of memory references in a loop is considered too many.
14671
14672 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14673
14674 * reload.c (find_reloads): Don't clear badop if we have a winreg
14675 alternative, but not win, and the class only has fixed regs.
14676 * hard-reg-set.h (class_only_fixed_regs): Declare.
14677 * reginfo.c (class_only_fixed_regs): New array.
14678 (init_reg_sets_1): Initialize it.
14679 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
14680 discourage alternatives using the stack pointer.
14681
14682 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
14683
14684 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
14685
14686 * config/arm/arm.md (cbranchqi4): Fix array size.
14687 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
14688 calculating length.
14689
14690 2010-07-09 Richard Guenther <rguenther@suse.de>
14691
14692 * gimple.c (struct type_fixup_s): New struct and VEC type.
14693 (gimple_register_type_fixups): New static global.
14694 (gimple_queue_type_fixup): New function.
14695 (gimple_types_compatible_p): Queue type fixups instead of
14696 applying them here.
14697 (gimple_register_type): Apply queued fixups for the
14698 canonical type. Empty the type fixup queue.
14699
14700 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14701
14702 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
14703 * configure: Regenerate.
14704 * config.in: Ditto.
14705
14706 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14707 Denys Vlasenko <dvlasenk@redhat.com>
14708 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14709
14710 PR tree-optimization/28632
14711 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
14712 (extract_range_from_binary_expr): Further optimize
14713 BIT_AND_EXPR and BIT_IOR_EXPR.
14714
14715 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
14716
14717 * tree-if-conv.c (fold_or_predicates): New.
14718 (add_to_predicate_list): Call it.
14719
14720 2010-07-09 Richard Guenther <rguenther@suse.de>
14721
14722 PR middle-end/44890
14723 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
14724 if base is a pointer.
14725 * tree-cfg.c (verify_expr): Update MEM_REF checking.
14726
14727 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14728
14729 PR target/44877
14730 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
14731 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
14732 builtin mask for load/store builtins.
14733
14734 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14735
14736 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
14737 for "lock addl".
14738 * configure: Regenerate.
14739 * config/i386/i386.c (ix86_print_operand) <case ';'>:
14740 Remove TARGET_MACHO.
14741
14742 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
14743
14744 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
14745 default ISA flags.
14746 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
14747
14748 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
14749
14750 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
14751
14752 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14753
14754 * config/picochip/picochip.md (commsTestPort): Emit more
14755 efficient sequence for tstport instruction.
14756
14757 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14758
14759 * config/i386/i386.c (ix86_veclib_handler): Make static.
14760
14761 2010-07-09 Richard Guenther <rguenther@suse.de>
14762
14763 PR tree-optimization/44852
14764 * tree-ssa-alias.c: Include toplev.h for exact_log2.
14765 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
14766 in MEM_REF.
14767 (indirect_refs_may_alias_p): Likewise.
14768 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
14769
14770 2010-07-09 Richard Guenther <rguenther@suse.de>
14771
14772 PR tree-optimization/44882
14773 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
14774 sets do conflict.
14775 (vectorizable_load): Likewise.
14776
14777 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14778
14779 PR target/40657
14780 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
14781 All callers changed.
14782 Handle the case when we're called for the epilogue.
14783 (thumb_unexpanded_epilogue): Use it.
14784 (thumb1_expand_epilogue): Likewise.
14785
14786 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14787
14788 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
14789 both ranges are range_int_cst_p with non-negative minimum,
14790 try harder to derive smaller range.
14791
14792 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14793
14794 * genrecog.c: Include diagnostic-core.h before toplev.h.
14795 * genoutput.c: Likewise.
14796 * genextract.c: Likewise.
14797 * genautomata.c: Likewise.
14798 * genemit.c: Likewise.
14799 * genpeep.c: Likewise.
14800 * genattrtab.c: Likewise.
14801 * genconditions.c: Likewise.
14802 * genpreds.c: Likewise.
14803
14804 2010-07-08 Andi Kleen <ak@linux.intel.com>
14805
14806 * lto-section-in.c (lto_section_name): Add missing comma.
14807
14808 2010-07-08 Anatoly Sokolov <aesok@post.ru>
14809
14810 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
14811 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
14812 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
14813 (ia64_override_options): Rename to...
14814 (ia64_option_override): ... this one. Make static.
14815
14816 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14817
14818 PR middle-end/44843
14819 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
14820 pointed-to type of the offset in a MEM_REF to compute the alignment.
14821
14822 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
14823
14824 * final.c (final_scan_insn): Replace
14825 TARGET_UNWIND_INFO macro check by unwind_emit
14826 hook NULL check.
14827 * targhooks.c (default_unwind_emit): Removed.
14828 * targhooks.h (default_unwind_emit): Likewise.
14829 * target.def (unwind_emit): Set default value to NULL.
14830
14831 * config/i386/i386-protos.h (ix86_asm_output_function_label):
14832 New prototype.
14833 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
14834 for NULL fntype argument and allow 64-bit targets.
14835 (ix86_asm_output_function_label): New function.
14836 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
14837 (ix86_handle_fndecl_attribute): Likewise.
14838 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
14839 * doc/doc/tm.texi: Regenerated.
14840 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
14841 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
14842 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
14843 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
14844 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14845 * config/elfos.h: Likewise.
14846 * config/i386/cygming.h: Likewise.
14847 * config/netbsd-aout.h: Likewise.
14848 * config/openbsd.h: Likewise.
14849 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
14850 by ix86_asm_output_function_label function call.
14851 * varasm.c (assemble_start_function): Use
14852 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14853
14854 2010-07-08 Jan Hubicka <jh@suse.cz>
14855
14856 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
14857 New function.
14858 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
14859 Declare.
14860 * ipa-cp.c (ipcp_estimate_growth): Use it.
14861 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
14862 Likewise.
14863
14864 2010-07-08 Jan Hubicka <jh@suse.cz>
14865
14866 * tree-inline.c (declare_return_variable): Allocate annotation for new
14867 temporary.
14868
14869 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14870
14871 PR tree-optimization/44710
14872 * tree-if-conv.c (parse_predicate): New.
14873 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
14874 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
14875
14876 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14877
14878 * common.opt (ftree-loop-if-convert): New flag.
14879 * doc/invoke.texi (ftree-loop-if-convert): Documented.
14880 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
14881 when flag_tree_loop_if_convert is set.
14882
14883 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
14884
14885 * config/i386/i386.c: Use short syntax for function calls
14886 through function pointers.
14887 * config/i386/i386.md: Ditto.
14888
14889 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14890
14891 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
14892
14893 2010-07-08 Richard Guenther <rguenther@suse.de>
14894
14895 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
14896 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
14897
14898 2010-07-08 Jakub Jelinek <jakub@redhat.com>
14899
14900 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
14901 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
14902 (loc_list_from_tree): Likewise.
14903 (output_loc_operands): Handle outputting DW_OP_const[48]u
14904 with loc->dtprel set.
14905 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
14906
14907 2010-07-08 Jan Hubicka <jh@suse.cz>
14908
14909 * ipa.c: Include pointer-set.h
14910 (cgraph_externally_visible_p): New attribute ALIASED;
14911 when in LTO, hidden symbols are local unless they are aliased.
14912 (function_and_variable_visibility): Compute aliased nodes;
14913 handle LTO and hidden symbol on functions and vars.
14914 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
14915 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
14916
14917 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14918
14919 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14920 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14921 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14922 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14923 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14924 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
14925 (ix86_gen_probe_stack_range): Likewise.
14926 (override_options): Set them.
14927 (ix86_target_stack_probe): New function.
14928 (ix86_compute_frame_layout): Force use of push instructions to
14929 save registers if stack checking with probes is enabled.
14930 (get_scratch_register_on_entry): New function.
14931 (release_scratch_register_on_entry): Likewise.
14932 (ix86_adjust_stack_and_probe): Likewise.
14933 (output_adjust_stack_and_probe): Likewise.
14934 (ix86_emit_probe_stack_range): Likewise.
14935 (output_probe_stack_range): Likewise.
14936 (ix86_expand_prologue): Emit stack checking code if static built-in
14937 stack checking is enabled.
14938 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
14939 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
14940 (output_adjust_stack_and_probe): Likewise.
14941 (output_probe_stack_range): Likewise.
14942 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14943 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
14944 TARGET_STACK_PROBE.
14945 (allocate_stack_worker_64): Likewise.
14946 (allocate_stack): Likewise.
14947 (adjust_stack_and_probe): New insn.
14948 (probe_stack_range): Likewise.
14949
14950 2010-07-08 Richard Guenther <rguenther@suse.de>
14951
14952 PR tree-optimization/44831
14953 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
14954 a MEM_REF preserving TBAA info of the original dereference.
14955 Dereference the original pointer if the address is not invariant.
14956 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
14957 at least one invariant address that we are going to dereference.
14958
14959 2010-07-08 Richard Guenther <rguenther@suse.de>
14960
14961 PR tree-optimization/44861
14962 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
14963 information when building MEM_REFs.
14964 (vectorizable_load): Likewise.
14965 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14966
14967 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14968
14969 * config/sol2-c.c: Do not include diagnostic-core.h.
14970
14971 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14972
14973 PR bootstrap/44768
14974 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
14975 with respect to current_function_decl. Pass decl of the function.
14976 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
14977 * ipa-inline.c (compute_inline_parameters): Pass decl to
14978 estimated_stack_frame_size.
14979
14980 2010-07-08 Richard Guenther <rguenther@suse.de>
14981
14982 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14983 New function.
14984 (valueize_refs): Call it.
14985
14986 2010-07-08 Richard Guenther <rguenther@suse.de>
14987
14988 PR rtl-optimization/44838
14989 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
14990 SSA form do not use pointer equivalence.
14991
14992 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14993
14994 * dwarf2out.c (AT_linkage_name): Delete.
14995 (add_linkage_attr): New function.
14996 (add_linkage_name): Call it to emit the linkage attribute.
14997 (dwarf2out_finish): Likewise.
14998 (move_linkage_attr): Explicitly accept both attribute variants.
14999
15000 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15001
15002 * toplev.h: Do not include diagnostic-core.h.
15003 Include diagnostic-core.h in every file that includes toplev.h.
15004 * c-tree.h: Do not include toplev.h.
15005 * pretty-print.h: Update comment.
15006 * Makefile.in: Update dependencies.
15007 * alias.c: Include diagnostic-core.h in every file that includes
15008 toplev.h.
15009 * attribs.c: Likewise.
15010 * auto-inc-dec.c: Likewise.
15011 * bb-reorder.c: Likewise.
15012 * bt-load.c: Likewise.
15013 * caller-save.c: Likewise.
15014 * calls.c: Likewise.
15015 * cfg.c: Likewise.
15016 * cfganal.c: Likewise.
15017 * cfgbuild.c: Likewise.
15018 * cfgcleanup.c: Likewise.
15019 * cfghooks.c: Likewise.
15020 * cfgloop.c: Likewise.
15021 * combine.c: Likewise.
15022 * config/alpha/alpha.c: Likewise.
15023 * config/arc/arc.c: Likewise.
15024 * config/arm/arm.c: Likewise.
15025 * config/arm/pe.c: Likewise.
15026 * config/avr/avr.c: Likewise.
15027 * config/bfin/bfin.c: Likewise.
15028 * config/cris/cris.c: Likewise.
15029 * config/crx/crx.c: Likewise.
15030 * config/darwin-c.c: Likewise.
15031 * config/darwin.c: Likewise.
15032 * config/fr30/fr30.c: Likewise.
15033 * config/frv/frv.c: Likewise.
15034 * config/h8300/h8300.c: Likewise.
15035 * config/host-darwin.c: Likewise.
15036 * config/i386/i386.c: Likewise.
15037 * config/i386/netware.c: Likewise.
15038 * config/i386/nwld.c: Likewise.
15039 * config/i386/winnt-cxx.c: Likewise.
15040 * config/i386/winnt-stubs.c: Likewise.
15041 * config/i386/winnt.c: Likewise.
15042 * config/ia64/ia64-c.c: Likewise.
15043 * config/ia64/ia64.c: Likewise.
15044 * config/iq2000/iq2000.c: Likewise.
15045 * config/lm32/lm32.c: Likewise.
15046 * config/m32c/m32c-pragma.c: Likewise.
15047 * config/m32c/m32c.c: Likewise.
15048 * config/m32r/m32r.c: Likewise.
15049 * config/m68hc11/m68hc11.c: Likewise.
15050 * config/m68k/m68k.c: Likewise.
15051 * config/mcore/mcore.c: Likewise.
15052 * config/mep/mep-pragma.c: Likewise.
15053 * config/mep/mep.c: Likewise.
15054 * config/mmix/mmix.c: Likewise.
15055 * config/mn10300/mn10300.c: Likewise.
15056 * config/moxie/moxie.c: Likewise.
15057 * config/pa/pa.c: Likewise.
15058 * config/pdp11/pdp11.c: Likewise.
15059 * config/picochip/picochip.c: Likewise.
15060 * config/rs6000/rs6000-c.c: Likewise.
15061 * config/rs6000/rs6000.c: Likewise.
15062 * config/rx/rx.c: Likewise.
15063 * config/s390/s390.c: Likewise.
15064 * config/score/score.c: Likewise.
15065 * config/score/score3.c: Likewise.
15066 * config/score/score7.c: Likewise.
15067 * config/sh/sh.c: Likewise.
15068 * config/sh/symbian-base.c: Likewise.
15069 * config/sh/symbian-c.c: Likewise.
15070 * config/sh/symbian-cxx.c: Likewise.
15071 * config/sol2-c.c: Likewise.
15072 * config/sol2.c: Likewise.
15073 * config/sparc/sparc.c: Likewise.
15074 * config/spu/spu.c: Likewise.
15075 * config/stormy16/stormy16.c: Likewise.
15076 * config/v850/v850-c.c: Likewise.
15077 * config/v850/v850.c: Likewise.
15078 * config/vax/vax.c: Likewise.
15079 * config/vxworks.c: Likewise.
15080 * config/xtensa/xtensa.c: Likewise.
15081 * convert.c: Likewise.
15082 * cse.c: Likewise.
15083 * cselib.c: Likewise.
15084 * dbgcnt.c: Likewise.
15085 * dbxout.c: Likewise.
15086 * ddg.c: Likewise.
15087 * dominance.c: Likewise.
15088 * emit-rtl.c: Likewise.
15089 * explow.c: Likewise.
15090 * expmed.c: Likewise.
15091 * fixed-value.c: Likewise.
15092 * fold-const.c: Likewise.
15093 * fwprop.c: Likewise.
15094 * gcse.c: Likewise.
15095 * ggc-common.c: Likewise.
15096 * ggc-page.c: Likewise.
15097 * ggc-zone.c: Likewise.
15098 * gimple-low.c: Likewise.
15099 * gimplify.c: Likewise.
15100 * graph.c: Likewise.
15101 * haifa-sched.c: Likewise.
15102 * ifcvt.c: Likewise.
15103 * implicit-zee.c: Likewise.
15104 * integrate.c: Likewise.
15105 * ira-build.c: Likewise.
15106 * ira-color.c: Likewise.
15107 * ira-conflicts.c: Likewise.
15108 * ira-costs.c: Likewise.
15109 * ira-lives.c: Likewise.
15110 * ira.c: Likewise.
15111 * lists.c: Likewise.
15112 * loop-doloop.c: Likewise.
15113 * loop-iv.c: Likewise.
15114 * lto-opts.c: Likewise.
15115 * lto-symtab.c: Likewise.
15116 * main.c: Likewise.
15117 * modulo-sched.c: Likewise.
15118 * optabs.c: Likewise.
15119 * params.c: Likewise.
15120 * plugin.c: Likewise.
15121 * postreload-gcse.c: Likewise.
15122 * postreload.c: Likewise.
15123 * predict.c: Likewise.
15124 * profile.c: Likewise.
15125 * real.c: Likewise.
15126 * regcprop.c: Likewise.
15127 * reginfo.c: Likewise.
15128 * regmove.c: Likewise.
15129 * reorg.c: Likewise.
15130 * resource.c: Likewise.
15131 * rtl.c: Likewise.
15132 * rtlanal.c: Likewise.
15133 * sched-deps.c: Likewise.
15134 * sched-ebb.c: Likewise.
15135 * sched-rgn.c: Likewise.
15136 * sdbout.c: Likewise.
15137 * sel-sched-dump.c: Likewise.
15138 * sel-sched-ir.c: Likewise.
15139 * simplify-rtx.c: Likewise.
15140 * stmt.c: Likewise.
15141 * stor-layout.c: Likewise.
15142 * store-motion.c: Likewise.
15143 * targhooks.c: Likewise.
15144 * tree-cfg.c: Likewise.
15145 * tree-cfgcleanup.c: Likewise.
15146 * tree-dump.c: Likewise.
15147 * tree-eh.c: Likewise.
15148 * tree-inline.c: Likewise.
15149 * tree-nomudflap.c: Likewise.
15150 * tree-object-size.c: Likewise.
15151 * tree-optimize.c: Likewise.
15152 * tree-outof-ssa.c: Likewise.
15153 * tree-phinodes.c: Likewise.
15154 * tree-profile.c: Likewise.
15155 * tree-ssa-ccp.c: Likewise.
15156 * tree-ssa-coalesce.c: Likewise.
15157 * tree-ssa-live.c: Likewise.
15158 * tree-ssa-loop-niter.c: Likewise.
15159 * tree-ssa-loop-prefetch.c: Likewise.
15160 * tree-ssa-loop.c: Likewise.
15161 * tree-ssa-structalias.c: Likewise.
15162 * tree-ssa-uninit.c: Likewise.
15163 * tree-ssa.c: Likewise.
15164 * tree-vect-data-refs.c: Likewise.
15165 * tree-vect-loop-manip.c: Likewise.
15166 * tree-vect-loop.c: Likewise.
15167 * tree-vect-patterns.c: Likewise.
15168 * tree-vect-stmts.c: Likewise.
15169 * tree-vrp.c: Likewise.
15170 * varasm.c: Likewise.
15171 * vec.c: Likewise.
15172 * web.c: Likewise.
15173 * xcoffout.c: Likewise.
15174
15175 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
15176
15177 * gengtype.c (write_field_root): New function.
15178 (write_root): Use it.
15179
15180 2010-07-07 Wei Guozhi <carrot@google.com>
15181
15182 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15183 of lowest bits to lshift/compare): Add a missing line.
15184
15185 2010-07-07 Wei Guozhi <carrot@google.com>
15186
15187 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15188 of lowest bits to lshift/compare): New.
15189
15190 2010-07-07 Tom Tromey <tromey@redhat.com>
15191
15192 * doc/tm.texi: Update.
15193 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
15194 Add @hook.
15195 * target.def (want_debug_pub_sections): New hook.
15196 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
15197 * dwarf2out.c (add_pubname_string): Check
15198 targetm.want_debug_pub_sections.
15199 (add_pubname): Likewise.
15200 (add_pubtype): Likewise.
15201
15202 2010-07-07 Jie Zhang <jie@codesourcery.com>
15203
15204 * genautomata.c (output_automata_list_min_issue_delay_code):
15205 Correctly decompress min_issue_delay.
15206
15207 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15208
15209 PR rtl-optimization/44404
15210 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
15211 possible, use reg_overlap_mentioned_p instead.
15212
15213 2010-07-07 Duncan Sands <baldrick@free.fr>
15214
15215 PR middle-end/41355
15216 * tree.c (build_function_type_skip_args): Copy the original type using
15217 build_distinct_type_copy rather than copy_node.
15218
15219 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15220
15221 PR target/44850
15222 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
15223 revision 161876.
15224 (ix86_expand_prologue): Likewise.
15225 (ix86_handle_fndecl_attribute): Likewise.
15226 (ix86_asm_declare_function_name): Likewise.
15227 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15228 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15229 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
15230 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
15231 * doc/extend.texi: Likewise.
15232
15233 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15234
15235 PR target/44844
15236 * config/i386/i386.md (rdrand<mode>): Changed to expand to
15237 retry if the carry flag isn't valid.
15238 (rdrand<mode>_1): New.
15239
15240 2010-07-07 Richard Guenther <rguenther@suse.de>
15241
15242 PR middle-end/44790
15243 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
15244 for expanding the constant offset for MEM_REFs.
15245
15246 2010-07-07 Richard Guenther <rguenther@suse.de>
15247
15248 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
15249 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
15250 * gimple.h (is_gimple_operand): Remove.
15251 * gimple.c (is_gimple_operand): Likewise.
15252 (walk_gimple_op): Fix wi->val_only setting for calls.
15253 * tree-cfg.c (verify_gimple_call): Fix argument validation.
15254 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
15255 invalid gimple calls.
15256
15257 2010-07-06 Jan Hubicka <jh@suse.cz>
15258
15259 * lto-cgraph.c (output_cgraph): Add missing declaration.
15260
15261 2010-07-06 Jan Hubicka <jh@suse.cz>
15262
15263 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
15264 partition.
15265
15266 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
15267
15268 * doc/gimple.texi (GIMPLE_DEBUG): Document.
15269 * doc/rtl.texi (Debug Information): New node.
15270 (NOTE_INSN_VAR_LOCATION): Document.
15271 (debug_insn): Likewise.
15272 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
15273
15274 2010-07-07 Jan Hubicka <jh@suse.cz>
15275
15276 With parts by Richard Guenther.
15277
15278 PR middle-end/44813
15279 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
15280 for functions passed by reference.
15281 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
15282 in memory when passed by reference.
15283 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
15284 beggining.
15285 * ipa-split.c (split_function): Cleanup way return value is passed;
15286 handle SSA DECL_BY_REFERENCE retvals.
15287 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
15288 DECL_BY_REFERENCE is set.
15289 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
15290 find_what_p_points_to): Handle RESULT_DECL.
15291 * tree-inline.c (declare_return_variable): Get new entry_block argument;
15292 when passing by reference ensure that RESULT_DECL is gimple_val.
15293 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
15294 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
15295
15296 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15297
15298 PR rtl-optimization/44787
15299 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
15300 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
15301
15302 2010-07-06 Jan Hubicka <jh@suse.cz>
15303
15304 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
15305 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
15306 with body can prevail.
15307 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
15308 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
15309 * cgraph.c (cgraph_get_node_or_alias): New function.
15310 * cgraph.h (cgraph_get_node_or_alias): Declare.
15311
15312 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
15313
15314 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
15315 support.
15316 (ix86_expand_prologue): Likewise.
15317 (ix86_handle_fndecl_attribute): Likewise.
15318 (ix86_asm_declare_function_name): New function for
15319 ASM_DECLARE_FUNCTION_NAME.
15320 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
15321 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
15322 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
15323 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
15324 * doc/extend.texi: Adjust documentation about ms_hook_prologue
15325 attribute.
15326
15327 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15328
15329 * config/i386/i386.md (immediate_operand): New mode attribute.
15330
15331 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
15332 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
15333 using P mode iterator.
15334 (pro_epilogue_adjust_stack_di_2): Rename from
15335 pro_epilogue_adjust_stack_rex64_2.
15336
15337 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
15338
15339 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15340
15341 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
15342 through gen_mov_insv_1 function pointer.
15343 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
15344 gen_truncxf<mode>2 through gen_truncxf function pointer.
15345 (remainder<mode>3): Ditto.
15346 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
15347 (allocate_stack): Call gen_allocate_stack_worker_64 or
15348 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
15349 function pointer.
15350 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
15351 function pointer.
15352
15353 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15354
15355 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
15356 operand constraint instead of <r><i>m.
15357
15358 2010-07-06 Richard Guenther <rguenther@suse.de>
15359
15360 PR middle-end/44828
15361 * convert.c (convert_to_integer): Watch out for overflowing
15362 MULT_EXPR as well.
15363
15364 2010-07-05 Jan Hubicka <jh@suse.cz>
15365
15366 * lto-streamer.c (write_symbol_vec): Rename to ...
15367 (write_symbol) ... this one; write only symbol given and when
15368 present in cache. Sanity check that what is defined is present
15369 in cgraph/varpool with body/finalized decl.
15370 (write_symbols_of_kind): Remove.
15371 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
15372 pairs to produce symtab.
15373 (produce_asm_for_decls): Update call of produce_symtab; don't do so
15374 when doing WPA streaming.
15375
15376 2010-07-05 Jan Hubicka <jh@suse.cz>
15377
15378 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
15379 function is still available to fold into.
15380
15381 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15382
15383 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
15384 * function.h (struct_function): Change type of local_decls field
15385 to a VEC.
15386 (add_local_decl): New function.
15387 (FOR_EACH_LOCAL_DECL): New macro.
15388 * cfgexpand.c (init_vars_expansion): Adjust for new type of
15389 cfun->local_decls.
15390 (estimated_stack_frame_size): Likewise.
15391 (expand_used_vars): Likewise.
15392 * cgraphbuild.c (build_cgraph_edges): Likewise.
15393 * function.c (instantiate_decls_1): Likewise.
15394 * ipa-struct-reorg.c (build_data_structure): Likewise.
15395 * ipa-type-escape.c (analyze_function): Likewise.
15396 * lto-streamer-in.c (input_function): Likewise.
15397 * lto-streamer-out.c (output_function): Likewise.
15398 * tree-ssa-live.c (remove_unused_locals): Likewise.
15399 * tree.c (free_lang_data_in_decl): Likewise.
15400 (find_decls_types_in_node): Likewise.
15401 * omp-low.c (remove_exit_barrier): Likewise.
15402 (expand_omp_taskreg): Likewise.
15403 (list2chain): Rename to...
15404 (vec2chain): ...this. Adjust.
15405 * cgraphunit.c (assemble_thunk): Call add_local_decl.
15406 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
15407 * gimple-low.c (record_vars_into): Likewise.
15408 * tree-inline.c (remap_decls): Likewise.
15409 (declare_return_variable): Likewise.
15410 (declare_inline_vars): Likewise.
15411 (copy_forbidden): Adjust for new type of cfun->local_decls.
15412 (add_local_variables): New function.
15413 (expand_call_inline): Call it.
15414 (tree_function_versioning): Likewise.
15415
15416 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
15417
15418 AVX Programming Reference (June, 2010)
15419 * config/i386/cpuid.h (bit_F16C): New.
15420 (bit_RDRND): Likewise.
15421 (bit_FSGSBASE): Likewise.
15422
15423 * config/i386/i386-builtin-types.def: Add
15424 "DEF_FUNCTION_TYPE (UINT16)", function types for
15425 float16 <-> float conversions and
15426 "DEF_FUNCTION_TYPE (VOID, UINT64)".
15427
15428 * config/i386/i386-c.c (ix86_target_macros_internal): Support
15429 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
15430 OPTION_MASK_ISA_F16C.
15431
15432 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
15433 (OPTION_MASK_ISA_RDRND_SET): Likewise.
15434 (OPTION_MASK_ISA_F16C_SET): Likewise.
15435 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
15436 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
15437 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
15438 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
15439 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
15440 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
15441 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
15442 (override_options): Handle them.
15443 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
15444 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
15445 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
15446 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
15447 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
15448 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
15449 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
15450 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
15451 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
15452 (bdesc_args): Likewise.
15453 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
15454 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
15455 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
15456 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
15457 Handle non-memory store.
15458
15459 * config/i386/i386.h (TARGET_FSGSBASE): New.
15460 (TARGET_RDRND): Likewise.
15461 (TARGET_F12C): Likewise.
15462
15463 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
15464 (UNSPEC_VCVTPS2PH): Likewise.
15465 (UNSPECV_RDFSBASE): Likewise.
15466 (UNSPECV_RDGSBASE): Likewise.
15467 (UNSPECV_WRFSBASE): Likewise.
15468 (UNSPECV_WRGSBASE): Likewise.
15469 (UNSPECV_RDRAND): Likewise.
15470 (rdfsbase<mode>): Likewise.
15471 (rdgsbase<mode>): Likewise.
15472 (wrfsbase<mode>): Likewise.
15473 (wrgsbase<mode>): Likewise.
15474 (rdrand<mode>): Likewise.
15475
15476 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
15477
15478 * config/i386/immintrin.h (_rdrand_u16): New.
15479 (_rdrand_u32): Likewise.
15480 (_readfsbase_u32): Likewise.
15481 (_readfsbase_u64): Likewise.
15482 (_readgsbase_u32): Likewise.
15483 (_readgsbase_u64): Likewise.
15484 (_writefsbase_u32): Likewise.
15485 (_writefsbase_u64): Likewise.
15486 (_writegsbase_u32): Likewise.
15487 (_writegsbase_u64): Likewise.
15488 (_rdrand_u64): Likewise.
15489 (_cvtsh_ss): Likewise.
15490 (_mm_cvtph_ps): Likewise.
15491 (_mm256_cvtph_ps): Likewise.
15492 (_cvtss_sh): Likewise.
15493 (_mm_cvtps_ph): Likewise.
15494 (_mm256_cvtps_ph): Likewise.
15495
15496 * config/i386/sse.md (vcvtph2ps): New.
15497 (*vcvtph2ps_load): Likewise.
15498 (vcvtph2ps256): Likewise.
15499 (vcvtps2ph): Likewise.
15500 (*vcvtps2ph): Likewise.
15501 (*vcvtps2ph_store): Likewise.
15502 (vcvtps2ph256): Likewise.
15503
15504 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
15505
15506 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
15507
15508 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
15509
15510 PR bootstrap/44512
15511 * genenums.c (main): Output include of insn-constants.h
15512 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
15513
15514 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
15515
15516 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
15517 (override_options): Initialize it.
15518 (ix86_expand_prologue): Use it.
15519
15520 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15521
15522 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
15523
15524 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15525
15526 * double-int.h (fit_double_type): Remove declaration.
15527 * double-int.c (fit_double_type): Remove function.
15528 * tree.h (int_fits_type_p): Adjust prototype.
15529 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
15530 instead of fit_double_type.
15531 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
15532 instead of fit_double_type and build_int_cst_wide.
15533 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
15534 instead of fit_double_type and build_int_cst_wide.
15535 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
15536 of fit_double_type.
15537
15538 2010-07-05 Jan Hubicka <jh@suse.cz>
15539
15540 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
15541 in_other_partition.
15542 * lto-cgraph.c (referenced_from_other_partition_p,
15543 reachable_from_other_partition_p): Use in_other_partition flags.
15544 (output_node, output_varpool_node): COMDAT nodes always have private
15545 copies and thus are never used from other partition.
15546
15547 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15548
15549 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15550 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
15551 * config/ia64/ia64.c Include reload.h.
15552 (ia64_memory_move_cost): New function.
15553 (TARGET_MEMORY_MOVE_COST): Define.
15554 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
15555 memory_move_cost.
15556
15557 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
15558
15559 PR middle-end/42505
15560 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
15561 comments about cost model.
15562 (try_add_cand_for): Add second strategy for choosing initial set
15563 based on original IVs, controlled by ORIGINALP argument.
15564 (get_initial_solution): Add ORIGINALP argument.
15565 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
15566 (find_optimal_iv_set): Try two different strategies for choosing
15567 the IV set, and return the one with lower cost.
15568
15569 2010-07-05 Richard Guenther <rguenther@suse.de>
15570
15571 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
15572
15573 2010-07-05 Richard Guenther <rguenther@suse.de>
15574
15575 * tree.c (reference_alias_ptr_type): New function.
15576 * tree.h (reference_alias_ptr_type): Declare.
15577 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
15578 allow non-TARGET_MEM_REF new refs.
15579 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
15580 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
15581 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
15582 (create_mem_ref): Get alias pointer type. Adjust calls to
15583 create_mem_ref_raw.
15584 (maybe_fold_tmr): Likewise.
15585 * tree-flow.h (create_mem_ref): Adjust prototype.
15586
15587 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15588
15589 PR c++/44808
15590 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
15591 *from_p is VAR_DECL.
15592
15593 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15594
15595 * tree.h (build_call_list): Remove.
15596 * tree.c (build_call_list): Remove.
15597
15598 2010-07-05 Richard Guenther <rguenther@suse.de>
15599
15600 * double-int.h (double_int_sub): Declare.
15601 * double-int.c (double_int_sub): New function.
15602 * dwarf2out.c (field_byte_offset): Use it.
15603 * fixed-value.c (do_fixed_add): Likewise.
15604 (do_fixed_multiply): Likewise.
15605 (do_fixed_divide): Likewise.
15606 * tree-predcom.c (add_ref_to_chain): Likewise.
15607 (determine_roots_comp): Likewise.
15608 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15609
15610 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15611
15612 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
15613 implementations.
15614
15615 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
15616
15617 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
15618 * arm-modes.def (CC_NOTB): Don't define.
15619 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
15620 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
15621 (LTUGEU): New code_iterator.
15622 (cnb, optab): New corresponding code_attrs.
15623 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
15624 to canonical form. Operands 1 and 2 are commutative. Parametrize
15625 using LTUGEU.
15626 (addsi3_carryin_shift_<optab>): Likewise.
15627 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
15628 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
15629 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
15630 (subsi3_compare): Renamed from subsi3_compare0_c.
15631 Change CC_NOTB to CC.
15632 (arm_subsi3_insn): Allow constants for operand 0.
15633 (compare_scc peephole for eq case): New.
15634 (compare_scc splitters): Change CC_NOTB to CC.
15635
15636 2010-07-05 Richard Guenther <rguenther@suse.de>
15637
15638 * tree-ssa-loop-im.c (for_each_index): Do not handle
15639 ALIGN_INDIRECT_REF.
15640 (gen_lsm_tmp_name): Likewise.
15641 * tree-dump.c (dequeue_and_dump): Likewise.
15642 * tree-pretty-print.c (dump_generic_node): Likewise.
15643 (op_code_prio): Likewise.
15644 (op_symbol_code): Likewise.
15645 * tree.c (staticp): Likewise.
15646 (build1_stat): Likewise.
15647 * tree.h (INDIRECT_REF_P): Likewise.
15648 * fold-const.c (maybe_lvalue_p): Likewise.
15649 (operand_equal_p): Likewise.
15650 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15651 (ao_ref_init_from_vn_reference): Likewise.
15652 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
15653 (find_interesting_uses_address): Likewise.
15654 * dwarf2out.c (loc_list_from_tree): Likewise.
15655 * gimplify.c (gimplify_expr): Likewise.
15656 * tree-eh.c (tree_could_trap_p): Likewise.
15657 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15658 * cfgexpand.c (expand_debug_expr): Likewise.
15659 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15660 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15661 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
15662 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
15663 * tree-ssa-operands.c (get_expr_operands): Likewise.
15664 * expr.c (safe_from_p): Likewise.
15665 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
15666 * tree-vect-data-refs.c (vect_setup_realignment): Build
15667 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
15668 * tree-vect-stmts.c (vectorizable_load): Likewise.
15669 * tree.def (ALIGN_INDIRECT_REF): Remove.
15670
15671 2010-07-05 Richard Guenther <rguenther@suse.de>
15672
15673 PR tree-optimization/44784
15674 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
15675 for inserted stmts.
15676 (find_or_generate_expression): Fix SCCVN insertion check.
15677
15678 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
15679
15680 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
15681 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15682 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
15683 directives.
15684
15685 2010-07-05 Ira Rosen <irar@il.ibm.com>
15686
15687 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
15688 statements that are not vectorized.
15689 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
15690 in INSIDE_COST.
15691
15692 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
15693
15694 PR bootstrap/44820
15695 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
15696
15697 2010-07-05 Richard Guenther <rguenther@suse.de>
15698
15699 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
15700 RESULT_DECLs properly.
15701
15702 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
15703
15704 PR rtl-optimization/44695
15705 * config/i386/i386.md (extract_code): Removed.
15706 (<u>divmodqi4): Likewise.
15707 (divmodqi4): New.
15708 (udivmodqi4): Likewise.
15709 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
15710 (udivmodhiqi3): Likewise.
15711
15712 2010-07-04 Jan Hubicka <jh@suse.cz>
15713
15714 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
15715
15716 2010-07-04 Jan Hubicka <jh@suse.cz>
15717
15718 * cgraphunit.c (init_cgraph): Only initialize dump file if it
15719 is not already initialized.
15720
15721 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15722
15723 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
15724 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
15725 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
15726 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
15727 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
15728 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
15729 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
15730 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
15731 (sync_new_nand_optab): Redefine as macros.
15732 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
15733 Delete.
15734 (direct_optab_index): New enum.
15735 (direct_optab_d): New structure.
15736 (direct_optab): New typedef.
15737 (direct_optab_table): Declare.
15738 (direct_optab_handler, set_direct_optab_handler): New functions.
15739 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
15740 (sync_lock_release_optab): New macros.
15741 * optabs.c (direct_optab_table): New variable.
15742 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
15743 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
15744 cmpstr_optab and cmpstrn_optab.
15745 (emit_conditional_move): Likewise for movcc_optab.
15746 (can_conditionally_move_p): Likewise for movcc_gen_code.
15747 (init_insn_codes): Clear direct_optab_table.
15748 (init_optabs): Don't initialize the new "direct optabs" here.
15749 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
15750 vcond_gen_code.
15751 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
15752 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
15753 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
15754 (expand_sync_operation): Likewise other sync_*_optabs.
15755 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
15756 to sync_compare_and_swap_optab.
15757 (expand_sync_lock_test_and_set): Use direct_optab_handler for
15758 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
15759 to the names of both.
15760 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
15761 cmpstr_optab and cmpstrn_optab.
15762 (expand_builtin_lock_release): Likewise sync_lock_release.
15763 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
15764 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
15765 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
15766 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
15767 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
15768 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
15769 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
15770 (sync_lock_test_and_set, sync_lock_release): Delete.
15771 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
15772 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
15773 * genopinit.c (optabs): Use set_direct_optab_handler for the new
15774 macro optabs.
15775 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
15776 the "optab" local variable. Use direct_optab_handler for optab and
15777 sync_compare_and_swap_optab.
15778 * reload1.c (reload_in_optab, reload_out_optab): Delete.
15779 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
15780 reload_in_optab and reload_out_optab.
15781 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
15782 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
15783 * config/pa/pa.c (pa_secondary_reload): Likewise.
15784 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
15785 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
15786 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
15787 (VMSupportsCS8_builtin): Likewise.
15788
15789 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15790
15791 * optabs.h (optab_handlers): Change type of insn_code to int.
15792 (optab_handler, set_optab_handler, convert_optab_handler)
15793 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
15794 CODE_FOR_nothing".
15795 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
15796 (init_insn_codes): Zero both the above arrays.
15797 (init_optabs): Never call init_insn_codes first time around.
15798
15799 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15800
15801 * optabs.h (optab_handler, convert_optab_handler): Turn into
15802 inline functions that return an insn code.
15803 (set_optab_handler, set_convert_optab_handler): New functions.
15804 * builtins.c: Replace optab_handler(X)->insn_code with
15805 optab_handler or set_optab_handler thoughout. Likewise
15806 convert_optab_handler(X)->insn_code with convert_optab_handler
15807 and set_convert_optab_handler.
15808 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
15809 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
15810 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
15811 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15812 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
15813 config/spu/spu.c: Likewise.
15814
15815 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
15816
15817 PR target/44531
15818 * config.gcc (sh*-*-*): Use regular expressions instead of
15819 the 'i' modifier for sed substitutions.
15820
15821 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
15822
15823 * gimple.c (gimple_body): Comments added.
15824
15825 2010-07-04 Richard Guenther <rguenther@suse.de>
15826
15827 PR middle-end/44809
15828 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
15829 of an INDIRECT_REF.
15830
15831 2010-07-04 Richard Guenther <rguenther@suse.de>
15832
15833 PR tree-optimization/44479
15834 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
15835 extra SSA name copy statements which preserves points-to
15836 information.
15837 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15838 Copy points-to information for all pointers. Properly handle
15839 MEM_REFs.
15840 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
15841 copy statements.
15842 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
15843 dependency.
15844
15845 2010-07-04 Richard Guenther <rguenther@suse.de>
15846
15847 PR middle-end/44785
15848 * tree-inline.c (initialize_inlined_parameters): Do not
15849 re-use pointer-map slot over remap_type call.
15850
15851 2010-07-04 Richard Guenther <rguenther@suse.de>
15852
15853 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
15854
15855 2010-07-04 Richard Guenther <rguenther@suse.de>
15856
15857 PR tree-optimization/44656
15858 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
15859 again after value-replacing in the defintions lhs.
15860
15861 2010-07-04 Ira Rosen <irar@il.ibm.com>
15862 Revital Eres <eres@il.ibm.com>
15863
15864 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
15865 Document new arguments.
15866 * doc/tm.texi: Regenerate.
15867 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
15868 Handle unaligned store.
15869 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
15870 * target.def (builtin_vectorization_cost): Add new arguments.
15871 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
15872 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
15873 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
15874 (vect_vfa_segment_size): Fix indentation.
15875 * tree-vectorizer.h (struct _vect_peel_info): New.
15876 (struct _vect_peel_extended_info): New.
15877 (struct _loop_vec_info): Add new field for peeling hash table and a
15878 macro for its access.
15879 (VECT_MAX_COST): Define.
15880 (vect_get_load_cost): Declare.
15881 (vect_get_store_cost, vect_get_known_peeling_cost,
15882 vect_get_single_scalar_iteraion_cost): Likewise.
15883 (vect_supportable_dr_alignment): Add new argument.
15884 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
15885 field.
15886 (destroy_loop_vec_info): Free peeling hash table.
15887 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
15888 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
15889 vect_analyze_slp. Fix indentation.
15890 (vect_get_single_scalar_iteraion_cost): New function.
15891 (vect_get_known_peeling_cost): Likewise.
15892 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
15893 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
15894 statement. Move outside cost calculation inside unknown peeling case.
15895 Call vect_get_known_peeling_cost for known amount of peeling.
15896 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
15897 reference to the print message of forced alignment.
15898 (vect_verify_datarefs_alignment): Update call to
15899 vect_supportable_dr_alignment.
15900 (vect_get_data_access_cost): New function.
15901 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
15902 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
15903 vect_peeling_hash_choose_best_peeling): Likewise.
15904 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
15905 to store all the accesses in the loop and find best possible access to
15906 align using peeling for known alignment case. For unknown alignment
15907 check if stores are preferred or if peeling is worthy.
15908 (vect_find_same_alignment_drs): Analyze pairs of loads too.
15909 (vect_supportable_dr_alignment): Add new argument and check aligned
15910 accesses according to it.
15911 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
15912 (cost_for_stmt): Call vect_get_stmt_cost.
15913 (vect_model_simple_cost): Likewise.
15914 (vect_model_store_cost): Call vect_get_stmt_cost. Call
15915 vect_get_store_cost to calculate the cost of the statement.
15916 (vect_get_store_cost): New function.
15917 (vect_model_load_cost): Call vect_get_stmt_cost. Call
15918 vect_get_load_cost to calculate the cost of the statement.
15919 (vect_get_load_cost): New function.
15920 (vectorizable_store): Update call to vect_supportable_dr_alignment.
15921 (vectorizable_load): Likewise.
15922 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
15923 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
15924 arguments. Handle unaligned store.
15925 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
15926 (rs6000_builtin_support_vector_misalignment): Return true for word and
15927 double word alignments for VSX.
15928 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
15929 vect_supportable_dr_alignment and builtin_vectorization_cost.
15930
15931 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15932
15933 PR target/44597
15934 * config/pa/predicates.md (prefetch_cc_operand): Remove.
15935 (prefetch_nocc_operand): Likewise.
15936 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
15937 (prefetch_20): New insn.
15938 (prefetch_cc): Remove.
15939 (prefetch_nocc): Likewise.
15940
15941 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15942
15943 * expr.c (vector_mode_valid_p): Move to c-common.c.
15944 * expr.h (vector_mode_valid_p): Do not declare here.
15945 * system.h: Poison GCC_EXPR_H in front-ends.
15946 * Makefile.in: Update dependencies.
15947
15948 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15949
15950 PR target/44705
15951 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
15952
15953 2010-07-03 Jan Hubicka <jh@suse.cz>
15954
15955 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
15956 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
15957 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
15958 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
15959 Likewise.
15960
15961 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
15962 Update timevars.V
15963 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
15964 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
15965 TV_IPA_LTO_DECL_OUT): New.
15966 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
15967
15968 2010-07-03 Jan Hubicka <jh@suse.cz>
15969
15970 * ipa-inline.c (update_edge_key): Break out from ...
15971 update_callers_keys): ... here;
15972 (update_callee_keys): Update only the edges from caller to callee.
15973 (update_all_calle_keys): Do what update_calle_keys did.
15974 (decide_inlining_of_small_functions): Avoid recomputing of all
15975 callees when badness increase.
15976
15977 2010-07-03 Jie Zhang <jie@codesourcery.com>
15978
15979 * config/arm/arm.c (arm_attr_length_move_neon): New.
15980 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
15981 * config/arm/neon.md (define_mode_attr V_slen): Remove.
15982 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
15983 to compute length attribute.
15984
15985 2010-07-03 Jie Zhang <jie@codesourcery.com>
15986
15987 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
15988 as predicate for operand 1 and remove its constraint.
15989 * config/arm/predicates.md (vfp_register_operand): New.
15990 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
15991 (*push_fp_multi): Likewise.
15992
15993 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
15994
15995 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
15996
15997 2010-07-03 Jan Hubicka <jh@suse.cz>
15998
15999 * config/i386/i386.c (override_options): Revert accidental commit.
16000
16001 2010-07-02 Le-Chun Wu <lcwu@google.com>
16002
16003 PR c++/44128
16004 * doc/invoke.texi: Update documentation of -Wshadow.
16005
16006 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16007 Julian Brown <julian@codesourcery.com>
16008 Sandra Loosemore <sandra@codesourcery.com>
16009
16010 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
16011 comparisons. Adjust to take both operands.
16012 (arm_select_cc_mode): Handle DImode comparisons.
16013 (arm_gen_compare_reg): Generate a scratch register for DImode
16014 comparisons which require one. Use xor for Thumb equality checks.
16015 (arm_const_double_by_immediates): New.
16016 (arm_print_operand): Allow 'Q' and 'R' for constants.
16017 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
16018 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
16019 arm_canonicalize_comparison.
16020 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
16021 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
16022 prototype.
16023 (arm_const_double_by_immediates): Declare.
16024 * config/arm/constraints.md (Di): New constraint.
16025 * config/arm/predicates.md (arm_immediate_di_operand)
16026 (arm_di_operand, cmpdi_operand): New.
16027 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
16028 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
16029 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
16030 (cstoredi4): Handle non-Cirrus also.
16031
16032 2010-07-02 Julian Brown <julian@codesourcery.com>
16033 Sandra Loosemore <sandra@codesourcery.com>
16034
16035 PR target/43703
16036 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
16037 (smax<mode>3): Disable for NEON float modes when
16038 flag_unsafe_math_optimizations is false.
16039 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
16040 (*mul<mode>3_neon)
16041 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
16042 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
16043 for NEON float modes when flag_unsafe_math_optimizations is false.
16044 (quad_halves_<code>v4sf): Only enable if
16045 flag_unsafe_math_optimizations is true.
16046 * doc/invoke.texi (ARM Options): Add note about floating point
16047 vectorization requiring -funsafe-math-optimizations.
16048
16049 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16050 Julian Brown <julian@codesourcery.com>
16051
16052 * config/arm/neon.md (UNSPEC_VABA): Delete.
16053 (UNSPEC_VABAL): Delete.
16054 (UNSPEC_VABS): Delete.
16055 (UNSPEC_VMUL_N): Delete.
16056 (adddi3_neon): New.
16057 (subdi3_neon): New.
16058 (mul<mode>3add<mode>_neon): Make the pattern named.
16059 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16060 (neon_vadd<mode>): Replace with define_expand, and move the remaining
16061 unspec parts...
16062 (neon_vadd<mode>_unspec): ...to this.
16063 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16064 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16065 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16066 (neon_vaba<mode>): Rewrite in terms of vabd.
16067 (neon_vabal<mode>): Rewrite in terms of vabdl.
16068 (neon_vabs<mode>): Rewrite without unspec.
16069 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16070 (*arm_subdi3): Likewise.
16071 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16072 No_op attribute to disable assembly output checks.
16073 * config/arm/arm_neon.h: Regenerated.
16074 * doc/arm-neon-intrinsics.texi: Regenerated.
16075
16076 2010-07-02 Jan Hubicka <jh@suse.cz>
16077
16078 * ipa-split.c (split_function): For aggregate values, set the return
16079 slot optimization bit. When passing DECL_BY_REFERENCE, produce
16080 *<retval> = fncall.part ().
16081 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16082
16083 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16084
16085 * config/arm/neon.md (UNSPEC_VAND): Delete.
16086 (UNSPEC_VBIC): Delete.
16087 (UNSPEC_VCLZ): Delete.
16088 (UNSPEC_VCNT): Delete.
16089 (UNSPEC_VEOR): Delete.
16090 (UNSPEC_VORN): Delete.
16091 (UNSPEC_VORR): Delete.
16092 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
16093 core registers too.
16094 (anddi3_neon): Likewise.
16095 (orndi3_neon): Likewise.
16096 (bicdi3_neon): Likewise.
16097 (xordi3_neon): Likewise.
16098 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16099 rid of unspec and handle unused operand.
16100 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16101 * config/arm/predicates.md (imm_for_neon_logic_operand):
16102 Require TARGET_NEON.
16103 (imm_for_neon_inv_logic_operand): Likewise.
16104 * config/arm/arm.md (define_split for logical_binary_operator):
16105 Disable for NEON registers.
16106 (anddi3): Add new define_expand, and rename the insn. Disable
16107 this insn for NEON, where anddi3_neon now applies.
16108 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16109 (iordi3): As for anddi3.
16110 (xordi3): Likewise.
16111 * config/arm/neon.ml (Vand): Split DImode variants and mark them
16112 as No_op to disable testing for exact instruction match.
16113 (Vorr): Likewise.
16114 (Veor): Likewise.
16115 (Vbic): Likewise.
16116 (Vorn): Likewise.
16117 * config/arm/arm_neon.h: Regenerated.
16118 * doc/arm-neon-intrinsics.texi: Regenerated.
16119
16120 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16121
16122 * expr.h (emit_stack_probe): Declare.
16123 * explow.c (emit_stack_probe): Make global.
16124 (anti_adjust_stack_and_probe): Fix comments.
16125 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16126 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16127 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16128 * config/sparc/sparc.c: Include except.h.
16129 (sparc_emit_probe_stack_range): New function.
16130 (output_probe_stack_range): Likewise.
16131 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
16132 built-in stack checking is enabled.
16133 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
16134 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16135 (probe_stack_range): New insn.
16136
16137 2010-07-02 Richard Guenther <rguenther@suse.de>
16138
16139 PR target/43958
16140 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
16141 for argument alignment.
16142
16143 2010-07-02 Jan Hubicka <jh@suse.cz>
16144
16145 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
16146 walk backwards from entry_bb to check only those basic block of header
16147 that might lead to execution of split part.
16148 (consider_split) ... here.
16149 (find_return_bb): Allow assignment in return BB.
16150 (find_retval): New.
16151 (split_function): Fix name of cloned function; take care of updating
16152 return value in return_bb containing move.
16153
16154 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
16155
16156 PR target/44771
16157 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16158 used variable insn.
16159
16160 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16161
16162 * implicit-zee.c (combine_reaching_defs): Fix long lines.
16163 (is_set_with_extension_DI): Delete.
16164 (struct zero_extend_info): New structure.
16165 (add_removable_zero_extend): New function.
16166 (find_removable_zero_extends): Use note_stores to find SETs.
16167 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
16168
16169 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16170
16171 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
16172 is_miss_rate_acceptable. Pull total_positions computation
16173 out of the loops. Early return if miss_positions exceeds
16174 the acceptable threshold.
16175 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
16176 is_miss_rate_acceptable after renaming of compute_miss_rate.
16177
16178 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16179
16180 PR middle-end/44576
16181 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
16182 of 1000) for miss rate if the address diference is greater than or
16183 equal to the cache line size (the two reference will never hit the
16184 same cache line).
16185
16186 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
16187
16188 PR target/42835
16189 * config/arm/arm-modes.def (CC_NOTB): New mode.
16190 * config/arm/arm.c (get_arm_condition_code): Handle it.
16191 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
16192 * config/arm/arm.md (subsi3_compare0_c): New pattern.
16193 (compare_scc): Now a define_and_split. Add a number of extra
16194 splitters before it.
16195
16196 PR target/42172
16197 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
16198 and ZERO_EXTEND.
16199 (arm_rtx_costs_1): Likewise.
16200 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
16201 * config/arm/arm.md (is_arch6): New attribute.
16202 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
16203 extendqisi2): Tighten the code somewhat, avoiding invalid
16204 RTL to occur in the expander patterns.
16205 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
16206 (thumb1_zero_extendhisi2_v6): Delete.
16207 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
16208 (thumb1_extendhisi2_v6): Delete.
16209 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
16210 (thumb1_extendqisi2_v6): Delete.
16211 (zero_extendhisi2 for register input splitter): New.
16212 (zero_extendqisi2 for register input splitter): New.
16213 (thumb1_extendhisi2 for register input splitter): New.
16214 (extendhisi2 for register input splitter): New.
16215 (extendqisi2 for register input splitter): New.
16216 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
16217 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
16218 and add support for a register alternative requiring a split.
16219 (thumb1_zero_extendqisi2): Likewise.
16220 (arm_zero_extendqisi2): Likewise.
16221 (arm_extendhisi2): Likewise.
16222 (arm_extendqisi2): Likewise.
16223
16224 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16225
16226 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
16227 instead of an unspec.
16228 (neon_expand_vector_init): Likewise.
16229 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
16230 (UNSPEC_VDUP_LANE): Delete.
16231 (UNSPEC VDUP_N): Delete.
16232 (UNSPEC_VGET_HIGH): Delete.
16233 (UNSPEC_VGET_LANE): Delete.
16234 (UNSPEC_VGET_LOW): Delete.
16235 (UNSPEC_VMVN): Delete.
16236 (UNSPEC_VSET_LANE): Delete.
16237 (V_double_vector_mode): New.
16238 (vec_set<mode>_internal): Make code emitted match that for the
16239 corresponding intrinsics.
16240 (vec_setv2di_internal): Likewise.
16241 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
16242 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
16243 (neon_vset_lane<mode>): Combine double and quad patterns and
16244 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
16245 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
16246 (neon_vdup_n<mode>): Rewrite RTL without unspec.
16247 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
16248 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
16249 with neon_vdup_lanev2di, adjusting the pattern from the latter
16250 to be predicable for consistency.
16251 (neon_vdup_lane<mode>_internal): New.
16252 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
16253 to avoid using an unspec.
16254 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
16255 (neon_vdup_lanev2di): Turn into a define_expand.
16256 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
16257 (neon_vget_high<mode>): Replace with....
16258 (neon_vget_highv16qi): New pattern using canonical RTL.
16259 (neon_vget_highv8hi): Likewise.
16260 (neon_vget_highv4si): Likewise.
16261 (neon_vget_highv4sf): Likewise.
16262 (neon_vget_highv2di): Likewise.
16263 (neon_vget_low<mode>): Replace with....
16264 (neon_vget_lowv16qi): New pattern using canonical RTL.
16265 (neon_vget_lowv8hi): Likewise.
16266 (neon_vget_lowv4si): Likewise.
16267 (neon_vget_lowv4sf): Likewise.
16268 (neon_vget_lowv2di): Likewise.
16269
16270 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
16271 test for this emitting vmov.
16272 (Vset_lane): Likewise.
16273 (Vdup_n): Likewise.
16274 (Vmov_n): Likewise.
16275
16276 * doc/arm-neon-intrinsics.texi: Regenerated.
16277
16278 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16279
16280 * config/arm/neon.md (vec_extractv2di): Correct error in register
16281 numbering to reconcile with neon_vget_lanev2di.
16282
16283 2010-07-02 Richard Guenther <rguenther@suse.de>
16284
16285 * tree-ssa-structalias.c (pt_solution_set_var): New function.
16286 * tree-ssa-alias.h (pt_solution_set_var): Declare.
16287 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
16288 points-to information.
16289
16290 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
16291
16292 * config/s390/s390.c (override_options): Adopt prefetching
16293 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
16294
16295 2010-07-02 Jan Hubicka <jh@suse.cz>
16296
16297 * df-problems.c (df_kill_notes): Do not collect dead notes.
16298 (df_set_note): Just call add_reg_note.
16299 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
16300 df_create_unused_note): Do not deal with lists of old notes.
16301 (df_note_bb_compute): Likewise.
16302
16303 2010-07-02 Richard Guenther <rguenther@suse.de>
16304
16305 * tree-ssa-structalias.c (find_func_aliases): Handle
16306 pointer alignment via BIT_AND_EXPR.
16307 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
16308
16309 2010-07-02 Richard Guenther <rguenther@suse.de>
16310
16311 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16312 mismatching number of dimensions properly.
16313
16314 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16315
16316 PR target/44707
16317 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
16318 (lo_sum (high ...) ...) patterns generated by earlier passes.
16319
16320 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16321
16322 * doc/install.texi (Prerequisites): Document Perl requirement on
16323 Solaris 2.
16324 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
16325
16326 2010-07-02 Richard Guenther <rguenther@suse.de>
16327
16328 PR middle-end/44777
16329 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
16330
16331 2010-07-02 Jan Hubicka <jh@suse.cz>
16332
16333 PR middle-end/44706
16334 * predict.c (predict_paths_for_bb): Handle case when control dependence
16335 BB has only abnormal edges.
16336
16337 2010-07-02 Richard Guenther <rguenther@suse.de>
16338
16339 PR tree-optimization/44748
16340 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
16341 the embedded conversion in MEM_REFs.
16342
16343 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
16344
16345 * reload.c: Include toplev.h.
16346 * recog.c: Likewise.
16347 * Makefile.in: Adjust dependencies.
16348
16349 2010-07-01 Jakub Jelinek <jakub@redhat.com>
16350
16351 PR debug/44694
16352 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
16353 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
16354
16355 2010-07-01 Richard Guenther <rguenther@suse.de>
16356
16357 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
16358 types for offsets.
16359
16360 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
16361
16362 PR target/44732
16363 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
16364 Fix argument types.
16365
16366 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
16367
16368 PR target/44727
16369 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16370 Make sure operand 0 dies.
16371
16372 2010-07-01 Richard Guenther <rguenther@suse.de>
16373
16374 PR middle-end/42834
16375 PR middle-end/44468
16376 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
16377 * doc/generic.texi (References to storage): Document MEM_REF.
16378 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
16379 (print_call_name): Likewise.
16380 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
16381 (build_simple_mem_ref_loc): New function.
16382 (mem_ref_offset): Likewise.
16383 * tree.h (build_simple_mem_ref_loc): Declare.
16384 (build_simple_mem_ref): Define.
16385 (mem_ref_offset): Declare.
16386 * fold-const.c: Include tree-flow.h.
16387 (operand_equal_p): Handle MEM_REF.
16388 (build_fold_addr_expr_with_type_loc): Likewise.
16389 (fold_comparison): Likewise.
16390 (fold_unary_loc): Fold
16391 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
16392 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
16393 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
16394 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
16395 (ptr_deref_may_alias_ref_p_1): Likewise.
16396 (ao_ref_base_alias_set): Properly differentiate base object for
16397 offset and TBAA.
16398 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
16399 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
16400 (indirect_refs_may_alias_p): Likewise.
16401 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
16402 chasing code.
16403 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
16404 (call_may_clobber_ref_p_1): Likewise.
16405 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
16406 * expr.c (expand_assignment): Handle MEM_REF.
16407 (store_expr): Handle MEM_REFs from STRING_CSTs.
16408 (store_field): If expanding a MEM_REF of a non-addressable
16409 decl use bitfield operations.
16410 (get_inner_reference): Handle MEM_REF.
16411 (expand_expr_addr_expr_1): Likewise.
16412 (expand_expr_real_1): Likewise.
16413 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
16414 * alias.c (ao_ref_from_mem): Handle MEM_REF.
16415 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
16416 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
16417 (dr_analyze_indices): Likewise.
16418 (dr_analyze_alias): Likewise.
16419 (object_address_invariant_in_loop_p): Likewise.
16420 * gimplify.c (mark_addressable): Handle MEM_REF.
16421 (gimplify_cond_expr): Build MEM_REFs.
16422 (gimplify_modify_expr_to_memcpy): Likewise.
16423 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
16424 (gimple_fold_indirect_ref): Adjust.
16425 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
16426 * tree.def (MEM_REF): New tree code.
16427 * tree-dfa.c: Include toplev.h.
16428 (get_ref_base_and_extent): Handle MEM_REF.
16429 (get_addr_base_and_unit_offset): New function.
16430 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
16431 * gimple-fold.c (may_propagate_address_into_dereference): Handle
16432 MEM_REF.
16433 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
16434 accesses if the array has just one dimension. Remove always true
16435 parameter. Do not require type compatibility here.
16436 (maybe_fold_offset_to_component_ref): Remove.
16437 (maybe_fold_stmt_indirect): Remove.
16438 (maybe_fold_reference): Remove INDIRECT_REF handling.
16439 Fold back to non-MEM_REF.
16440 (maybe_fold_offset_to_address): Simplify. Deal with type
16441 mismatches here.
16442 (maybe_fold_reference): Likewise.
16443 (maybe_fold_stmt_addition): Likewise. Also handle
16444 &ARRAY + I in addition to &ARRAY[0] + I.
16445 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
16446 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
16447 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
16448 * tree-ssa.c (useless_type_conversion_p): Make most pointer
16449 conversions useless.
16450 (warn_uninitialized_var): Handle MEM_REF.
16451 (maybe_rewrite_mem_ref_base): New function.
16452 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
16453 to SSA form.
16454 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
16455 INDIRECT_REF handling.
16456 (copy_tree_body_r): Handle MEM_REF.
16457 * gimple.c (is_gimple_addressable): Adjust.
16458 (is_gimple_address): Likewise.
16459 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
16460 invariant base are invariant.
16461 (is_gimple_min_lval): Adjust.
16462 (is_gimple_mem_ref_addr): New function.
16463 (get_base_address): Handle MEM_REF.
16464 (count_ptr_derefs): Likewise.
16465 (get_base_loadstore): Likewise.
16466 * gimple.h (is_gimple_mem_ref_addr): Declare.
16467 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
16468 * tree-cfg.c (verify_address): New function, split out from ...
16469 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
16470 the address operand of MEM_REFs. Verify MEM_REFs. Reject
16471 INDIRECT_REFs.
16472 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
16473 INDIRECT_REF. Allow conversions.
16474 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
16475 a register does not change its size.
16476 (verify_types_in_gimple_reference): Verify MEM_REF.
16477 (verify_gimple_assign_single): Disallow INDIRECT_REF.
16478 Handle MEM_REF.
16479 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
16480 New.
16481 (mark_address_taken): Handle MEM_REF.
16482 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
16483 (get_asm_expr_operands): Pass opf_not_non_addressable.
16484 (get_expr_operands): Handle opf_[not_]non_addressable.
16485 Handle MEM_REF. Remove INDIRECT_REF handling.
16486 * tree-vrp.c (check_array_ref): Handle MEM_REF.
16487 (search_for_addr_array): Likewise.
16488 (check_array_bounds): Likewise.
16489 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
16490 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
16491 (ref_always_accessed_p): Likewise.
16492 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
16493 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
16494 Handle MEM_REF.
16495 * cgraphbuild.c (mark_load): Properly check for NULL result
16496 from get_base_address.
16497 (mark_store): Likewise.
16498 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
16499 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
16500 handling for MEM_REF.
16501 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
16502 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
16503 * builtins.c (stabilize_va_list_loc): Use the function ABI
16504 valist type if we couldn't canonicalize the argument type.
16505 Always dereference with the canonical va-list type.
16506 (maybe_emit_free_warning): Handle MEM_REF.
16507 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
16508 memmove to memcpy.
16509 * builtins.c (fold_builtin_memory_op): Use ref-all types
16510 for all memcpy foldings.
16511 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
16512 (build_outer_var_ref): Likewise.
16513 (scan_omp_1_op): Likewise.
16514 (lower_rec_input_clauses): Likewise.
16515 (lower_lastprivate_clauses): Likewise.
16516 (lower_reduction_clauses): Likewise.
16517 (lower_copyprivate_clauses): Likewise.
16518 (expand_omp_atomic_pipeline): Likewise.
16519 (expand_omp_atomic_mutex): Likewise.
16520 (create_task_copyfn): Likewise.
16521 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
16522 Remove old union trick. Initialize constant offsets.
16523 (ao_ref_init_from_vn_reference): Likewise. Do not handle
16524 INDIRECT_REF. Init base_alias_set properly.
16525 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
16526 (vn_reference_fold_indirect): Adjust for MEM_REFs.
16527 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
16528 for ARRAY_REFs.
16529 (may_insert): Remove.
16530 (visit_reference_op_load): Do not test may_insert.
16531 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
16532 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16533 a field to store the constant offset this op applies.
16534 (run_scc_vn): Adjust prototype.
16535 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
16536 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
16537 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
16538 bother about volatile qualifiers on pointers.
16539 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
16540 * tree-ssa-loop-ivopts.c
16541 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
16542 (strip_offset_1): Likewise.
16543 (find_interesting_uses_address): Replace INDIRECT_REF handling with
16544 MEM_REF handling.
16545 (get_computation_cost_at): Likewise.
16546 * ipa-pure-const.c (check_op): Handle MEM_REF.
16547 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
16548 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
16549 and constants.
16550 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
16551 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
16552 (eliminate_local_variables_1): Likewise.
16553 (create_call_for_reduction_1): Likewise.
16554 (create_loads_for_reductions): Likewise.
16555 (create_loads_and_stores_for_name): Likewise.
16556 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
16557 (ssa_accessed_in_tree): Handle MEM_REF.
16558 (ssa_accessed_in_assign_rhs): Likewise.
16559 (update_type_size): Likewise.
16560 (analyze_accesses_for_call_stmt): Likewise.
16561 (analyze_accesses_for_assign_stmt): Likewise.
16562 (transform_access_sites): Likewise.
16563 (transform_allocation_sites): Likewise.
16564 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
16565 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
16566 not handle INDIRECT_REF.
16567 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
16568 (cond_store_replacement): Likewise.
16569 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16570 MEM_REF, no not handle INDIRECT_REFs.
16571 (insert_into_preds_of_block): Properly initialize avail.
16572 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
16573 for ARRAY_REFs. Properly handle reference lookups that
16574 require a bit re-interpretation.
16575 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
16576 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
16577 (build_ref_for_offset_1): Remove.
16578 (build_ref_for_offset): Build MEM_REFs.
16579 (gate_intra_sra): Disable for now.
16580 (sra_ipa_modify_expr): Handle MEM_REF.
16581 (ipa_early_sra_gate): Disable for now.
16582 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
16583 MEM_REF handling.
16584 (disqualify_base_of_expr): Likewise.
16585 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
16586 MEM_REF handling.
16587 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
16588 Use mem_ref_offset. Remove bogus folding.
16589 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
16590 (make_fancy_name_1): Add support for MEM_REF.
16591 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
16592 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
16593 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
16594 (compute_complex_ancestor_jump_func): Likewise.
16595 (ipa_analyze_virtual_call_uses): Likewise.
16596 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
16597 INDIRECT_REF folding with more generalized MEM_REF folding.
16598 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
16599 (forward_propagate_addr_into_variable_array_index): Also handle
16600 &ARRAY + I in addition to &ARRAY[0] + I.
16601 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
16602 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
16603 creates assignments with overlap.
16604 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
16605 (get_frame_field): Likewise.
16606 (get_nonlocal_debug_decl): Likewise.
16607 (convert_nonlocal_reference_op): Likewise.
16608 (struct nesting_info): Add mem_refs pointer-set.
16609 (create_nesting_tree): Allocate it.
16610 (convert_local_reference_op): Insert to be folded mem-refs.
16611 (fold_mem_refs): New function.
16612 (finalize_nesting_tree_1): Perform defered folding of mem-refs
16613 (free_nesting_tree): Free the pointer-set.
16614 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
16615 (vectorizable_load): Likewise.
16616 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
16617 (propagate_with_phi): Likewise.
16618 * tree-object-size.c (addr_object_size): Handle MEM_REFs
16619 instead of INDIRECT_REFs.
16620 (compute_object_offset): Handle MEM_REF.
16621 (plus_stmt_object_size): Handle MEM_REF.
16622 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
16623 for &MEM_REF.
16624 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
16625 (symbol_marked_for_renaming): Likewise.
16626 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
16627 (fold-const.o): Add $(TREE_FLOW_H).
16628 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
16629 (find_func_clobbers): Likewise.
16630 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
16631 (decompose_access): Likewise.
16632 (replace_field_acc): Likewise.
16633 (replace_field_access_stmt): Likewise.
16634 (insert_new_var_in_stmt): Likewise.
16635 (get_stmt_accesses): Likewise.
16636 (reorg_structs_drive): Disable.
16637 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
16638 (ix86_canonical_va_list_type): Likewise.
16639
16640 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16641
16642 PR other/44566
16643 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
16644 * target.def (struct gcc_target): Replace enum reg_class with
16645 reg_class_t in hook argument / return types.
16646 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
16647 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
16648 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
16649 * targhooks.h (default_branch_target_register_class): Likewise.
16650 (default_ira_cover_classes, default_secondary_reload): Likewise.
16651 (default_memory_move_cost, default_register_move_cost): Likewise.
16652 * targhooks.c (default_branch_target_register_class): Likewise.
16653 (default_ira_cover_classes, default_secondary_reload): Likewise.
16654 (default_memory_move_cost, default_register_move_cost): Likewise.
16655 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
16656 * bt-load.c (branch_target_load_optimize): Likewise.
16657 * ira.c (setup_cover_and_important_classes): Likewise.
16658 * ira-costs.c (copy_cost): Likewise.
16659 * reload1.c (emit_input_reload_insns): Likewise.
16660 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16661 * config/frv/frv.c (frv_secondary_reload): Likewise.
16662 * config/s390/s390.c (s390_secondary_reload): Likewise.
16663 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
16664 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
16665 (ix86_register_move_cost): Likewise.
16666 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
16667 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
16668 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
16669 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
16670 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
16671 (rs6000_ira_cover_classes): Likewise.
16672 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
16673 * config/picochip/picochip-protos.h (picochip_secondary_reload):
16674 Likewise.
16675 * config/pa/pa.c (pa_secondary_reload): Likewise.
16676 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
16677 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
16678 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
16679 * doc/tm.texi: Regenerate.
16680
16681 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
16682
16683 PR bootstrrap/44726
16684 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
16685 use.
16686 (build_alias_set_optimal_p): Likewise.
16687 (build_base_obj_set_for_drs): Likewise.
16688
16689 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16690
16691 * target.def: Remove comment about licensing problems of function
16692 declarations.
16693
16694 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
16695 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
16696 * doc/tm.texi: Regenerate.
16697
16698 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
16699 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
16700
16701 * target.def (enum_va_list_p): Use DEFHOOK.
16702 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
16703 Rename ptype to ptree.
16704 * doc/tm.texi: Regenerate.
16705
16706 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
16707 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
16708 * doc/tm.texi: Regenerate.
16709
16710 * target.def (memory_move_cost): Use DEFHOOK.
16711 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
16712 Rename regclass AKA class to rclass.
16713 * doc/tm.texi: Regenerate.
16714
16715 * target.def (pragma_parse): Use DEFHOOK.
16716 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
16717 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
16718 * doc/tm.texi: Regenerate.
16719
16720 * target.def (pass_by_reference): Use DEFHOOK.
16721 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
16722 * doc/tm.texi: Regenerate.
16723
16724 * target.def (resolve_overloaded_builtin): Rename params to arglist.
16725 Use DEFHOOK.
16726 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
16727 * doc/tm.texi: Regenerate.
16728
16729 * target.def (return_pops_args): Use DEFHOOK.
16730 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
16731 Rename stack-size to size.
16732 * doc/tm.texi: Regenerate.
16733
16734 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
16735 last-sched_cycle to last_clock, cur_cycle to clock.
16736 * doc/tm.texi.in: Use @hook.
16737 * doc/tm.texi: Regenerate.
16738
16739 * target.def (print_operand, print_operand_address): Update comment.
16740 (print_operand_punct_valid_p): Likewise.
16741
16742 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16743
16744 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
16745 to rtl.h.
16746 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
16747 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
16748 * rtl-error.h: New.
16749 * regrename.c: Do not include toplev.h. Include rtl-error.h.
16750 * rtl-error.c: Likewise.
16751 * reload.c: Likewise.
16752 * recog.c: Likewise.
16753 * sel-sched.c: Likewise.
16754 * function.c: Likewise.
16755 * reg-stack.c: Likewise.
16756 * cfgrtl.c: Likewise.
16757 * reload1.c: Likewise.
16758 * final.c: Include rtl-error.
16759 * Makefile.in: Adjust dependencies.
16760
16761 2010-06-30 Jan Hubicka <jh@suse.cz>
16762
16763 PR middle-end/PR44706
16764 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
16765 to return the value.
16766
16767 2010-06-30 Michael Matz <matz@suse.de>
16768
16769 PR bootstrap/44699
16770 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
16771 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
16772 a gimple reg, attach the original VDEF to the last store in the
16773 sequence.
16774
16775 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
16776
16777 PR other/44034
16778 * config/darwin.c (darwin_override_options): Use renamed
16779 targetm.asm_out.emit_unwind_label.
16780
16781 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16782
16783 PR tree-optimization/39799
16784 * tree-inline.c (remap_ssa_name): Initialize variable only if
16785 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16786
16787 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
16788
16789 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
16790
16791 2010-06-30 Richard Guenther <rguenther@suse.de>
16792
16793 PR target/44722
16794 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
16795 against oscillation with reverse peephole2.
16796
16797 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
16798
16799 PR target/44721
16800 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16801 Fix last commit.
16802
16803 2010-06-30 Nick Clifton <nickc@redhat.com>
16804
16805 * config/rx/rx-modes.def: New file.
16806 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
16807 (CC_REGNUM): Define.
16808 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
16809 register.
16810 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
16811 (SELECT_CC_MODE): Define.
16812 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
16813 (reg:CC CC_REG) instead of (cc0).
16814 (attr "cc"): Delete.
16815 (cbranchsi4): Do not split compare and branch here. Instead move
16816 it to...
16817 (cbranchsi4_<code>): ... here. New patterns.
16818 (cmpsi): Call rx-compare_redundant to find out if it is necessary
16819 to emit the compare instruction.
16820 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
16821 cc_status flags.
16822 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
16823 FIRST_PSEUDO_REGNUM.
16824 (rx_expand_prologue, rx_expand_epilogue): Likewise.
16825 (rx_notice_update_cc): Delete.
16826 (rx_cc_modes_compatible): New function.
16827 (flags_needed_for_conditional): New function.
16828 (flags_from_mode): New function.
16829 (rx_compare_redundant): New function - scans backwards through
16830 insn list to find out if condition flags are already set correctly.
16831 (TARGET_CC_MODES_COMPATIBLE): Define.
16832 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
16833
16834 * config/rx/rx.h (BRANCH_COST): Define.
16835 (REGISTER_MOVE_COST): Define.
16836 * config/rx/predicates (rx_source_operand): Allow all constant types.
16837 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
16838 (tstsi4): New pattern.
16839 * config/rx/rx.c (rx_memory_move_cost): Define.
16840 (TARGET_MEMORY_MOVE_COST): Define.
16841
16842 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16843
16844 * tree.h (block_may_fallthru): Declare here.
16845 * tree-flow.h (block_may_fallthru): Do not declare here.
16846 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
16847 bitmap.h
16848 * Makefile.in (c-typeck.o): Update dependencies.
16849
16850 2010-06-30 Jakub Jelinek <jakub@redhat.com>
16851
16852 PR debug/44694
16853 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
16854 * cselib.c (cfa_base_preserved_regno): New static variable.
16855 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
16856 of REGNO (cfa_base_preserved_val->locs->loc).
16857 (cselib_preserve_cfa_base_value): Add regno argument, set
16858 cfa_base_preserved_regno to it.
16859 (cselib_invalidate_regno): Allow removal of registers other than
16860 cfa_base_preserved_regno from cfa_base_preserved_val.
16861 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
16862 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
16863 of MEM addresses, if not on LHS.
16864 (reverse_op): Don't add reverse ops for cfa_base_rtx.
16865 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
16866
16867 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16868
16869 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
16870 static variables.
16871 (peep2_buf_position): New static function.
16872 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
16873 peephole2_optimize): Use it.
16874 (peep2_attempt, peep2_update_life): New static functions, broken out
16875 of peephole2_optimize.
16876 (peep2_fill_buffer): New static function.
16877 (peephole2_optimize): Change the main loop to try to fill the buffer
16878 with the maximum number of insns before matching them against
16879 peepholes. Use a forward scan. Remove special case for targets with
16880 conditional execution.
16881 * genrecog.c (change_state): Delete dead code.
16882 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16883 Rewrite so as not to expect the second insn to have had a peephole
16884 applied yet.
16885
16886 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16887
16888 * genhooks.c (emit_findices): Cast field precision to int.
16889 (emit_documentation): Likewise.
16890
16891 2010-06-29 Jakub Jelinek <jakub@redhat.com>
16892
16893 PR tree-optimization/43801
16894 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
16895 if old_decl was DECL_ONE_ONLY.
16896
16897 PR debug/44668
16898 * dwarf2out.c (add_accessibility_attribute): New function.
16899 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
16900 instead of adding DW_AT_accessibility manually.
16901 (gen_enumeration_type_die, gen_struct_or_union_type_die,
16902 gen_typedef_die): Use it.
16903
16904 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16905
16906 * vmsdbgout.c (full_name): Just output the file name if not native.
16907
16908 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16909
16910 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
16911 (funcnam_table): New static table.
16912 (funcnum_table): New static table.
16913 (write_rtnbeg): Write value saved in funcnum_table.
16914 (write_rtnend): Write value saved in funcnum_table.
16915 (vmsdbgout_begin_function): Save current function info in
16916 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
16917 (vmsdbgout_finish): Iterate over funcnum_table.
16918
16919 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16920
16921 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
16922 (vmsdbgout_type_decl): Declare
16923 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
16924 (FUNC_EPILOGUE_LABEL): New macro
16925 (vmsdbgout_begin_epilogue): New function.
16926 (vmsdbgout_type_decl): New function.
16927
16928 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16929
16930 * vmsdbg.h: Update copyright.
16931
16932 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16933
16934 * vmsdbg.h (DST_K_TBG): New DST constant.
16935 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
16936 (write_modbeg): Cast module_language to avoid warning.
16937 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
16938
16939 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16940
16941 PR other/44034
16942 * target.def, doc/tm.texi.in, genhooks.c: New files.
16943 * target.h: Instead of defining individual hook members,
16944 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
16945 include target.def.
16946 * target-def.h: Instead of defining individual hook initializers,
16947 include target-hooks-def.h.
16948 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
16949 targetm.live_on_entry -> targetm.extra_live_on_entry
16950 targetm.sched.md_finish ->targetm.sched.finish
16951 targetm.sched.md_init -> targetm.sched.init
16952 targetm.sched.md_init_global -> targetm.sched.init_global
16953 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
16954 targetm.asm_out.except_table_label ->
16955 targetm.asm_out.emit_except_table_label
16956 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
16957 targetm.target_help -> targetm.help
16958 targetm.vectorize.builtin_support_vector_misalignment ->
16959 targetm.vectorize.support_vector_misalignment
16960 targetm.file_start_app_off -> targetm.asm_file_start_app_off
16961 targetm.file_start_file_directive ->
16962 targetm.asm_file_start_file_directive
16963 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
16964 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
16965 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
16966 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
16967 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
16968 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
16969 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
16970 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
16971 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
16972 * Makefile.in (TARGET_H): Depend on target.def.
16973 (TARGET_DEF_H): Depend on target-hooks-def.h.
16974 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
16975 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
16976 * doc/tm.texi: Regenerate.
16977
16978 * Makefile.in (s-tm-texi): Remove stray tab / rule.
16979
16980 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
16981 (targetm.sched.init): Likewise.
16982
16983 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16984
16985 PR bootstrap/44713
16986 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
16987 (function_arg_advance_32): Const-ify TYPE parameter.
16988 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
16989 (ix86_function_arg_advance): Change type of NAMED to bool.
16990 (function_arg_32): Const-ify CUM and TYPE parameters.
16991 (function_arg_64): Likewise. Change type of NAMED to bool.
16992 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
16993 to bool.
16994 (ix86_function_arg): Change type of NAMED to bool.
16995 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
16996 last argument as a bool.
16997
16998 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16999
17000 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
17001 (OVERRIDE_OPTIONS): Add note of obsolescence.
17002 Replace references with references to TARGET_OPTION_OVERRIDE.
17003 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
17004 the macro).
17005 * targhooks.c (default_target_option_override): New function.
17006 * targhooks.h (default_target_option_override): Declare.
17007 * target.h (struct gcc_target): Add override member to
17008 target_option member.
17009 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
17010 targetm.target_option.override call.
17011 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
17012 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
17013
17014 2010-06-29 Jan Hubicka <jh@suse.cz>
17015
17016 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
17017
17018 2010-06-29 Jan Hubicka <jh@suse.cz>
17019
17020 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
17021 unreachable.
17022 (rebuild_frequencies): New function.
17023 * predict.h (rebuild_frequencies): Declare.
17024 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
17025 entry block and edge reaching new_entry.
17026 (tree_function_versioning): When doing partial cloning, rebuild
17027 frequencies when done.
17028 * passes.c (execute_function_todo): Use rebild_frequencies.
17029
17030 2010-06-29 Richard Guenther <rguenther@suse.de>
17031
17032 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
17033 * tree-flow.h (enum noalias_state): Remove.
17034 (struct var_ann_d): Remove noalias_state member.
17035
17036 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
17037
17038 PR target/43902
17039 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
17040 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
17041 (maddhidi4): Likewise.
17042
17043 Revert parts of the change for PR25130.
17044 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17045 MEM_ALIAS_SET.
17046
17047 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17048
17049 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
17050 targetm.calls.function_incoming_arg, and
17051 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
17052 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
17053 * target.h (struct gcc_target): Add function_arg_advance,
17054 function_arg, and function_incoming_arg fields.
17055 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
17056 (TARGET_FUNCTION_INCOMING_ARG): Define.
17057 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
17058 and TARGET_FUNCTION_INCOMING_ARG.
17059 * targhooks.h (default_function_arg_advance): Declare.
17060 (default_function_arg, default_function_incoming_arg): Declare.
17061 * targhooks.c (default_function_arg_advance): New function.
17062 (default_function_arg, default_function_incoming_arg): New function.
17063 * config/i386/i386.c (function_arg_advance): Rename to...
17064 (ix86_function_arg_advance): ...this. Make static.
17065 (function_arg): Rename to...
17066 (ix86_function_arg): ...this. Make static.
17067 (TARGET_FUNCTION_ARG_ADVANCE): Define.
17068 (TARGET_FUNCTION_ARG): Define.
17069 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17070 (FUNCTION_ARG): Delete.
17071 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17072 (function_arg): Delete prototype.
17073
17074 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17075
17076 * reginfo.c (init_reg_sets_1): Adjust comments.
17077 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17078 * calls.c (prepare_call_address): Likewise.
17079 (emit_call_1): Use targetm.calls.return_pops_args.
17080 (expand_call): Likewise.
17081 * function.c (assign_parms): Likewise.
17082 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17083 * target.h (struct gcc_target) [struct calls]: Add
17084 return_pops_args field.
17085 * targhooks.h (default_return_pops_args): Declare.
17086 * targhooks.c (default_return_pops_args): Define.
17087 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17088 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17089 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17090 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
17091 documentation.
17092 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17093 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17094 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17095 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17096 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17097 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17098 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17099 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17100 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17101 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17102 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17103 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17104 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17105 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17106 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17107 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17108 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17109 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17110 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
17111 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
17112 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
17113 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
17114 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
17115 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
17116 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
17117 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
17118 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
17119 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
17120 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
17121 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
17122 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
17123 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
17124 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
17125 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
17126 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
17127 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
17128 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
17129 * config/i386/i386.c (ix86_return_pops_args): Make static.
17130 Constify arguments.
17131 (TARGET_RETURN_POPS_ARGS): Define.
17132 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
17133 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
17134 (TARGET_RETURN_POPS_ARGS): Define.
17135 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
17136 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
17137 (TARGET_RETURN_POPS_ARGS): Define.
17138
17139 2010-06-29 Richard Guenther <rguenther@suse.de>
17140
17141 PR middle-end/44667
17142 * tree-inline.c (initialize_inlined_parameters): Make sure
17143 to remap the inlined parameter variable substitutions types.
17144
17145 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
17146
17147 PR rtl-optimization/44659
17148 * combine.c (make_compound_operation) <SUBREG>: Do not return the
17149 result of force_to_mode if it partially re-expanded the compound.
17150
17151 2010-06-28 Jan Hubicka <jh@suse.cz>
17152
17153 PR middle-end/44671
17154 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
17155 RESULT_DECL.
17156
17157 2010-06-28 Anatoly Sokolov <aesok@post.ru>
17158
17159 * double-int.h (force_fit_type_double): Remove declaration.
17160 * double-int.c (force_fit_type_double): Move to tree.c.
17161 * tree.h (force_fit_type_double): Declare.
17162 * tree.h (force_fit_type_double): Moved from double-int.c. Use
17163 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
17164 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
17165 * convert.c (convert_to_pointer): Adjust call to
17166 force_fit_type_double.
17167 * tree-vrp.c (extract_range_from_assert,
17168 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
17169 * fold-const.c: Update comment.
17170 (int_const_binop, fold_convert_const_int_from_int,
17171 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
17172 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
17173 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
17174 round_up_loc): Adjust call to force_fit_type_double.
17175
17176 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17177
17178 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
17179
17180 2010-06-28 Martin Jambor <mjambor@suse.cz>
17181
17182 * tree-sra.c (convert_callers): New parameter, change fndecls of
17183 recursive calls.
17184 (modify_function): Pass the old decl to convert_callers.
17185
17186 2010-06-28 Martin Jambor <mjambor@suse.cz>
17187
17188 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
17189 ipa_check_create_node_params and ipa_initialize_node_params with
17190 checking asserts they are not necessary.
17191
17192 2010-06-28 Jan Hubicka <jh@suse.cz>
17193
17194 PR tree-optimization/44687
17195 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
17196
17197 2010-06-28 Martin Jambor <mjambor@suse.cz>
17198
17199 PR c++/44535
17200 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
17201 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
17202 instead of BINFO_BASE_BINFO.
17203
17204 2010-06-28 Michael Matz <matz@suse.de>
17205
17206 PR middle-end/44592
17207 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
17208 proper VDEF chain for intermediate stores in the sequence.
17209
17210 2010-06-28 Jan Hubicka <jh@suse.cz>
17211
17212 PR tree-optimization/44357
17213 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
17214 uninlinable functions.
17215
17216 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17217
17218 * config.gcc (powerpc*-*-*): Handle titan.
17219 * config/rs6000/rs6000.c (titan_cost): New costs.
17220 (rs6000_override_options): Add "titan" to processor_target_table.
17221 Add Titan to branch alignment logic.
17222 Correctly set rs6000_cost for titan.
17223 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
17224 * config/rs6000/titan.md: New file.
17225 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
17226
17227 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17228
17229 * tree-browser.c (TB_history_stack): Convert to a VEC.
17230 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
17231 (TB_history_prev): Likewise.
17232
17233 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17234
17235 * vec.h (vec_heap_free): Add parentheses around free.
17236
17237 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
17238
17239 * system.h: Poison GCC_EXCEPT_H for front-end files.
17240
17241 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
17242 langhook.
17243 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
17244 Define to NULL by default.
17245 * except.h: Define GCC_EXCEPT_H.
17246 (doing_eh): Remove prototype.
17247 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
17248 (lang_protect_cleanup_actions): Remove.
17249 * except.c (lang_protect_cleanup_actions): Remove.
17250 (doing_eh): Remove.
17251 (gen_eh_region): Don't check doing_eh here.
17252 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
17253 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
17254 instead of lang_protect_cleanup_actions.
17255 * omp-low.c (maybe_catch_exception): Likewise.
17256 * Makefile.in: Update dependencies.
17257
17258 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
17259
17260 * cgraph.h (struct varpool_node): new used_from_object_file flag.
17261 (struct cgraph_local_info): new used_from_object_file flag.
17262 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
17263 (cgraph_clone_node): initialize used_from_object_file.
17264 (cgraph_create_virtual_clone): initialize used_from_object_file.
17265 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
17266 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
17267 when compiling with -fwhole-program.
17268 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
17269 internal resolver.
17270 * ipa.c (function_and_variable_visibility): Set externally_visible
17271 flag of varpool_node if used_from_object_file flag is set.
17272 (cgraph_externally_visible_p): check used_from_object_file flag.
17273 * doc/invoke.texi (-fwhole-program option): Change description of
17274 externally_visible attribute accordingly.
17275 * doc/extend.texi (externally_visible): Ditto.
17276
17277 2010-06-27 Jan Hubicka <jh@suse.cz>
17278
17279 * params.def (max-inline-insns-auto): Default to 40.
17280 * doc/invoke.texi (max-inline-insns-auto): Document the change.
17281
17282 2010-06-27 Jan Hubicka <jh@suse.cz>
17283
17284 PR middle-end/44671
17285 PR middle-end/44686
17286 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
17287 signature change.
17288 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
17289 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
17290
17291 2010-06-27 Anatoly Sokolov <aesok@post.ru>
17292
17293 * target.h (struct gcc_target): Add register_move_cost field.
17294 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
17295 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
17296 * targhooks.c (default_register_move_cost): New function.
17297 * targhooks.h (default_register_move_cost): Declare function.
17298 * defaults.h (REGISTER_MOVE_COST): Delete.
17299 * ira-int.h (ira_register_move_cost): Update comment.
17300 * ira.c (ira_register_move_cost): Update comment.
17301 * reload.h (register_move_cost): Declare.
17302 * reginfo.c (register_move_cost): New function.
17303 (move_cost): Update comment.
17304 (init_move_cost, memory_move_secondary_cost): Replace
17305 REGISTER_MOVE_COST with register_move_cost.
17306 * postreload.c (reload_cse_simplify_set): (Ditto.).
17307 * reload.c (find_valid_class, find_reloads): (Ditto.).
17308 * reload1.c (choose_reload_regs): (Ditto.).
17309 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
17310 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
17311 * doc/md.texi (can_create_pseudo_p): Update documentation.
17312
17313 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17314 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17315 * config/i386/i386.h (ix86_memory_move_cost): Make static.
17316 (TARGET_MEMORY_MOVE_COST): Define.
17317
17318 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17319 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
17320 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
17321 (TARGET_MEMORY_MOVE_COST): Define.
17322
17323 2010-06-27 Richard Guenther <rguenther@suse.de>
17324
17325 PR tree-optimization/44683
17326 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
17327 false edge from the inverted condition.
17328
17329 2010-06-27 Richard Guenther <rguenther@suse.de>
17330
17331 PR middle-end/44684
17332 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
17333 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
17334 for register LHS. Or non-store assignments.
17335
17336 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
17337
17338 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
17339 (sparc_emit_set_const64): Likewise. Remove disabled code.
17340 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
17341 (sparc_emit_set_const64): Likewise.
17342
17343 2010-06-26 Catherine Moore <clm@codesourcery.com>
17344
17345 * config/mips/mips.md (alu_type): New attribute.
17346 (type): Infer type from alu_type.
17347 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
17348 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
17349 *subsi3_extended, negsi2, negdi2, *low<mode>,
17350 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
17351 xor<mode>3, *nor<mode>3,
17352 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
17353 *zero_extendhi_truncqi): Set alu_type instead of type.
17354
17355 2010-06-26 Douglas B Rupp <rupp@gnat.com>
17356
17357 * config/alpha/alpha.c (alpha_need_linkage): Adjust
17358 splay_tree_new_ggc call.
17359 (alpha_use_linkage): Likewise.
17360
17361 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17362
17363 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
17364 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
17365 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
17366 (static_specs): Remove switches_need_spaces.
17367 (process_command, do_self_spec): Hardcode handling "-o" instead of
17368 checking switches_need_spaces.
17369 * system.h (SWITCHES_NEED_SPACES): Poison.
17370
17371 2010-06-26 Richard Guenther <rguenther@suse.de>
17372
17373 PR tree-optimization/44393
17374 * tree-loop-distribution.c (generate_loops_for_partition): Fix
17375 stmt removal and VOP renaming.
17376 (generate_memset_zero): Remove redundant stmt updating.
17377 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
17378 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
17379
17380 2010-06-26 Jan Hubicka <jh@suse.cz>
17381
17382 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
17383 edges comming from header are equivalent.
17384 (visit_bb): Handle PHIs correctly.
17385 * tree-inline.c (copy_phis_for_bb): Be able to copy
17386 PHI from entry edge.
17387 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
17388
17389 2010-06-26 Richard Guenther <rguenther@suse.de>
17390
17391 PR middle-end/44674
17392 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
17393 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
17394
17395 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17396
17397 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
17398 add_infile, alloc_switch): New.
17399 (process_command): Remove variable lang_n_infiles. Process
17400 options in a single pass. Use new functions for allocating
17401 infiles and switches arrays. Properly skip operands of
17402 -Xpreprocessor and -Xassembler.
17403
17404 2010-06-26 Jan Hubicka <jh@suse.cz>
17405
17406 PR middle-end/44671
17407 * cgraphunit.c (cgraph_function_versioning): Remove wrong
17408 cgraph_make_decl_local call; fix typo copying RTL data.
17409
17410 2010-06-25 DJ Delorie <dj@redhat.com>
17411
17412 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
17413 (m32c_output_aligned_common): Likewise.
17414 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17415 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17416 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
17417 (m32c_register_pragmas): Register it.
17418 * config/m32c/m32c.c (m32c_get_pragma_address): New.
17419 (m32c_insert_attributes): Set #pragma address decls volatile.
17420 (pragma_entry_eq): New.
17421 (pragma_entry_hash): New.
17422 (m32c_note_pragma_address): New.
17423 (m32c_get_pragma_address): New.
17424 (m32c_output_aligned_common): New.
17425 * doc/extend.texi: Document the new pragma.
17426
17427 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
17428 also.
17429 * config/m32c/predicates.md (m32c_any_operand): Check the code
17430 instead of memory_operand so as to allow matching volatile MEMs.
17431 (m32c_nonimmediate_operand): Likewise.
17432 (mra_operand): Allow volatiles.
17433
17434 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
17435
17436 PR debug/44610
17437 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
17438 address if the offset is unknown.
17439
17440 2010-06-25 Douglas B Rupp <rupp@gnat.com>
17441
17442 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
17443 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
17444 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
17445 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
17446 to ia64_start_function. Invoke it.
17447 * config/ia64/ia64.c (ia64_start_function): Call new function
17448 dwarf2out_vms_debug_main_pointer.
17449
17450 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17451
17452 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
17453 statements computing the true predicate.
17454
17455 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17456
17457 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
17458 to boolean_true_node.
17459 (reset_bb_predicate): New.
17460 (predicate_bbs): Call reset_bb_predicate.
17461
17462 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17463
17464 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
17465 (tree_if_conversion): Returns true when something has been changed.
17466 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
17467 changed something.
17468
17469 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17470
17471 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
17472 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
17473 * tree-if-conv.c: Include dbgcnt.h.
17474 (tree_if_conversion): Use if_conversion_tree to count the number of
17475 if-convertible loops.
17476
17477 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
17478
17479 * common.opt (fprefetch-loop-arrays): Re-define
17480 -fprefetch-loop-arrays as a tri-state option with the initial
17481 value of -1.
17482 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
17483 pass only when flag_prefetch_loop_arrays > 0.
17484 * toplev.c (process_options): Note that, with tri-states,
17485 flag_prefetch_loop_arrays>0 means prefetching is enabled.
17486 * config/i386/i386.c (override_options): Enable prefetching at -O3
17487 for a set of CPUs that sw prefetching is helpful.
17488 (software_prefetching_beneficial_p): New. Return TRUE if software
17489 prefetching is beneficial for the given CPU.
17490
17491 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
17492
17493 PR rtl-optimization/44326
17494 * implicit-zee.c (find_removable_zero_extends): Replace
17495 INSN_P with NONDEBUG_INSN_P.
17496
17497 2010-06-25 Martin Jambor <mjambor@suse.cz>
17498
17499 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
17500 (struct ipa_node_params): Removed the modification_analysis_done flag.
17501 (ipa_is_param_modified): Removed.
17502 (ipa_analyze_node): Declare.
17503 (ipa_compute_jump_functions): Remove declaration.
17504 (ipa_count_arguments): Likewise.
17505 (ipa_detect_param_modifications): Likewise.
17506 (ipa_analyze_params_uses): Likewise.
17507 * ipa-prop.c (struct param_analysis_info): New type.
17508 (visit_store_addr_for_mod_analysis): Removed.
17509 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
17510 moved down in the file.
17511 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
17512 (ipa_count_arguments): Made static.
17513 (mark_modified): New function.
17514 (is_parm_modified_before_call): New function.
17515 (compute_pass_through_member_ptrs): New parameter parms_info, call
17516 is_parm_modified_before_call instead of ipa_is_param_modified.
17517 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
17518 it to compute_pass_through_member_ptrs.
17519 (ipa_compute_jump_functions): New parameter parms_info, pass it to
17520 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
17521 on the callee if it is analyzed. Made static.
17522 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
17523 is_parm_modified_before_call instead of ipa_is_param_modified.
17524 (ipa_analyze_call_uses): New parameter parms_info, pass it to
17525 ipa_analyze_indirect_call_uses.
17526 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
17527 ipa_analyze_call_uses.
17528 (ipa_analyze_params_uses): New parameter parms_info, pass it to
17529 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
17530 (ipa_analyze_node): New function.
17531 (ipa_print_node_params): Do not dump the modified flag.
17532 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
17533 it. Do not stream the modified parameter flag.
17534 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
17535 it. Do not stream the modified parameter flag.
17536 * ipa-cp.c (ipcp_analyze_node): Removed.
17537 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
17538 with only a call to ipa_analyze_node.
17539 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
17540 node with only a call to ipa_analyze_node.
17541
17542 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17543
17544 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
17545
17546 2010-06-25 Jan Hubicka <jh@suse.cz>
17547
17548 * tree-pass.h (pass_split_functions): Declare.
17549 * opts.c (decode_options): Enable function splitting at -O2
17550 * timevar.def (TV_IPA_FNSPLIT): New macro.
17551 * ipa-split.c: New file.
17552 * common.opt (-fpartial-inlining): New flag.
17553 * Makefile.in (ipa-split.o): New object file.
17554 * passes.c (init_optimization_passes): Add ipa-split.
17555 * params.def (partial-inlining-entry-probability): New parameters.
17556 * doc/invoke.texi (-fpartial-inlining): New.
17557
17558 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17559
17560 PR 44665
17561 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
17562 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
17563 (gimplify_expr): Likewise.
17564
17565 2010-06-25 Martin Jambor <mjambor@suse.cz>
17566
17567 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
17568 statements instead of bailing out on them.
17569 (ipa_analyze_indirect_call_uses): Do not require that loads from the
17570 parameter are in the same BB as the condition. Update comments.
17571
17572 2010-06-25 Jakub Jelinek <jakub@redhat.com>
17573
17574 PR middle-end/43866
17575 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
17576 true or always false, return NULL_TREE.
17577 (tree_unswitch_single_loop): Optimize conditions even when reaching
17578 max-unswitch-level parameter. If num > 0, optimize first all conditions
17579 using entry checks, then do still reachable block discovery and consider
17580 only conditions in still reachable basic blocks in the loop.
17581
17582 PR tree-optimization/44539
17583 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
17584 the call doesn't have LHS, but has VDEF.
17585
17586 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17587
17588 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
17589 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
17590 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
17591 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
17592 * system.h (MODIFY_TARGET_NAME): Poison.
17593
17594 2010-06-25 Alan Modra <amodra@gmail.com>
17595
17596 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
17597 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
17598 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
17599 CMODEL_LARGE as default.
17600 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
17601 (offsettable_ok_by_alignment): Delete.
17602 (rs6000_emit_move): Remove mcmodel=medium optimization.
17603
17604 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17605
17606 With large parts from Jim Wilson:
17607 PR target/43902
17608 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
17609 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17610 * optabs.c (optab_for_tree_code): Likewise.
17611 (expand_widen_pattern_expr): Likewise.
17612 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
17613 out of execute_optimize_widening_mul.
17614 (convert_plusminus_to_widen): New function.
17615 (execute_optimize_widening_mul): Use the two new functions.
17616 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
17617 Remove code to generate widening multiply-accumulate. Add support
17618 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17619 * gimple-pretty-print.c (dump_ternary_rhs): New function.
17620 (dump_gimple_assign): Call it when appropriate.
17621 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
17622 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
17623 (expand_gimple_stmt_1): Likewise.
17624 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
17625 WIDEN_MULT_MINUS_EXPR.
17626 * tree-ssa-operands.c (get_expr_operands): Likewise.
17627 * tree-inline.c (estimate_operator_cost): Likewise.
17628 * gimple.c (extract_ops_from_tree_1): Renamed from
17629 extract_ops_from_tree. Add new arg for a third operand; fill it.
17630 (gimple_build_assign_stat): Support operations with three operands.
17631 (gimple_build_assign_with_ops_stat): Likewise.
17632 (gimple_assign_set_rhs_from_tree): Likewise.
17633 (gimple_assign_set_rhs_with_ops_1): Renamed from
17634 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
17635 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
17636 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
17637 WIDEN_MULT_MINUS_EXPR.
17638 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
17639 (extract_ops_from_tree_1): Adjust declaration.
17640 (gimple_assign_set_rhs_with_ops_1): Likewise.
17641 (gimple_build_assign_with_ops): Pass NULL for last operand.
17642 (gimple_build_assign_with_ops3): New macro.
17643 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
17644 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
17645 functions.
17646 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
17647 (verify_gimple_assign): Call it.
17648 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
17649 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
17650 functions for dealing with three-operand statements.
17651 * tree.c (commutative_ternary_tree_code): New function.
17652 * tree.h (commutative_ternary_tree_code): Declare it.
17653 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
17654 ternary statements.
17655 (gimple_assign_nonzero_warnv_p): Likewise.
17656 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
17657 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
17658 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
17659 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
17660 (struct hashtable_expr): New member ternary in the union.
17661 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
17662 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
17663 (iterative_hash_hashable_expr): Likewise.
17664 (print_expr_hash_elt): Handle EXPR_TERNARY.
17665 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
17666 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
17667 statements. Handle GIMPLE_TERNARY_RHS.
17668
17669 2010-06-25 Jan Hubicka <jh@suse.cz>
17670
17671 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
17672
17673 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
17674
17675 PR c/44517
17676 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
17677 parameters are not good.
17678 (c_parser_parameter_declaration): Error unknown type name if the type
17679 name can't start declaration specifiers.
17680
17681 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17682
17683 * gcc.c (translate_options): Don't mention +e in comment.
17684 (process_command): Don't handle +e specially.
17685
17686 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17687
17688 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
17689
17690 * ira-build.c (merge_hard_reg_conflicts): New function.
17691 (create_cap_allocno, copy_info_to_removed_store_destinations,
17692 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
17693 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
17694 (remove_unnecessary_allocnos, remove_low_level_allocnos)
17695 copy_nifo_to_removed_store_destination): Use them.
17696 * ira-lives.c (make_hard_regno_born): New function, split out of
17697 make_regno_born.
17698 (make_allocno_born): Likewise.
17699 (make_hard_regno_dead): New function, split out of make_regno_dead.
17700 (make_allocno_dead): Likewise.
17701 (inc_register_pressure): New function, split out of set_allocno_live.
17702 (dec_register_pressure): New function, split out of clear_allocno_live.
17703 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
17704 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
17705 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
17706 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
17707 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
17708 mark_pseudo_regno_live.
17709 (process_bb_node_lives): Use mark_pseudo_regno_live,
17710 make_hard_regno_born and make_allocno_dead.
17711 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
17712 set_allocno_live, clear_allocno_live): Delete functions.
17713
17714 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
17715 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
17716 functions.
17717 (ira_flattening): Use ira_parent_allocno.
17718 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
17719 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
17720
17721 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
17722 statement.
17723
17724 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
17725 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
17726 minmax_set_iter_cond, minmax_set_iter_next,
17727 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
17728 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
17729 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
17730 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
17731 uses changed.
17732
17733 * ira-int.h (struct live_range, live_range_t): Renamed from struct
17734 ira_allocno_live_range and allocno_live_range_t; all uses changed.
17735 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
17736 All uses changed.
17737
17738 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
17739
17740 * thumb2.md (thumb2_tlobits_cbranch): Delete.
17741 (peephole2 to convert zero_extract/compare of single bit to
17742 lshift/compare): New.
17743
17744 2010-06-24 Anatoly Sokolov <aesok@post.ru>
17745
17746 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
17747 recursive call and call to 'int_const_binop'.
17748 (build_range_check, fold_cond_expr_with_comparison, unextend,
17749 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
17750 multiple_of_p): Adjust call to const_binop.
17751
17752 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
17753
17754 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
17755 determine size of XFmode operand.
17756 (XFmode extended DFmode push splitter): Ditto.
17757 (XFmode extended SFmode push splitter): Ditto.
17758
17759 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
17760
17761 PR target/44588
17762 * config/i386/i386.md (extract_code): New.
17763 (<u>divmodqi4): Likewise.
17764 (divmodhiqi3): Likewise.
17765 (udivmodhiqi3): Likewise.
17766 (<u>divqi3): Remvoved.
17767
17768 2010-06-24 Jakub Jelinek <jakub@redhat.com>
17769
17770 PR middle-end/44492
17771 * recog.h (struct recog_data): Add is_asm field.
17772 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
17773 present in constraints of inline-asm operand and memory operand
17774 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
17775 (extract_insn): Initialize recog_data.is_asm.
17776 * doc/md.texi (Constraints): Document operand side-effect rules.
17777
17778 2010-06-24 Andi Kleen <ak@linux.intel.com>
17779
17780 * c-parser.c (c_parser_conditional_expression): Call
17781 warn_for_omitted_condop.
17782 * doc/invoke.texi: Document omitted condop warning.
17783
17784 2010-06-24 Nick Clifton<nickc@redhat.com>
17785
17786 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
17787 insn in the sequence is a jump insn before setting its label.
17788
17789 2010-06-24 Alan Modra <amodra@gmail.com>
17790
17791 * collect2.c (main): Match exactly --version and --help.
17792
17793 2010-06-24 DJ Delorie <dj@redhat.com>
17794
17795 * config/m32c/m32c-pragma.c: Don't include rtl.h.
17796
17797 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
17798
17799 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
17800 using X87MODEF mode iterator.
17801 (pushsf splitter): Macroize splitter using P mode iterator.
17802 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
17803 mode iterator.
17804
17805 (*movxf_internal): Rename from *movxf_integer.
17806 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
17807 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
17808 (*movdf_internal): Rename from *movdf_integer.
17809 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
17810 (*movsf_internal): Rename from *movdf_1.
17811
17812 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
17813
17814 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
17815 (const_gimple_seq_node): Removed typedefs.
17816
17817 * gimple.h (gimple_seq_node_d, gimple_seq_node)
17818 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
17819
17820 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
17821
17822 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
17823 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
17824 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
17825 and CODE_FOR_vec_extract_lo_v4df.
17826
17827 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
17828 Changed to define_insn_and_split.
17829 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
17830 (vec_extract_lo_v16hi): Likewise.
17831 (vec_extract_lo_v32qi): Likewise.
17832 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
17833 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
17834
17835 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
17836
17837 PR target/44640
17838 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
17839 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
17840 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
17841 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
17842 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
17843
17844 PR target/44640
17845 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
17846
17847 PR other/44644
17848 * df-core.c (struct df): Rename to df_d.
17849 * df.h (struct df): Likewise.
17850 * dse.h (struct df): Remove forward declaration.
17851 * recog.h (struct insn_data): Rename to:
17852 (struct_insn_data_d). Adjusted all users.
17853
17854 2010-06-23 Arnaud Charlet <charlet@adacore.com
17855
17856 PR ada/22220
17857 * doc/install.texi: Update requirements to build GNAT.
17858
17859 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
17860
17861 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
17862 enum type.
17863 (m68k_sched_attr_opx_type): Remove unreachable return.
17864 (m68k_sched_attr_opy_type): Likewise.
17865 (m68k_sched_attr_size): Likewise.
17866 (sched_get_opxy_mem_type): Likewise.
17867 (m68k_sched_attr_op_mem): Likewise.
17868
17869 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
17870
17871 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
17872 new statement and adjust VDEF only if necessary. Remove superfluous
17873 call to maybe_clean_or_replace_eh_stmt.
17874 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
17875 copy the flags.
17876 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
17877 * tree-inline.c (copy_bb): ...and not there.
17878
17879 2010-06-22 Cary Coutant <ccoutant@google.com>
17880
17881 * dwarf2out.c (is_nested_in_subprogram): New function.
17882 (should_move_die_to_comdat): Use it.
17883 (copy_ancestor_tree): Don't mark DIEs here.
17884 (copy_decls_walk): Start walk from root of newly-added tree;
17885 mark DIEs here instead.
17886
17887 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
17888
17889 * config/i386/i386.md (unit): Also check sseishft1.
17890
17891 2010-06-22 Jan Hubicka <jh@suse.cz>
17892
17893 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
17894 enabled.
17895
17896 2010-06-22 Jan Hubicka <jh@suse.cz>
17897
17898 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
17899 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
17900 Return true if something changed.
17901 * df.h (df_confluence_function_n): Return bool.
17902 * df-core.c (df_worklist_propagate_forward,
17903 df_worklist_propagate_backward): Track changes and ages.
17904 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
17905 track ages.
17906 * dse.c (dse_confluence_n): Return always true.
17907
17908 2010-06-22 Jan Hubicka <jh@suse.cz>
17909
17910 * bitmap.c (bitmap_clear_bit): Micro optimize.
17911
17912 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
17913
17914 * config/i386/i386.md (SWI1248x): New mode iterator.
17915 (SWI48x): Ditto.
17916 (SWI12): Ditto.
17917 (SWI24): Ditto.
17918
17919 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
17920 SWI1248x mode iterator.
17921 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
17922 using SWI124 mode iterator.
17923 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
17924 mode iterator.
17925 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
17926 *pushdi2_prologue_rex64 using P mode iterator.
17927 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
17928 using SWI48 mode iterator.
17929 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
17930 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
17931 using SWI1248x mode iterator.
17932 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
17933 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
17934 SWI48 mode iterator.
17935 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
17936 iterator.
17937 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
17938 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
17939 SWI12 mode iterator.
17940 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
17941 SWI12 mode iterator.
17942 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
17943 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
17944 SWI24 mode iterator.
17945 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
17946 SWI48 mode iterator.
17947 (mov<mode>_insn_1): New expander.
17948 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
17949 using SWI48x mode iterator.
17950
17951 (*movoi_internal_avx): Rename from *movoi_internal.
17952 (*movti_internal_rex64): Rename from *movti_rex64.
17953 (*movti_internal_sse): Rename from *movti_sse.
17954 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
17955 (*movdi_internal): Rename from *movdi_2.
17956 (*movsi_internal): Rename from *movsi_1.
17957 (*movhi_internal): Rename from *movhi_1.
17958 (*movqi_internal): Rename from *movqi_1.
17959
17960 (insv): Update the call to gen_movsi_insv_1 for rename.
17961 * config/i386/i386.c (promote_duplicated_reg): Ditto.
17962
17963 2010-06-22 Jan Hubicka <jh@suse.cz>
17964
17965 * passes.c (execute_function_todo): Move call of statistics_fini_pass
17966 to ...
17967 (execute_todo) ... this one.
17968
17969 2010-06-22 Alan Modra <amodra@gmail.com>
17970
17971 PR target/44364
17972 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17973 * caller-save.c (insert_restore, insert_save): Use non-validate
17974 form of adjust_address.
17975
17976 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17977
17978 PR target/39690
17979 * config/pa/pa.c (override_options): Disable
17980 -freorder-blocks-and-partition.
17981
17982 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
17983
17984 PR target/44615
17985 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
17986
17987 * config/i386/i386.md (type): Add sseishft1
17988
17989 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
17990 (ppro_insn_load): Likewise.
17991 (ppro_insn_store): Likewise.
17992 (ppro_insn_both): Likewise.
17993
17994 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
17995 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
17996 for type.
17997 (*vec_extractv2di_1_avx): Likewise.
17998 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
17999 type. Remove atom_unit.
18000 (*vec_extractv2di_1_sse2): Likewise.
18001
18002 2010-06-21 DJ Delorie <dj@redhat.com>
18003
18004 * diagnostic.h (diagnostic_classification_change_t): New.
18005 (diagnostic_context): Add history and push/pop list.
18006 (diagnostic_push_diagnostics): Declare.
18007 (diagnostic_pop_diagnostics): Declare.
18008 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
18009 from pragmas in a history chain instead of the global table.
18010 (diagnostic_push_diagnostics): New.
18011 (diagnostic_pop_diagnostics): New.
18012 (diagnostic_report_diagnostic): Scan history chain to find state
18013 of diagnostics as of the diagnostic location.
18014 * opts.c (set_option): Pass UNKNOWN_LOCATION to
18015 diagnostic_classify_diagnostic.
18016 (enable_warning_as_error): Likewise.
18017 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
18018 use in the history chain.
18019 * doc/extend.texi: Document pragma GCC diagnostic changes.
18020
18021 2010-06-21 Jakub Jelinek <jakub@redhat.com>
18022
18023 * dwarf2out.c (add_linkage_name): New function. Don't add
18024 anything to DW_TAG_member DIEs.
18025 (add_name_and_src_coords_attributes): Use it.
18026 (gen_variable_die): Call it for C++ static data members if
18027 specification is DW_TAG_member.
18028
18029 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
18030 C++ char16_t and char32_t.
18031
18032 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
18033 * genattrtab.c: Include vecprim.h.
18034 (cached_attrs, cached_attr_count, attrs_seen_once,
18035 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
18036 attrs_cached_after): New variables.
18037 (find_attrs_to_cache): New function.
18038 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
18039 (write_test_expr): Add attrs_cached argument, return it too,
18040 attempt to cache non-const attributes used more than once in
18041 a single case handling.
18042 (write_attr_get): Use find_attrs_to_cache, for caching candidates
18043 emit cached_* variables. Adjust write_attr_set callers.
18044 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
18045 to find attributes that should be cached in this block. Adjust
18046 write_test_expr callers.
18047 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
18048 callers.
18049 (make_automaton_attrs): Adjust write_test_expr caller.
18050
18051 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
18052 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
18053 (make_automaton_attrs): If find_tune_attr returns non-NULL,
18054 write separate internal_dfa_insn_code_* and insn_default_latency_*
18055 functions for each attribute's value and emit init_sched_attrs
18056 function and function pointers.
18057 * genattr.c (const_attrs, reservations): New variables.
18058 (gen_attr): Add const attributes to const_attrs vector.
18059 (check_tune_attr, find_tune_attr): New functions.
18060 (main): Add reservations to reservations vector. If find_tune_attr
18061 returns true, add prototype for init_sched_attrs and make
18062 internal_dfa_insn_code and insn_default_latency function pointers,
18063 otherwise define init_sched_attrs as dummy macro.
18064 * cfgexpand.c: Include insn-attr.h.
18065 (gimple_expand_cfg): Call init_sched_attrs.
18066
18067 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18068
18069 PR target/44575
18070 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18071 va_arg from a set of register save slots into a temporary,
18072 if the container is bigger than type size, do the copying
18073 using smaller mode or using memcpy.
18074
18075 PR bootstrap/44426
18076 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18077 prototype.
18078 (sel_print_to_dot): Remove macro.
18079 (sel_print): Likewise. New prototype.
18080 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18081 (sel_print): New function.
18082
18083 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18084
18085 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18086 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18087
18088 2010-06-21 Nick Clifton <nickc@redhat.com>
18089
18090 * config/rx/rx.h (PTRDIFF_TYPE): Define.
18091 (SMALL_REGISTER_CLASS): Define (to zero).
18092 (PRINT_OPERAND): Delete.
18093 (PRINT_OPERAND_ADDRESS): Delete.
18094 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18095 (rx_print_operand_address): Delete prototype.
18096 * config/rx/rx.c (rx_print_operand): Make static.
18097 Allow %H and %L to handle CONST_DOUBLEs.
18098 (rx_print_operand_address): Make static.
18099 (rx_gen_move_template): Rename local variable 'template' to
18100 out_template.
18101 (rx_function_arg): Do not pass unknown sized objects in registers.
18102 (TARGET_PRINT_OPERAND): Define.
18103 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18104
18105 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18106
18107 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18108
18109 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
18110
18111 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
18112 stack-alignment for simple leaf-functions.
18113
18114 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18115
18116 * doc/install.texi: Document bootstrap-lto.
18117
18118 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18119
18120 PR debug/44248
18121 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
18122 (input_function): Drop them here, if VTA is disabled.
18123
18124 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
18125
18126 PR target/44546
18127 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
18128 New predicate.
18129 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
18130 ix86_swapped_fp_comparsion_operator instead of
18131 ix86_fp_comparison_operator.
18132
18133 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
18134 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
18135 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
18136 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
18137 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
18138 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
18139
18140 2010-06-20 Joseph Myers <joseph@codesourcery.com>
18141
18142 PR other/32998
18143 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
18144 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
18145 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
18146 (decode_cmdline_option): Update for this return value. Set
18147 orig_option_with_args_text field. Set arg field for unknown
18148 options. Make static.
18149 (decode_cmdline_options_to_array): New.
18150 (prune_options): Update handling of find_opt return value.
18151 * opts.c (read_cmdline_option): Take decoded option. Return void.
18152 (read_cmdline_options): Take decoded options.
18153 (decode_options): Add parameters for decoded options. Use
18154 decode_cmdline_options_to_array. Use decoded options for -O
18155 scan. Use integral_argument for -O parameters. Update call to
18156 read_cmdline_options.
18157 (enable_warning_as_error): Update handling of find_opt return value.
18158 * opts.h: Update comment on unknown options.
18159 (struct cl_decoded_option): Update comments on opt_index and arg.
18160 Add orig_option_with_args_text.
18161 (decode_cmdline_option): Remove.
18162 (decode_cmdline_options_to_array): Declare.
18163 (decode_options): Update prototype.
18164 * toplev.c (save_argv): Remove.
18165 (save_decoded_options, save_decoded_options_count): New.
18166 (read_integral_parameter): Remove.
18167 (print_switch_values): Use decoded options.
18168 (toplev_main): Don't set save_argv. Update call to decode_options.
18169 * toplev.h (read_integral_parameter): Remove.
18170 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
18171
18172 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
18173
18174 PR target/44072
18175 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
18176 immediate.
18177 * constraints.md (Pw, Px): New constraints.
18178 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
18179
18180 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
18181
18182 * config/i386/sse.md (fma4modesuffixf4): Removed.
18183 (ssemodesuffixf2s): Likewise.
18184 (ssemodesuffixf4): Likewise.
18185 (ssemodesuffixf2c): Likewise.
18186 (ssescalarmodesuffix2s): Likewise.
18187 (avxmodesuffixf2c): Likewise.
18188 (ssemodesuffix): New.
18189 (ssescalarmodesuffix): Likewise.
18190 Update patterns with ssemodesuffix and ssescalarmodesuffix.
18191
18192 2010-06-19 Philip Herron <herron.philip@googlemail.com>
18193
18194 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
18195
18196 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
18197
18198 * stor-layout.c (debug_rli): Remove unused local variables.
18199
18200 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
18201
18202 PR rtl-optimization/40900
18203 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
18204 original expression for later reuse.
18205 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
18206 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
18207
18208 2010-06-18 Anatoly Sokolov <aesok@post.ru>
18209
18210 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
18211 double_int_fits_in_uhwi_p): Implement as static inline.
18212 (double_int_xor): New inline function.
18213 (double_int_lrotate, double_int_rrotate, double_int_max,
18214 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18215 double_int_smin): Declare.
18216 (lrotate_double, rrotate_double): Remove declaration.
18217 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
18218 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
18219 (double_int_lrotate, double_int_rrotate, double_int_max,
18220 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18221 double_int_smin): New function.
18222 * fold-const.c (int_const_binop): Clean up, use double_int_*
18223 functions.
18224 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
18225 double_int_* and immed_double_int_const functions.
18226
18227 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18228
18229 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
18230 * function.c (types_used_by_cur_var_decl): Likewise.
18231 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
18232
18233 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18234
18235 * tree.h (record_layout_info): Change type of pending_statics field
18236 to a VEC.
18237 * stor-layout.c (start_record_layout): Store NULL into
18238 pending_statics.
18239 (debug_rli): Call debug_vec_tree instead of debug_tree.
18240 (place_field): Likewise.
18241 (finish_record_layout): Likewise.
18242
18243 2010-06-18 Alan Modra <amodra@gmail.com>
18244
18245 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
18246
18247 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18248
18249 PR target/43740
18250 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
18251 for SET source operand from SET destination operand.
18252
18253 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
18254
18255 PR rtl-optimization/39871
18256 * reload1.c (init_eliminable_invariants): For flag_pic, disable
18257 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
18258 (function_invariant_p): Rule out a plus of frame or arg pointer with
18259 a SYMBOL_REF.
18260 * ira.c (find_reg_equiv_invariant_const): Likewise.
18261
18262 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
18263
18264 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
18265 print_operand_address and puts to output the operand for CONST.
18266
18267 2010-06-17 Jakub Jelinek <jakub@redhat.com>
18268
18269 PR debug/44572
18270 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
18271 hook.
18272
18273 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18274
18275 * v850-protos.h (print_operand): Delete.
18276 (print_operand_address): Delete.
18277 * v850.h (PRINT_OPERAND): Delete.
18278 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18279 (PRINT_OPERAND_ADDRESS): Delete.
18280 * v850.c (print_operand_address): Rename to...
18281 (v850_print_operand_address): ...this. Make static. Call
18282 v850_print_operand.
18283 (print_operand): Rename to...
18284 (v850_print_operand): ...this. Make static. Call
18285 v850_print_operand_address.
18286 (v850_print_operand_punct_valid_p): New function.
18287 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18288 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18289
18290 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18291
18292 * config/sh/sh-protos.h (print_operand): Delete.
18293 (print_operand_address): Delete.
18294 * config/sh/sh.h (PRINT_OPERAND): Delete.
18295 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18296 (PRINT_OPERAND_ADDRESS): Delete.
18297 * config/sh/sh.c (sh_print_operand_address): Make static.
18298 (sh_print_operand): Make static. Call sh_print_operand_address
18299 and sh_print_operand.
18300 (sh_print_operand_punct_valid_p): New function.
18301 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18302 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18303
18304 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18305
18306 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
18307 (mcore_print_operand_address): Delete.
18308 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
18309 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18310 (PRINT_OPERAND_ADDRESS): Delete.
18311 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
18312 (mcore_print_operand): Make static.
18313 (mcore_print_operand_punct_valid_p): New function.
18314 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
18315 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18316
18317 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18318
18319 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
18320 (print_operand_address): Delete.
18321 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
18322 (PRINT_OPERAND_ADDRESS): Delete.
18323 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
18324 static.
18325 (m68hc11_print_operand): Make static.
18326 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18327
18328 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18329
18330 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
18331 (m32r_print_operand_address): Delete.
18332 * config/m32r/m32r.h (m32r_punct_chars): Delete.
18333 (PRINT_OPERAND): Delete.
18334 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18335 (PRINT_OPERAND_ADDRESS): Delete.
18336 * config/m32r/m32r.c (m32r_punct_chars): Make static.
18337 (m32r_print_operand_address): Make static.
18338 (m32r_print_operand): Make static.
18339 (m32r_print_operand_punct_valid_p): New function.
18340 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18341 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18342
18343 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18344
18345 * config/iq2000/iq2000-protos.h (print_operand): Delete.
18346 (print_operand_address): Delete.
18347 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
18348 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18349 (PRINT_OPERAND_ADDRESS): Delete.
18350 (iq2000_print_operand_punct): Delete.
18351 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
18352 (iq2000_print_operand_address): Make static.
18353 (iq2000_print_operand): Make static.
18354 (iq2000_print_operand_punct_valid_p): New function.
18355 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18356 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18357
18358 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18359
18360 * config/frv/frv-protos.h (frv_print_operand): Delete.
18361 (frv_print_operand_address): Delete.
18362 * config/frv/frv.h (PRINT_OPERAND): Delete.
18363 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18364 (PRINT_OPERAND_ADDRESS): Delete.
18365 * config/frv/frv.c (frv_print_operand_address): Make static.
18366 (frv_print_operand): Make static.
18367 (frv_print_operand_punct_valid_p): New function.
18368 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18369 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18370
18371 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18372
18373 * tree.h (vec_member): Declare.
18374 * tree.c (vec_member): Define.
18375
18376 2010-06-17 Richard Guenther <rguenther@suse.de>
18377
18378 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
18379 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
18380
18381 2010-06-17 Richard Guenther <rguenther@suse.de>
18382
18383 * tree-inline.c (declare_return_variable): Remove bogus code.
18384
18385 2010-06-17 Richard Guenther <rguenther@suse.de>
18386
18387 * gimplify.c (gimplify_bind_expr): Always promote complex
18388 and vector variables to registers if possible.
18389
18390 2010-06-17 Richard Guenther <rguenther@suse.de>
18391
18392 * expr.c (get_inner_reference): Use double_int for bit_offset
18393 calculation.
18394
18395 2010-06-16 DJ Delorie <dj@redhat.com>
18396
18397 * common.opt (-fstrict-volatile-bitfields): new.
18398 * doc/invoke.texi: Document it.
18399 * fold-const.c (optimize_bit_field_compare): For volatile
18400 bitfields, use the field's type to determine the mode, not the
18401 field's size.
18402 * expr.c (expand_assignment): Likewise.
18403 (get_inner_reference): Likewise.
18404 (expand_expr_real_1): Likewise.
18405 * expmed.c (store_fixed_bit_field): Likewise.
18406 (extract_bit_field_1): Likewise.
18407 (extract_fixed_bit_field): Likewise.
18408
18409 2010-06-16 Richard Guenther <rguenther@suse.de>
18410
18411 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
18412
18413 2010-06-16 Douglas B Rupp <rupp@gnat.com>
18414
18415 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
18416 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
18417 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
18418 * debug.c: Likewise.
18419 * sdbout.c: Likewise.
18420 * vmsdbgout.c: Likewise.
18421 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
18422 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
18423 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
18424 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
18425 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
18426 * dwarf2out.c (dw_fde_struct): New fields
18427 dw_fde_vms_{end,begin}_prologue.
18428 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
18429 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
18430 (dwarf2out_vms_end_prologue): New function.
18431 (dwarf2out_vms_begin_epilogue): New function.
18432 (dw_val_struct): New value dw_val_class_vms_delta.
18433 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
18434 begin_epilogue for VMS.
18435 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
18436 new static functions.
18437 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
18438 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
18439 static functions.
18440 (print_die): New case dw_val_class_vms_delta.
18441 (attr_checksum): Likewise.
18442 (same_dw_val_p: Likewise.
18443 (size_of_die): Likewise.
18444 (value_format): Likewise.
18445 (output_die): Likewise.
18446 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
18447 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
18448 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
18449 dwarf2out_cfi_begin_epilogue
18450 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
18451
18452 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18453
18454 * config/cris/cris-protos.h (cris_print_operand): Delete.
18455 (cris_print_operand_address): Delete.
18456 * config/cris/cris.h (PRINT_OPERAND): Delete.
18457 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18458 (PRINT_OPERAND_ADDRESS): Delete.
18459 * config/cris/cris.c (cris_print_operand_address): Make static.
18460 (cris_print_operand): Make static.
18461 (cris_print_operand_punct_valid_p): New function.
18462 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18463 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18464
18465 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18466
18467 * config/arm/arm-protos.h (arm_print_operand): Delete.
18468 (arm_print_operand_address): Delete.
18469 * config/arm/arm.h (PRINT_OPERAND): Delete.
18470 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18471 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
18472 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
18473 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
18474 (arm_print_operand): Make static.
18475 (arm_print_operand_punct_valid_p): New function.
18476 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18477 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18478
18479 2010-06-16 Nick Clifton <nickc@redhat.com>
18480
18481 * config/rx/constraints.md (NEGint4): New constraint.
18482 * config/rx/rx.md (attr cc): Add set_zsc.
18483 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
18484 initialised.
18485 (cmpsf): Likewise.
18486 (call_internal): Clobber the cc0 register.
18487 (call_value_internal): Likewise.
18488 (cstoresi4): Likewise.
18489 (movsieq): Likewise.
18490 (movsine): Likewise.
18491 (addsi3): Add alternative to handle small negative constants.
18492 (sunsi3): Likewise.
18493 (addsi3): Do not set the O bit in the cc0 register.
18494 (adddi3): Likewise.
18495 (subsi3): Likewise.
18496 (subdi3): Likewise.
18497 (andsi3): Reorder alternatives to prefer shorter forms.
18498 (mulsi3): Likewise.
18499 (iorsi3): Likewise.
18500 (negsi2): Note that the cc0 flags are set.
18501 (rotlsi3): Note that only the Z and S bits are set in cc0.
18502 (lshrsi3): Likewise.
18503 (ashlsi3): Likewise.
18504 (subsf3): Use %Q for the MEM operand.
18505 (fix_truncsfsi2): Likewise.
18506 (floatsisf2): Likewise.
18507 (bitset): Remove early clobber from destination.
18508 (bitset_in_memory): Likewise.
18509 (lrintsf2): Clobber the cc0 register.
18510 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
18511 (rx_print_operand): Handle %N.
18512
18513 2010-06-16 Jan Hubicka <jh@suse.cz>
18514
18515 * df-core.c (df_compact_blocks): Free problem_temps vector.
18516
18517 2010-06-16 Martin Jambor <mjambor@suse.cz>
18518
18519 PR tree-optimization/43905
18520 * tree-sra.c: Include tree-inline.h.
18521 (create_abstract_origin): Removed.
18522 (modify_function): Version the call graph node instead of creating
18523 abstract origins and dealing with same_body aliases.
18524 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
18525 function is versionable.
18526 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
18527
18528 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
18529
18530 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
18531 (CHOOSE_DYNAMIC_LINKER): Update.
18532
18533 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
18534
18535 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
18536 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
18537 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
18538 *prefetch_3dnow_rex.
18539
18540 2010-06-15 Anatoly Sokolov <aesok@post.ru>
18541
18542 * target.h (struct asm_out):Add declare_constant_name field.
18543 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18544 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
18545 * output.h (default_asm_declare_constant_name): Declare.
18546 (assemble_label): Update prototype.
18547 * varasm.c (assemble_constant_contents): Use
18548 targetm.asm_out.declare_constant_name target hook.
18549 (assemble_label): Add 'file' argument.
18550 (default_asm_declare_constant_name): New function.
18551 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
18552 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
18553 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
18554
18555 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
18556 * config/darwin.c (darwin_asm_declare_constant_name): New function.
18557 (machopic_output_indirection): Update assemble_label argument list.
18558 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
18559 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18560
18561 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
18562
18563 PR middle-end/44391
18564 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18565 size_one_node for pointer types. Do not call gmp_cst_to_tree.
18566
18567 2010-06-15 Richard Guenther <rguenther@suse.de>
18568
18569 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
18570
18571 2010-06-15 Paul Brook <paul@codesourcery.com>
18572
18573 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
18574 hard-float ABI.
18575
18576 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
18577
18578 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
18579 don't get a vector type for output.
18580
18581 2010-06-15 Jakub Jelinek <jakub@redhat.com>
18582
18583 PR fortran/44536
18584 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
18585 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
18586 (LANG_HOOKS_DECLS): Add it.
18587 * gimplify.c (omp_notice_variable): Call
18588 lang_hooks.decls.omp_report_decl.
18589
18590 2010-06-15 Martin Jambor <mjambor@suse.cz>
18591
18592 PR lto/44464
18593 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
18594 on the newly dead SSA name.
18595
18596 2010-06-15 Alan Modra <amodra@gmail.com>
18597
18598 * doc/invoke.texi: Add mcmodel to powerpc options.
18599 * configure.ac: Add HAVE_LD_LARGE_TOC test.
18600 * configure: Regenerate.
18601 * config.in: Regenerate.
18602 * config/rs6000/linux64.opt (mcmodel): New.
18603 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
18604 (TARGET_CMODEL, SET_CMODEL): Define.
18605 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
18606 select CMODEL_MEDIUM default.
18607 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
18608 (TARGET_CMODEL): Define default.
18609 * config/rs6000/rs6000.c (cmodel): New variable.
18610 (rs6000_explicit_options): Add cmodel field.
18611 (rs6000_handle_option): Handle -mcmodel.
18612 (create_TOC_reference): Add largetoc_reg param. Generate high,
18613 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
18614 (rs6000_delegitimize_address): Recognise new toc reference rtl
18615 and minimal-toc rtl.
18616 (rs6000_legitimize_reload_address): Handle new toc references.
18617 (print_operand_address): Handle legitimate_constant_pool_address_p
18618 match before lo_sum.
18619 (rs6000_eliminate_indexed_memrefs): Tidy.
18620 (rs6000_emit_move): Tweak threshold for inlining constants.
18621 Keep rs6000_emit_allocate_stack large stack frame offsets
18622 loaded into r0 inline.
18623 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
18624 (tocrel_base, tocrel_offset): New variables.
18625 (toc_relative_expr_p): Set them here.
18626 (print_operand_address): Skip over any offset on constant pool address.
18627 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
18628 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
18629 (offsettable_ok_by_alignment): New function.
18630 (rs6000_emit_move): Address suitably aligned local symbol_refs
18631 relative to the toc pointer for -mcmodel=medium.
18632 (legitimate_constant_pool_address_p): Make param const_rtx. Add
18633 strict param. Allow lo_sum version of addressing. Verify reg
18634 used for -mminimal-toc and -mcmodel != small. Update all callers.
18635 * config/rs6000/constraints.md: Update for above change.
18636 * config/rs6000/predicates.md: Likewise.
18637 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
18638 code.
18639 (tls_gd): Split for -mcmodel=medium/large.
18640 (tls_gd_high, tls_gd_low): New.
18641 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
18642 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
18643 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
18644 (largetoc_high, largetoc_low): New.
18645 (cmptf_internal2): Add clobber.
18646 * config/rs6000/rs6000-protos.h: Update.
18647
18648 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
18649
18650 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
18651 true if no prefetch is going to be generated for a given group.
18652 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
18653 estimate the prefetch_count.
18654 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
18655 prefetch count by considering the unroll_factor and prefetch_mod
18656 for is_loop_prefetching_profitable.
18657
18658 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
18659
18660 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
18661 anything if the argument is not a MEM.
18662
18663 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18664
18665 PR debug/43650
18666 PR debug/44181
18667 PR debug/44247
18668 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
18669 debug stmts.
18670 (canonicalize_loop_ivs): Likewise.
18671
18672 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18673
18674 PR debug/43656
18675 * haifa-sched.c (setup_insn_reg_pressure_info,
18676 update_register_pressure): Reject debug insns.
18677 (ready_sort): Don't setup reg pressure for debug insns.
18678 (schedule_insn): Don't update reg pressure for debug insns.
18679
18680 2010-06-14 Richard Guenther <rguenther@suse.de>
18681
18682 * lto-streamer.c (cached_bp): Remove.
18683 (bitpack_delete): Likewise.
18684 (bitpack_create): Likewise.
18685 (bp_get_next_word): Likewise.
18686 (bp_pack_value, bp_unpack_value): Move ...
18687 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
18688 Re-implement.
18689 (struct bitpack_d): Likewise.
18690 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
18691 New inline functions.
18692 * lto-streamer-out.c (lto_output_bitpack): Remove.
18693 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18694 (pack_value_fields): Adjust.
18695 (lto_write_tree): Likewise.
18696 (output_gimple_stmt): Likewise.
18697 (output_function): Likewise.
18698 * lto-streamer-in.c (input_gimple_stmt): Adjust.
18699 (input_function): Likewise.
18700 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18701 (lto_input_bitpack): Remove.
18702 (lto_materialize_tree): Adjust.
18703 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
18704 * lto-cgraph.c (lto_output_edge): Adjust.
18705 (lto_output_node): Likewise.
18706 (lto_output_varpool_node): Likewise.
18707 (lto_output_ref): Likewise.
18708 (input_node): Likewise.
18709 (input_varpool_node): Likewise.
18710 (input_ref): Likewise.
18711 (input_edge): Likewise.
18712 (output_node_opt_summary): Likewise.
18713 (input_node_opt_summary): Likewise.
18714 * ipa-pure-const.c (pure_const_write_summary): Likewise.
18715 (pure_const_read_summary): Likewise.
18716 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
18717 (ipa_read_indirect_edge_info): Likewise.
18718 (ipa_write_node_info): Likewise.
18719 (ipa_read_node_info): Likewise.
18720
18721 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
18722
18723 PR target/44534
18724 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
18725 (vec_extract_lo_v16hi): Likewise.
18726 (vec_extract_lo_v32qi): Likewise.
18727
18728 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18729
18730 PR bootstrap/44426
18731 * tree.h (build_call_expr): Don't define as vararg macro, instead
18732 add a prototype.
18733 * builtins.c (build_call_nofold): Remove.
18734 (expand_builtin_int_roundingfn, expand_builtin_pow,
18735 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
18736 expand_builtin_memset_args, expand_builtin_strcmp,
18737 expand_builtin_strncmp, expand_builtin_memory_chk): Use
18738 build_call_nofold_loc instead of build_call_nofold.
18739 (build_call_expr): New function.
18740
18741 PR tree-optimization/44508
18742 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
18743 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
18744 don't eliminate trivially dead stmts.
18745 * tree-vrp.c (vrp_finalize): Pass false as last argument
18746 to substitute_and_fold.
18747 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
18748 to substitute_and_fold.
18749 * tree-ssa-ccp.c (ccp_finalize): Likewise.
18750
18751 PR bootstrap/44509
18752 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
18753
18754 2010-06-14 Ira Rosen <irar@il.ibm.com>
18755
18756 PR tree-optimization/44507
18757 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
18758 to build initial vector for BIT_AND_EXPR.
18759 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
18760
18761 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18762
18763 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
18764 adjust z10prop set_attr.
18765
18766 2010-06-13 Jan Hubicka <jh@suse.cz>
18767
18768 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
18769 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
18770 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
18771 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
18772 datastructure checks into checking asserts.
18773 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
18774 * tree-ssa-sccvn.c (VN_INFO): Likewise.
18775 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
18776 df_ref_create_structure): Likewise.
18777 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
18778 pool_free): Use gcc_checking_assert.
18779 * alias.c (get_alias_set): Likewise.
18780 * var-tracking.c (variable_htab_free, shared_hash_copy,
18781 canonicalize_values_mark, variable_merge_over_cur): Likewise.
18782 * lto-streamer.c (bp_unpack_value): Likewise.
18783
18784 2010-06-13 Richard Guenther <rguenther@suse.de>
18785
18786 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
18787 Do not stream but initialize TYPE_CANONICAL to NULL.
18788 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
18789 * gimple.c (gimple_types_compatible_p): Disregard
18790 TYPE_STRUCTURAL_EQUALITY_P.
18791 (gimple_register_type): Use TYPE_CANONICAL as cache.
18792 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
18793 before registering common types.
18794 * config/i386/i386.c (ix86_function_arg_boundary): Do not
18795 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
18796 * tree.h (TYPE_CANONICAL): Clarify documentation.
18797
18798 2010-06-13 Anatoly Sokolov <aesok@post.ru>
18799
18800 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18801 LIBCALL_VALUE): Remove macros.
18802 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
18803 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18804 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18805 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
18806 (ia64_function_value): Make static. Handle receiving the function
18807 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
18808
18809 2010-06-12 Jan Hubicka <jh@suse.cz>
18810
18811 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
18812 at correct place.
18813
18814 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
18815
18816 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
18817
18818 2010-06-12 Jan Hubicka <jh@suse.cz>
18819
18820 * df-core.c (df_clear_bb_info): New function.
18821 (df_set_blocks): bb_info is always allocated.
18822 (df_get_bb_info): Use block_info_elt_size.
18823 (df_set_bb_info): Likewise.
18824 (df_compact_blocks): Update for new block_info.
18825 (grow_bb_info): New function.
18826 * df-problems.c (df_grow_bb_info): Move to df-core.c
18827 (df_rd_set_bb_info): Remove.
18828 (df_rd_free_bb_info): Do not free block pool.
18829 (df_rd_alloc): Do not create pool, use check for
18830 obstack presence instead of NULL pointer for new blocks.
18831 (df_rd_free): DO not free alloc pool; clear block_info.
18832 (problem_RD): Add size of block info structure.
18833 (df_lr_set_bb_info): Remove.
18834 (df_lr_free_bb_info): Do not free block pool.
18835 (df_lr_alloc): Do not create pool, use check for
18836 obstack presence instead of NULL pointer for new blocks.
18837 (df_lr_free): DO not free alloc pool; clear block_info.
18838 (problem_LR): Add size of block info structure.
18839 (df_live_set_bb_info): Remove.
18840 (df_live_free_bb_info): Do not free block pool.
18841 (df_live_alloc): Do not create pool, use check for
18842 obstack presence instead of NULL pointer for new blocks.
18843 (df_live_free): DO not free alloc pool; clear block_info.
18844 (problem_LIVE): Add size of block info structure.
18845 (problem_CHAIN): Add size of block info structure.
18846 (df_byte_lr_set_bb_info): Remove.
18847 (df_byte_lr_free_bb_info): Do not free block pool.
18848 (df_byte_lr_alloc): Do not create pool, use check for
18849 obstack presence instead of NULL pointer for new blocks.
18850 (df_byte_lr_free): DO not free alloc pool; clear block_info.
18851 (problem_BYTE_LR): Add size of block info structure.
18852 (problem_NOTE): Add size of block info structure.
18853 (df_byte_MD_set_bb_info): Remove.
18854 (df_byte_MD_free_bb_info): Do not free block pool.
18855 (df_byte_MD_alloc): Do not create pool, use check for
18856 obstack presence instead of NULL pointer for new blocks.
18857 (df_byte_MD_free): DO not free alloc pool; clear block_info.
18858 (problem_BD): Add size of block info structure.
18859 * df-scan.c (df_scan_free_internal): Free block pool.
18860 (df_scan_set_bb_info): Remove.
18861 (df_scan_free_bb_info): Check for artificial_defs instead
18862 of bb_info being non-NULL.
18863 (df_scan_alloc): DO not create df_scan_block pool.
18864 (problem_SCAN): Set size of block info.
18865 (df_bb_refs_record): Do not allocate bb_info.
18866 * df.h (df_problem): Add block_info_elt_size.
18867 (struct dataflow): Change block_info to void *.
18868 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
18869 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
18870 in-line structures.
18871
18872 2010-06-12 Jan Hubicka <jh@suse.cz>
18873
18874 PR tree-optimize/44485
18875 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
18876 containing use of return value of noreturn function.
18877
18878 2010-06-12 Anatoly Sokolov <aesok@post.ru>
18879
18880 * targhooks.c (default_function_value): Don't use
18881 FUNCTION_OUTGOING_VALUE.
18882 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
18883 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
18884
18885 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
18886
18887 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
18888 Add crtfastmath.o to extra_parts.
18889 * config/mips/crtfastmath.c: New.
18890 * config/mips/linux.h (ENDFILE_SPEC): New.
18891
18892 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
18893
18894 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
18895 old_type in parameter.
18896 (gcc_type_for_value): Update call to gcc_type_for_interval.
18897 (compute_type_for_level_1): Renamed compute_type_for_level.
18898 Update call to gcc_type_for_interval.
18899
18900 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18901
18902 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
18903 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
18904
18905 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18906
18907 * opts-common.c: Include options.h.
18908 (integral_argument): Move from opts.c.
18909 (decode_cmdline_option): New. Based on read_cmdline_option.
18910 * opts.c (integral_argument): Move to opts-common.c.
18911 (read_cmdline_option): Move most contents to
18912 decode_cmdline_option. Use %qs in diagnostics.
18913 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
18914 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
18915 decode_cmdline_option): New.
18916
18917 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18918
18919 PR target/44481
18920 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
18921 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
18922 (partiysi2_cmp): Ditto.
18923 (*partiyhi2_cmp): Ditto.
18924 (*parityqi2_cmp): Remove.
18925
18926 2010-06-11 Jan Hubicka <jh@suse.cz>
18927
18928 * bitmap.h (bmp_iter_next_bit): New.
18929 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
18930
18931 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
18932 Eric Botcazou <ebotcazou@adacore.com>
18933
18934 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
18935 computed cost.
18936
18937 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18938
18939 * config/i386/i386.md (unspec): New define_c_enum.
18940 (unspecv): Ditto.
18941
18942 2010-06-10 Jakub Jelinek <jakub@redhat.com>
18943
18944 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
18945
18946 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
18947
18948 PR middle-end/44483
18949 * tree-if-conv.c (bb_predicate_s): New struct.
18950 (bb_predicate_p): New.
18951 (bb_has_predicate): New.
18952 (bb_predicate): New.
18953 (set_bb_predicate): New.
18954 (bb_predicate_gimplified_stmts): New.
18955 (set_bb_predicate_gimplified_stmts): New.
18956 (add_bb_predicate_gimplified_stmts): New.
18957 (init_bb_predicate): New.
18958 (free_bb_predicate): New.
18959 (is_predicated): Use bb_predicate.
18960 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
18961 (predicate_bbs): Same. Gimplify the condition of the basic blocks
18962 before processing their successors.
18963 (clean_predicate_lists): Removed.
18964 (find_phi_replacement_condition): Use bb_predicate.
18965 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
18966 computations.
18967 (insert_gimplified_predicates): New.
18968 (combine_blocks): Call insert_gimplified_predicates.
18969 (tree_if_conversion): Call free_bb_predicate instead of
18970 clean_predicate_lists.
18971
18972 2010-10-11 Paul Brook <paul@codesourcery.com>
18973
18974 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
18975 * config/arm/arm.c (all_architectures): Change v7e-m default to
18976 cortexm4.
18977 * config/arm/arm-cores.def: Add cortex-m4.
18978 * config/arm/arm-tune.md: Regenerate.
18979
18980 2010-06-11 Jan Hubicka <jh@suse.cz>
18981
18982 * ipa-pure-const.c (special_builtlin_state): New function.
18983 (check_call): Use it instead of special casign BUILT_IN_RETURN.
18984 (propagate_pure_const): Use it.
18985
18986 2010-06-11 Jan Hubicka <jh@suse.cz>
18987
18988 * df-problems.c (df_live_scratch): Convert to bitmap_head.
18989 (df_live_alloc): Initialize df_live_scratch when initializing
18990 problem_data.
18991 (df_live_transfer_function): Update uses of df_live_scratch.
18992 (df_live_free): Free problem_data; clear df_live_scratch before
18993 releasing the obstack.
18994 (df_md_free): Free problem data.
18995
18996 2010-06-11 Jan Hubicka <jh@suse.cz>
18997
18998 * doc/invoke.texi (Wsuggest-attribute): Document.
18999 (Wmissing-noreturn): Remove.
19000 * ipa-pure-const.c (warn_function_noreturn): New function.
19001 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
19002 warn_missing_noreturn.
19003 * common.opt (Wsuggest-attribute=noreturn): New.
19004 * tree-flow.h (warn_function_noreturn): Declare.
19005 * tree-cfg.c (execute_warn_function_noreturn): Use
19006 warn_function_noreturn.
19007 (gate_warn_function_noreturn): New.
19008 (pass_warn_function_noreturn): Update.
19009
19010 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19011
19012 * c-typeck.c (handle_warn_cast_qual): Add loc
19013 parameter. Improve warning message.
19014 (build_c_cast): Pass location to handle_warn_cast_qual.
19015
19016 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19017
19018 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
19019 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
19020 insn mnemonic.
19021 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
19022
19023 2010-06-10 Dodji Seketeli <dodji@redhat.com>
19024
19025 Fix bootstap on mips
19026 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
19027 be naming typedefs.
19028
19029 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
19030
19031 * system.h (helper_const_non_const_cast): New inline for
19032 gcc version <= 4.0.
19033 (CONST_CAST2): For gcc version <= 4.0 use
19034 new helper to do const/non-const casting.
19035
19036 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19037
19038 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
19039 * Makefile.in (OBJS-common): Include insn-enums.o.
19040 (insn-enums.o): New rule.
19041 (simple_generated_c): Add insn-enums.c.
19042 (build/genenums.o): New rule.
19043 (genprogmd): Add "enums".
19044 * genconstants.c (print_enum_type): Declare a C string array
19045 for each enum.
19046 * genenums.c: New file.
19047 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
19048 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
19049 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
19050
19051 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19052
19053 * doc/md.texi (define_enum_attr): Document.
19054 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
19055 * read-md.h (lookup_enum_type): Declare.
19056 * read-md.c (lookup_enum_type): New function.
19057 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
19058 * genattrtab.c (attr_desc): Add an enum_name field.
19059 (evaluate_eq_attr): Take the associated attribute as argument.
19060 Get the enum prefix from the enum_name field, if defined.
19061 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
19062 (simplify_test_exp): Pass attr to evaluate_eq_attr.
19063 (add_attr_value): New function, split out from...
19064 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
19065 (write_test_expr): Pass attr to evaluate_eq_attr.
19066 (write_attr_get): Use the enum_name as the enum tag, if defined.
19067 (write_attr_valueq): Use the enum_name as a prefix, if defined.
19068 (find_attr): Initialize enum_name.
19069 (main): Handle DEFINE_ENUM_ATTR.
19070 * gensupport.c (process_rtx): Likewise.
19071 * config/mips/mips.h (mips_tune_attr): Delete.
19072 * config/mips/mips.md (cpu): Use define_attr_enum.
19073
19074 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19075
19076 * doc/md.texi (define_c_enum, define_enum): Document.
19077 * read-md.h (md_constant): Add a parent_enum field.
19078 (enum_value, enum_type): New structures.
19079 (upcase_string, traverse_enum_types): Declare.
19080 * read-md.c (enum_types): New variable.
19081 (upcase_string, add_constant): New functions.
19082 (handle_constants): Don't create the hash table here.
19083 Use add_constant.
19084 (traverse_md_constants): Don't check for a null md_constants.
19085 (decimal_string, handle_enum, traverse_enum_types): New functions.
19086 (read_md_files): Initialize md_constants and md_enums.
19087 * genconstants.c (print_md_constant): Ignore info argument.
19088 Only print constants that belong to no enum.
19089 (print_enum_type): New function.
19090 (main): Don't pass stdout to print_md_constant. Call print_enum_type
19091 for each defined enum type.
19092 * config/mips/mips.md (processor): New define_enum.
19093 (unspec): New define_c_enum.
19094 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19095 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19096 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19097 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19098 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19099 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19100 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19101 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19102 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19103 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19104 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19105 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19106 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19107 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19108 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19109 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19110 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
19111 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
19112 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
19113 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
19114 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
19115 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
19116 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19117 (UNSPEC_RDDSP): Move to mips-dsp.md.
19118 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
19119 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
19120 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
19121 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
19122 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
19123 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
19124 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
19125 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
19126 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
19127 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
19128 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
19129 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
19130 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
19131 Moved to mips-dspr2.md.
19132 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
19133 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
19134 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
19135 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
19136 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
19137 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
19138 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19139 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19140 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19141 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19142 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19143 UNSPEC_LOONGSON_PSADBH)
19144 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19145 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19146 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
19147 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19148 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19149 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19150 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
19151 (cpu): Update comment.
19152 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
19153 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
19154 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
19155 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
19156 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
19157 UNSPEC_LOONGSON_PCMPEQ)
19158 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
19159 UNSPEC_LOONGSON_PINSR_0)
19160 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19161 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19162 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19163 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19164 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19165 UNSPEC_LOONGSON_PSADBH)
19166 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19167 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19168 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
19169 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19170 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19171 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19172 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
19173 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
19174 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
19175 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
19176 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
19177 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
19178 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
19179 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
19180 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
19181 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
19182 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
19183 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
19184 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
19185 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
19186 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
19187 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
19188 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
19189 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
19190 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
19191 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
19192 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19193 (UNSPEC_RDDSP): Moved from mips.md.
19194 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
19195 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
19196 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
19197 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
19198 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
19199 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
19200 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
19201 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
19202 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
19203 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
19204 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
19205 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
19206 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
19207 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
19208 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
19209 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
19210 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
19211 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
19212 (UNSPEC_SCC): Moved from mips.md.
19213 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
19214 "processor_type" to "processor".
19215 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
19216 * config/mips/mips.h (processor_type): Delete.
19217 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
19218 "processor_type" to "processor".
19219
19220 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19221
19222 * configure.ac (tm_include_list): Add insn-constants.h.
19223 * configure: Regenerate.
19224 * Makefile.in (GTM_H): Move insn-constants.h here from...
19225 (TM_H): ...here.
19226 * mkconfig.sh: Remove special handling for insn-constants.h.
19227
19228 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19229
19230 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
19231 (BUILD_MD): ...this new variable.
19232 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
19233 that include the old contents of simple_generated_h and
19234 simple_generated_c.
19235 (simple_generated_h, simple_generated_c): Include them. Add
19236 insn-constants.h.
19237 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
19238 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
19239 Remove these dependencies from the main rule and include
19240 insn-conditions.md in the command line only if it appears
19241 in the dependency list.
19242 (insn-constants.h, s-constants): Delete.
19243 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
19244 or gensupport.h.
19245 (build/genmddeps.o): Likewise.
19246 (genprogrtl): New variable that contains everything from genprogmd
19247 except mddeps and constants.
19248 (genprogmd): Redefine in terms of genprogrtl. Make these programs
19249 depend on $(BUILD_MD)
19250 (genprog): New variable. Make these programs depend on
19251 $(BUILD_ERRORS).
19252 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
19253 (main): Use read_md_files instead of init_rtx_reader_args.
19254 * genconstants.c: As for genmddeps.c.
19255 * read-md.h (read_skip_construct): Declare.
19256 * read-md.c (read_skip_construct): New function.
19257 (handle_file): Allow a null handle_directive, skipping the
19258 construct if so.
19259 (parse_include): Update the comment accordingly.
19260
19261 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19262
19263 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
19264 * genmddeps.c: Include read-md.h.
19265 (main): Call init_rtx_reader_args instead of init_md_reader_args.
19266 * genattr.c (main): Likewise.
19267 * genattrtab.c (main): Likewise.
19268 * genautomata.c (main): Likewise.
19269 * gencodes.c (main): Likewise.
19270 * genconditions.c (main): Likewise.
19271 * genconfig.c (main): Likewise.
19272 * genconstants.c (main): Likewise.
19273 * genemit.c (main): Likewise.
19274 * genextract.c (main): Likewise.
19275 * genflags.c (main): Likewise.
19276 * genopinit.c (main): Likewise.
19277 * genoutput.c (main): Likewise.
19278 * genpeep.c (main): Likewise.
19279 * genrecog.c (main): Likewise.
19280 * genpreds.c (main): Likewise.
19281 * gensupport.h (in_fname): Move to read-md.h.
19282 (init_md_reader_args_cb): Rename to...
19283 (init_rtx_reader_args_cb): ...this and return a bool.
19284 (init_md_reader_args): Rename to...
19285 (init_rtx_reader_args): ...this and return a bool.
19286 (include_callback): Move to read-md.h.
19287 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
19288 (file_name_list, first_dir_md_include): Move to read-md.c
19289 (first_bracket_include): Delete unused variable.
19290 (last_dir_md_include): Move to read-md.c.
19291 (process_include): Delete, moving code to read-md.c:handle_include.
19292 (process_rtx): Don't handle INCLUDE.
19293 (save_string): Delete.
19294 (rtx_handle_directive): New function.
19295 (init_md_reader_args_cb): Rename to...
19296 (init_rtx_reader_args_cb): ...this and return a boolean success value.
19297 Use read_md_args.
19298 (init_md_reader_args): Rename to...
19299 (init_rtx_reader_args): ...this and return a boolean success value.
19300 * rtl.def (INCLUDE): Delete.
19301 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
19302 argument.
19303 * read-rtl.c (read_conditions): Don't gobble ')' here.
19304 (read_mapping): Likewise.
19305 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
19306 Handle top-level non-rtx constructs here rather than in read_rtx_1.
19307 Store the whole queue in *X. Remove call to init_md_reader.
19308 (read_rtx_1): Rename to...
19309 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
19310 Don't handle top-level non-rtx constructs here. Don't handle (nil)
19311 here.
19312 (read_nested_rtx): New function. Handle (nil) here rather than
19313 in read_rtx_code.
19314 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
19315 gobble ')' here.
19316 * read-md.h (directive_handler_t): New type.
19317 (in_fname, include_callback): Moved from read-md.h.
19318 (read_constants, init_md_reader): Delete.
19319 (read_md_files): Declare.
19320 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
19321 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
19322 from gensupport.c.
19323 (read_constants): Rename to...
19324 (handle_constants): ...this. Don't gobble ')' here.
19325 (handle_include, handle_file, handle_toplevel_file)
19326 (parse_include): New functions, mostly taken from gensupport.c.
19327 (init_md_reader): Subsume into...
19328 (read_md_files): ...this new function.
19329
19330 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19331
19332 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
19333 (unread_char): Decrement read_md_lineno after putting back '\n'.
19334 * read-md.c (fatal_with_file_and_line): Push back any characters
19335 that we decide not to add to the context.
19336 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
19337 fatal_expected_char in cases where '/' ends a line (for example).
19338 (read_name): Don't increment read_md_lineno here.
19339 (read_escape): Likewise.
19340 (read_quoted_string): Likewise.
19341 (read_braced_string): Likewise.
19342
19343 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19344
19345 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
19346 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
19347 * genconstants.c: Include read-md.h.
19348 * read-rtl.c (md_constants): Move to read-md.c.
19349 (md_name): Move to read-md.h.
19350 (initialize_iterators): Use leading_string_hash instead of def_hash
19351 and leading_string_eq_p instead of def_name_eq_p.
19352 (read_name): Move to read-md.c.
19353 (def_hash, def_name_eq_p): Delete.
19354 (read_constants, traverse_md_constants): Move to read-md.c.
19355 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
19356 * read-md.h: Include hashtab.h.
19357 (md_name): Moved from read-rtl.c.
19358 (md_constant): Moved from read-md.h.
19359 (leading_string_hash, leading_string_eq_p, read_name)
19360 (read_constants, traverse_md_constants): Declare.
19361 * read-md.c (md_constants): Moved from read-rtl.c.
19362 (leading_string_hash, leading_string_eq_p): New functions.
19363 (read_name, read_constants, traverse_md_constants): Moved from
19364 read-rtl.c.
19365
19366 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19367
19368 * read-rtl.c (md_name): New structure.
19369 (read_name): Take an md_name instead of a buffer pointer.
19370 Use the "string" field instead of strcpy when expanding constants.
19371 (read_constants): Remove the tmp_char argument. Update the calls
19372 to read_name, using two local name buffers instead of the tmp_char
19373 argument. Merge the constant-creation code.
19374 (read_conditions): Remove the tmp_char argument. Update the calls
19375 to read_name, using a local name buffer instead of the tmp_char
19376 argument.
19377 (read_mapping): Replace tmp_char variable with a local name buffer.
19378 Update the calls to read_name.
19379 (read_rtx_1): Likewise. Update the calls to read_constants and
19380 read_conditions.
19381
19382 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19383
19384 * Makefile.in (build/read-md.o): Depend on errors.h.
19385 * read-md.h (error_with_line): Declare.
19386 * read-md.c: Include errors.h.
19387 (message_with_line_1): New function, extracted from...
19388 (message_with_line): ...here.
19389 (error_with_line): New function.
19390 * genattrtab.c: If a call to message_with_line is followed by
19391 "have_error = 1;", replace both statements with a call to
19392 error_with_line.
19393 * genoutput.c: Likewise.
19394 * genpreds.c: Likewise.
19395 * genrecog.c: If a call to message_with_line is followed by
19396 "error_count++;", replace both statements with a call to
19397 error_with_line.
19398 (errorcount): Delete.
19399 (main): Don't check it.
19400 * gensupport.c: If a call to message_with_line is followed by
19401 "errors = 1;", replace both statements with a call to error_with_line.
19402 (errors): Delete.
19403 (process_define_cond_exec): Check have_error instead of errors.
19404 (init_md_reader_args_cb): Likewise. Don't set errors.
19405
19406 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19407
19408 * read-md.h (read_md_file): Declare.
19409 (read_char, unread_char): New functions.
19410 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19411 (read_quoted_string, read_string): Remove FILE * argument.
19412 * read-md.c (read_md_file): New variable.
19413 (read_md_filename, read_md_lineno): Update comments and remove
19414 unnecessary initialization.
19415 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19416 (read_escape, read_quoted_string, read_braced_string, read_string):
19417 Remove FILE * argument. Update calls accordingly, using read_char
19418 and unread_char instead of getc and ungetc.
19419 * rtl.h (read_rtx): Remove FILE * argument.
19420 * read-rtl.c (iterator_group): Remove FILE * argument from
19421 "find_builtin".
19422 (iterator_traverse_data): Remove "infile" field.
19423 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
19424 (add_mapping, read_name, read_constants, read_conditions)
19425 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
19426 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
19427 Remove file arguments from all calls, using read_char and unread_char
19428 instead of getc and ungetc.
19429 * gensupport.c (process_include): Preserve read_md_file around
19430 the include. Set read_md_file to the handle of the included file.
19431 Update call to read_rtx.
19432 (init_md_reader_args_cb): Set read_md_file to the handle of the file
19433 and remove local FILE *. Update calls to read_rtx.
19434
19435 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19436
19437 * read-md.h (read_rtx_lineno): Rename to...
19438 (read_md_lineno): ...this.
19439 (read_rtx_filename): Rename to...
19440 (read_md_filename): ...this.
19441 (copy_rtx_ptr_loc): Rename to...
19442 (copy_md_ptr_loc): ...this.
19443 (print_rtx_ptr_loc): Rename to...
19444 (print_md_ptr_loc): ...this.
19445 * read-md.c: Likewise. Update references after renaming.
19446 (string_obstack): Replace RTL with MD in comment.
19447 (set_rtx_ptr_loc): Rename to...
19448 (set_md_ptr_loc): ...this.
19449 (get_rtx_ptr_loc): Rename to...
19450 (get_md_ptr_loc): ...this.
19451 * genconditions.c: Update references after renaming.
19452 * genemit.c: Likewise.
19453 * genoutput.c: Likewise.
19454 * genpreds.c: Likewise.
19455 * gensupport.c: Likewise.
19456 * read-rtl.c: Likewise.
19457
19458 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19459
19460 * Makefile.in (READ_MD_H): New variable.
19461 (BUILD_RTL): Add build/read-md.o.
19462 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
19463 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
19464 (build/genattrtab.o, build/genconditions.o build/genemit.o)
19465 (build/genextract.o, build/genflags.o, build/genoutput.o)
19466 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
19467 (build/read-md.o): New rule.
19468 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
19469 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
19470 * coretypes.h: ...here.
19471 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
19472 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
19473 * genattr.c: Include read-md.h.
19474 * genattrtab.c: Likewise.
19475 * genconditions.c: Likewise.
19476 * genemit.c: Likewise.
19477 * genextract.c: Likewise.
19478 * genflags.c: Likewise.
19479 * genoutput.c: Likewise.
19480 * genpreds.c: Likewise.
19481 * genrecog.c: Likewise.
19482 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
19483 (join_c_conditions, print_c_condition, read_rtx_filename)
19484 (read_rtx_lineno): Move to read-md.h.
19485 * read-rtl.c: Include read-md.h.
19486 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
19487 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
19488 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
19489 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
19490 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
19491 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
19492 (read_braced_string, read_string): Move to read-md.c.
19493 (read_rtx): Move some initialization to init_md_reader and call
19494 init_md_reader here.
19495 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
19496 Move to read-md.h.
19497 * gensupport.c: Include read-md.h.
19498 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
19499 * read-md.h, read-md.c: New files.
19500
19501 2010-06-10 Anatoly Sokolov <aesok@post.ru>
19502
19503 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19504 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19505 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
19506 * config/moxie/moxie.c (moxie_function_value): Make static.
19507 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
19508 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19509
19510 2010-06-10 Martin Jambor <mjambor@suse.cz>
19511
19512 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
19513 * dbgcnt.def (tree_sra): New counter.
19514 * tree-sra.c: Include dbgcnt.h.
19515 (gate_intra_sra): Check tree_sra debug counter.
19516
19517 2010-06-10 Martin Jambor <mjambor@suse.cz>
19518
19519 PR tree-optimization/44258
19520 * tree-sra.c (build_access_subtree): Return false iff there is a
19521 partial overlap.
19522 (build_access_trees): Likewise.
19523 (analyze_all_variable_accesses): Disqualify candidates if
19524 build_access_trees returns true for them.
19525
19526 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
19527
19528 PR debug/41371
19529 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
19530 tail-recurse into canonical node. Fast-forward over
19531 non-canonical VALUEs.
19532
19533 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
19534
19535 PR boostrap/44470
19536 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
19537 (*addsi_1_zext) <TYPE_LEA>: Likewise.
19538 (add lea splitter): Likewise.
19539 (add_zext lea splitter): Likewise.
19540
19541 2010-06-10 Joseph Myers <joseph@codesourcery.com>
19542
19543 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
19544
19545 2010-06-10 Jan Hubicka <jh@suse.cz>
19546
19547 * df-problems.c (df_live_problem_data): Add live_bitmaps.
19548 (df_live_alloc): Initialize problem data and live_osbtacks.
19549 (df_live_finalize): Remove obstack, problem data; do not
19550 clear all bitmaps.
19551 (df_live_top_dump, df_live_bottom_dump): Do not dump old
19552 data when not allocated.
19553 (df_live_verify_solution_start): Do not allocate problem data.
19554 (df_live_verify_solution_end): Check if out is allocated.
19555 (struct df_md_problem_data): New structure.
19556 (df_md_alloc): Allocate problem data.
19557 (df_md_free): Free problem data; do not clear bitmaps.
19558
19559 2010-06-10 Jan Beulich <jbeulich@novell.com>
19560
19561 PR bootstrap/37304
19562 * configure.ac: Replace $() with ${} when intending to expand
19563 variables rather than invoking commands.
19564 * configure: Re-generate.
19565
19566 2010-06-10 Jan Hubicka <jh@suse.cz>
19567
19568 PR rtl-optimization/44460
19569 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19570 TYPE_NEEDS_CONSTRUCTING sanity check.
19571
19572 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
19573
19574 * doc/include/fdl.texi: Move to GFDL version 1.3.
19575
19576 * doc/cpp.texi: Move to GFDL version 1.3.
19577 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
19578 * doc/gccint.texi: Move to GFDL version 1.3.
19579 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
19580 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
19581 * doc/invoke.texi: Move to GFDL version 1.3.
19582
19583 2010-06-09 Jan Hubicka <jh@suse.cz>
19584
19585 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
19586 Break out from ...
19587 (propagate) ... here; swap the order.
19588
19589 2010-06-09 Jan Hubicka <jh@suse.cz>
19590
19591 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
19592 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
19593 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
19594 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
19595
19596 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19597
19598 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
19599 Do not the gather memory reference in the outer loop if the step
19600 is not a constant.
19601
19602 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19603
19604 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
19605 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
19606 8 to 4. Minor change of the related comments.
19607
19608 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19609
19610 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
19611 the scev analysis when the variable is not used outside the loop
19612 in a close phi node: call compute_overall_effect_of_inner_loop.
19613
19614 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19615
19616 * graphite-sese-to-poly.c (single_pred_cond): Renamed
19617 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
19618 (build_sese_conditions_before): Renamed call to single_pred_cond.
19619 (build_sese_conditions_after): Same.
19620
19621 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19622
19623 * graphite-poly.h: Fix comments and indentation.
19624 * graphite-sese-to-poly.c: Same.
19625 (build_sese_conditions_before): Compute stmt and gbb only when needed.
19626 * tree-chrec.c: Fix comments and indentation.
19627 (tree-ssa-loop-niter.c): Same.
19628
19629 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
19630
19631 PR rtl-optimization/42461
19632 * dce.c (deletable_insn_p): Return true for const or pure calls again.
19633 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
19634
19635 2010-06-09 Jan Hubicka <jh@suse.cz>
19636
19637 * bitmap.c (bitmap_and): Walk array forward.
19638 (bitmap_and_compl_into): Likewise.
19639 (bitmap_xor): Likewise.
19640 (bitmap_xor_into): Likewise.
19641 (bitmap_equal_p): Likewise.
19642 (bitmap_intersect_p): Likewise.
19643 (bitmap_intersect_compl_p): Likewise.
19644 (bitmap_ior_and_into): Likewise.
19645 (bitmap_elt_copy): Likewise.
19646 (bitmap_and_compl): Likewise.
19647 (bitmap_elt_ior): Likewise.
19648
19649 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
19650
19651 * opts-common.c (prune_options): Ensure replacement argv array
19652 is correctly terminated by a NULL entry.
19653
19654 2010-06-09 Jan Hubicka <jh@suse.cz>
19655
19656 * cgraph.h (varpool_first_static_initializer,
19657 varpool_next_static_initializer): Make checking only when
19658 checking enabled.
19659 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
19660 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
19661 gcc_assert to gcc_checking_assert.
19662 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
19663 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
19664 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
19665 op_iter_init_phiuse, op_iter_init_phidef,
19666 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
19667 gcc_checking_assert.
19668 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
19669 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
19670 partition_is_global, live_on_entry, live_on_exit,
19671 live_merge_and_clear): Likewise.
19672 * system.h (gcc_checking_assert): New macro.
19673 * gimple.h (set_bb_seq): Use gcc_checking_assert.
19674
19675 2010-06-09 Jason Merrill <jason@redhat.com>
19676
19677 * Makefile.in (TAGS): Collect tags info from c-family.
19678
19679 2010-06-09 Jan Hubicka <jh@suse.cz>
19680
19681 * gimple.h (gcc_gimple_checking_assert): New macro.
19682 (gimple_set_def_ops, gimple_set_use_ops,
19683 gimple_set_vuse, gimple_set_vdef,
19684 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
19685 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
19686 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
19687 gimple_asm_output_op, gimple_asm_output_op_ptr,
19688 gimple_asm_set_output_op, gimple_asm_clobber_op,
19689 gimple_asm_set_clobber_op, gimple_asm_label_op,
19690 gimple_asm_set_label_op, gimple_try_set_kind,
19691 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
19692 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
19693 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
19694 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
19695 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
19696 gimple_omp_for_set_initial, gimple_omp_for_final,
19697 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
19698 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
19699 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
19700 conditional with ENABLE_GIMPLE_CHECKING.
19701 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
19702
19703 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
19704
19705 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
19706 (get_computation_cost_at): Use it.
19707 (determine_use_iv_cost_condition): Likewise.
19708 (determine_iv_cost): Likewise.
19709
19710 2010-06-09 Richard Guenther <rguenther@suse.de>
19711
19712 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
19713 replace constants.
19714
19715 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
19716
19717 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
19718
19719 2010-06-09 Martin Jambor <mjambor@suse.cz>
19720
19721 PR tree-optimization/44423
19722 * tree-sra.c (dump_access): Dump also grp_assignment_read.
19723 (analyze_access_subtree): Pass negative allow_replacements to children
19724 if the current type is scalar.
19725
19726 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19727
19728 PR testsuite/42843
19729 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
19730 * doc/plugins.texi (Plugin license check): Update information
19731 on type of plugin_is_GPL_compatible.
19732 * Makefile.in (PLUGINCC): Define as $(COMPILER).
19733 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
19734
19735 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
19736
19737 * config/arm/arm.c (thumb2_reorg): New function.
19738 (arm_reorg): Call it.
19739 * config/arm/thumb2.md (define_peephole2 for flag clobbering
19740 arithmetic operations): Delete.
19741
19742 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
19743
19744 PR target/44067
19745 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
19746 e500v2 target.
19747
19748 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19749
19750 PR plugins/44459
19751 * gcc-plugin.h: Encapsulate all declarations in extern "C".
19752
19753 2010-06-08 Jan Hubicka <jh@suse.cz>
19754
19755 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
19756 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
19757
19758 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
19759
19760 PR tree-optimization/39874
19761 PR middle-end/28685
19762 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
19763 Declare.
19764 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
19765 same_bool_result_p): New.
19766 (and_var_with_comparison, and_var_with_comparison_1,
19767 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
19768 (or_var_with_comparison, or_var_with_comparison_1,
19769 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
19770 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
19771 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
19772 of combine_comparisons.
19773 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
19774
19775 2010-06-08 Anatoly Sokolov <aesok@post.ru>
19776
19777 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19778 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19779 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
19780 pdp11_function_value_regno_p): New functions.
19781 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19782 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19783
19784 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
19785
19786 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
19787 Thumb-2 in the MINUS case.
19788
19789 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19790
19791 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
19792
19793 * doc/gty.texi (GTY Options): Document typed GC allocation and
19794 variable_size GTY option.
19795
19796 * ggc-internal.h: New.
19797
19798 * ggc.h: Update copyright year.
19799 (digit_string): Move to stringpool.c.
19800 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
19801 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
19802 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
19803 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
19804 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
19805 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
19806 (ggc_force_collect, ggc_get_size, ggc_statistics)
19807 (ggc_print_common_statistics): Move to ggc-internal.h.
19808 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
19809 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
19810 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
19811 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
19812 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
19813 (ggc_alloc_zone_pass_stat): Remove.
19814 (ggc_internal_alloc_stat, ggc_internal_alloc)
19815 (ggc_internal_cleared_alloc_stat): New.
19816 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
19817 (ggc_internal_vec_alloc_stat)
19818 (ggc_internal_cleared_vec_alloc_stat)
19819 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
19820 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
19821 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
19822 (ggc_cleared_alloc_ptr_array_two_args): New.
19823 (htab_create_ggc, splay_tree_new_ggc): Redefine.
19824 (ggc_splay_alloc): Change the type of the first argument to
19825 enum gt_types_enum.
19826 (ggc_alloc_string): Make macro.
19827 (ggc_alloc_string_stat): New.
19828 (ggc_strdup): Redefine.
19829 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
19830 (ggc_alloc_rtvec_sized): New.
19831 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
19832 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
19833 (ggc_internal_cleared_alloc_zone_stat)
19834 (ggc_internal_zone_alloc_stat)
19835 (ggc_internal_zone_cleared_alloc_stat)
19836 (ggc_internal_zone_vec_alloc_stat)
19837 (ggc_alloc_zone_rtx_def_stat)
19838 (ggc_alloc_zone_tree_node_stat)
19839 (ggc_alloc_zone_cleared_tree_node_stat)
19840 (ggc_alloc_cleared_gimple_statement_d_stat): New.
19841
19842 * ggc-common.c: Include ggc-internal.h.
19843 (ggc_internal_cleared_alloc_stat): Rename from
19844 ggc_alloc_cleared_stat.
19845 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
19846 (ggc_calloc): Remove.
19847 (ggc_cleared_alloc_htab_ignore_args): New.
19848 (ggc_cleared_alloc_ptr_array_two_args): New.
19849 (ggc_splay_alloc): Add obj_type parameter.
19850 (init_ggc_heuristics): Formatting fixes.
19851
19852 * ggc-none.c: Update copyright year.
19853 (ggc_alloc_stat): Rename to ggc_alloc_stat.
19854 (ggc_alloc_cleared_stat): Rename to
19855 ggc_internal_cleared_alloc_stat.
19856 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19857
19858 * ggc-page.c: Update copyright year. Include ggc-internal.h.
19859 Remove references to ggc_alloc in comments.
19860 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
19861 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
19862 (new_ggc_zone, destroy_ggc_zone): Remove.
19863 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19864
19865 * ggc-zone.c: Include ggc-internal.h. Remove references to
19866 ggc_alloc in comments.
19867 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
19868 (ggc_internal_alloc_zone_pass_stat): New.
19869 (ggc_internal_cleared_alloc_zone_stat): New.
19870 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
19871 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
19872 (new_ggc_zone, destroy_ggc_zone): Remove.
19873
19874 * stringpool.c: Update copyright year. Include ggc-internal.h
19875 (digit_vector): Make static.
19876 (digit_string): Moved from ggc.h.
19877 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
19878 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
19879
19880 * Makefile.in (GGC_INTERNAL_H): New.
19881 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
19882 $(GGC_INTERNAL_H) to dependencies.
19883
19884 * gentype.c: Update copyright year.
19885 (walk_type): Accept variable_size GTY option.
19886 (USED_BY_TYPED_GC_P): New macro.
19887 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
19888 whitespace at the end of strings.
19889 (get_type_specifier, variable_size_p): New functions.
19890 (alloc_quantity, alloc_zone): New enums.
19891 (write_typed_alloc_def): New function.
19892 (write_typed_struct_alloc_def): Likewise.
19893 (write_typed_typed_typedef_alloc_def): Likewise.
19894 (write_typed_alloc_defns): Likewise.
19895 (output_typename, write_splay_tree_allocator_def): Likewise.
19896 (write_splay_tree_allocators): Likewise.
19897 (main): Call write_typed_alloc_defns and
19898 write_splay_tree_allocators.
19899
19900 * lto-streamer.h (lto_file_decl_data_ptr): New.
19901
19902 * passes.c (order): Define using cgraph_node_ptr.
19903
19904 * strinpool.c (struct string_pool_data): Declare nested_ptr using
19905 ht_identifier_ptr.
19906
19907 * gimple.h (union gimple_statement_d): Likewise.
19908
19909 * rtl.h (struct rtx_def): Likewise.
19910 (struct rtvec_def): Likewise.
19911
19912 * tree.h (union tree_node): Likewise.
19913
19914 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
19915
19916 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
19917
19918 * tree-scalar-evolution.c (scev_initialize): Likewise.
19919
19920 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
19921
19922 * dwarf2asm.c (dw2_force_const_mem): Likewise.
19923
19924 * omp-low.c (lower_omp_critical): Likewise.
19925
19926 * bitmap.h (struct bitmap_head_def): Update comment to not
19927 reference ggc_alloc.
19928
19929 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
19930
19931 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
19932
19933 * ipa-prop.c (duplicate_ggc_array): Rename to
19934 duplicate_ipa_jump_func_array. Use typed GC allocation.
19935 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
19936
19937 * gimple.c (gimple_alloc_stat): Use
19938 ggc_alloc_cleared_gimple_statement_d_stat.
19939
19940 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
19941
19942 * tree.c (make_node_stat): Use
19943 ggc_alloc_zone_cleared_tree_node_stat.
19944 (make_tree_vec_stat): Likewise.
19945 (build_vl_exp_stat): Likewise.
19946 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
19947 (make_tree_binfo_stat): Likewise.
19948 (tree_cons_stat): Likewise.
19949
19950 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
19951 (shallow_copy_rtx_stat): Likewise.
19952 (make_node_stat): Likewise.
19953
19954 * lto-symtab.c: Fix comment.
19955
19956 * tree-cfg.c (create_bb): Update comment to not reference
19957 ggc_alloc_cleared.
19958 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
19959
19960 * varpool.c (varpool_node): Use typed GC allocation.
19961 (varpool_extra_name_alias): Likewise.
19962
19963 * varasm.c (emutls_decl): Likewise.
19964 (get_unnamed_section): Likewise.
19965 (get_noswitch_section): Likewise.
19966 (get_section): Likewise.
19967 (get_block_for_section): Likewise.
19968 (build_constant_desc): Likewise.
19969 (create_constant_pool): Likewise.
19970 (force_const_mem): Likewise.
19971
19972 * tree.c (build_vl_exp_stat): Likewise.
19973 (build_real): Likewise.
19974 (build_string): Likewise.
19975 (decl_debug_expr_insert): Likewise.
19976 (decl_value_expr_insert): Likewise.
19977 (type_hash_add): Likewise.
19978 (build_omp_clause): Likewise.
19979
19980 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
19981
19982 * tree-ssa.c (init_tree_ssa): Likewise.
19983
19984 * tree-ssa-structalias.c (heapvar_insert): Likewise.
19985
19986 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19987
19988 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19989
19990 * tree-ssa-alias.c (get_ptr_info): Likewise.
19991
19992 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19993
19994 * tree-phinodes.c (allocate_phi_node): Likewise.
19995
19996 * tree-iterator.c (tsi_link_before): Likewise.
19997 (tsi_link_after): Likewise.
19998
19999 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20000
20001 * tree-dfa.c (create_var_ann): Likewise.
20002
20003 * tree-cfg.c (create_bb): Likewise.
20004
20005 * toplev.c (alloc_for_identifier_to_locale): Likewise.
20006 (general_init): Likewise.
20007
20008 * stringpool.c (stringpool_ggc_alloc): Likewise.
20009 (gt_pch_save_stringpool): Likewise.
20010
20011 * sese.c (if_region_set_false_region): Likewise.
20012
20013 * passes.c (do_per_function_toporder): Likewise.
20014
20015 * optabs.c (set_optab_libfunc): Likewise.
20016 (set_conv_libfunc): Likewise.
20017
20018 * lto-symtab.c (lto_symtab_register_decl): Likewise.
20019
20020 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20021 (input_eh_region): Likewise.
20022 (input_eh_lp): Likewise.
20023 (make_new_block): Likewise.
20024 (unpack_ts_real_cst_value_fields): Likewise.
20025
20026 * lto-section-in.c (lto_new_in_decl_state): Likewise.
20027
20028 * lto-cgraph.c (input_node_opt_summary): Likewise.
20029
20030 * loop-init.c (loop_optimizer_init): Likewise.
20031
20032 * lambda.h (lambda_vector_new): Likewise.
20033
20034 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20035
20036 * ira.c (update_equiv_regs): Likewise.
20037
20038 * ipa.c (cgraph_node_set_new): Likewise.
20039 (cgraph_node_set_add): Likewise.
20040 (varpool_node_set_new): Likewise.
20041 (varpool_node_set_add): Likewise.
20042
20043 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
20044 (duplicate_ipa_jump_func_array): Likewise.
20045 (ipa_read_node_info): Likewise.
20046
20047 * ipa-cp.c (ipcp_create_replace_map): Likewise.
20048
20049 * integrate.c (get_hard_reg_initial_val): Likewise.
20050
20051 * gimple.c (gimple_alloc_stat): Likewise.
20052 (gimple_build_omp_for): Likewise.
20053 (gimple_seq_alloc): Likewise.
20054 (gimple_copy): Likewise.
20055
20056 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
20057 (gsi_insert_after_without_update): Likewise.
20058
20059 * function.c (add_frame_space): Likewise.
20060 (insert_temp_slot_address): Likewise.
20061 (assign_stack_temp_for_type): Likewise.
20062 (allocate_struct_function): Likewise.
20063 (types_used_by_var_decl_insert): Likewise.
20064
20065 * except.c (init_eh_for_function): Likewise.
20066 (gen_eh_region): Likewise.
20067 (gen_eh_region_catch): Likewise.
20068 (gen_eh_landing_pad): Likewise.
20069 (add_call_site): Likewise.
20070
20071 * emit-rtl.c (get_mem_attrs): Likewise.
20072 (get_reg_attrs): Likewise.
20073 (start_sequence): Likewise.
20074 (init_emit): Likewise.
20075
20076 * dwarf2out.c (new_cfi): Likewise.
20077 (queue_reg_save): Likewise.
20078 (dwarf2out_frame_init): Likewise.
20079 (new_loc_descr): Likewise.
20080 (find_AT_string): Likewise.
20081 (new_die): Likewise.
20082 (add_var_loc_to_decl): Likewise.
20083 (clone_die): Likewise.
20084 (clone_as_declaration): Likewise.
20085 (break_out_comdat_types): Likewise.
20086 (new_loc_list): Likewise.
20087 (loc_descriptor): Likewise.
20088 (add_loc_descr_to_each): Likewise.
20089 (add_const_value_attribute): Likewise.
20090 (tree_add_const_value_attribute): Likewise.
20091 (add_comp_dir_attribute): Likewise.
20092 (add_name_and_src_coords_attributes): Likewise.
20093 (lookup_filename): Likewise.
20094 (store_vcall_insn): Likewise.
20095 (dwarf2out_init): Likewise.
20096
20097 * dbxout.c (dbxout_init): Likewise.
20098
20099 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20100
20101 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20102
20103 * config/score/score7.c (score7_output_external): Likewise.
20104
20105 * config/score/score3.c (score3_output_external): Likewise.
20106
20107 * config/s390/s390.c (s390_init_machine_status): Likewise.
20108
20109 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20110 (rs6000_init_machine_status): Likewise.
20111 (output_toc): Likewise.
20112
20113 * config/pa/pa.c (pa_init_machine_status): Likewise.
20114 (get_deferred_plabel): Likewise.
20115
20116 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20117
20118 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20119
20120 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20121
20122 * config/mep/mep.c (mep_init_machine_status): Likewise.
20123 (mep_note_pragma_flag): Likewise.
20124
20125 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20126
20127 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20128
20129 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20130
20131 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20132 (i386_pe_maybe_record_exported_symbol): Likewise.
20133
20134 * config/i386/i386.c (get_dllimport_decl): Likewise.
20135 (ix86_init_machine_status): Likewise.
20136 (assign_386_stack_local): Likewise.
20137
20138 * config/frv/frv.c (frv_init_machine_status): Likewise.
20139
20140 * config/darwin.c (machopic_indirection_name): Likewise.
20141
20142 * config/cris/cris.c (cris_init_machine_status): Likewise.
20143
20144 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20145
20146 * config/avr/avr.c (avr_init_machine_status): Likewise.
20147
20148 * config/arm/arm.c (arm_init_machine_status): Likewise.
20149
20150 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20151 (alpha_need_linkage): Likewise.
20152 (alpha_use_linkage): Likewise.
20153
20154 * cgraph.c (cgraph_allocate_node): Likewise.
20155 (cgraph_create_edge_1): Likewise.
20156 (cgraph_create_indirect_edge): Likewise.
20157 (cgraph_add_asm_node): Likewise.
20158
20159 * cfgrtl.c (init_rtl_bb_info): Likewise.
20160
20161 * cfgloop.c (alloc_loop): Likewise.
20162 (rescan_loop_exit): Likewise.
20163
20164 * cfg.c (init_flow): Likewise.
20165 (alloc_block): Likewise.
20166 (unchecked_make_edge): Likewise.
20167
20168 * c-parser.c (c_parse_init): Likewise.
20169 (c_parse_file): Likewise.
20170
20171 * c-decl.c (bind): Likewise.
20172 (record_inline_static): Likewise.
20173 (push_scope): Likewise.
20174 (make_label): Likewise.
20175 (lookup_label_for_goto): Likewise.
20176 (finish_struct): Likewise.
20177 (finish_enum): Likewise.
20178 (c_push_function_context): Likewise.
20179
20180 * bitmap.c (bitmap_element_allocate): Likewise.
20181 (bitmap_gc_alloc_stat): Likewise.
20182
20183 * alias.c (record_alias_subset): Likewise.
20184 (init_alias_analysis): Likewise.
20185
20186 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
20187
20188 * fold-const.c (fold_comparison): Remove redundant parenthesis.
20189 * tree-inline.c (expand_call_inline): Pass translated return value of
20190 cgraph_inline_failed_string to diagnostic function.
20191
20192 2010-06-08 Andrew Pinski <pinskia@gmail.com>
20193 Shujing Zhao <pearly.zhao@oracle.com>
20194
20195 PR c/37724
20196 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
20197 implicit bad conversions is initialization.
20198 (error_init): Use gmsgid instead of msgid for argument name and change
20199 the call for error.
20200 (pedwarn_init): Use gmsgid instead of msgid for argument name and
20201 change the call for pedwarn.
20202 (warning_init): Use gmsgid instead of msgid for argument name and
20203 change the call for warning.
20204
20205 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
20206
20207 * config/mips/mips-protos.h (mips_print_operand): Delete.
20208 (mips_print_operand_address): Delete.
20209 * config/mips/mips.h (mips_print_operand_punct): Delete.
20210 (PRINT_OPERAND): Delete.
20211 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20212 (PRINT_OPERAND_ADDRESS): Delete.
20213 * config/mips/mips.c (mips_print_operand_punct): Make static.
20214 (mips_print_operand_address): Make static.
20215 (mips_print_operand): Make static. Call
20216 mips_print_operand_punct_valid_p.
20217 (mips_print_operand_punct_valid_p): New function.
20218 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20219 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20220
20221 2010-06-07 Jan Hubicka <jh@suse.cz>
20222
20223 PR middle-end/44454
20224 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
20225 are allocated.
20226
20227 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
20228
20229 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
20230 name of RECORD.
20231
20232 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20233
20234 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20235 attributes): Document gas.
20236
20237 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
20238
20239 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
20240 <TYPE_LEA>: Split instruction.
20241 <default>: Remove alternative 2 handling.
20242 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
20243 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
20244 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
20245
20246 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
20247 (ashift_zext lea splitter): Use DImode for multiplication.
20248
20249 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
20250 to generate addition.
20251
20252 2010-06-07 Joseph Myers <joseph@codesourcery.com>
20253
20254 * common.opt (fira-verbose): Use Var.
20255 (fpcc-struct-return): Use Init instead of VarExists.
20256 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
20257 toplev.c.
20258 * flags.h (flag_signed_char, flag_short_enums,
20259 flag_pcc_struct_return, flag_ira_verbose,
20260 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
20261 * toplev.c (flag_detailed_statistics, flag_signed_char,
20262 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
20263 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
20264 * toplev.h (flag_crossjumping, flag_if_conversion,
20265 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
20266 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
20267 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
20268 flag_cprop_registers, time_report, flag_ira_loop_pressure,
20269 flag_ira_coalesce, flag_ira_move_spills,
20270 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
20271
20272 2010-06-07 Jan Hubicka <jh@suse.cz>
20273
20274 * df-core.c (df_analyze_problem): Do verification after allocation.
20275
20276 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
20277 (df_lr_alloc): Initialize problem data; move bitmaps to
20278 lr_bitmaps obstack.
20279 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
20280 (df_lr_verify_solution_start): Do not initialize problem data;
20281 allocate bitmaps in lr_bitmaps.
20282 (df_lr_verify_solution_end): Do not free problem data.
20283
20284 2010-06-07 Jan Hubicka <jh@suse.cz>
20285
20286 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
20287 if caller is noreturn.
20288 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
20289 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
20290 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
20291 * ipa-pure-const.c (check_decl): Add IPA parameter.
20292 (state_from_flags): New function.
20293 (better_state, worse_state): New functions.
20294 (check_call): When in IPA mode, do not care about callees.
20295 (check_load, check_store): Update.
20296 (check_ipa_load, check_ipa_store): New.
20297 (check_stmt): When in IPA mode, use IPA checkers.
20298 (analyze_function): Use state_from_flags.
20299 (propagate): Check indirect edges and references.
20300
20301 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
20302
20303 PR rtl-optimization/44404
20304 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
20305 of count_occurrences to see if it's safe to modify mem_insn.
20306
20307 2010-06-07 Richard Guenther <rguenther@suse.de>
20308
20309 * gimplify.c (gimplify_cleanup_point_expr): For empty body
20310 and EH-only cleanup drop the cleanup instead of inserting it
20311 unconditionally.
20312
20313 2010-06-07 Ira Rosen <irar@il.ibm.com>
20314
20315 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
20316 documentation.
20317 * targhooks.c (default_builtin_vectorization_cost): New function.
20318 * targhooks.h (default_builtin_vectorization_cost): Declare.
20319 * target.h (enum vect_cost_for_stmt): Define.
20320 (builtin_vectorization_cost): Change argument and comment.
20321 * tree-vectorizer.h: Remove cost model macros.
20322 * tree-vect-loop.c: Include target.h.
20323 (vect_get_cost): New function.
20324 (vect_estimate_min_profitable_iters): Replace cost model macros with
20325 calls to vect_get_cost.
20326 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
20327 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
20328 default implementation.
20329 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
20330 calls to target hook builtin_vectorization_cost.
20331 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
20332 Likewise.
20333 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
20334 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
20335 implementation to return costs.
20336 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20337 * config/spu/spu.h: Remove vectorizer cost model macros.
20338 * config/i386/i386.h: Likewise.
20339 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
20340 a call to target hook builtin_vectorization_cost.
20341
20342 2010-06-06 Sriraman Tallam <tmsriram@google.com>
20343
20344 PR target/44319
20345 * config/i386/i386.c (override_options): Turn zee pass on for level 2
20346 and above and defer till target is known.
20347 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
20348 turn off otherwise.
20349
20350 2010-05-25 Jan Hubicka <jh@suse.cz>
20351
20352 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
20353 (df_compact_blocks): Likewise.
20354 * df.h (struct df): Turn hardware_regs_used,
20355 regular_block_artificial_uses, eh_block_artificial_uses,
20356 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
20357 bitmap_head.
20358 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
20359 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
20360 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
20361 df_scan_blocks, df_insn_delete, df_insn_rescan,
20362 df_insn_rescan_debug_internal, df_insn_rescan_all,
20363 df_process_deferred_rescans, df_process_deferred_rescans,
20364 df_notes_rescan, df_get_call_refs, df_get_call_refs,
20365 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
20366 df_record_entry_block_defs, df_record_exit_block_uses,
20367 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
20368 df_scan_verify): Update.
20369
20370 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20371
20372 PR c++/44188
20373 * c-common.c (is_typedef_decl): Move this definition ...
20374 * tree.c (is_typedef_decl): ... here.
20375 (typdef_variant_p): Move definition here from cp/tree.c.
20376 * c-common.h (is_typedef_decl): Move this declaration ...
20377 * tree.h (is_typedef_decl): ... here.
20378 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20379 * dwarf2out.c (is_naming_typedef_decl): New function.
20380 (gen_tagged_type_die): Split out of ...
20381 (gen_type_die_with_usage): ... this function. When an anonymous
20382 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20383 is emitted for the typedef.
20384 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20385 anonymous tagged types.
20386
20387 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20388
20389 PR c/20000
20390 * c-decl.c (grokdeclarator): Delete warning.
20391
20392 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
20393
20394 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
20395 newly built CALL_EXPR.
20396 * tree-profile.c (tree_profiling): Don't profile functions produced
20397 for built-in stuff.
20398
20399 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
20400
20401 PR bootstrap/44427
20402 PR bootstrap/44428
20403 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
20404 endianness-independent.
20405
20406 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
20407
20408 * c-common.c: Move to c-family/.
20409 * c-common.def: Likewise.
20410 * c-common.h: Likewise.
20411 * c-cppbuiltin.c: Likewise.
20412 * c-dump.c: Likewise.
20413 * c-format.c: Likewise.
20414 * c-format.h : Likewise.
20415 * c-gimplify.c: Likewise.
20416 * c-lex.c: Likewise.
20417 * c-omp.c: Likewise.
20418 * c.opt: Likewise.
20419 * c-opts.c: Likewise.
20420 * c-pch.c: Likewise.
20421 * c-ppoutput.c: Likewise.
20422 * c-pragma.c: Likewise.
20423 * c-pragma.h: Likewise.
20424 * c-pretty-print.c: Likewise.
20425 * c-pretty-print.h: Likewise.
20426 * c-semantics.c: Likewise.
20427 * stub-objc.c: Likewise.
20428
20429 * gengtype.c (get_file_langdir): Special-case files in c-family/.
20430 (get_output_file_with_visibility): Fix name for c-common.h.
20431 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
20432
20433 * c-tree.h: Update include path for moved files.
20434 * c-lang.c: Likewise.
20435 * c-lang.h: Likewise.
20436 * c-parser.c: Likewise.
20437 * c-convert.c: Likewise.
20438 * c-decl.c: Likewise.
20439 * c-objc-common.c: Likewise.
20440 * configure.ac: Make sure c-family/ exists in the build directory.
20441 * configure: Regenerate.
20442 * Makefile.in: Update paths for moved files. Regroup files per
20443 location and update dependencies. Move generated_files down after
20444 ALL_GTFILES_H.
20445
20446 * config/spu/spu-c.c: Update paths for moved files.
20447 * config/mep/mep-pragma.c: Likewise.
20448 * config/darwin-c.c: Likewise.
20449 * config/i386/msformat-c.c: Likewise.
20450 * config/i386/i386-c.c: Likewise.
20451 * config/avr/avr-c.c: Likewise.
20452 * config/sol2-c.c: Likewise.
20453 * config/ia64/ia64-c.c: Likewise.
20454 * config/rs6000/rs6000-c.c: Likewise.
20455 * config/arm/arm.c: Likewise.
20456 * config/arm/arm-c.c: Likewise.
20457 * config/h8300/h8300.c: Likewise.
20458 * config/v850/v850-c.c: Likewise.
20459
20460 * config/t-darwin: Fix dependencies for moved files.
20461 * config/t-sol2: Fix dependencies for moved files.
20462 * config/mep/t-mep: Fix dependencies for moved files.
20463 * config/ia64/t-ia64: Fix dependencies for moved files.
20464 * config/rs6000/t-rs6000: Fix dependencies for moved files.
20465 * config/v850/t-v850: Fix dependencies for moved files.
20466 * config/v850/t-v850e: Fix dependencies for moved files.
20467
20468 * config/m32c/m32c-pragma.c
20469
20470 * po/exgettext: Look in c-family/ also.
20471
20472 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
20473
20474 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
20475 (mark_control_dependent_edges_necessary): Call it instead of marking
20476 the last statement manually.
20477 (propagate_necessity): Likewise.
20478
20479 2010-06-05 Jan Hubicka <jh@suse.cz>
20480
20481 * basic-block.h (compute_dominance_frontiers): Updated.
20482 (compute_idf): Likewise.
20483
20484 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
20485 for dominance frontiers.
20486 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
20487 (insert_updated_phi_nodes_for): Likewise.
20488 (update_ssa): Likewise.
20489 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20490 (compute_dominance_frontiers): Likewise.
20491 (compute_idf): Likewise.
20492 * df-problems.c (df_md_local_compute): Likewise.
20493
20494 2010-06-05 Anatoly Sokolov <aesok@post.ru>
20495
20496 * target.h (struct gcc_target): Add memory_move_cost field.
20497 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
20498 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
20499 * targhooks.c (default_memory_move_cost): New function.
20500 * targhooks.h (default_memory_move_cost): Declare function.
20501 * reload.h (memory_move_cost): Declare.
20502 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20503 * reginfo.c (memory_move_cost): New function.
20504 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20505 * ira.h (ira_memory_move_cost): Update comment.
20506 * ira.c (ira_memory_move_cost): Update comment.
20507 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
20508 with memory_move_cost.
20509 * postreload.c (reload_cse_simplify_set): (Ditto.).
20510 * reload1.c (choose_reload_regs): (Ditto.).
20511 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
20512 (MEMORY_MOVE_COST): Revise documentation.
20513
20514 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20515 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20516 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
20517 type of 'in' argument to bool.
20518 (TARGET_MEMORY_MOVE_COST): Define.
20519
20520 2010-06-05 Jan Hubicka <jh@suse.cz>
20521
20522 * ipa-pure-const.c (propagate): Fix typo in handling of functions
20523 that cannot return. Be more careful when merging the results with
20524 previously known ones.
20525
20526 2010-06-05 Matthias Klose <doko@ubuntu.com>
20527
20528 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
20529 function to add the -iplugindir option.
20530 (find_plugindir_spec_function): Add new declaration and function.
20531 (static_spec_func): Use it for "find-plugindir".
20532
20533 2010-06-05 Jakub Jelinek <jakub@redhat.com>
20534
20535 PR c++/44361
20536 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
20537 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
20538 statement expression.
20539
20540 2010-06-05 Jan Hubicka <jh@suse.cz>
20541
20542 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
20543 (df_rd_problem_data): Convert sparse_invalidated_by_call,
20544 dense_invalidated_by_call to bitmap head.
20545 (df_rd_alloc, df_rd_bb_local_compute_process_def,
20546 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
20547 df_rd_start_dump, df_lr_verify_transfer_functions,
20548 df_live_verify_transfer_functions, df_chain_create_bb,
20549 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
20550 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
20551 df_simulate_one_insn_forwards, df_md_alloc,
20552 df_md_bb_local_compute_process_def,
20553 df_md_bb_local_compute_process_def, df_md_local_compute,
20554 df_md_transfer_function df_md_free): Update.
20555
20556 2010-06-05 Joseph Myers <joseph@codesourcery.com>
20557
20558 PR c/44322
20559 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
20560 target type for ADDR_EXPR; require no changes to qualifiers except
20561 for function types.
20562 * c-tree.h (c_build_type_variant): Remove.
20563
20564 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20565
20566 * genautomata.c (get_excl_set): Do work per element, not per char.
20567 (check_presence_pattern_sets): Similar.
20568 (check_absence_pattern_sets): Similar.
20569
20570 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20571
20572 * genautomata.c (curr_state_pass_num): Delete.
20573 (min_issue_delay_pass_states): Delete.
20574 (min_issue_delay): Delete.
20575 (initiate_min_issue_delay_pass_states): Delete.
20576 (output_min_issue_delay_table): Compute min_issue_delay_vect
20577 using a breadth-first search variant.
20578 (output_tables): Don't call initiate_min_issue_delay_pass_states.
20579
20580 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
20581
20582 PR boostrap/44421
20583 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
20584 (df_byte_lr_bb_local_compute): Likewise.
20585
20586 2010-06-03 Jason Merrill <jason@redhat.com>
20587
20588 Implement noexcept operator (5.3.7)
20589 * c-common.c (c_common_reswords): Add noexcept.
20590 * c-common.h (enum rid): Add RID_NOEXCEPT.
20591
20592 2010-06-04 Joseph Myers <joseph@codesourcery.com>
20593
20594 * config/darwin-driver.c (darwin_default_min_version): Use
20595 GCC-specific formats in diagnostics.
20596 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
20597 diagnostics.
20598 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
20599 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
20600 eval_spec_function, handle_braces, process_brace_body, main,
20601 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
20602 getenv_spec_function, compare_version_strings,
20603 version_compare_spec_function): Use GCC-specific formats in
20604 diagnostics.
20605
20606 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20607
20608 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
20609 that operand 0 and operand 1 are equal.
20610 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
20611 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
20612 and operand 1 are equal.
20613 <default>: Ditto. Remove ??? comment.
20614 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
20615 and operand 1 are equal.
20616 <default>: Ditto. Remove ??? comment.
20617 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
20618 are equal.
20619 (*add<mode>_4) <default>: Ditto.
20620 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
20621
20622 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
20623
20624 * config/i386/i386-protos.h (ix86_print_operand): Declare.
20625 * config/i386/i386.c (ix86_print_operand): Make non-static.
20626 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
20627 * output.h (output_operand): Declare.
20628 * final.c (output_operand): Make non-static.
20629
20630 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
20631
20632 PR rtl-optimization/44013
20633 * sched-deps.c (add_dependence_list_and_free): Don't free lists
20634 when processing debug insns.
20635
20636 PR debug/41371
20637 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
20638 recursing. Check that recursion is bounded. Rename inner var
20639 to avoid hiding incoming argument.
20640
20641 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20642
20643 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
20644 operands[2] == 255.
20645 (*addqi_3): Ditto.
20646 (*addqi_4): Ditto.
20647 (*addqi_5): Ditto.
20648 (*addqi_ext_1_rex64): Ditto.
20649 (*addqi_ext_1): Ditto.
20650
20651 (*addqi_4): Check for incdec_operand in QImode.
20652
20653 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
20654 using SWI mode iterator.
20655 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
20656 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
20657 mode iterator.
20658 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
20659 using SWI mode iterator.
20660
20661 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
20662
20663 PR c/25880
20664 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
20665 * c-format.c (gcc_diag_flag_specs): Add hash.
20666 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
20667 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
20668 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
20669 pp_c_cv_qualifiers. Handle qualifiers spelling here.
20670 (pp_c_type_qualifier_list): Call the function above.
20671 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
20672 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
20673 (WARN_FOR_QUALIFIERS): New macro.
20674 (convert_for_assignment): Use it.
20675
20676 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
20677
20678 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
20679
20680 2010-06-04 Jan Hubicka <jh@suse.cz>
20681
20682 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
20683 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
20684 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
20685 DF_BYTE_LR_OUT): Update for embedded bitmaps.
20686 * fwprop.c (single_def_use_enter_block): Likewise.
20687 * ddg.c (create_ddg_dep_from_intra_loop_link,
20688 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
20689 * loop-iv.c (latch_dominating_def): Likewise.
20690 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
20691 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
20692 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
20693 df_rd_transfer_function, df_rd_top_dump,
20694 df_rd_bottom_dump): Update.
20695 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
20696 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
20697 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
20698 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
20699 df_lr_verify_solution_start, df_lr_verify_solution_end,
20700 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
20701 df_live_free_bb_info, df_live_alloc, df_live_reset,
20702 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
20703 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
20704 df_live_verify_solution_start, df_live_verify_solution_end,
20705 df_live_verify_transfer_functions, df_chain_create_bb,
20706 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
20707 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20708 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20709 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
20710 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20711 df_byte_lr_transfer_function, df_byte_lr_top_dump,
20712 df_byte_lr_bottom_dump, df_create_unused_note,
20713 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
20714 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
20715 df_md_transfer_function, df_md_init, df_md_confluence_0,
20716 df_md_confluence_n,
20717 df_md_top_dump, df_md_bottom_dump): Update.
20718 (struct df_lr_problem_data): Embedd bitmap headers.
20719
20720 2010-06-04 Jan Hubicka <jh@suse.cz>
20721
20722 * dce.c (dce_process_block): Do not re-scan already marked
20723 instructions.
20724
20725 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
20726
20727 PR rtl-optimization/39871
20728 PR rtl-optimization/40615
20729 PR rtl-optimization/42500
20730 PR rtl-optimization/42502
20731 * ira.c (init_reg_equiv_memory_loc: New function.
20732 (ira): Call it twice.
20733 * reload.h (calculate_elim_costs_all_insns): Declare.
20734 * ira-costs.c: Include "reload.h".
20735 (regno_equiv_gains): New static variable.
20736 (init_costs): Allocate it.
20737 (finish_costs): Free it.
20738 (ira_costs): Call calculate_elim_costs_all_insns.
20739 (find_costs_and_classes): Take estimated elimination costs
20740 into account.
20741 (ira_adjust_equiv_reg_cost): New function.
20742 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
20743 * reload1.c (init_eliminable_invariants, free_reg_equiv,
20744 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
20745 (elim_bb): New static variable.
20746 (reload): Move code out of here into init_eliminable_invariants and
20747 free_reg_equiv. Call them.
20748 (calculate_elim_costs_all_insns): New function.
20749 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
20750 all callers changed. If FOR_COSTS is true, don't call alter_reg,
20751 but call note_reg_elim_costly if we turned a valid memory address
20752 into an invalid one.
20753 * Makefile.in (ira-costs.o): Depend on reload.h.
20754
20755 2010-06-04 Julian Brown <julian@codesourcery.com>
20756
20757 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
20758 for pool ranges.
20759
20760 2010-06-04 Richard Guenther <rguenther@suse.de>
20761
20762 PR lto/41584
20763 * cgraph.h (struct varpool_node): Add lto_file_data field.
20764 * lto-cgraph.c (input_varpool_node): Initialize it.
20765
20766 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20767
20768 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
20769 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
20770 predicate in "type" attribute calculation.
20771 (*addsi_1_zext): Ditto.
20772 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
20773 (*addsi_2_zext): Ditto.
20774 (*add<mode>_3): Ditto.
20775 (*addsi_3_zext): Ditto.
20776 (*add<mode>_5): Ditto.
20777
20778 2010-06-03 Jan Hubicka <jh@suse.cz>
20779
20780 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
20781 of bitmap_bit_p.
20782 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20783
20784 2010-06-03 Jan Hubicka <jh@suse.cz>
20785
20786 * df-problems.c (df_create_unused_note, df_note_bb_compute):
20787 micro-optimize the checks when to add new note.
20788
20789 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
20790
20791 * final.c (output_asm_insn): Call
20792 targetm.asm_out.print_operand_punct_valid_p. Update comments.
20793 (output_operand): Call targetm.asm_out.print_operand. Update comments.
20794 (output_address): Call targetm.asm_out.print_operand_address.
20795 Update comments.
20796 * target.h (struct gcc_target): Add print_operand,
20797 print_operand_address, and print_operand_punct_valid_p fields.
20798 * targhooks.h (default_print_operand): Declare.
20799 (default_print_operand_address): Declare.
20800 (default_print_operand_punct_valid_p): Declare.
20801 * targhooks.c (default_print_operand): Define.
20802 (default_print_operand_address): Define.
20803 (default_print_operand_punct_valid_p): Define.
20804 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
20805 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
20806 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
20807 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
20808 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
20809 * vmsdbgout.c (addr_const_to_string): Update comment.
20810 * config/i386/i386.c (print_operand): Rename to...
20811 (ix86_print_operand): ...this. Make static.
20812 (print_operand_address): Rename to...
20813 (ix86_print_operand_address): ...this. Make static. Call
20814 ix86_print_operand instead of PRINT_OPERAND.
20815 (ix86_print_operand_punct_valid_p): New function.
20816 (TARGET_PRINT_OPERAND): Define.
20817 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20818 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20819 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
20820 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20821 (PRINT_OPERAND): Delete.
20822 (PRINT_OPERAND_ADDRESS): Delete.
20823 * config/i386/i386-protos.h (print_operand): Delete prototype.
20824 (print_operand_address): Delete prototype.
20825
20826 2010-06-03 Richard Guenther <rguenther@suse.de>
20827
20828 PR tree-optimization/44403
20829 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20830 Preserve pointer qualifiers.
20831 (vect_create_data_ref_ptr): Likewise.
20832
20833 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
20834
20835 PR c++/44294
20836 * defaults.h (MAX_FIXED_MODE_SIZE): New.
20837
20838 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
20839
20840 2010-06-03 Jakub Jelinek <jakub@redhat.com>
20841
20842 PR debug/44375
20843 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
20844 return false if merging the bbs would lead to goto_locus
20845 location being lost from the IL.
20846
20847 2010-06-03 Jan Hubicka <jh@suse.cz>
20848 Jakub Jelinek <jakub@redhat.com>
20849
20850 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
20851 set->regs[i] is NULL or has just one entry.
20852
20853 2010-06-03 Jan Hubicka <jh@suse.cz>
20854
20855 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
20856 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
20857
20858 2010-06-03 Paul Brook <paul@codesourcery.com>
20859
20860 * config/arm/arm.c (FL_TUNE): Define.
20861 (arm_default_cpu, arm_cpu_select): Remove.
20862 (all_cores): Populate core field.
20863 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
20864 (arm_find_cpu): New function.
20865 (arm_handle_option): Lookup cpu/architecture names.
20866 (arm_override_options): Cleanup mcpu/march/mtune handling.
20867 (arm_file_start): Ditto.
20868
20869 2010-06-03 Alan Modra <amodra@gmail.com>
20870
20871 PR target/44169
20872 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
20873 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
20874 rtx to gen_load_toc_v4_PIC_1b. Tidy.
20875 (rs6000_emit_load_toc_table): Likewise.
20876
20877 2010-06-02 Jan Hubicka <jh@suse.cz>
20878
20879 * passes.c (init_optimization_passes): Put ipa reference
20880 after ipa pure-const.
20881
20882 2010-06-02 Jan Hubicka <jh@suse.cz>
20883
20884 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
20885 calls_read_all and calls_write_all.
20886 (get_reference_optimization_summary): Fix formatting.
20887 (is_proper_for_analysis): Check that decl is not readonly.
20888 (propagate_bits): Check CONST/PURE/noreturn flags.
20889 (ipa_init): Move all_module_statics to optimization_summary_obstack.
20890 (analyze_function): Ignore indirect edges.
20891 (copy_global_bitmap): For all module statics, do nothing.
20892 (generate_summary): Do not print calls_read_all/calls_write_all.
20893 (read_write_all_from_decl): Take node as argument; check
20894 cgraph_node_cannot_return.
20895 (propagate): Reorganize read_all/write_all computation;
20896 check indirect edges; check ecf flags; use all_module_statics
20897 in the results; do not free all_module_statics.
20898 (stream_out_bitmap): Handle all_module_statics.
20899 (ipa_reference_write_optimization_summary): Likewise; use
20900 varpool/cgraph encoders to get boundaries.
20901 (ipa_reference_read_optimization_summary): Read in all_module_statics;
20902 use it when possible.
20903
20904 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20905
20906 PR target/44218
20907 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
20908 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
20909
20910 * doc/extend.texi (powerpc builtins): Document vec_recip,
20911 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
20912
20913 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
20914 (rs6000_emit_swrsqrt): Ditto.
20915 (rs6000_emit_swdivsf): Delete.
20916 (rs6000_emit_swdivdf): Ditto.
20917 (rs6000_emit_swrsqrtsf): Ditto.
20918
20919 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
20920 describe the reciprocal estimate support for each type.
20921 (recip_options): Map -mrecip=<opt> into option bits.
20922 (gen_2arg_fn_t): New typedef for binary rtx gen function.
20923 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
20924 reciprocal estimate instructions.
20925 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
20926 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
20927 Set up rs6000_recip_bits based on the -mrecip* options. Print the
20928 cost information if -mdebug=cost or -mdebug=reg.
20929 (rs6000_override_options): Set -mrecip-precision for power6, and
20930 power7 machines. If -mvsx or -mdfp, enable various options that
20931 came in previous instruction set ISAs, unless the option was
20932 explicitly disabled by the command line option. Parse
20933 -mrecip=<opt> options.
20934 (rs6000_builtin_vectorized_function): Add support for vectorizing
20935 the reciprocal estimate builtins and expansions.
20936 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
20937 (bdesc_2arg): Add reciprocal estimate builtins.
20938 (bdesc_1arg): Add reciprocal square root estimate builtins.
20939 (rs6000_expand_builtin): Rewrite to use a switch statement,
20940 instead of multiple if/then/elses. Add reciprocal estimate builtins.
20941 (rs6000_init_builtins): Create declarations for reciprocal
20942 estimate builtins.
20943 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
20944 sized, prefer traditional floating point registers, if integer
20945 vector types, prefer altivec registers. Don't actually look at
20946 the memory address any more.
20947 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
20948 builtins.
20949 (rs6000_load_constant_and_splat): New helper function to load up
20950 the constant for reciprocal estimate instructions.
20951 (rs6000_emit_madd): New helper function for generating
20952 multiply/add type instructions, based on the current switches.
20953 (rs6000_emit_msub): Ditto.
20954 (rs6000_emit_mnsub): Ditto.
20955 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
20956 replace a divide with a reciprocal estimate and fixup, adding
20957 support for machines with high precision and vectors.
20958 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
20959 low precision machines.
20960 (rs6000_emit_swdiv): New common function to be called to replace a
20961 division with reciprocal estimate and fixup.
20962 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
20963 for double and vector types. Add support for high precision machines.
20964
20965 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
20966 the reciprocal estimate instructions can be generated.
20967 (TARGET_FRE): Ditto.
20968 (TARGET_FRSQRTES): Ditto.
20969 (TARGET_FRSQRTE): Ditto.
20970 (RS6000_RECIP_*): New macros for reciprocal estimate support.
20971
20972 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
20973 square root estimate on vectors.
20974 (re<mode>2): New insn for reciprocal division estimate on vectors.
20975
20976 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
20977 New builtin.
20978 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
20979 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
20980 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
20981 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
20982 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
20983 (RS6000_BUILTIN_RSQRT): Ditto.
20984 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
20985 floating point builtin.
20986
20987 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20988 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
20989 __RECIP_PRECISION__ based on the command line switches.
20990 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
20991
20992 * config/rs6000/rs6000.opt (-mrecip): Document add support for
20993 replacing division instructions with reciprocal estimate and fixup.
20994 (-mrecip=<opt>): New option.
20995 (-mrecip-precision): Ditto.
20996
20997 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
20998 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
20999 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
21000 precision scalar.
21001
21002 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
21003 (UNSPEC_VREFP): Ditto.
21004 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
21005 conterparts with regard to support of -mno-fused-madd and -ffast-math.
21006 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
21007 reciprocal estimate instructions to be generated.
21008 (altivec_vrefp): Ditto.
21009
21010 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
21011 estimate support.
21012 (rreg): New mode attribute for reciprocal estimate support.
21013 (recip<mode>3): New insn for division using reciprocal estimate
21014 and fixup builtins.
21015 (divide define_split): New define_split to convert floating point
21016 division to use reciprocal estimate if the user used the
21017 appropriate options and the split is run when we can add new
21018 pseudo registers for the fixup.
21019 (rsqrt<mode>2): New insn for reciprocal square root support.
21020 (recipsf3): Move into recip<mode>3.
21021 (recipdf3): Ditto.
21022 (fres): Use TARGET_FRES.
21023 (rsqrtsf2): Move into rsqrt<mode>2.
21024 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
21025 (copysignsf3): Add support for VSX.
21026 (fred): Use TARGET_FRE.
21027 (fred_fpr): Ditto.
21028 (rsqrtdf_internal1): New function for frsqrte instruciton.
21029
21030 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
21031 (vec_rsqrt): Ditto.
21032
21033 2010-06-03 Richard Guenther <rguenther@suse.de>
21034
21035 PR middle-end/44291
21036 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
21037 (set_user_assembler_libfunc): Likewise.
21038
21039 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21040
21041 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
21042 defaults.h.
21043 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
21044 to defaults.h
21045 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
21046 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
21047 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
21048 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
21049 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
21050 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
21051 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
21052 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
21053 * defaults.h: Updated for above mentioned changes.
21054
21055 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
21056
21057 * c-common.c: Remove header include of tm_p.h.
21058 * Makefile.in (c-common.o): Remove TM_P_H dependency.
21059
21060 2010-06-02 Jakub Jelinek <jakub@redhat.com>
21061
21062 * tree.h (struct tree_decl_map): New type.
21063 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21064 (tree_decl_map_hash): New prototype.
21065 (debug_expr_for_decl, value_expr_for_decl): Change into
21066 tree_decl_map hashtab from tree_map.
21067 (init_ttree): Adjust initialization.
21068 (tree_decl_map_hash): New function.
21069 (decl_debug_expr_lookup, decl_debug_expr_insert,
21070 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21071
21072 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21073
21074 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21075 linker emulations.
21076 * configure: Regenerate.
21077 * config.in: Regenerate.
21078
21079 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21080 (X86_64_EMULATION): Define.
21081 (TARGET_LD_EMULATION): Use them.
21082
21083 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21084 (SPARC64_EMULATION): Define.
21085 (LINK_ARCH_SPEC): Use them.
21086
21087 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21088
21089 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21090 smallest_mode_for_size for computing the precision types of new
21091 graphite IVs. Do not call lang_hooks.types.type_for_size.
21092
21093 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21094
21095 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21096 information.
21097 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21098
21099 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21100
21101 PR middle-end/44363
21102 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21103 return false instead.
21104
21105 2010-06-02 Jan Hubicka <jh@suse.cz>
21106
21107 PR middle-end/44295
21108 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21109 create new cgraph node to check callee.
21110
21111 2010-06-02 Richard Guenther <rguenther@suse.de>
21112
21113 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
21114
21115 2010-06-02 Richard Guenther <rguenther@suse.de>
21116
21117 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
21118 (lto_wrapper_cleanup): ... this. Do not exit.
21119 (fatal): Adjust. Exit here.
21120 (fatal_perror): Likewise.
21121 (fatal_signal): New function.
21122 (main): Set up signal handlers to cleanup temporary files.
21123 * Makefile.in (lto-wrapper.o): Adjust dependencies.
21124
21125 2010-06-02 Richard Guenther <rguenther@suse.de>
21126
21127 PR tree-optimization/44377
21128 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
21129
21130 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21131
21132 * config/s390/2097.md (z10_fhex): Remove insn reservation.
21133 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
21134 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
21135 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
21136 instruction.
21137 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
21138
21139 2010-06-02 Jan Hubicka <jh@suse.cz>
21140
21141 * bitmap.c (bitmap_descriptor): Add search_iter.
21142 (bitmap_find_bit): Increment it.
21143 (print_statistics): Print it.
21144
21145 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
21146
21147 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
21148 instead of gimple_build_call_vec. Delete unnecessary local variable.
21149
21150 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21151
21152 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
21153 change from yesterday.
21154
21155 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21156
21157 * c-ada-spec.c: Clean up redundant includes.
21158
21159 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
21160
21161 * gimplify.c: Do not include except.h and optabs.h.
21162 (gimplify_body): Do not initialize RTL profiling.
21163 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
21164 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
21165 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
21166 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
21167 langhooks.h.
21168
21169 * tree-pretty-print.h: Include pretty-print.h.
21170 * gimple-pretty-print.h: Include pretty-print.h.
21171
21172 * tree-pretty-print.c: Do not include diagnostic.h.
21173 * tree-vrp.c: Likewise.
21174 * tree-tailcall.c: Likewise
21175 * tree-scalar-evolution.c: Likewise
21176 * tree-ssa-dse.c: Likewise
21177 * tree-chrec.c: Likewise
21178 * tree-ssa-sccvn.c: Likewise
21179 * tree-ssa-copyrename.c: Likewise
21180 * tree-nomudflap.c: Likewise
21181 * tree-call-cdce.c: Likewise
21182 * tree-stdarg.c: Likewise
21183 * tree-ssa-math-opts.c: Likewise
21184 * tree-nrv.c: Likewise
21185 * tree-ssa-sink.c: Likewise
21186 * tree-browser.c: Likewise
21187 * tree-ssa-loop-ivcanon.c: Likewise
21188 * tree-ssa-loop.c: Likewise
21189 * tree-parloops.c: Likewise
21190 * tree-ssa-address.c: Likewise
21191 * tree-ssa-ifcombine.c: Likewise
21192 * tree-if-conv.c: Likewise
21193 * tree-data-ref.c: Likewise
21194 * tree-affine.c: Likewise
21195 * tree-ssa-phiopt.c: Likewise
21196 * tree-ssa-coalesce.c: Likewise
21197 * tree-ssa-pre.c: Likewise
21198 * tree-ssa-live.c: Likewise
21199 * tree-predcom.c: Likewise
21200 * tree-ssa-forwprop.c: Likewise
21201 * tree-ssa-dce.c: Likewise
21202 * tree-ssa-ter.c: Likewise
21203 * tree-ssa-loop-prefetch.c: Likewise
21204 * tree-optimize.c: Likewise
21205 * tree-ssa-phiprop.c: Likewise
21206 * tree-object-size.c: Likewise
21207 * tree-outof-ssa.c: Likewise
21208 * tree-ssa-structalias.c: Likewise
21209 * tree-switch-conversion.c: Likewise
21210 * tree-ssa-reassoc.c: Likewise
21211 * tree-ssa-operands.c: Likewise
21212 * tree-vectorizer.c: Likewise
21213 * tree-vect-data-refs.c: Likewise
21214 * tree-vect-generic.c: Likewise
21215 * tree-vect-stmts.c: Likewise
21216 * tree-vect-patterns.c: Likewise
21217 * tree-vect-slp.c: Likewise
21218 * tree-vect-loop.c: Likewise
21219 * tree-ssa-loop-ivopts.c: Likewise
21220 * tree-ssa-loop-im.c: Likewise
21221 * tree-ssa-loop-niter.c: Likewise
21222 * tree-ssa-loop-unswitch.c: Likewise
21223 * tree-ssa-loop-manip.c: Likewise
21224 * tree-ssa-loop-ch.c: Likewise
21225 * tree-dump.c: Likewise
21226 * tree-complex.c: Likewise
21227
21228 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
21229 * tree-ssa-uninit.c: Likewise
21230 * tree-ssa-threadupdate.c: Likewise
21231 * tree-ssa-uncprop.c: Likewise
21232 * tree-ssa-ccp.c: Likewise
21233 * tree-ssa-dom.c: Likewise
21234 * tree-ssa-propagate.c: Likewise
21235 * tree-ssa-alias.c: Likewise
21236 * tree-dfa.c: Likewise
21237 * tree-cfgcleanup.c: Likewise
21238 * tree-sra.c: Likewise
21239 * tree-ssa-copy.c: Likewise
21240 * tree-ssa.c: Likewise
21241 * tree-profile.c: Likewise
21242 * tree-cfg.c: Likewise
21243 * tree-ssa-threadedge.c: Likewise
21244 * tree-vect-loop-manip.c: Likewise
21245
21246 * tree-inline.c: Do not include diagnostic.h and expr.h.
21247 Include rtl.h.
21248 (copy_decl_for_dup_finish): Do not use NULL_RTX.
21249
21250 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
21251 * tree-loop-distribution.c: Likewise.
21252
21253 2010-06-01 Jan Hubicka <jh@suse.cz>
21254
21255 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
21256
21257 2010-06-01 Jan Hubicka <jh@suse.cz>
21258
21259 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
21260 remove return value.
21261 (split_bbs_on_noreturn_calls) .... here.
21262 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
21263 * tree-flow.h (fixup_noreturn_call): New.
21264
21265 2010-06-01 Jan Hubicka <jh@suse.cz>
21266
21267 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
21268
21269 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
21270
21271 * tree.h (build_nt_call_list): Delete.
21272 * tree.c (build_nt_call_list): Delete.
21273
21274 2010-06-01 Jan Hubicka <jh@suse.cz>
21275
21276 * fwprop.c: Make emit-rtl.h include last.
21277 * rtlanal.c: Include emit-rtl.h.
21278 * genautomata.c: Output emit-rtl include into insn-automata.c
21279 * df-scan.c: Include emit-rtl.h.
21280 * haifa-sched.c: Indlude emit-rtl.h.
21281 * mode-switching.c: Indlude emit-rtl.h.
21282 * graph.c: Indlude emit-rtl.h.
21283 * sel-sched.c: Include emit-rtl.h.
21284 * sel-sched-ir.c: Include emit-rtl.h.
21285 * ira-build.c: Include emit-rtl.h.
21286 * emit-rtl.c (first_insn, last_insn): Remove defines.
21287 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
21288 Move to emit-rtl.h.
21289 (set_new_first_and_last_insn, get_last_insn_anywhere,
21290 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
21291 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
21292 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
21293 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
21294 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
21295 Use accessor functions.
21296 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21297 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21298 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21299 mem_expr_equal_p): Move here from rtl.h.
21300 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
21301 Move here from emit-rtl.c; make inline.
21302 * cfglayout.h: Include emit-rtl.h.
21303 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21304 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21305 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21306 mem_expr_equal_p, get_insns, set_first-insn,
21307 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
21308 * reg-stack.c: Include emit-rtl.h.
21309 * dce.c: Likewise.
21310
21311 2010-06-01 Jan Hubicka <jh@suse.cz>
21312
21313 * cgraph.h (tree_function_versioning): Update prototype.
21314 (cgraph_function_versioning): Update prototype.
21315 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
21316 bitmap.
21317 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
21318 (cgraph_materialize_clone, save_inline_function_body): Update use of
21319 tree_function_versioning.
21320 * tree-inline.c (copy_bb): Look for previous copied block to link
21321 after; fix debug output.
21322 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
21323 (copy_body): Likewise.
21324 (expand_call_inline): Update use of copy_body.
21325 (tree_function_versioning): Update use of copy body; accept
21326 blocks_to_copy and new_entry.
21327
21328 2010-06-01 Jan Hubicka <jh@suse.cz>
21329
21330 * gegenrtl.c: Remove unnecesary prototypes.
21331 (gendecl): Remove.
21332 (gendef): Produce static inline.
21333 (gencode): Remove.
21334 (main): Do not decode parameters; generate header only.
21335 * Makefile.in (genrtl.c): Remove.
21336
21337 2010-06-01 Jan Hubicka <jh@suse.cz>
21338
21339 * tree-switch-conversion.c (build_one_array): Make it readonly.
21340
21341 2010-06-01 Richard Guenther <rguenther@suse.de>
21342
21343 * optabs.c (init_optabs): Guard all accesses to reinit.
21344 * ipa-pure-const.c (propagate): Fix another typo.
21345 * opts.c (common_handle_option): Split assignment to bool.
21346 * c-opts.c (c_common_handle_option): Likewise.
21347
21348 2010-06-01 Arnaud Charlet <charlet@adacore.com>
21349 Matthew Gingell <gingell@adacore.com>
21350
21351 * doc/invoke.texi: Mention -fdump-ada-spec.
21352 * tree-dump.c (dump_files): Add ada-spec.
21353 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
21354 * tree-pass.h (tree_dump_index): Add TDI_ada.
21355 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
21356 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
21357 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
21358 * c-decl.c: Include c-ada-spec.h.
21359 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
21360 functions.
21361 (c_write_global_declarations): Add handling of -fdump-ada-spec.
21362 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
21363 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
21364 * c-ada-spec.h, c-ada-spec.c: New files.
21365
21366 2010-06-01 Richard Guenther <rguenther@suse.de>
21367
21368 PR lto/43853
21369 * ipa-pure-const.c (get_function_state): Hand back varying state
21370 if we do not have one.
21371 (has_function_state): New function.
21372 (duplicate_node_data): Adjust.
21373 (remove_node_data): Likewise.
21374 (pure_const_write_summary): Likewise.
21375 (propagate): Likewise. Fix typo.
21376
21377 2010-06-01 Jan Hubicka <jh@suse.cz>
21378
21379 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
21380 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
21381 (execute_all_ipa_transforms): Do not play with the states.
21382
21383 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
21384
21385 * config/arm/t-linux-androideabi: New.
21386 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
21387
21388 2010-06-01 Jan Hubicka <jh@suse.cz>
21389
21390 * tree-inline.c (estimate_num_insns): For stdarg functions look
21391 into call statement to count cost of argument passing.
21392
21393 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
21394
21395 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
21396 argument for fprintf.
21397 (ix86_output_addr_diff_elt): Likewise.
21398 (x86_function_profiler): Likewise.
21399 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
21400 (LPREFIX): Likewise.
21401 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
21402
21403 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21404
21405 PR target/44338
21406 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
21407 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
21408 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
21409 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
21410 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
21411 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
21412 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
21413 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
21414 TARGET_FUSED_MADD.
21415
21416 2010-05-31 Jan Hubicka <jh@suse.cz>
21417
21418 * tree.h (tree_range_check_failed): Declare noreturn.
21419
21420 2010-05-31 Jan Hubicka <jh@suse.cz>
21421
21422 * gimple.c (gimple_call_builtin_p): New function.
21423 * gimple.h (gimple_call_builtin_p): Declare.
21424 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
21425 to exit.
21426 (execute_warn_function_return): BUILT_IN_RETURN is return.
21427 (split_critical_edges): Return edges are not critical.
21428 (is_ctrl_altering_stmt): Builtin_in_return is altering.
21429 (gimple_verify_flow_info): Handle built_in_return.
21430 (execute_warn_function_return): Handle built_in_return.
21431 * ipa-pure-const.c (check_call): Ignore builtin_return.
21432
21433 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21434
21435 PR middle-end/44337
21436 * expr.c (expand_assignment): Don't store anything for out-of-bounds
21437 array accesses with non-MEM.
21438
21439 PR tree-optimization/44182
21440 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
21441 newly needs to end a bb is followed by debug stmts, instead return
21442 true from the function at the end.
21443 (maybe_move_debug_stmts_to_successors): New function.
21444 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
21445
21446 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
21447
21448 PR target/44161
21449 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
21450
21451 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
21452
21453 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
21454 for nested functions in non-optimized compilation.
21455
21456 2010-05-31 Richard Guenther <rguenther@suse.de>
21457
21458 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
21459
21460 2010-05-30 Jan Hubicka <jh@suse.cz>
21461
21462 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
21463
21464 2010-05-30 Richard Guenther <rguenther@suse.de>
21465
21466 PR lto/42975
21467 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
21468 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
21469 no longer needed.
21470
21471 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
21472
21473 * config/darwin.c (output_objc_section_asm_op): Add comment.
21474 (name_needs_quotes): Add '_' to list of valid comment chars.
21475 (machopic_output_function_base_name): Remove unneeded quotes.
21476 (darwin_encode_section_info): Adjust asm whitespace.
21477 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
21478 (ASM_OUTPUT_LOCAL): Ditto.
21479 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
21480 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
21481 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
21482
21483 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
21484
21485 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
21486 RS6000_OUTPUT_BASENAME unconditionally.
21487 (rs6000_output_function_epilogue): Likewise.
21488
21489 2010-05-30 Jan Hubicka <jh@suse.cz>
21490
21491 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
21492 nodes.
21493
21494 2010-05-30 Richard Guenther <rguenther@suse.de>
21495
21496 * tree-cfg.c (verify_gimple_assign_single): Implement
21497 verification for COND_EXPR rhs.
21498
21499 2010-05-30 Jan Hubicka <jh@suse.cz>
21500
21501 * cgraph.h (cgraph_dump_file): Declare.
21502 * cgraphunit.c (cgraph_dump_file): Export.
21503 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
21504
21505 2010-05-30 Jan Hubicka <jh@suse.cz>
21506
21507 * dwarf2out.c (reference_to_unused,
21508 premark_types_used_by_global_vars_helper): Avoid creation of new
21509 varpool nodes.
21510
21511 2010-05-30 Jan Hubicka <jh@suse.cz>
21512
21513 * cgraph.h (cgraph_node_cannot_return,
21514 cgraph_edge_cannot_lead_to_return): New functions.
21515 * cgraph.c (cgraph_node_cannot_return,
21516 cgraph_edge_cannot_lead_to_return): Use them.
21517 * ipa-pure-const.c (pure_const_names): New static var.
21518 (check_call): Handle calls not leading to return.
21519 (pure_const_read_summary): Dump info read.
21520 (propagate): Dump info about propagation process; ignore side effects
21521 of functions not leading to exit; fix handling of pure functions.
21522
21523 2010-05-30 Jan Hubicka <jh@suse.cz>
21524
21525 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
21526 for tail call epilogues.
21527
21528 2010-05-30 Jan Hubicka <jh@suse.cz>
21529
21530 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
21531 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
21532 dump files.
21533
21534 2010-05-29 Jan Hubicka <jh@suse.cz>
21535
21536 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
21537 node; remove references in node we no longer keep in cgrpah but need
21538 body of.
21539
21540 2010-05-29 Jan Hubicka <jh@suse.cz>
21541
21542 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
21543
21544 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21545
21546 PR target/44165
21547 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
21548
21549 2010-05-29 Jan Hubicka <jh@suse.cz>
21550
21551 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
21552 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
21553 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
21554 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
21555 debug_names_replaced_by, debug_update_ssa): Likewise.
21556 * sbitmap.c (debug_sbitmap): Likewise.
21557 * genrecog.c (debug_decision, debug_decision_list): Likewise.
21558 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
21559 debug_tree_chain): Likewise.
21560 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
21561 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
21562 * optabs.c (debug_optab_libfuncs): Likewise.
21563 (verify_loop_closed_ssa): Likewise.
21564 * value-prof.c (verify_histograms): Likewise.
21565 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
21566 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
21567 * cfghooks.c (verify_flow_info): Likewise.
21568 * fold-const.c (debug_fold_checksum): Likewise.
21569 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
21570 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
21571 Likewise.
21572 * omega.c (debug_omega_problem): Likewise.
21573 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
21574 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
21575 * dominance.c (verify_dominators, debug_dominance_info,
21576 debug_dominance_tree): Likewise.
21577 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
21578 * df_regno_debug, df_ref_debug,
21579 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
21580 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
21581 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
21582 * sel-sched.c (debug_state): Likewise.
21583 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
21584 Likewise.
21585 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
21586 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
21587 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
21588 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
21589 Likewise.
21590 * c-pretty-print.c (debug_c_tree): Likewise.
21591 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
21592 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
21593 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
21594 * ebitmap.c (debug_ebitmap): Likewise.
21595 * function.c (debug_find_var_in_block_tree): Likewise.
21596 * print-rtl.c (debug_rtx): Likewise.
21597 (debug_rtx_count): Likewise.
21598 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
21599 * stor-layout.c (debug_rli): Likewise.
21600 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
21601 * tree-data-ref.c (debug_data_references,
21602 debug_data_dependence_relations, debug_data_reference,
21603 debug_data_dependence_relation, debug_rdg_vertex,
21604 debug_rdg_component, debug_rdg): Likewise.
21605 * tree-affine.c (debug_aff): Likewise.
21606 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
21607 Likewise.
21608 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
21609 * emit-rtl.c (verify_rtl_sharing): Likewise.
21610 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
21611 debug_value_expressions): Likewise.
21612 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
21613 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
21614 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
21615 * cfglayout.c (verify_insn_chain): Likewise.
21616 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
21617 debug_clast_stmt, debug_generated_program): Likewise.
21618 * ggc-page.c (debug_print_page_list): Likewise.
21619 * tree-ssa-ter.c (debug_ter): Likewise.
21620 * graphite-dependences.c (debug_pddr): Likewise.
21621 * sched-deps.c (debug_ds): Likewise.
21622 * tree-ssa.c (verify_ssa): Likewise.
21623 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
21624 debug_scattering_functions, debug_iteration_domains, debug_pdr,
21625 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
21626 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
21627 * tree-inline.c (debug_find_tree): Likewise.
21628 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
21629 debug_ppl_powerset_matrix): Likewise.
21630 * var-tracking.c (debug_dv): Likewise.
21631 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
21632 * cfgloop.c (verify_loop_structure): Likewise.
21633 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
21634 * c-common.c (verify_sequence_points): Likewise.
21635 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
21636 debug_candidates, debug_rgn_dependencies): Likewise.
21637 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
21638 * debug_constraint_graph, debug_solution_for_var,
21639 debug_sa_points_to_info): Likewise.
21640 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
21641 Likewie.
21642 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
21643 debug_loops, debug_loop, debug_loop_num): Likewise.
21644 * passes.c (debug_pass): Likewise.
21645 (dump_properties): Likewise; add cfglayout property.
21646 (debug_properties): Likewise.
21647 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
21648 * varpool.c (debug_varpool): Likewise.
21649 * regcprop.c (debug_value_data): Likewise.
21650 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
21651 debug_immediate_uses_for): Likewise.
21652
21653 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21654
21655 PR bootstrap/44315
21656 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
21657 Filter out insn-flags.h.
21658
21659 2010-05-29 Jan Hubicka <jh@suse.cz>
21660
21661 * cgraph.h (struct varpool_node_set_def,
21662 struct cgraph_node_set_def): Remove unused AUX pointer.
21663 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
21664 VEC_empty macro.
21665
21666 2010-05-29 Jan Hubicka <jh@suse.cz>
21667
21668 PR middle-end/44324
21669 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
21670
21671 2010-05-29 Richard Guenther <rguenther@suse.de>
21672
21673 * lto-streamer.c (cached_bp): New global variable.
21674 (bitpack_create): Return the cached bitpack, if available.
21675 (bitpack_delete): Clear and cache the bitpack, if appropriate.
21676 (bp_pack_value): Remove redundant asserts.
21677
21678 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21679
21680 PR middle-end/44306
21681 * tree-if-conv.c (is_true_predicate): New.
21682 (is_predicated): Use is_true_predicate.
21683 (add_to_predicate_list): Same. Do not use unshare_expr.
21684 (add_to_dst_predicate_list): Same.
21685
21686 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21687
21688 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
21689 field on edges.
21690 (predicate_bbs): Same.
21691 (clean_predicate_lists): Same.
21692 (find_phi_replacement_condition): Do not AND the predicate from
21693 edge->aux.
21694
21695 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21696
21697 PR bootstrap/44315
21698 * Makefile.in (build/gencondmd.o): Add a missing `\'.
21699
21700 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21701
21702 PR target/44261
21703 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
21704 (negdf2): Adjust expander pattern and use negdf2_slow.
21705 (negsf2): Likewise.
21706
21707 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
21708
21709 * basic-block.h (struct control_flow_graph): Move last_label_uid field
21710 up.
21711 * df.h (struct df_base_ref): Move regno field up.
21712 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
21713 * expr.h (struct separate_ops): Move location field up.
21714 * optabs.h (struct optab_d): Move libcall_basename field down.
21715 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
21716 * config/i386/i386.h (struct machine_function): Convert call_abi field
21717 into a bitfield. Move cfa field to the end of the structure.
21718
21719 2010-05-29 Jan Hubicka <jh@suse.cz>
21720
21721 * varpool.c (varpool_get_node): Fix lookup.
21722
21723 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21724
21725 * config/spu/spu-protos.h: Do not include rtl.h. Protect
21726 RTL specific prototypes with #ifdef RTX_CODE.
21727 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
21728 * config/spu/t-spu-elf: Fix dependencies.
21729
21730 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
21731
21732 2010-05-29 Mike Stump <mikestump@comcast.net>
21733
21734 PR bootstrap/44315
21735 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
21736 TM_H when building to avoid dependency loops.
21737
21738 2010-05-29 Jan Hubicka <jh@suse.cz>
21739
21740 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
21741 refs and body; not the whole node for masters of materialized clones.
21742
21743 2010-05-29 Mike Stump <mikestump@comcast.net>
21744
21745 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
21746
21747 2010-05-29 Jan Hubicka <jh@suse.cz>
21748
21749 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
21750 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
21751 use of clone_function_name.
21752 * cgraph.h (cgraph_create_virtual_clone,
21753 cgraph_function_versioning): update prototypes.
21754 (clone_function_name): Declare.
21755 * ipa-cp.c (ipcp_insert_stage): Update call of
21756 cgraph_create_virtual_clone.
21757 * omp-low.c (create_omp_child_function_name): Use
21758 cgraph_create_virtual_clone.
21759 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
21760 (cgraph_function_versioning): Take SUFFIX argument; produce new name
21761 and make decl local.
21762
21763 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21764
21765 * vec.h: Include statistics.h
21766 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
21767 with VEC_H.
21768
21769 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21770
21771 * c-lex.c: Do not include c-tree.h.
21772 * c-pretty-print.c: Likewise.
21773 * c-opts.c: Likewise.
21774 * c-gimplify.c: Likewise.
21775 * c-common.c: Likewise.
21776 * c-dump.c: Likewise. Include c-common.h.
21777
21778 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21779
21780 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
21781 before including diagnostic-core.h.
21782 (c_cpp_error): New prototype moved from c-tree.h.
21783 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
21784 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
21785 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
21786 (c_cpp_error): Prototype moved to c-common.h.
21787 * Makefile.in: Update dependency for C_COMMON_H.
21788
21789 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21790
21791 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
21792 * c-common.c (c_register_addr_space): Remove here.
21793 * c-decl.c (c_register_addr_space): Re-add here.
21794
21795 2010-05-28 Mike Stump <mikestump@comcast.net>
21796
21797 * config/darwin-c.c: Remove c-tree.h include.
21798
21799 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21800
21801 * gcc.c: Include diagnostic.h.
21802 (error_count): Remove. All users changed to use errorcount.
21803 (programname): Remove. All users changed to use progname.
21804 (fancy_abort, internal_error, fatal_error, error, warning, inform,
21805 fnotice): Remove.
21806 (execute): Don't include "Internal error" and bug reporting
21807 information in argument of internal_error call.
21808 (process_command): Don't increment error_count after calling
21809 perror_with_name.
21810 (input_filename): Rename to gcc_input_filename. All users
21811 changed.
21812 (main): Call diagnostic_initialize. Register delete_temp_files
21813 with atexit. Use seen_error to test for errors.
21814 * gcc.h: Include diagnostic-core.h.
21815 (fatal_error, error, warning): Remove.
21816 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
21817 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
21818 (gcc.o): Update dependencies.
21819
21820 2010-05-28 Jeff Law <law@redhat.com>
21821
21822 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
21823 functions.
21824 * ira.h (ira_bad_reload_regno): Declare
21825 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
21826
21827 * ira-color.c (update_curr_costs): Free updated hard reg costs.
21828 (ira_reassign_conflict_allocnos): Remove bogus asserts.
21829 (allocno_reload_assign): Likewise.
21830
21831 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
21832
21833 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
21834 build1_stat.
21835
21836 2010-05-28 Richard Guenther <rguenther@suse.de>
21837
21838 PR lto/44312
21839 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
21840 Stream fixed-point constants mode.
21841 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
21842 and TYPE_PRECISION.
21843 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
21844 Stream fixed-point constants mode.
21845 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
21846 and TYPE_PRECISION.
21847
21848 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21849
21850 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
21851 only place it was called from.
21852 (number_of_latch_executions): Do not return chrec_dont_know when the
21853 may_be_zero is a runtime condition: instead, return a COND_EXPR
21854 including the may_be_zero condition.
21855 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
21856 of nb_iterations.
21857 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
21858 COND_EXPRs.
21859
21860 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21861
21862 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
21863 generate COND_EXPRs for degenerate_phi_result.
21864
21865 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21866
21867 PR middle-end/44293
21868 * tree-if-conv.c (if_convertible_loop_p): Check the
21869 if-convertibility of phi nodes in non predicated BBs.
21870
21871 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21872
21873 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
21874
21875 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21876
21877 PR driver/15303
21878 * gcc.c (inform, warning, inform): New functions.
21879 (fatal_ice): Rename to internal_error; change cmsgid parameter to
21880 gmsgid. All callers changed.
21881 (notice): Rename to fnotice; add parameter fp. All callers changed.
21882 (fatal_error): Rename to fatal_signal. All users changed.
21883 (fatal): Rename to fatal_error; change cmsgid parameter to
21884 gmsgid. All callers changed.
21885 (process_command): Use warning instead of error for warnings.
21886 (end_going_arg): Don't use _() around argument of error.
21887 (do_spec_1): Use inform for message from %n specs. Use warning
21888 instead of error for warnings.
21889 (main): Use inform for comparison messages. Use warning for
21890 message about unused linker input.
21891 (error): Increment error_count. Print "error: ".
21892 * gcc.h (fatal): Change to fatal_error.
21893 (warning): Declare.
21894 * config/darwin-driver.c (darwin_default_min_version): Use warning
21895 instead of fprintf for warnings.
21896 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
21897
21898 2010-05-28 Julian Brown <julian@codesourcery.com>
21899
21900 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
21901 (*thumb2_addsi3_compare0_scratch): New.
21902 * config/arm/constraints.md (Pv): New.
21903 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
21904 for ARM mode only.
21905 (*addsi3_compare0_scratch): Likewise.
21906
21907 2010-05-28 Jan Hubicka <jh@suse.cz>
21908
21909 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
21910 check.
21911 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
21912 only on local statics.
21913
21914 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
21915
21916 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
21917
21918 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
21919
21920 PR bootstrap/44314
21921 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
21922 (OPTION_GLIBC): Define.
21923
21924 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21925
21926 PR debug/41048
21927 * dwarf2out.c (double_int_type_size_in_bits): New function.
21928 (round_up_to_align): Change first argument and return value to
21929 double_int.
21930 (field_byte_offset): Work internally on double_ints.
21931
21932 PR target/43636
21933 * builtins.c (expand_movstr): Use a temporary pseudo instead
21934 of target even when target is not NULL and not const0_rtx, but
21935 fails movstr predicate.
21936 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
21937
21938 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21939
21940 * final.c (rest_of_clean_state): Use %m in errors instead of
21941 strerror (errno).
21942 * gengtype.c (read_input_list, close_output_files): Use xstrerror
21943 instead of strerror.
21944 * toplev.c (process_options): Use %m in errors instead of strerror
21945 (errno).
21946 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
21947 (errno).
21948
21949 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
21950
21951 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
21952 (ix86_canonical_va_list_type): Make static. Add declaration.
21953 (ix86_enum_va_list): Make static. Reindent.
21954 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
21955 (ix86_canonical_va_list_type): Ditto.
21956 (ix86_enum_va_list): Ditto.
21957
21958 2010-05-28 Richard Guenther <rguenther@suse.de>
21959
21960 * lto-wrapper.c (run_gcc): With -save-temps generate a
21961 user-visible ltrans filename. Fixup ltrans unit numbering.
21962
21963 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
21964
21965 * c-common.c (c_common_nodes_and_builtins): Replace use
21966 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
21967 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
21968 to ix86_enum_va_list.
21969 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
21970 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
21971 (TARGET_ENUM_VA_LIST_P): Add hook description.
21972 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
21973 * target.h (gcc_target): Add enum_va_list hook.
21974
21975 PR bootstrap/44299
21976 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
21977 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
21978 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
21979
21980 2010-05-28 Alan Modra <amodra@gmail.com>
21981
21982 PR target/44266
21983 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21984 emit_library_call machinery to set up __tls_get_addr calls.
21985
21986 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21987
21988 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
21989
21990 2010-05-28 Dodji Seketeli <dodji@redhat.com>
21991
21992 Revert fix for PR c++/44188
21993 * c-common.c (is_typedef_decl): Revert the moving of this
21994 definition ...
21995 * tree.c (is_typedef_decl): ... here.
21996 (typdef_variant_p): Revert the moving of this definition
21997 here from cp/tree.c.
21998 * c-common.h (is_typedef_decl): Revert the moving of this
21999 declaration ...
22000 * tree.h (is_typedef_decl): ... here.
22001 (typedef_variant_p): Revert the moving of this declaration here
22002 from cp/cp-tree.h
22003 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
22004 (gen_tagged_type_die): Revert the splitting out of ...
22005 (gen_type_die_with_usage): ... this function. Revert the anonymous
22006 tagged type handling.
22007 (gen_typedef_die): Revert emitting DW_TAG_typedef for
22008 typedefs naming anonymous tagged types.
22009
22010 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22011
22012 * config/rs6000/rs6000-modes.def (PSImode): Delete.
22013
22014 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22015
22016 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
22017 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
22018 throughout.
22019 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
22020 "xer" to "ca".
22021 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
22022 XER_REGS to CA_REGS throughout.
22023 * config/rs6000/rs6000.h: Same.
22024 (ADDITIONAL_REGISTER_NAMES): Add "xer".
22025 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
22026 that mode_iterator "P" is the size for arithmetic carries as well.
22027 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
22028
22029 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22030
22031 PR bootstrap/44255
22032 * combine.c (struct rtx_subst_pair): Define unconditionally.
22033 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
22034 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
22035 Call make_compound_operation on pair->to.
22036 (propagate_for_debug): Don't call make_compound_operation here.
22037 Always use simplify_replace_fn_rtx.
22038
22039 2010-05-27 Sterling Augustine <sterling@tensilica.com>
22040
22041 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
22042 * config/xtensa/xtensa.c (override_options): Check
22043 TARGET_FORCE_NO_PIC and set flag_pic.
22044 * config/xtensa/xtensa.opt: Document -mforce-no-pic
22045
22046 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22047
22048 PR bootstrap/44299
22049 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
22050 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
22051
22052 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22053
22054 * diagnostic-core.h: New. Contents moved from diagnostic.h and
22055 toplev.h.
22056 * diagnostic.c: Don't include toplev.h.
22057 (progname): Define. Moved from toplev.c.
22058 (seen_error): New function.
22059 * diagnostic.h: Include diagnostic-core.h.
22060 (diagnostic_t, emit_diagnostic): Don't declare here.
22061 * toplev.c (progname): Move to toplev.c.
22062 (emit_debug_global_declarations, compile_file, finalize,
22063 do_compile, toplev_main): Use seen_error.
22064 * toplev.h: Include diagnostic-core.h.
22065 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22066 internal_error, warning, warning_at, error, error_n, error_at,
22067 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22068 verbatim, fnotice, progname): Move to diagnostic-core.h.
22069 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22070 (expand_builtin_expect): Use seen_error.
22071 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22072 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22073 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22074 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22075 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22076 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22077 errorcount for errors.
22078 * c-opts.c (c_common_finish): Use seen_error.
22079 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22080 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22081 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22082 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22083 (get_coverage_counts): Use seen_error.
22084 * dwarf2out.c (dwarf2out_finish): Use seen_error.
22085 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22086 gimplify_body): Use seen_error.
22087 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22088 * ipa-pure-const.c (gate_pure_const): Use seen_error.
22089 * ipa-reference.c (gate_reference): Use seen_error.
22090 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22091 * lambda-code.c: Include diagnostic-core.h instead of
22092 diagnostic.h.
22093 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22094 * lto-compress.c: Include diagnostic-core.h instead of
22095 diagnostic.h.
22096 * lto-section-in.c: Include diagnostic-core.h instead of
22097 diagnostic.h.
22098 * lto-streamer-out.c: Include diagnostic-core.h instead of
22099 diagnostic.h.
22100 * lto-streamer.c: Include diagnostic-core.h instead of
22101 diagnostic.h.
22102 (gate_lto_out): Use seen_error.
22103 * matrix-reorg.c: Include diagnostic-core.h instead of
22104 diagnostic.h.
22105 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22106 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22107 (gate_expand_omp, lower_omp_1): Use seen_error.
22108 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22109 (rest_of_decl_compilation, rest_of_type_compilation,
22110 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
22111 * tree-cfg.c (label_to_block_fn): Use seen_error.
22112 * tree-inline.c (optimize_inline_calls): Use seen_error.
22113 * tree-mudflap.c (mudflap_finish_file): Use
22114 seen_error.
22115 * tree-optimize.c (gate_all_optimizations,
22116 gate_all_early_local_passes, gate_all_early_optimizations): Use
22117 seen_error.
22118 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
22119 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
22120 (varpool_remove_unreferenced_decls,
22121 varpool_assemble_pending_decls): Use seen_error.
22122 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
22123 (TOPLEV_H, DIAGNOSTIC_H): Update.
22124 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
22125 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
22126 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
22127 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
22128 coverage.o, lambda-code.o): Update dependencies.
22129
22130 2010-05-25 Dodji Seketeli <dodji@redhat.com>
22131
22132 PR c++/44188
22133 * c-common.c (is_typedef_decl): Move this definition ...
22134 * tree.c (is_typedef_decl): ... here.
22135 (typdef_variant_p): Move definition here from cp/tree.c.
22136 * c-common.h (is_typedef_decl): Move this declaration ...
22137 * tree.h (is_typedef_decl): ... here.
22138 (typedef_variant_p): Move declaration here from cp/cp-tree.h
22139 * dwarf2out.c (is_naming_typedef_decl): New function.
22140 (gen_tagged_type_die): Split out of ...
22141 (gen_type_die_with_usage): ... this function. When an anonymous
22142 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22143 is emitted for the typedef.
22144 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22145 anonymous tagged types.
22146
22147 2010-05-27 Jason Merrill <jason@redhat.com>
22148
22149 * print-tree.c (debug_vec_tree): New fn.
22150 (print_vec_tree): New fn.
22151 * tree.h: Declare them.
22152 * gdbinit.in (pvt): New command.
22153
22154 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
22155
22156 * gdbinit.in (pdd): New command.
22157
22158 2010-05-27 Jan Hubicka <jh@suse.cz>
22159
22160 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
22161 (update_caller_keys): Return early if there are no callers;
22162 only update fibheap when decresing the key.
22163 (update_callee_keys): Avoid recursion.
22164 (decide_inlining_of_small_functions): When badness does not match;
22165 re-insert into fibheap.
22166
22167 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
22168
22169 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
22170 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
22171 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
22172 (ALL_HOST_OBJS): Now a union of the above two.
22173 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
22174 all files in ALL_HOST_FRONTEND_OBJS.
22175 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
22176
22177 * c-common.c: Pretend to be a backend file by undefining
22178 IN_GCC_FRONTEND (still need rtl.h here).
22179
22180 2010-05-27 Jan Hubicka <jh@suse.cz>
22181
22182 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
22183 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
22184
22185 2010-05-27 Jan Hubicka <jh@suse.cz>
22186
22187 * sched-ebb.c: Rename struct deps to struct deps_desc.
22188 * ddg.c: Likewise.
22189 * sel-sched-ir.c: Likewise.
22190 * sched-deps.c: Likewise.
22191 * sched-int.h: Likewise.
22192 * sched-rgn.c: Likewise.
22193
22194 2010-05-27 Jon Beniston <jon@beniston.com>
22195
22196 PR 43726
22197 * config/lm32/lm32.h: Remove definition of
22198 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
22199
22200 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
22201
22202 PR lto/44230
22203 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
22204
22205 2010-05-27 Richard Guenther <rguenther@suse.de>
22206
22207 PR tree-optimization/44284
22208 * tree-vect-stmts.c (vectorizable_assignment): Handle
22209 sign-changing conversions as simple copy.
22210
22211 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22212
22213 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
22214 Bionic C library.
22215 (__gthread_active_p): Check for pthread_create if compiling against
22216 Bionic C library.
22217
22218 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22219
22220 Support compilation for Android platform. Reimplement -mandroid.
22221
22222 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
22223 (*android*): Set ANDROID_DEFAULT.
22224 (arm*-*-linux*): Include linux-android.h.
22225 (arm*-*-eabi*): Don't include previous -mandroid implementation.
22226 * config/arm/eabi.h: Remove, move Android-specific parts ...
22227 * config/linux-android.h: ... here. New file.
22228 * config/arm/eabi.opt: Rename to ...
22229 * config/linux-android.opt: ... this.
22230 (mandroid): Allow -mno-android option. Initialize based on
22231 ANDROID_DEFAULT.
22232 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
22233 Move logic to corresponding LINUX_TARGET_* macros.
22234 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
22235 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
22236 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
22237 Android definitions.
22238 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
22239 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
22240 Document.
22241
22242 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22243
22244 Add support for Bionic C library
22245
22246 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
22247 macro.
22248 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
22249 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
22250
22251 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
22252 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
22253 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
22254 to support multiple C libraries. Handle Bionic.
22255 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
22256 (BIONIC_DYNAMIC_LINKER64): Define.
22257 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
22258 Update.
22259 (TARGET_HAS_SINCOS): Enable for Bionic.
22260
22261 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
22262 the last option specified on command line take effect.
22263 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
22264 (mbionic): New.
22265 (mglibc, muclibc): Update.
22266
22267 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
22268 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
22269 DEFAULT_LIBC.
22270
22271 * doc/invoke.texi (-mglibc, -muclibc): Update.
22272 (-mbionic): Document.
22273
22274 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22275
22276 * c-common.h (c_register_addr_space): Add prototype.
22277 (ADDR_SPACE_KEYWORD): Remove.
22278 * c-common.c (c_register_addr_space): New function.
22279 (c_addr_space_name): Reimplement.
22280 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
22281
22282 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
22283 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
22284
22285 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
22286 Remove TARGET_ADDR_SPACE_KEYWORDS.
22287
22288 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22289
22290 * input.c: New file.
22291 * input.h (main_input_filename): Move declaration to toplev.h.
22292 * toplev.c (input_location, line_table): Move to input.c
22293 * toplev.h (main_input_filename): Move declaration from input.h.
22294 * tree.c (expand_location): Move to input.c.
22295 * Makefile.in (OBJS-common): Add input.o.
22296 (input.o): Add dependencies.
22297
22298 2010-05-27 Richard Guenther <rguenther@suse.de>
22299
22300 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
22301 for non-existant files.
22302 (fork_execute): Mark args_name file as deleted.
22303
22304 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22305
22306 PR bootstrp/44287
22307 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
22308 (narrow_signed_type): Likewise.
22309
22310 2010-05-26 Jan Hubicka <jh@suse.cz>
22311
22312 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
22313 edge only when checking is enabled; check using former_clone_of;
22314 check inline clones too.
22315 (cgraph_materialize_clone): Record former_clone_of pointer.
22316 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
22317 combining redirections; dump args_to_skip bitmap
22318 (cgraph_materialize_all_clones): Do no redirection here.
22319 * ipa-inline.c (inline_transform): Do redirection here.
22320 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
22321 cheking only).
22322
22323 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22324
22325 * config/avr/avr-c.c: Do not include regs.h.
22326 Include cpplib.h for cpp_define and tree.h for c-common.h.
22327 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
22328 * config/avr/t-avr: Fix dependencies for avr-c.o.
22329
22330 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22331
22332 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
22333 string instead of SYMBOL_REF rtx.
22334 * rtl.h (set_stack_check_libfunc): Move prototype from here...
22335 * libfuncs.h: ...to here. Adjust for explow.c change.
22336
22337 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22338
22339 * pretty-print.c: Don't include ggc.h.
22340 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
22341 (identifier_to_locale): Use them for allocation.
22342 * pretty-print.h (identifier_to_locale_alloc,
22343 identifier_to_locale_free): Declare.
22344 * toplev.c (alloc_for_identifier_to_locale): New.
22345 (general_init): Set identifier_to_locale_alloc and
22346 identifier_to_locale_free.
22347 * Makefile.in (pretty-print.o): Update dependencies.
22348
22349 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22350
22351 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
22352 pointer types if they have different alignment or mode.
22353
22354 2010-05-26 Anatoly Sokolov <aesok@post.ru>
22355
22356 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22357 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22358 * config/sparc/sparc-protos.h (function_value): Remove declaration.
22359 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
22360 sparc_function_value_regno_p): New functions.
22361 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22362 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22363 (function_value): Rename to...
22364 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
22365 argument to 'outgoing'.
22366 (function_arg_record_value, function_arg_union_value,
22367 function_arg_vector_value): Update comment.
22368
22369 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22370
22371 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
22372 (fde_needed_for_eh_p): New predicate.
22373 (output_call_frame_info): Use it throughout to decide whether FDEs
22374 are needed for EH purpose.
22375 (dwarf2out_begin_prologue): Reorder assignments.
22376
22377 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22378
22379 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
22380 special case loop->header.
22381 (is_predicated): New.
22382 (if_convertible_loop_p): Call it.
22383
22384 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22385
22386 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
22387 iterator in parameter. Do not generate code during the analysis.
22388 (tree_if_convert_cond_stmt): Removed.
22389 (tree_if_convert_stmt): Removed.
22390 (predicate_bbs): New.
22391 (if_convertible_loop_p): Call predicate_bbs.
22392 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
22393 now contains all the analysis part.
22394
22395 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22396
22397 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
22398 statements in the analysis part.
22399 (tree_if_convert_stmt): Update comment.
22400 (remove_conditions_and_labels): New.
22401 (combine_blocks): Call remove_conditions_and_labels.
22402 (tree_if_conversion): Update comment.
22403
22404 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22405
22406 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
22407 than 2 predecessors or more than 2 successors.
22408
22409 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22410
22411 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
22412 of loops in which the data dependence analysis fails.
22413
22414 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22415
22416 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
22417 CDI_POST_DOMINATORS.
22418 (tree_if_conversion): Same.
22419
22420 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22421
22422 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
22423
22424 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22425
22426 * tree-if-conv.c: Update copyright years. Fix comments.
22427 Fix indentation.
22428
22429 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
22430
22431 * builtin-types.def (BT_INT128): New primitive type.
22432 (BT_UINT128): Likewise.
22433 * c-common.c (c_common_r): Add __int128 keyword.
22434 (c_common_type_for_size): Handle __int128.
22435 (c_common_type_for_mode): Likewise.
22436 (c_common_signed_or_unsigned_type): Likewise.
22437 (c_common_nodes_and_builtins): Add builtin type
22438 if target supports 128-bit integer scalar.
22439 * c-common.h (enum rid): Add RID_INT128.
22440 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
22441 if target supports 128-bit integer scalar.
22442 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
22443 (finish_declspecs): Likewise.
22444 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
22445 (c_token_starts_declspecs): Likewise.
22446 (c_parser_declspecs): Likewise.
22447 (c_parser_attributes): Likewise.
22448 (c_parser_objc_selector): Likewise.
22449 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
22450 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
22451 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
22452 * tree.c (make_or_reuse_type): Likewise.
22453 (make_unsigned_type): Likewise.
22454 (build_common_tree_nodes_2): Likewise.
22455 * tree.h (enum integer_type_kind): Add itk_int128 and
22456 itk_unsigned_int128.
22457 (int128_integer_type_node): New define.
22458 (int128_unsigned_type_node): New define.
22459 * doc/extend.texi: Add documentation about __int128 type.
22460
22461 2010-05-26 Richard Guenther <rguenther@suse.de>
22462
22463 * tree-ssa-sccvn.c (copy_nary): Adjust.
22464 (copy_phis): Rename to ...
22465 (copy_phi): ... this. Adjust.
22466 (copy_references): Rename to ...
22467 (copy_reference): ... this. Adjust.
22468 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
22469 result into the valid table.
22470
22471 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22472
22473 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
22474 insn-config.h, insn-codes.h, recog.h, and optabs.h.
22475
22476 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22477
22478 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
22479
22480 2010-05-26 Richard Guenther <rguenther@suse.de>
22481
22482 * opts.c (common_handle_option): Handle OPT_Ofast.
22483
22484 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22485
22486 * diagnostic.c: Don't include opts.h.
22487 (permissive_error_option): Define.
22488 (diagnostic_initialize): Take n_opts parameter. Allocate memory
22489 for classify_diagnostic. Don't use memset for
22490 classify_diagnostic. Initialize new and recently added fields.
22491 (diagnostic_classify_diagnostic): Use context->n_opts instead of
22492 N_OPTS.
22493 (diagnostic_report_diagnostic): Pass context parameter to
22494 diagnostic_report_warnings_p. Use option_enabled and option_name
22495 hooks from context.
22496 (emit_diagnostic): Use permissive_error_option.
22497 (permerror): Likewise.
22498 * diagnostic.h: Don't include options.h.
22499 (struct diagnostic_context): Add n_opts, opt_permissive,
22500 inhibit_warnings, warn_system_headers, option_enabled and
22501 option_name fields. Change classify_diagnostic to a pointer.
22502 * opts-diagnostic.h: New file.
22503 * opts.c: Include opts-diagnostic.h.
22504 (common_handle_option): Set global_dc fields for -Wfatal-errors,
22505 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
22506 (option_name): New function.
22507 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
22508 (c_common_handle_option): Set global_dc->permissive for
22509 -fpermissive.
22510 * c-common.c (c_cpp_error): Save and restore
22511 global_dc->warn_system_headers, not variable warn_system_headers.
22512 * toplev.c: Include opts-diagnostic.h.
22513 (general_init): Update call to diagnostic_initialize. Set
22514 global_dc->show_column, global_dc->option_enabled and
22515 global_dc->option_name.
22516 (process_options): Don't set global_dc fields here.
22517 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
22518 (diagnostic.o, opts.o, toplev.o): Update dependencies.
22519
22520 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
22521
22522 * config/picochip/picochip.md (movsi): Split a movsi from a
22523 const after reload.
22524
22525 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22526
22527 * ggc-zone.c: Update copyright year.
22528 (poison_region): Mark memory for Valgrind as undefined before
22529 memset () call and inaccessible afterwards.
22530 (ggc_pch_total_size): Change type of i to int.
22531
22532 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22533
22534 * ggc-common.c (ggc_free_overhead): Allow empty slot.
22535
22536 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22537
22538 * ggc-common.c: Update copyright year.
22539 (ggc_rlimit_bound): Remove prototype. Compile only if
22540 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
22541 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
22542 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
22543 (ggc_min_heapsize_heuristic): Likewise.
22544
22545 2010-05-26 Richard Guenther <rguenther@suse.de>
22546
22547 PR rtl-optimization/44164
22548 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
22549 no-common access-path disambiguation.
22550 (indirect_ref_may_alias_decl_p): Adjust.
22551 (indirect_refs_may_alias_p): Likewise.
22552 (refs_may_alias_p_1): Likewise.
22553
22554 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22555
22556 * c-typeck.c: Do not include expr.h.
22557
22558 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22559
22560 * rtl.h (decl_default_tls_model): Move prototype from here...
22561 * output.h: ...to here.
22562 * c-decl.c: Do not include rtl.h.
22563 * c-pragma.c: Likewise.
22564 * c-parser.c: Likewise.
22565 * c-gimplify.c: Likewise. And also not hard-reg-set.
22566 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
22567 FIXME note for it. Add a FIXME note for expr.h.
22568 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
22569 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
22570 defined.
22571
22572 2010-05-26 Jakub Jelinek <jakub@redhat.com>
22573
22574 PR target/44199
22575 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
22576 or total_size is larger than red zone size for non-V4 ABI, emit a
22577 stack_tie resp. frame_tie insn before stack pointer restore.
22578 * config/rs6000/rs6000.md (frame_tie): New insn.
22579
22580 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
22581
22582 * function.h (struct function): Add can_throw_non_call_exceptions bit.
22583 * lto-streamer-in.c (input_function): Stream it in.
22584 * lto-streamer-out.c (output_function): Stream it out.
22585 * function.c (allocate_struct_function): Set it.
22586 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
22587 for flag_non_call_exceptions.
22588 * cfgbuild.c (control_flow_insn_p): Likewise.
22589 (make_edges): Likewise.
22590 * cfgexpand.c (expand_stack_alignment): Likewise.
22591 * combine.c (distribute_notes): Likewise.
22592 * cse.c (cse_extended_basic_block): Likewise.
22593 * except.c (insn_could_throw_p): Likewise.
22594 * gcse.c (simple_mem): Likewise.
22595 * ipa-pure-const.c (check_call): Likewise.
22596 (check_stmt ): Likewise.
22597 * lower-subreg.c (lower-subreg.c): Likewise.
22598 * optabs.c (emit_libcall_block): Likewise.
22599 (prepare_cmp_insn): Likewise.
22600 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
22601 * postreload.c (rest_of_handle_postreload): Likewise.
22602 * reload1.c (reload_as_needed): Likewise.
22603 (emit_input_reload_insns): Likewise.
22604 (emit_output_reload_insns): Likewise.
22605 (fixup_abnormal_edges): Likewise.
22606 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
22607 * store-motion.c (find_moveable_store): Likewise.
22608 * tree-eh.c (stmt_could_throw_p): Likewise.
22609 (tree_could_throw_p): Likewise.
22610 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22611 * config/arm/arm.c (arm_expand_prologue): Likewise.
22612 (thumb1_expand_prologue): Likewise.
22613 * config/rx/rx.md (cbranchsf4): Likewise.
22614 (cmpsf): Likewise.
22615 * config/s390/s390.c (s390_emit_prologue): Likewise.
22616 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
22617 (inline_forbidden_into_p): New predicate.
22618 (expand_call_inline): Use it to forbid inlining.
22619 (tree_can_inline_p): Likewise.
22620
22621 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22622
22623 * config/i386/i386-c.c: Do not include rtl.h.
22624 * config/i386/t-i386: Update dependencies.
22625
22626 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22627
22628 * attribs.c: Do not include rtl.h.
22629 * Makefile.in: Update dependencies.
22630
22631 2010-05-25 Anatoly Sokolov <aesok@post.ru>
22632
22633 * double-int.h (double_int_and): New.
22634 * combine.c (try_combine): Clean up, use double_int_* and
22635 immed_double_int_const functions.
22636
22637 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22638
22639 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
22640 stderr to /dev/null instead of grep -q.
22641 * configure: Regenerate.
22642
22643 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22644
22645 * Makefile.in (EXCEPT_H): Fix typo.
22646
22647 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
22648
22649 * ira-build.c (update_conflict_hard_reg_costs): New.
22650 (ira_build): Call update_conflict_hard_reg_costs.
22651
22652 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22653
22654 PR debug/41371
22655 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
22656 ENABLE_CHECKING.
22657 (intersect_loc_chains): Walk the s2var's loc_chain together
22658 with s1node chain as long as the locations are equal, don't
22659 call find_loc_in_1pdv in that case.
22660
22661 PR debug/42801
22662 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
22663 (copy_bind_expr): ... instead of here.
22664 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
22665 if the block hasn't been remapped.
22666 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
22667 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
22668
22669 2010-05-25 Richard Guenther <rguenther@suse.de>
22670
22671 PR middle-end/44069
22672 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
22673 out-of-bounds array accesses.
22674
22675 2010-05-25 Richard Guenther <rguenther@suse.de>
22676
22677 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
22678 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
22679 (run_gcc): Re-organize to make cleanup easier.
22680
22681 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22682
22683 * config/s390/s390.c (optimization_options): Fix and move the
22684 flag_prefetch_loop_arrays override ...
22685 (override_options): ... here.
22686
22687 2010-05-25 Joseph Myers <joseph@codesourcery.com>
22688
22689 * diagnostic.c: Don't include plugin.h.
22690 (diagnostic_report_diagnostic): Don't handle plugins specially
22691 here. Pass context to internal_error callback.
22692 * diagnostic.h (struct diagnostic_context): Add context parameter
22693 to internal_error callback.
22694 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
22695 * plugin.h (struct diagnostic_context): Declare.
22696 (warn_if_plugins, plugins_internal_error_function): Declare.
22697 * toplev.c (general_init): Set global_dc->internal_error.
22698 * Makefile.in (diagnostic.o): Update dependencies.
22699
22700 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
22701
22702 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
22703 * config/rs6000/t-darwin64: New.
22704 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
22705 build crt2.
22706
22707 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
22708
22709 PR 44203
22710 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
22711 match the original (and intended) behaviour before r159557. This
22712 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
22713 in two ways.
22714
22715 2010-05-25 Richard Guenther <rguenther@suse.de>
22716
22717 * doc/invoke.texi: Document -Ofast.
22718 * target.h (struct gcc_target): Add handle_ofast.
22719 * target-def.h (TARGET_HANDLE_OFAST): Add.
22720 (TARGET_INITIALIZER): Adjust.
22721 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
22722 * common.opt (Ofast): Add.
22723
22724 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22725
22726 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
22727 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
22728
22729 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22730
22731 PR target/43610
22732 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
22733 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
22734 false_rtx. Use false_rtx to compute the correct *ptest for reversed
22735 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
22736
22737 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22738
22739 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
22740 DW_OP_minus with negated offset instead of DW_OP_plus.
22741 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
22742
22743 2010-05-25 Wei Guozhi <carrot@google.com>
22744
22745 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
22746 tst instruction and a new alternative.
22747 * config/arm/constraints.md (Pu): New constraint.
22748
22749 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
22750
22751 * function.c (assign_stack_local_1): Initialize variable
22752 to avoid warning when bootstrapping at -O3.
22753
22754 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
22755
22756 * configure.ac (all_lang_makefiles): Remove everything related to it.
22757 * configure: Regenerate.
22758 * Makefile.in: Fix reference to ada Make-lang.in.
22759 Remove support for LANG_MAKEFILES.
22760
22761 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
22762 Sandra Loosemore <sandra@codesourcery.com>
22763
22764 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
22765 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
22766 description. Add arm_neon_fp16_ok.
22767 (Add Options): Add arm_neon and arm_neon_fp16.
22768
22769 2010-05-24 Joseph Myers <joseph@codesourcery.com>
22770
22771 * diagnostic.c: Don't include flags.h.
22772 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
22773 context parameters. Check flags in the context passed as a parameter.
22774 (diagnostic_build_prefix): Add context parameter. Check
22775 show_column flag in context.
22776 (diagnostic_action_after_output): Check fatal_errors flag in context.
22777 (diagnostic_report_current_module): Check show_column flag in context.
22778 (default_diagnostic_starter): Update call to
22779 diagnostic_build_prefix.
22780 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
22781 (emit_diagnostic): Pass context to permissive_error_kind.
22782 (permerror): Pass context to permissive_error_kind.
22783 * diagnostic.h (struct diagnostic_context): Add show_column,
22784 pedantic_errors, permissive and fatal_errors fields.
22785 (diagnostic_build_prefix): Update prototype.
22786 * langhooks.c
22787 * toplev.c (process_options): Set flags in global_dc from
22788 flag_show_column, flag_pedantic_errors, flag_permissive,
22789 flag_fatal_errors.
22790 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
22791 to diagnostic_build_prefix.
22792 * Makefile.in (diagnostic.o): Update dependencies.
22793
22794 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
22795
22796 * config/i386/ia32intrin.h (__crc32q): Define only if
22797 __SSE4_2__ is defined.
22798
22799 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
22800
22801 PR target/44132
22802 PR middle-end/43602
22803 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
22804 DECL_VISIBILITY_SPECIFIED.
22805 (emutls_decl): Set DECL_PRESERVE_P and copy
22806 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
22807 (emutls_finalize_control_var): New callback.
22808 (emutls_finish): Finalize emutls control variables.
22809 * toplev.c (compile_file): Move the call to emutls_finish ()
22810 before varpool_assemble_pending_decls ().
22811
22812 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
22813
22814 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
22815 added to the preprocessor condition.
22816
22817 2010-05-24 Paul Brook <paul@codesourcery.com>
22818
22819 * gengtype-lex.l: Add HARD_REG_SET.
22820 * expr.c (expand_expr_real_1): Record writes to hard registers.
22821 * function.c (rtl_data): Add asm_clobbers.
22822 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
22823 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
22824 Use crtl->asm_clobbers.
22825
22826 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22827
22828 * doc/makefile.texi (Makefile): Mention stages 'profile'
22829 and 'feedback' for profiledbootstrap.
22830
22831 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
22832
22833 PR target/44245
22834 * config/i386/i386.c (def_builtin): Properly check
22835 OPTION_MASK_ISA_64BIT.
22836
22837 2010-05-23 Joseph Myers <joseph@codesourcery.com>
22838
22839 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
22840 typedefs with different but compatible types. Allow duplicate
22841 typedefs with the same type except for pedantic non-C1X, but give
22842 warning for variably modified types.
22843 * c-typeck.c (tagged_types_tu_compatible_p,
22844 function_types_compatible_p, type_lists_compatible_p,
22845 comptypes_internal): Add parameter different_types_p; set
22846 *different_types_p for different but compatible types. All
22847 callers changed.
22848 (comptypes_check_different_types): New.
22849 * c-tree.h (comptypes_check_different_types): Declare.
22850
22851 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22852
22853 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
22854 * jump.c: Include basic-block.h.
22855 * profile.c: Likewise.
22856 * tree-profile.c: Likewise.
22857 * coverage.c: Likewise.
22858 * basic-block.h (optimize_function_for_size_p): Move to function.h.
22859 (optimize_function_for_speed_p): Likewise.
22860 * function.h (optimize_function_for_size_p,
22861 optimize_function_for_speed_p): Moved here from basic-block.h.
22862 * Makefile.in: Update dependencies.
22863
22864 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22865
22866 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
22867 before calling make; allow override through $MAKE.
22868 * doc/invoke.texi (Optimize Options): Document override.
22869
22870 2010-05-23 Anatoly Sokolov <aesok@post.ru>
22871
22872 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
22873 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22874 (rs6000_mode_dependent_address_ptr): Make static.
22875 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22876 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
22877 Remove.
22878
22879 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
22880
22881 PR target/43869
22882 * config/i386/i386.c: Make sure that the correct regparm is passed.
22883
22884 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22885
22886 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
22887 * sbitmap.c: ...to here to internalize sbitmap element access.
22888 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
22889 Explain why basic-block.h is included.
22890 * function.h: Include tm.h for CUMULATIVE_ARGS.
22891 * Makefile.in: Update dependencies.
22892
22893 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22894
22895 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
22896 New core types.
22897 * sbitmap.h (struct sbitmap_def): Do not typedef here.
22898 * sbitmap.c: Include sbitmap.h.
22899 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
22900 hard-reg-set.h. Split everything related to regsets out from here...
22901 * regset.h: ...to here. New file.
22902 * df.h: Include regset.h and sbitmap.h.
22903 * tree-flow.h: Likewise.
22904 * cfgloop.h: Likewise.
22905 * except.h: Do not include sbitmap.h. Include hashtab.h.
22906 * cgraph.h: Include vec.h and function.h.
22907 * reload.h (struct insn_chain): Change types of live_throughout
22908 and dead_or_set from regset_head to bitmap_head.
22909 (compute_use_by_pseudos): Be defined also if regset.h is not included.
22910 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
22911 spilled_regs from regset_head to bitmap_head to avoid dependency
22912 in regset.h.
22913 * sel-sched-ir.h: Include regset.h.
22914 * reload.c: Include df.h before reload.h.
22915 * caller-save.c: Likewise.
22916 * reload1.c: Likewise.
22917 * ira.c: Likewise.
22918 (mark_elimination): Update type of r to bitmap, consistent with
22919 DF_LR_IN.
22920 * dominance.c: Include bitmap.h.
22921 * modulo-sched.c: Include df.h.
22922 * cfganal.c: Include bitmap.h and sbitmap.h.
22923 * cfgbuild.c: Include sbitmap.h.
22924 * lcm.c: Include sbitmap.h.
22925 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
22926 * domwalk.c: Include sbitmap.h, exclude ggc.h.
22927 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
22928 * cselib.c: Include bitmap.h.
22929 * tree-optimize.c: Include regset.h.
22930 * stmt.c: Include bitmap.h.
22931 * Makefile.in: Update dependencies.
22932
22933 2010-05-22 Jan Hubicka <jh@suse.cz>
22934
22935 * cgraph.h (struct varpool_node): Add same_comdat_group.
22936 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
22937 pointer.
22938 (output_varpool): Update call of lto_output_varpool_node.
22939 (input_varpool): Read same_comdat_group pointer.
22940 (input_varpool_1): Fixup same_comdat_group pointer.
22941 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
22942 group is needed, all are.
22943 * varpool.c (varpool_remove_node): Remove node from same comdat group
22944 linklist too.
22945 (varpool_analyze_pending_decls): Walk same comdat groups.
22946
22947 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22948
22949 * rtl.h (union rtunion_def): Remove rt_bit member.
22950 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
22951 * print-rtl (print_rtx): Do not print the member.
22952 * gengtype.c (adjust_field_rtx_def): Do not handle it.
22953 * gengenrtl.c (type_from_format): Likewise.
22954 (accessor_from_format): Likewise.
22955
22956 2010-05-22 Joseph Myers <joseph@codesourcery.com>
22957
22958 * dbgcnt.c: Include toplev.h instead of errors.h.
22959 * ira-emit.c: Don't include errors.h.
22960 * ira.c: Include toplev.h instead of errors.h.
22961 * lto-compress.c: Include toplev.h instead of errors.h.
22962 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
22963 ira.o, dbgcnt.o): Update dependencies.
22964
22965 2010-05-22 Richard Guenther <rguenther@suse.de>
22966
22967 * gimple.c (gimple_types_compatible_p): Check type qualifications
22968 before merging pointer to complete and pointer to incomplete type.
22969 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
22970 we use our own resolution algorithm. The gold linker plugin
22971 doesn't do the job we want it to do here.
22972
22973 2010-05-22 Anatoly Sokolov <aesok@post.ru>
22974
22975 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22976 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22977 (sparc_mode_dependent_address_p): New function.
22978
22979 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22980
22981 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
22982
22983 * timevar.c: Do not include any core headers.
22984 (timevar_print): De-i18n-ize.
22985 (print_time): Likewise.
22986 * timevar.h (timevar_push, timevar_pop): Make inline functions.
22987
22988 2010-05-21 Joseph Myers <joseph@codesourcery.com>
22989
22990 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
22991 langhooks-def.h.
22992 (diagnostic_initialize): Initialize x_data not last_function.
22993 (diagnostic_report_current_function): Move to tree-diagnostic.c.
22994 (default_diagnostic_starter): Call
22995 diagnostic_report_current_module not
22996 diagnostic_report_current_function.
22997 (diagnostic_report_diagnostic): Initialize x_data not
22998 abstract_origin.
22999 (verbatim): Likewise.
23000 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
23001 x_data.
23002 (struct diagnostic_context): Change last_function to x_data.
23003 (diagnostic_auxiliary_data): Replace with
23004 diagnostic_context_auxiliary_data and
23005 diagnostic_info_auxiliary_data.
23006 (diagnostic_last_function_changed, diagnostic_set_last_function,
23007 diagnostic_report_current_function): Move to tree-diagnostic.h.
23008 (print_declaration, dump_generic_node, print_generic_stmt,
23009 print_generic_stmt_indented, print_generic_expr,
23010 print_generic_decl, debug_c_tree, dump_omp_clauses,
23011 print_call_name, debug_generic_expr, debug_generic_stmt,
23012 debug_tree_chain, default_tree_printer): Move to
23013 tree-pretty-print.h.
23014 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
23015 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
23016 gimple-pretty-print.h.
23017 * pretty-print.c: Don't include tree.h
23018 (pp_base_format): Don't handle %K here.
23019 (pp_base_tree_identifier): Move to tree-pretty-print.c.
23020 * pretty-print.h (text_info): Change abstract_origin to x_data.
23021 (pp_tree_identifier, pp_unsupported_tree,
23022 pp_base_tree_identifier): Move to tree-pretty-print.h.
23023 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
23024 tree-pretty-print.h: New files.
23025 * tree-pretty-print.c: Include tree-pretty-print.h.
23026 (percent_K_format): New. Moved from pretty-print.c.
23027 (pp_base_tree_identifier): Move from pretty-print.c.
23028 * c-objc-common.c: Include tree-pretty-print.h.
23029 (c_tree_printer): Handle %K here.
23030 * langhooks.c: Include tree-diagnostic.h.
23031 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
23032 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
23033 (default_tree_printer): Handle %K using percent_K_format.
23034 (general_init): Use default_tree_diagnostic_starter.
23035 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
23036 (free_lang_data): Use default_tree_diagnostic_starter.
23037 * c-pretty-print.c: Include tree-pretty-print.h.
23038 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23039 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23040 * dwarf2out.c: Include tree-pretty-print.h.
23041 * except.c: Include tree-pretty-print.h.
23042 * gimple-pretty-print.c: Include tree-pretty-print.h and
23043 gimple-pretty-print.h.
23044 * gimplify.c: Include tree-pretty-print.h.
23045 * graphite-poly.c: Include tree-pretty-print.h and
23046 gimple-pretty-print.h.
23047 * ipa-cp.c: Include tree-pretty-print.h.
23048 * ipa-inline.c: Include gimple-pretty-print.h.
23049 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23050 * ipa-pure-const.c: Include gimple-pretty-print.h.
23051 * ipa-struct-reorg.c: Include tree-pretty-print.h and
23052 gimple-pretty-print.h.
23053 * ipa-type-escape.c: Include tree-pretty-print.h.
23054 * print-rtl.c: Include tree-pretty-print.h.
23055 * print-tree.c: Include gimple-pretty-print.h.
23056 * sese.c: Include tree-pretty-print.h.
23057 * tree-affine.c: Include tree-pretty-print.h.
23058 * tree-browser.c: Include tree-pretty-print.h.
23059 * tree-call-cdce.c: Include gimple-pretty-print.h.
23060 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23061 * tree-chrec.c: Include tree-pretty-print.h.
23062 * tree-data-ref.c: Include tree-pretty-print.h and
23063 gimple-pretty-print.h.
23064 * tree-dfa.c: Include tree-pretty-print.h.
23065 * tree-if-conv.c: Include tree-pretty-print.h and
23066 gimple-pretty-print.h.
23067 * tree-inline.c: Include tree-pretty-print.h.
23068 * tree-into-ssa.c: Include tree-pretty-print.h and
23069 gimple-pretty-print.h.
23070 * tree-nrv.c: Include tree-pretty-print.h.
23071 * tree-object-size.c: Include tree-pretty-print.h and
23072 gimple-pretty-print.h.
23073 * tree-outof-ssa.c: Include tree-pretty-print.h and
23074 gimple-pretty-print.h.
23075 * tree-parloops.c: Include tree-pretty-print.h and
23076 gimple-pretty-print.h.
23077 * tree-predcom.c: Include tree-pretty-print.h and
23078 gimple-pretty-print.h.
23079 * tree-scalar-evolution.c: Include tree-pretty-print.h and
23080 gimple-pretty-print.h.
23081 * tree-sra.c: Include tree-pretty-print.h.
23082 * tree-ssa-address.c: Include tree-pretty-print.h.
23083 * tree-ssa-alias.c: Include tree-pretty-print.h.
23084 * tree-ssa-ccp.c: Include tree-pretty-print.h and
23085 gimple-pretty-print.h.
23086 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23087 * tree-ssa-copy.c: Include tree-pretty-print.h and
23088 gimple-pretty-print.h.
23089 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23090 * tree-ssa-dce.c: Include tree-pretty-print.h and
23091 gimple-pretty-print.h.
23092 * tree-ssa-dom.c: Include tree-pretty-print.h and
23093 gimple-pretty-print.h.
23094 * tree-ssa-dse.c: Include gimple-pretty-print.h.
23095 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23096 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23097 * tree-ssa-live.c: Include tree-pretty-print.h and
23098 gimple-pretty-print.h.
23099 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23100 gimple-pretty-print.h.
23101 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23102 gimple-pretty-print.h.
23103 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23104 gimple-pretty-print.h.
23105 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23106 gimple-pretty-print.h.
23107 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23108 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23109 * tree-ssa-operands.c: Include tree-pretty-print.h and
23110 gimple-pretty-print.h.
23111 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
23112 gimple-pretty-print.h.
23113 * tree-ssa-pre.c: Include tree-pretty-print.h and
23114 gimple-pretty-print.h.
23115 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
23116 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
23117 gimple-pretty-print.h.
23118 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
23119 gimple-pretty-print.h.
23120 * tree-ssa-sink.c: Include gimple-pretty-print.h.
23121 * tree-ssa-ter.c: Include tree-pretty-print.h and
23122 gimple-pretty-print.h.
23123 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
23124 * tree-ssa.c: Include tree-pretty-print.h and
23125 gimple-pretty-print.h.
23126 * tree-stdarg.c: Include gimple-pretty-print.h.
23127 * tree-switch-conversion.c: Include gimple-pretty-print.h.
23128 * tree-tailcall.c: Include tree-pretty-print.h and
23129 gimple-pretty-print.h.
23130 * tree-vect-data-refs.c: Include tree-pretty-print.h and
23131 gimple-pretty-print.h.
23132 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
23133 gimple-pretty-print.h.
23134 * tree-vect-loop.c: Include tree-pretty-print.h and
23135 gimple-pretty-print.h.
23136 * tree-vect-patterns.c: Include gimple-pretty-print.h.
23137 * tree-vect-slp.c: Include tree-pretty-print.h and
23138 gimple-pretty-print.h.
23139 * tree-vect-stmts.c: Include tree-pretty-print.h and
23140 gimple-pretty-print.h.
23141 * tree-vectorizer.c: Include tree-pretty-print.h.
23142 * tree-vrp.c: Include tree-pretty-print.h and
23143 gimple-pretty-print.h.
23144 * value-prof.c: Include tree-pretty-print.h and
23145 gimple-pretty-print.h.
23146 * var-tracking.c: Include tree-pretty-print.h.
23147 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
23148 (tree-diagnostic.o): New dependencies.
23149 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
23150 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
23151 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
23152 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
23153 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
23154 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
23155 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
23156 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
23157 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
23158 tree-ssa-address.o, tree-ssa-loop-niter.o,
23159 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
23160 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
23161 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
23162 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
23163 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
23164 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
23165 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
23166 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
23167 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
23168 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
23169 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
23170 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
23171 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
23172 tree-switch-conversion.o, var-tracking.o, value-prof.o,
23173 cfgexpand.o, pretty-print.o): Update dependencies.
23174
23175 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
23176
23177 * tree-ssa-structalias.c: Remove tm_p.h from include.
23178
23179 2010-05-21 Jeff Law <law@redhat.com>
23180
23181 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
23182
23183 2010-05-21 Jason Merrill <jason@redhat.com>
23184
23185 * tree-eh.c (cleanup_is_dead_in): New.
23186 (lower_try_finally): Don't generate a dead cleanup region.
23187 (lower_cleanup): Likewise.
23188
23189 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23190
23191 PR debug/44223
23192 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
23193 unchain each use from the cyclic next_regno_use chain first.
23194
23195 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23196
23197 * real: Do not include gmp.h, mpfr.h, and mpc.h.
23198 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
23199 (real_value_negate, real_value_abs): New prototypes.
23200 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
23201 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
23202 new include file for interface between MPFR and REAL_VALUE_TYPE.
23203 * real.c: Include realmpfr.h.
23204 (real_arithmetic2): Remove legacy function.
23205 (real_value_negate): New.
23206 (real_value_abs): New.
23207 (mfpr_from_real, real_from_mpfr): Move from here...
23208 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
23209 * builtins.c: Include realmpfr.h.
23210 * fold-const.c: Include realmpfr.h.
23211 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
23212 (fold_negate_const): Likewise.
23213 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
23214 * toplev.c: Include realmpfr.h.
23215 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
23216 and real_value_negate.
23217 * fixed-value.c (check_real_for_fixed_mode): Likewise.
23218 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
23219 (vfp3_const_double_index): Likewise.
23220 (arm_print_operand): Likewise.
23221 * Makefile.in: Update dependencies.
23222
23223 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23224
23225 * config/s390/s390.c (override_options): Increase the default
23226 of max-completely-peel-times.
23227
23228 2010-05-21 Julian Brown <julian@codesourcery.com>
23229 Mark Mitchell <mark@codesourcery.com>
23230
23231 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
23232 sibling calls for Thumb-1.
23233 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
23234 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
23235 Thumb-2.
23236 (*call_insn, *call_value_insn): Don't use for Thumb-2.
23237 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
23238 for Thumb-2.
23239 (return): New expander.
23240 (*arm_return): New name for ARM return insn.
23241 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
23242
23243 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
23244
23245 * config.gcc (sparc64-*-rtems*): New target.
23246
23247 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23248
23249 * tree.c (build_function_decl_skip_args): Fix grammar.
23250 (build_function_type_list_1): Fix typos, adjust formatting.
23251
23252 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23253
23254 * tree.h: Include real.h and fixed-value.h as basic datatypes.
23255 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
23256 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
23257 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
23258 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
23259 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
23260 tree-pretty-print.c, tree-loop-distribution.c,
23261 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
23262 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
23263 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
23264 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
23265 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
23266 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
23267 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
23268 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
23269 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
23270 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
23271 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
23272 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
23273 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
23274 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
23275 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
23276 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
23277 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
23278 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
23279 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
23280 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
23281 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
23282 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
23283 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
23284 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
23285 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
23286 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
23287 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
23288 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
23289 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
23290 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
23291 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
23292 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
23293 config/score/score7.c, config/score/score.c, config/arm/arm.c,
23294 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
23295 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
23296 config/bfin/bfin.c: Clean up redundant includes.
23297 * Makefile.in: Update accordingly.
23298
23299 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23300
23301 PR middle-end/44204
23302 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
23303 statement has no arguments.
23304
23305 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
23306
23307 PR/44139
23308 * varasm.c (emutls_decl): Merge attributes to new decl.
23309
23310 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
23311
23312 PR middle-end/44101
23313 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
23314 around the uniquized constructor if its type requires a conversion.
23315
23316 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23317
23318 PR debug/44205
23319 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
23320 at -O0 goto_locus of any of the incoming edges differs from
23321 goto_locus of outgoing edge, or gimple_location of any of the
23322 labels differs.
23323
23324 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
23325
23326 * ira.c (ira_non_ordered_class_hard_regs): Define.
23327 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
23328 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
23329 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
23330 cost of unaligned hard regs when allocating multi-reg pseudos.
23331
23332 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23333
23334 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
23335 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
23336 for TARGET_NO_FLOAT.
23337 * config/mips/mips.c (mips_file_start): Expand conditional expression
23338 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
23339 (mips_override_options): Move -mno-float override -msoft-float and
23340 -mhard-float.
23341 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
23342 Condition(TARGET_SUPPORTS_NO_FLOAT).
23343 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
23344 __mips_no_float here.
23345 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
23346 (TARGET_SUPPORTS_NO_FLOAT): Define.
23347 * config/mips/sdemtk.opt: Delete.
23348
23349 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23350
23351 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
23352
23353 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
23354
23355 PR target/43733
23356 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
23357 * configure: Regenerate.
23358 * config.in: Regenerate.
23359 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
23360 instead of sahf only for 64bit targets.
23361
23362 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23363
23364 PR debug/44178
23365 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
23366 setup_ref_regs for DEBUG_INSNs.
23367
23368 2010-05-20 Jan Hubicka <jh@suse.cz>
23369
23370 PR middle-end/44197
23371 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
23372
23373 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23374
23375 PR bootstrap/43870
23376 * df-scan.c (df_ref_compare): Stabilize sort.
23377
23378 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23379
23380 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
23381 argument. Don't use DW_OP_piece if offset is non-zero,
23382 put offset into second DW_OP_bit_piece argument.
23383 (dw_sra_loc_expr): Adjust callers. For memory expressions
23384 compute offset.
23385
23386 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
23387
23388 PR target/44202
23389 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
23390 settings for 16-bit-constant "addo" alternative.
23391
23392 2010-05-19 James E. Wilson <wilson@codesourcery.com>
23393
23394 * config/mips/mips-dsp.md (add<DSPV:mode>3,
23395 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
23396
23397 PR target/43764
23398 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
23399 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
23400 Use it.
23401
23402 2010-05-19 Joseph Myers <joseph@codesourcery.com>
23403
23404 * diagnostic.c (FLOAT, FFS): Don't undefine.
23405 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
23406 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
23407 include ordering.
23408
23409 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23410
23411 * combine.c (propagate_for_debug): Call make_compound_operation
23412 on the source value.
23413 (try_combine): When implementing a split chosen by find_split_point,
23414 either copy i2src or set it to null. Assert that i2src is not null
23415 before substituting into CALL_INSN_FUNCTION_USAGE.
23416
23417 2010-05-19 Anatoly Sokolov <aesok@post.ru>
23418
23419 * double-int.h (double_int_ior): New function.
23420 * tree.h (build_int_cst_wide_type): Remove.
23421 * tree.c (build_int_cst_wide_type): Remove.
23422 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
23423 of build_int_cst_wide_type.
23424 * stor-layout.c (set_sizetype): (Ditto.).
23425 * dojump.c (do_jump): Use build_int_cstu instead of
23426 build_int_cst_wide_type.
23427
23428 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
23429
23430 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
23431 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
23432 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
23433 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
23434 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
23435 propagate the 'data' argument to copy_tree_r.
23436 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
23437 Propagate 'data' argument to walk_tree.
23438 (copy_if_shared): New function.
23439 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
23440 (unmark_visited): New function.
23441 (unshare_body): Call copy_if_shared instead of doing it manually.
23442 (unvisit_body): Call unmark_visited instead of doing it manually.
23443
23444 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
23445
23446 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
23447 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
23448 * hooks.c: Likewise.
23449 * target-def.h (TARGET_FOLD_BUILTIN): Define to
23450 hook_tree_tree_int_treep_bool_null.
23451 * target.h (struct gcc_target): Update signature of fold_builtin
23452 field.
23453 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
23454 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
23455 instead of the call expression.
23456 (fold_builtin_call_array): Pass n and argarray directly.
23457 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
23458 consing a list.
23459 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
23460 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
23461 `i' and use it in place of `arity'.
23462 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
23463 Dereference `args' directly.
23464 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
23465
23466 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23467
23468 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23469 3dnow, sse3, sse2.
23470 (Directives): Document optional dg-require-effective-target
23471 selector.
23472
23473 2010-05-19 Richard Guenther <rguenther@suse.de>
23474
23475 PR lto/44196
23476 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
23477
23478 2010-05-19 Richard Guenther <rguenther@suse.de>
23479
23480 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
23481 * common.opt (fwhopr=): New.
23482 * opts.c (common_handle_option): Handle OPT_fwhopr.
23483 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
23484 * collect2.c (main): Match -fwhopr*.
23485 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
23486 Execute ltrans stage in parallel when jobs is bigger than 1.
23487
23488 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23489
23490 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
23491 pentiumpro on Solaris 8/x86 with Sun as.
23492 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
23493 hidden alias bug.
23494 (gcc_cv_as_ix86_quad): Check for .quad directive.
23495 * configure: Regenerate.
23496 * config.in: Regenerate.
23497 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
23498
23499 2010-05-19 Martin Jambor <mjambor@suse.cz>
23500
23501 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
23502 also for indirect edges. Actual printing moved...
23503 (ipa_print_node_jump_functions_for_edge): ...here.
23504 (ipa_compute_jump_functions): Renamed to
23505 ipa_compute_jump_functions_for_edge and made static.
23506 (ipa_compute_jump_functions): New function.
23507 (make_edge_direct_to_target): Check if the number of arguments on
23508 the newly direct edge is the same as the number of parametrs of
23509 the callee.
23510 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
23511 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
23512 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
23513 analysis functions unconditionally, call the new
23514 ipa_analyze_params_uses on the node instead of every edge.
23515
23516 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
23517
23518 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
23519 to tree.
23520 (dump_mem_ref): Adopt debug code to handle a tree as step. This
23521 also checks for a constant int vs. non-constant but
23522 loop-invariant steps.
23523 (find_or_create_group): Change the sort algorithm to only consider
23524 steps that are constant ints.
23525 (idx_analyze_ref): Adopt code to handle a tree instead of a
23526 HOST_WIDE_INT for step.
23527 (gather_memory_references_ref): Handle tree instead of int and be
23528 prepared to see a NULL_TREE.
23529 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
23530 prefetches if the step cannot be calculated at compile time.
23531 (issue_prefetch_ref): Issue prefetches for non-constant but
23532 loop-invariant steps.
23533
23534 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23535
23536 Revert:
23537 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23538
23539 * tree.h (build_call_list): Remove.
23540 * tree.c (build_call_list): Remove.
23541
23542 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23543
23544 * tree.h (build_call_list): Remove.
23545 * tree.c (build_call_list): Remove.
23546
23547 2010-05-18 Jan Hubicka <jh@suse.cz>
23548
23549 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
23550
23551 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
23552
23553 PR rtl-optimization/43332
23554 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
23555
23556 2010-05-18 Anatoly Sokolov <aesok@post.ru>
23557
23558 * tree.h (build_int_cstu): Implement as static inline.
23559 * tree.c (build_int_cstu): Remove function.
23560 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
23561 sign extended.
23562
23563 2010-05-18 Richard Guenther <rguenther@suse.de>
23564
23565 PR lto/44143
23566 * lto-wrapper.c (verbose): New variable. Initialize from -v.
23567 (debug): Initialize from -save-temps.
23568 (collect_execute): Print command-line when verbose.
23569 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
23570 for ltrans invocation. Produce -dumpbase flag again.
23571 (process_args): Remove.
23572 (main): Simplify.
23573 * collect2.c (maybe_run_lto_and_relink): Only pass object
23574 files to lto-wrapper.
23575 * gcc.c (LINK_COMMAND_SPEC): Likewise.
23576
23577 2010-05-18 Jan Hubicka <jh@suse.cz>
23578
23579 * opts.c (decode_options): Do not disable whopr at ipa_cp.
23580 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
23581
23582 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23583
23584 PR lto/44184
23585 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
23586 in a GIMPLE_ASM.
23587 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
23588 in a GIMPLE_ASM.
23589
23590 2010-05-18 Jakub Jelinek <jakub@redhat.com>
23591
23592 PR debug/41371
23593 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
23594 rtx_equal_p inline.
23595
23596 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23597
23598 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
23599 lto-macho as lto_binary_reader.
23600
23601 * darwin.c (darwin_asm_named_section): Do not add assembler comment
23602 after .section directive; just print it before the directive instead.
23603
23604 2010-05-17 Jan Hubicka <jh@suse.cz>
23605
23606 * cgraph.c (cgraph_create_virtual_clone): Only check
23607 versionable_function_p when not in wpa and checking is enabled.
23608 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
23609 there are no more functions to materialize.
23610
23611 2010-05-17 Jan Hubicka <jh@suse.cz>
23612
23613 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
23614 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
23615 New functions.
23616 (output_cgraph): Call output_cgraph_opt_summary.
23617 (input_cgrpah): Call input_cgraph_opt_summary.
23618 (output_cgraph_opt_summary_p, output_node_opt_summary,
23619 input_node_opt_summary, input_cgraph_opt_section): New functions.
23620 * lto-section-in.c (lto_section_name): Add cgraphopt.
23621 * tree-inline.c (tree_function_versioning): Handle parm_num.
23622 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
23623 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
23624
23625 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23626
23627 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
23628 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
23629 the insn to prefetch ratio heuristic to loops with known trip count.
23630
23631 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23632
23633 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
23634 (schedule_prefetches): Do not generate a prefetch if the unroll factor
23635 is far from what is required by the prefetch.
23636
23637 2010-05-17 Jan Hubicka <jh@suse.cz>
23638
23639 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
23640 (ipcp_estimate_growth): Likewise.
23641 (ipcp_const_param_count): Likewise.
23642 (ipcp_insert_stage): Likewise.
23643 * ipa-prop.c (visit_load_for_mod_analysis): New function.
23644 (visit_store_addr_for_mod_analysis): Set used flag.
23645 (ipa_detect_param_modifications): Set used flag for SSE params;
23646 update use of walk_stmt_load_store_addr_ops.
23647 (ipa_print_node_params): Print used flag.
23648 (ipa_write_node_info): Stream used flag.
23649 (ipa_read_node_info): Likewise.
23650 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
23651 (ipa_is_param_used): New function.
23652 (lto_ipa_fixup_call_notes): Remove unused declaration.
23653
23654 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23655
23656 PR target/44074
23657 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
23658 * configure: Regenerate.
23659 * config.in: Regenerate.
23660 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
23661 !HAVE_AS_IX86_REP_LOCK_PREFIX.
23662 Don't emit whitespace.
23663 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
23664 (*rep_movsi): Likewise.
23665 (*rep_movsi_rex64): Likewise.
23666 (*rep_movqi): Likewise.
23667 (*rep_movqi_rex64): Likewise.
23668 (*rep_stosdi_rex64): Likewise.
23669 (*rep_stossi): Likewise.
23670 (*rep_stossi_rex64): Likewise.
23671 (*rep_stosqi): Likewise.
23672 (*rep_stosqi_rex64): Likewise.
23673 (*cmpstrnqi_nz_1): Use {%;} after repz.
23674 (*cmpstrnqi_nz_rex_1): Likewise.
23675 (*cmpstrnqi_1): Likewise.
23676 (*cmpstrnqi_rex_1): Likewise.
23677 (*strlenqi_1): Use {%;} after repnz.
23678 (*strlenqi_rex_1): Likewise.
23679 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
23680 (*sync_compare_and_swap<mode>): Likewise.
23681 (sync_double_compare_and_swap<mode>): Likewise.
23682 (*sync_double_compare_and_swapdi_pic): Likewise.
23683 (sync_old_add<mode>): Likewise.
23684 (sync_add<mode>): Likewise.
23685 (sync_sub<mode>): Likewise.
23686 (sync_<code><mode>): Likewise.
23687
23688 2010-05-17 Martin Jambor <mjambor@suse.cz>
23689
23690 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
23691 otr_token and polymorphic.
23692 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
23693 (cgraph_clone_edge): Copy the above fields.
23694 * tree.c (get_binfo_at_offset): New function.
23695 * tree.h (get_binfo_at_offset): Declare.
23696 * ipa-prop.h (enum jump_func_type): Added known_type jump function
23697 type, reordered items, updated comments.
23698 (union jump_func_value): Added base_type field, reordered fields.
23699 (enum ipa_lattice_type): Moved down in the file.
23700 (struct ipa_param_descriptor): New field polymorphic.
23701 (ipa_is_param_polymorphic): New function.
23702 * ipa-prop.c: Include gimple.h and gimple-fold.h.
23703 (ipa_print_node_jump_functions): Print known type jump functions.
23704 (compute_complex_pass_through): Renamed to...
23705 (compute_complex_assign_jump_func): this.
23706 (compute_complex_ancestor_jump_func): New function.
23707 (compute_known_type_jump_func): Likewise.
23708 (compute_scalar_jump_functions): Create known type and complex ancestor
23709 jump functions.
23710 (ipa_note_param_call): New parameter polymorphic, set the corresponding
23711 flag in the call note accordingly.
23712 (ipa_analyze_call_uses): Renamed to...
23713 (ipa_analyze_indirect_call_uses): this. New parameter target, define
23714 variable var only in the block where it is used.
23715 (ipa_analyze_virtual_call_uses): New function.
23716 (ipa_analyze_call_uses): Likewise.
23717 (combine_known_type_and_ancestor_jfs): Likewise.
23718 (update_jump_functions_after_inlining): Implemented handling of a
23719 number of new jump function types combination.
23720 (print_edge_addition_message): Removed.
23721 (make_edge_direct_to_target): New function.
23722 (try_make_edge_direct_simple_call): Likewise.
23723 (try_make_edge_direct_virtual_call): Likewise.
23724 (update_call_notes_after_inlining): Renamed to...
23725 (update_indirect_edges_after_inlining): this. Moved edge creation for
23726 indirect calls to try_make_edge_direct_simple_call, also calls
23727 try_make_edge_direct_virtual_call for virtual calls.
23728 (ipa_print_node_params): Changed the header message.
23729 (ipa_write_jump_function): Stream also known type jump functions.
23730 (ipa_read_jump_function): Likewise.
23731 (ipa_write_indirect_edge_info): Stream new fields in
23732 cgraph_indirect_call_info.
23733 (ipa_read_indirect_edge_info): Likewise.
23734 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
23735 GIMPLE_FOLD_H.
23736
23737 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23738
23739 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
23740
23741 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23742
23743 * tree.h (CALL_EXPR_ARGS): Delete.
23744 (call_expr_arglist): Delete.
23745 * tree.c (call_expr_arglist): Delete.
23746 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
23747 targetm.fold_builtin.
23748 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
23749 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
23750 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
23751 arglist parameter. Use CALL_EXPR_ARG.
23752 (picochip_expand_builtin_3op): Likewise.
23753 (picochip_expand_builtin_2opvoid): Likewise.
23754 (picochip_expand_array_get): Likewise.
23755 (picochip_expand_array_put): Likewise.
23756 (picochip_expand_array_testport): Likewise.
23757 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
23758 rather than arglist.
23759 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
23760 CALL_EXPR_ARGS.
23761 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
23762 than TREE_VALUE and TREE_CHAIN.
23763 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
23764 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
23765 the arglist.
23766
23767 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23768
23769 PR bootstrap/42347
23770 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
23771 to have no fallthru edge.
23772
23773 PR middle-end/44102
23774 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
23775 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
23776 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
23777 add BARRIER after previous bb if needed.
23778
23779 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23780
23781 * tree.c (build_function_type_list_1): Remove bogus assert condition.
23782
23783 2010-05-17 Alan Modra <amodra@gmail.com>
23784
23785 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
23786 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
23787 with copy_reg rtx param.
23788 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
23789 Correct cases where code for ABI_V4 did not initialise the reg
23790 used to access frame. Also leave frame_reg_rtx as sp for large
23791 frames that save no regs.
23792
23793 2010-05-17 Martin Jambor <mjambor@suse.cz>
23794
23795 PR middle-end/44133
23796 * tree-sra.c (create_access_replacement): New parameter rename, mark
23797 the replaement for renaming only when it is true.
23798 (get_access_replacement): Pass true in the rename parameter of
23799 create_access_replacement.
23800 (get_unrenamed_access_replacement): New function.
23801 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
23802 replacement declaration from it.
23803
23804 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
23805
23806 * function.c (try_fit_stack_local, add_frame_space): New static
23807 functions.
23808 (assign_stack_local_1): Use them. Look for opportunities to use
23809 space previously wasted on alignment.
23810 * function.h (struct frame_space): New.
23811 (struct rtl_data): Add FRAME_SPACE_LIST member.
23812 * reload1.c (something_was_spilled): New static variable.
23813 (alter_reg): Set it.
23814 (reload): Test it in addition to testing if the frame size changed.
23815
23816 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
23817
23818 * config/s390/s390.c: Define sane prefetch settings and activate
23819 flag_prefetch_loop_arrays on -O3.
23820 * config/s390/s390.h: Declare that read can use write prefetch.
23821
23822 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23823
23824 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
23825 build.
23826
23827 2010-05-16 Jan Hubicka <jh@suse.cz>
23828
23829 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
23830 function body; do not check stdarg field of struct function.
23831
23832 2010-05-16 Jan Hubicka <jh@suse.cz>
23833
23834 * cgraph.c (dump_cgraph_node): Dump versionable flag.
23835 * cgraph.h (cgraph_local_info): Add versionable flag.
23836 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
23837 (ipcp_versionable_function_p): Use it.
23838 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
23839 versionable flag.
23840
23841 2010-05-16 Jan Hubicka <jh@suse.cz>
23842
23843 * cgraph.c (cgraph_clone_node): Take decl argument and insert
23844 clone into hash when it is different from orig.
23845 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
23846 * cgraph.h (cgraph_clone_node): Update prototype.
23847 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
23848 (lto_cgraph_encoder_delete): Delete body map.
23849 (lto_cgraph_encoder_size): Move to header.
23850 (lto_cgraph_encoder_encode_body_p,
23851 lto_set_cgraph_encoder_encode_body): New.
23852 (lto_output_node): Do not take written_decls argument; output clone_of
23853 pointer.
23854 (add_node_to): Add include_body_argument; call
23855 lto_set_cgraph_encoder_encode_body on master of the clone.
23856 (add_references): Update use of add_node_to.
23857 (compute_ltrans_boundary): Likewise.
23858 (output_cgraph): Do not create written_decls bitmap.
23859 (input_node): Take nodes argument; stream in clone_of correctly.
23860 (input_cgraph_1): Update use of input_node.
23861 * lto-streamer-out.c (lto_output): Use encoder info to decide
23862 what bodies to output.
23863 * ipa-inline.c (cgraph_clone_inlined_nodes,
23864 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
23865 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
23866 (lto_cgraph_encoder_size): Define here.
23867 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
23868 Declare.
23869
23870 2010-05-16 Richard Guenther <rguenther@suse.de>
23871
23872 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
23873 -fipa-type-escape.
23874 * ipa-type-escape.c (gate_type_escape_vars): Run when
23875 -fipa-struct-reorg runs.
23876 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
23877 * common.opt (fipa-type-escape): Remove.
23878
23879 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23880
23881 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
23882 (decode_options): Likewise.
23883 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
23884
23885 2010-05-16 Jan Hubicka <jh@suse.cz>
23886
23887 * ipa.c (function_and_variable_visibility): Also bring local all
23888 aliases.
23889
23890 2010-05-16 Richard Guenther <rguenther@suse.de>
23891
23892 * alias.c (nonoverlapping_memrefs_p): Remove use of
23893 IPA type-escape information.
23894
23895 2010-05-16 Joseph Myers <joseph@codesourcery.com>
23896
23897 * c-common.c (c_common_reswords): Add _Static_assert for C.
23898 * c-parser.c (c_token_starts_declaration,
23899 c_parser_next_token_starts_declaration,
23900 c_parser_static_assert_declaration_no_semi,
23901 c_parser_static_assert_declaration): New.
23902 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
23903 Handle static assertions if static_assert_ok.
23904 (c_parser_external_declaration, c_parser_declaration_or_fndef,
23905 c_parser_compound_statement_nostart, c_parser_label,
23906 c_parser_for_statement, c_parser_objc_methodprotolist,
23907 c_parser_omp_for_loop): All callers of
23908 c_parser_declaration_or_fndef changed.
23909 (c_parser_struct_declaration): Handle static assertions.
23910 (c_parser_compound_statement_nostart): Use
23911 c_parser_next_token_starts_declaration and
23912 c_token_starts_declaration to detect start of declarations.
23913 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
23914 Likewise.
23915
23916 2010-05-16 Anatoly Sokolov <aesok@post.ru>
23917
23918 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23919 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23920 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23921 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23922 (mmix_function_outgoing_value): Rename to...
23923 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
23924 (mmix_function_value_regno_p): Make static.
23925 (mmix_libcall_value): New function.
23926 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
23927 mmix_function_value_regno_p): Remove declaration.
23928
23929 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23930
23931 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
23932 BUILT_IN_ALLOCA if stack checking is enabled.
23933
23934 2010-05-16 Richard Guenther <rguenther@suse.de>
23935
23936 * var-tracking.c (vars_copy_1): Inline ...
23937 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
23938 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
23939 (variable_merge_over_cur): Adjust. Merge asserts.
23940 (variable_merge_over_src): Likewise.
23941 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
23942 (variable_post_merge_new_vals): Merge asserts.
23943 (variable_post_merge_perm_vals): Likewise.
23944 (find_mem_expr_in_1pdv): Likewise.
23945 (dataflow_set_different_value): Remove.
23946 (onepart_variable_different_p): Merge asserts.
23947 (variable_different_p): Likewise.
23948 (dataflow_set_different_1): Inline ...
23949 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
23950 (emit_notes_for_differences_1): Merge asserts.
23951
23952 2010-05-16 Richard Guenther <rguenther@suse.de>
23953
23954 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
23955 * optabs.c (libfunc_decl_hash): Likewise.
23956 * varasm.c (emutls_decl): Likewise.
23957
23958 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
23959
23960 * c-decl.c: Don't include gimple.h.
23961 (merge_decls): Do not copy gimple_body.
23962
23963 2010-05-15 Jason Merrill <jason@redhat.com>
23964
23965 * c.opt: Add -fnothrow-opt.
23966
23967 2010-05-15 Jan Hubicka <jh@suse.cz>
23968
23969 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
23970 analyzed.
23971 * passes.c (ipa_write_summaries): Write all analyzed nodes.
23972
23973 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
23974
23975 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
23976 * Makefile.in: Add it.
23977 Fix all other Makefile dependencies for changes below.
23978 * tree.h: Include it instead of defining VEC primitives here.
23979 * gimple.h: Likewise.
23980 * rtl.h: Likewise.
23981 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
23982 * except.h: Include vecir.h, break dependence on tree.h.
23983
23984 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
23985 Move from here...
23986 * tree-iterator.c: ...to here.
23987 * tree-iterator.h: Fix file introduction comment. Add extern markers.
23988
23989 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
23990 tm_p.h.
23991 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
23992 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
23993 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
23994 tree-mudflap.h, and target.h.
23995 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
23996 predict.h, tree-inline.h, gimple.h, and langhooks.h.
23997 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
23998 Add FIXME for why gimple.h is still included (should be unnecessary
23999 since GCC 4.5 gimplification unit-at-a-time).
24000 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
24001 * c-pragma.c: Add FIXME for why function.h needs to be included just
24002 for cfun, at front-end level.
24003 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
24004 Do not include ggc.h, but include vecprim.h for VEC(char).
24005 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
24006 Explain why target.h is included.
24007 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
24008 Explain why gimple.h is included.
24009 * c-ppoutput.c: Do not include tm.h.
24010 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
24011 * c-parses.c: Explain why rtl.h is included, and that this (and only
24012 this) is also why tm.h must be included.
24013 Do not include except.h.
24014 * c-lang.c: Do not include ggc.h.
24015
24016 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
24017
24018 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
24019
24020 2010-05-15 Joseph Myers <joseph@codesourcery.com>
24021
24022 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
24023 unions by default if those structs and unions have no tags. Do
24024 not condition anonymous struct and unions handling on flag_iso.
24025 Allow anonymous structs and unions for C1X.
24026 (finish_struct): Do not diagnose lack of named fields when
24027 anonymous structs and unions present for C1X. Accept flexible
24028 array members in structure with anonymous structs or unions but no
24029 directly named fields.
24030 * doc/extend.texi (Unnamed Fields): Update.
24031
24032 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
24033
24034 * gimple.h (compare_field_offset): Rename into...
24035 (gimple_compare_field_offset): ...this.
24036 * gimple.c (compare_field_offset): Rename into...
24037 (gimple_compare_field_offset): ...this. Compare the full access if
24038 the offset is self-referential.
24039 (gimple_types_compatible_p): Adjust for above renaming.
24040 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
24041 DECL_NONADDRESSABLE_P flag of fields before merging them.
24042
24043 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
24044
24045 * tree.h (ctor_to_list): Delete.
24046 * tree.c (ctor_to_list): Delete.
24047
24048 2010-05-15 Jan Hubicka <jh@suse.cz>
24049
24050 * ipa-reference.c: Include toplev.h
24051 (is_proper_for_analysis): Only add to all_module_statics
24052 if it is allocated.
24053 (write_node_summary_p, stream_out_bitmap,
24054 ipa_reference_write_optimization_summary,
24055 ipa_reference_read_optimization_summary): New.
24056 (struct ipa_opt_pass_d pass_ipa_reference): Add
24057 optimization summary streaming.
24058 * lto-cgraph.c (referenced_from_this_partition_p,
24059 reachable_from_this_partition_p): New functions.
24060 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24061 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24062 * opts.c (decode_options): Enable ipa_reference.
24063 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24064 * lto-streamer.h (referenced_from_this_partition_p,
24065 reachable_from_this_partition_p): Declare.
24066
24067 2010-05-15 Richard Guenther <rguenther@suse.de>
24068
24069 PR tree-optimization/44038
24070 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24071 taking the address of a V_C_E of a constant.
24072
24073 2010-05-14 Jan Hubicka <jh@suse.cz>
24074
24075 * tree.h (memory_identifier_string): Remove.
24076 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24077 (ipa_reference_global_vars_info_d): Remove statics_not_read and
24078 statics_not_written.
24079 (ipa_reference_optimization_summary_d): New structure.
24080 (ipa_reference_optimization_summary_t): New type and vector.
24081 (ipa_reference_vars_info_d): Embedd structures instead of using
24082 pointers.
24083 (reference_vars_to_consider): Remove out of GGC space.
24084 (module_statics_escape): Remove.
24085 (global_info_obstack): Rename to ...
24086 (optimization_summary_obstack): ... this one.
24087 (initialization_status_t): Remove.
24088 (memory_identifier_string): Remove.
24089 (get_reference_vars_info): Fix indenting.
24090 (set_reference_vars_info): Likewise.
24091 (get_reference_optimization_summary): New.
24092 (set_reference_optimization_summary): New.
24093 (get_global_reference_vars_info): Remove.
24094 (ipa_reference_get_read_global): Remove.
24095 (ipa_reference_get_written_global): Remove.
24096 (ipa_reference_get_not_read_global): Update.
24097 (ipa_reference_get_not_written_global): Update.
24098 (is_proper_for_analysis): Outlaw addressable.
24099 (propagate_bits): Update for new datastructures.
24100 (analyze_variable): Remove.
24101 (init_function_info): Update for new datastructures.
24102 (clean_function_local_data): Remove.
24103 (clean_function): Remove.
24104 (copy_global_bitmap): Use optimizations_summary_obstack.
24105 (duplicate_node_data): Duplicate optimization summary only.
24106 (remove_node_data): Remove optimization summary only.
24107 (generate_summary): Do not analyze variables; do not compute
24108 module_statics_escape; do not prune solutions by it.
24109 (read_write_all_from_decl): Fix typos in comments.
24110 (propagate): Doscover readonly and nonaddressable first;
24111 update for new datastructures; share global bitmaps.
24112 * ipa-reference.h (ipa_reference_get_read_global,
24113 ipa_reference_get_written_global): Remove.
24114 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
24115 * Makefile.in: Remove ipa-refereference from GT files.
24116
24117 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24118
24119 PR debug/44112
24120 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
24121 for all SYMBOL_REF_DECLs.
24122
24123 2010-05-14 Jan Hubicka <jh@suse.cz>
24124
24125 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
24126 (varpool_all_refs_explicit_p): New inline function.
24127 * ipa-reference.c: Update comment.
24128 (module_statics_written): Remove.
24129 (get_static_decl): Remove.
24130 (ipa_init): Do not initialize module_statics_written.
24131 (analyze_function): Likewise.
24132 (generate_summary): Likewise; do not compute module_statics_readonly
24133 and do not update variable flags.
24134 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
24135 * ipa.c: Inlucde flags.h
24136 (cgraph_local_node_p): New.
24137 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
24138 promote functions to local.
24139 (ipa_discover_readonly_nonaddressable_vars): New function.
24140 (function_and_variable_visibility): Use cgraph_local_node_p.
24141 * varpool.c (varpool_finalize_decl): Set force_output for
24142 DECL_PRESERVE_P vars.
24143
24144 2010-05-14 Jan Hubicka <jh@suse.cz>
24145
24146 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
24147
24148 2010-05-14 Richard Guenther <rguenther@suse.de>
24149
24150 PR tree-optimization/44119
24151 * tree-ssa-pre.c (eliminate): Properly mark replacement of
24152 a PHI node necessary.
24153
24154 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
24155
24156 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
24157
24158 2010-05-14 Jason Merrill <jason@redhat.com>
24159
24160 PR c++/44127
24161 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
24162 (gimple_call_set_nothrow): New.
24163 * gimple.c (gimple_build_call_from_tree): Call it.
24164 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
24165
24166 PR c++/44127
24167 * gimplify.c (gimplify_seq_add_stmt): No longer static.
24168 * gimple.h: Declare it.
24169 * gimple.c (gimple_build_eh_filter): No ops.
24170
24171 2010-05-14 Jan Hubicka <jh@suse.cz>
24172
24173 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
24174 nodes already in queue.
24175 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
24176 re-enqueueing node.
24177
24178 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24179
24180 PR debug/44136
24181 * cfgexpand.c (expand_debug_expr): If non-memory op0
24182 has BLKmode, return NULL.
24183
24184 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
24185
24186 * config.gcc: Add support for --with-cpu option for bdver1.
24187 * config/i386/i386.h (TARGET_BDVER1): New macro.
24188 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
24189 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24190 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
24191 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24192 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
24193 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
24194 (processor_type): Add PROCESSOR_BDVER1.
24195 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
24196 processor_type in config/i386/i386.h.
24197 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
24198 movaps <reg, reg> instead of movapd <reg, reg> when replacing
24199 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
24200 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24201 to emit packed xor instead of packed double/packed integer
24202 xor for SSE and AVX when moving a zero value.
24203 * config/i386/sse.md: Add check for
24204 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
24205 movapd/movdqa for SSE and AVX.
24206 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
24207 single logical operations i.e and, or and xor instead of packed double
24208 logical operations for SSE and AVX.
24209 * config/i386/i386-c.c (ix86_target_macros_internal):
24210 Add PROCESSOR_BDVER1.
24211 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
24212 (has_fma4, has_xop): New.
24213 * config/i386/i386.c (bdver1_cost): New variable.
24214 (m_BDVER1): New macro.
24215 (m_AMD_MULTIPLE): Add m_BDVER1.
24216 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
24217 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
24218 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
24219 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
24220 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
24221 x86_tune_sse_partial_reg_dependency,
24222 x86_tune_sse_unaligned_load_optimal,
24223 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
24224 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
24225 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
24226 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
24227 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
24228 Enable/disable for bdver1.
24229 (processor_target_table): Add bdver1_cost.
24230 (cpu_names): Add bdver1.
24231 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
24232 processor_alias_table.
24233 (ix86_expand_vector_move_misalign): Change.
24234 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
24235 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
24236 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
24237 of movupd/movdqu for SSE and AVX.
24238 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
24239 (ix86_tune_adjust_cost): Add code for bdver1.
24240 (standard_sse_constant_opcode): Add check for
24241 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
24242 of packed double xor for SSE and AVX.
24243
24244 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
24245
24246 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
24247 result to unsigned.
24248
24249 2010-05-14 Tristan Gingold <gingold@adacore.com>
24250
24251 * toplev.c (default_debug_hooks): Remove this variable.
24252 (process_options): Remove assignments to default_debug_hooks.
24253
24254 2010-05-14 Martin Jambor <mjambor@suse.cz>
24255
24256 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
24257 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
24258 * langhooks.h (struct lang_hooks_for_decls): Removed field
24259 fold_obj_type_ref.
24260 * tree.c (free_lang_data): Remove assignment to
24261 lang_hooks.fold_obj_type_ref.
24262 * tree.def (OBJ_TYPE_REF): Update comment.
24263
24264 2010-05-14 Richard Guenther <rguenther@suse.de>
24265
24266 PR tree-optimization/44124
24267 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
24268
24269 2010-05-14 Alan Modra <amodra@gmail.com>
24270
24271 PR target/44075
24272 * config/rs6000/rs6000.c (struct machine_function): Reorder
24273 fields for better packing. Add lr_save_state.
24274 (rs6000_ra_ever_killed): Return lr_save_state if set.
24275 (rs6000_emit_eh_reg_restore): Set lr_save_state.
24276
24277 2010-05-13 Jan Hubicka <jh@suse.cz>
24278
24279 * varpool.c (decide_is_variable_needed): Drop code checking
24280 TREE_SYMBOL_REFERENCED.
24281
24282 2010-05-13 Jan Hubicka <jh@suse.cz>
24283
24284 * final.c (output_addr_const): Do not call mark_decl_referenced.
24285 * cgraphunit.c (process_function_and_variable_attributes): Use
24286 mark_needed_node dirrectly.
24287 (assemble_thunk): Do not call mark_decl_referenced.
24288
24289 2010-05-13 Anatoly Sokolov <aesok@post.ru>
24290
24291 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
24292
24293 2010-05-13 Jeff Law <law@redhat.com>
24294
24295 * ira-conflicts.c (print_allocno_conflicts): New function broken out
24296 from...
24297 (print_conflicts): Call print_allocno_conflicts.
24298
24299 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24300
24301 PR debug/44104
24302 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
24303 if it is NULL.
24304
24305 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
24306
24307 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
24308 t-mingw-w64 or t-mingw-w32 for multilib configuration.
24309 * config/i386/t-mingw-w32: New.
24310 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
24311
24312 2010-05-13 Martin Jambor <mjambor@suse.cz>
24313
24314 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
24315 gimple-fold.c).
24316 * gimple-fold.c (get_base_binfo_for_type): New function.
24317 (gimple_get_relevant_ref_binfo): Likewise.
24318 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24319 (gimple_fold_obj_type_ref): Likewise.
24320 (fold_gimple_call): Simplify condition for folding virtual calls
24321 and call gimple_fold_obj_type_ref.
24322 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
24323 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24324
24325 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
24326
24327 * config/rs6000/rs6000-protos.h
24328 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
24329 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
24330 (rs6000_debug_mode_dependent_address)
24331 (rs6000_mode_dependent_address_ptr): Likewise.
24332
24333 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24334
24335 PR debug/43983
24336 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
24337 by SRA.
24338 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
24339 * tree-sra.c (create_access_replacement): Call unshare_expr before
24340 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
24341 * dwarf2out.c: Include tree-flow.h.
24342 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
24343 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
24344 Handle DW_OP_bit_piece.
24345 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
24346 construct_piece_list, adjust_piece_list): New functions.
24347 (add_var_loc_to_decl): Handle SRA optimized variables.
24348 Adjust for var_loc_note to loc field renaming.
24349 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
24350 in VAR_LOCATION note.
24351 (new_loc_descr_op_bit_piece): New function.
24352 (dw_sra_loc_expr): New function.
24353 (dw_loc_list): Use it. Don't handle the last range after the
24354 loop, handle it inside of the loop. Adjust for var_loc_note
24355 to loc field renaming.
24356 (add_location_or_const_value_attribute): Only special case
24357 single entry loc lists if loc is NOTE_P. Adjust for
24358 var_loc_note to loc field renaming.
24359 (dwarf2out_var_location): Don't set newloc->var_loc_note
24360 and newloc->next here.
24361
24362 2010-05-12 Jan Hubicka <jh@suse.cz>
24363
24364 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
24365 flag.
24366 * cgraph.h (cgraph_only_called_directly_p,
24367 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
24368 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
24369 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
24370 (assemble
24371 * ipa.c (cgraph_remove_unreachable_nodes): Use
24372 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
24373 flags.
24374 * tree-inline.c (copy_bb): Check address_taken flag.
24375 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
24376 externally_visible flag.
24377
24378 2010-05-12 Jason Merrill <jason@redhat.com>
24379
24380 PR bootstrap/44048
24381 PR target/44099
24382 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
24383 * sdbout.c (plain_type_1): Likewise.
24384 * dwarf2out.c (is_base_type): Likewise.
24385 (gen_type_die_with_usage): Likewise. Generate
24386 DW_TAG_unspecified_type for any LANG_TYPE.
24387
24388 2010-05-12 Jan Hubicka <jh@suse.cz>
24389
24390 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
24391 indrect edges too.
24392 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
24393 (cgraph_clone_edge): Update.
24394 (cgraph_node_remove_callees): Remove indirect calls too.
24395 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
24396 (cgraph_create_indirect_edge): Update prototype.
24397 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
24398 is_proper_for_analysis.
24399 (add_new_function, visited_nodes, function_insertion_hook_holder,
24400 get_local_reference_vars_info, mark_address_taken, mark_address,
24401 mark_load, mark_store, check_asm_memory_clobber, check_call,
24402 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
24403 (ipa_init): Do not initialize visited_nodes;
24404 function_insertion_hook_holder.
24405 (analyze_variable): Rewrite.
24406 (analyze_function): Rewrite.
24407 (copy_local_bitmap): Remove.
24408 (duplicate_node_dat): Do not duplicate local info.
24409 (generate_summary): Simplify to only walk cgraph.
24410 (write_node_summary_p, ipa_reference_write_summary,
24411 ipa_reference_read_summary): Remove.
24412 (propagate): Do not remove function insertion;
24413 generate summary.
24414 (pass_ipa_reference): NULLify summary handling fields.
24415 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
24416 (input_edge): Input ecf_flags.
24417 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
24418 (update_indirect_edges_after_inlining): Ignore edges with unknown
24419 param.
24420
24421 2010-05-12 Sriraman Tallam <tmsriram@google.com>
24422
24423 * implicit-zee.c: New file.
24424 * tree-pass.h (pass_implicit_zee): Declare.
24425 * passes.c (init_optimization_passes): Add zee pass.
24426 * common.opt (fzee): New flag.
24427 * timevar.def (TV_ZEE): Define.
24428 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
24429 and beyond.
24430 * Makefile.in (implicit-zee.o): Add new build file.
24431
24432 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24433 Nathan Froyd <froydnj@codesourcery.com>
24434
24435 * c-common.c (sync_resolve_params): Remove write-only variable.
24436
24437 2010-05-12 Anatoly Sokolov <aesok@post.ru>
24438
24439 * target.h (struct gcc_target): Add mode_dependent_address_p field.
24440 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24441 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
24442 * targhooks.c (default_mode_dependent_address_p): New function.
24443 * targhooks.h (default_mode_dependent_address_p): Declare function.
24444 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24445 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
24446 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
24447 target hook. Change return type to bool.
24448 * recog.h (mode_dependent_address_p): Change return type to bool.
24449
24450 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24451 Nathan Froyd <froydnj@codesourcery.com>
24452
24453 * tree-mudflap.c (build_function_type_0, build_function_type_1,
24454 build_function_type_2, build_function_type_3): Remove.
24455 (mudflap_init): Use build_function_type_list.
24456
24457 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24458 Nathan Froyd <froydnj@codesourcery.com>
24459
24460 * coverage.c (build_fn_info_value): Call build_constructor instead of
24461 build_constructor_from_list.
24462 (build_ctr_info_value): Likewise.
24463 (build_gcov_info): Likewise.
24464
24465 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
24466
24467 * tree.c (build_constructor): Compute TREE_CONSTANT for the
24468 resultant constructor.
24469 (build_constructor_single): Don't set TREE_CONSTANT.
24470 (build_constructor_from_list): Don't compute TREE_CONSTANT.
24471
24472 2010-05-12 Jan Hubicka <jh@suse.cz>
24473
24474 * cgraph.h (struct varpool_node): Add aux.
24475 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
24476 * varpool.c (varpool_remove_node): Do not remove initializer.
24477 (varpool_reset_queue): Export.
24478 (varpool_finalize_decl): Volatile vars are forced to be output.
24479 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
24480 replaced decl.
24481 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
24482 process_references, varpool_can_remove_if_no_refs): New functions.
24483 (cgraph_remove_unreachable_nodes): Handle variables too.
24484
24485 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
24486
24487 PR target/44088
24488 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
24489
24490 2010-05-12 Jakub Jelinek <jakub@redhat.com>
24491
24492 PR middle-end/44085
24493 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
24494 change value of ORT_TASK.
24495 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
24496 (omp_notice_threadprivate_variable): New function.
24497 (omp_notice_variable): Call it for threadprivate variables.
24498 If enclosing ctx is a task, print enclosing task rather than
24499 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
24500 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
24501 if task has untied clause.
24502
24503 PR debug/42278
24504 * dwarf2out.c (base_type_die): Don't add name attribute here.
24505 (modified_type_die): Instead of sizetype use
24506 its underlying original type. If a DW_TAG_base_type doesn't
24507 have name added, add __unknown__.
24508 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
24509 always call force_type_die instead.
24510
24511 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
24512
24513 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
24514 for __stack_chk_guard.
24515
24516 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24517
24518 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
24519 don't call start_source_file debug hook here...
24520 (finish_options): ... but here, after outputting predefined and
24521 command line defines and undefs.
24522
24523 PR middle-end/44071
24524 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
24525 no fallthru edge.
24526 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
24527 optimizing away empty bb with no successors, move over its
24528 footer chain to fallthru predecessor.
24529 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
24530 (rtl_split_edge): For asm goto call patch_jump_insn even if
24531 splitting fallthru edge.
24532
24533 PR c++/44059
24534 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
24535 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
24536 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
24537 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
24538 on DW.ref.* decls.
24539
24540 PR c++/44062
24541 * c-parser.c (c_parser_expression): Mark LHS of a comma
24542 expression as read if it is a decl, handled component or
24543 COMPOUND_EXPR with that on the RHS.
24544 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
24545 if it is a decl or handled component.
24546
24547 2010-05-11 Jan Hubicka <jh@suse.cz>
24548
24549 * lto-symtab.c (lto_symtab_free): New function.
24550 * lto-streamer.h (lto_symtab_free): Declare.
24551
24552 2010-05-11 Jan Hubicka <jh@suse.cz>
24553
24554 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
24555 that if function is needed it is reachable.
24556 (lto_output_node): See if it the function is reachable or referenced.
24557 (output_cgraph): Update call of lto_output_node.
24558 * lto-streamer.h (reachable_from_other_partition_p): Declare.
24559
24560 2010-05-11 Jan Hubicka <jh@suse.cz>
24561
24562 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
24563 Mark as used.
24564
24565 2010-05-11 Jan Hubicka <jh@suse.cz>
24566
24567 PR tree-optimize/44063
24568 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
24569 queue.
24570 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
24571 limits.
24572 (estimate_function_body_sizes): Compute sizes even when disregarding.
24573
24574 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
24575
24576 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
24577
24578 2010-05-11 Jan Hubicka <jh@suse.cz>
24579
24580 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
24581 into every boundary.
24582
24583 2010-05-11 Jan Hubicka <jh@suse.cz>
24584
24585 * matrix-reorg.c (matrix_reorg): Rebuild edges.
24586
24587 2010-05-11 Jan Hubicka <jh@suse.cz>
24588
24589 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
24590 lto_streamer_cache_delete): Put nodes into heap.
24591 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
24592 heap.
24593
24594 2010-05-11 Jan Hubicka <jh@suse.cz>
24595
24596 * cgraphbuild.c (cgraph_rebuild_references): New.
24597 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
24598 out extern inlines.
24599 * cgraph.h (cgraph_rebuild_references): Declare.
24600 * tree-inline.c (tree_function_versioning): Use it.
24601 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
24602
24603 2010-05-11 Jan Hubicka <jh@suse.cz>
24604
24605 * cgraph.c: Include ipa-utils.h
24606 (cgraph_create_virtual_clone): Update references.
24607 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
24608
24609 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24610
24611 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
24612 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
24613 cache size.
24614
24615 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24616
24617 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
24618
24619 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24620
24621 * gcc.c (execute): For -### don't quote arguments that
24622 contain just alphanumerics and _/-. characters.
24623 * doc/invoke.texi: Document that change for -###.
24624
24625 PR debug/44023
24626 * df-problems.c (struct dead_debug): Add to_rescan field.
24627 (dead_debug_init): Clear to_rescan field.
24628 (dead_debug_finish): Rescan all debug insns in to_rescan
24629 bitmap and free the bitmap.
24630 (dead_debug_insert_before): Instead of rescanning debug insns
24631 immediately queue their rescanning until dead_debug_finish.
24632 (df_note_bb_compute): After dead_debug_add do continue instead
24633 of break.
24634
24635 2010-05-10 Jakub Jelinek <jakub@redhat.com>
24636
24637 PR debug/44028
24638 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
24639 clear also INSN_REG_USE_LIST.
24640
24641 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24642
24643 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
24644
24645 2010-05-10 Jan Hubicka <jh@suse.cz>
24646
24647 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
24648 commited change.
24649
24650 2010-05-10 Jan Hubicka <jh@suse.cz>
24651
24652 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
24653 Allocate encoders.
24654 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
24655 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
24656 (lto_streamer_cache_create): Init alloc pool.
24657 (lto_streamer_cache_delete): Free alloc pool.
24658 * lto-streamer.h: Include alloc pool.
24659 (lto_streamer_cache_d): Use alloc pool.
24660 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
24661
24662 2010-05-10 Jan Hubicka <jh@suse.cz>
24663
24664 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
24665 * cgraphbuild.c: Include except.h
24666 (record_type_list, record_eh_tables): New function.
24667 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
24668
24669 2010-05-10 Jan Hubicka <jh@suse.cz>
24670
24671 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
24672 __frame_dummy_init_array_entry, force_to_data): Attribute as used
24673 rather than unused.
24674
24675 2010-05-10 Michael Matz <matz@suse.de>
24676
24677 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
24678 (can_reassociate_p): Use FLOAT_TYPE_P.
24679 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
24680 (vect_force_simple_reduction): ... this.
24681 * tree-parloops.c (gather_scalar_reductions): Use
24682 vect_force_simple_reduction.
24683 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
24684 vect_is_simple_reduction, add modify argument, if true rewrite
24685 "a-b" into "a+(-b)".
24686 (vect_is_simple_reduction, vect_force_simple_reduction): New
24687 functions.
24688 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
24689
24690 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
24691 Vladimir Makarov <vmakarov@redhat.com>
24692
24693 PR rtl-optimization/44012
24694 * ira-build.c (remove_unnecessary_allocnos): Nullify
24695 regno_allocno_map of the removed allocno.
24696
24697 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24698
24699 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
24700 to /dev/null.
24701 * configure: Regenerate.
24702
24703 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24704
24705 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
24706 unused.
24707 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
24708 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
24709 support in Sun ld.
24710 * configure: Regenerate.
24711
24712 2010-05-10 Richard Guenther <rguenther@suse.de>
24713
24714 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
24715 marked if the entry identifier is marked.
24716
24717 2010-05-10 Richard Guenther <rguenther@suse.de>
24718
24719 * c-common.c (struct c_common_attributes): Add fnspec attribute.
24720 (handle_fnspec_attribute): New function.
24721 * gimple.h (gimple_call_return_flags): Declare.
24722 (gimple_call_arg_flags): Likewise.
24723 * gimple.c (gimple_call_arg_flags): New function.
24724 (gimple_call_return_flags): Likewise.
24725 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
24726 New argument flags.
24727 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
24728 return value flags.
24729 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
24730 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
24731 main work to ...
24732 (make_heapvar_for): ... this new function.
24733 (handle_rhs_call): Handle fnspec attribute argument specifiers.
24734 (handle_lhs_call): Likewise.
24735 (find_func_aliases): Adjust.
24736
24737 2010-05-10 Richard Guenther <rguenther@suse.de>
24738
24739 PR tree-optimization/44050
24740 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
24741
24742 2010-05-10 Wei Guozhi <carrot@google.com>
24743
24744 PR target/42879
24745 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
24746
24747 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24748
24749 PR c/10676
24750 * c-typeck.c (lookup_field): Take a type directly. Update
24751 recursive calls.
24752 (build_component_ref): Update call to lookup_field.
24753 (set_init_label): Use lookup_field to find initialized field.
24754 Handle returned list of fields like a sequence of designators.
24755
24756 2010-05-09 Richard Guenther <rguenther@suse.de>
24757
24758 PR middle-end/44024
24759 * fold-const.c (tree_single_nonzero_warnv_p): Properly
24760 handle &FUNCTION_DECL.
24761
24762 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24763
24764 PR c/4784
24765 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
24766 structures and unions recursively.
24767 (detect_field_duplicates): Move duplicate detection with a hash to
24768 detect_field_duplicates_hash. Always use a hash if anonymous
24769 structures or unions are present.
24770 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
24771 give errors.
24772
24773 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
24774
24775 PR target/44046
24776 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
24777 detect Atom, Core 2 and Core i7.
24778
24779 2010-05-09 Richard Guenther <rguenther@suse.de>
24780
24781 * gcc.c (store_arg): Handle temporary file deletion for
24782 joined arguments.
24783
24784 2010-05-09 Richard Guenther <rguenther@suse.de>
24785
24786 PR middle-end/44043
24787 * ipa-inline.c (estimate_function_body_sizes): Return after
24788 disregarding inline limits.
24789
24790 2010-05-09 Richard Guenther <rguenther@suse.de>
24791
24792 * gcc.c (store_arg): Revert last change.
24793
24794 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
24795
24796 PR middle-end/28685
24797 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
24798 (optimize_ops_list): Call it.
24799
24800 2010-05-08 Richard Guenther <rguenther@suse.de>
24801
24802 PR tree-optimization/44030
24803 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
24804 NECESSARY flag if we propagate from a inserted expression.
24805
24806 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
24807
24808 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
24809 domain types as equal if they are both PLACEHOLDER_EXPRs.
24810
24811 2010-05-08 Richard Guenther <rguenther@suse.de>
24812
24813 * lto-wrapper.c (run_gcc): Remove linker output from
24814 command line for LTRANS invocation.
24815
24816 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24817
24818 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
24819 lto-macho as lto_binary_reader.
24820 * target.h (struct gcc_target): New hooks lto_start and lto_end.
24821 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
24822 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
24823 in lto_start and lto_end calls.
24824 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
24825 magic numbers.
24826 (scan_prog_file): Update is_elf_or_coff call.
24827 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
24828
24829 * collect2.c (main): Fix enum comparison.
24830
24831 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
24832 Add prototypes.
24833 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
24834 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
24835 and TARGET_ASM_LTO_END.
24836 * darwin.c: Include obstack.h and lto-streamer.h.
24837 (lto_section_names_offset, lto_section_names_obstack,
24838 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
24839 global variables.
24840 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
24841 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
24842 to a temporary file.
24843 (darwin_asm_lto_end): New function. Restore asm_out_file.
24844 (darwin_asm_named_section): For LTO sections, replace the name with
24845 the offset of the section name in a string table, and build this
24846 table.
24847 (darwin_file_start): Initialize global vars for LTO support.
24848 (darwin_file_end): If output to asm_out_file was redirected, append it
24849 to the proper asm_out_file here. Add the section names section.
24850
24851 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24852
24853 * c-pragma.c (pending_weak_d, pending_weak): New.
24854 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
24855 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
24856 handle_pragma_weak): Update the uses of pending_weaks.
24857
24858 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24859
24860 PR documentation/44016
24861 * doc/standards.texi (Standards): Link to unversioned
24862 cxx0x_status.html page.
24863
24864 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
24865
24866 PR target/43708
24867 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
24868 in addition to TREE_USED, to avoid "set but unused" warnings.
24869
24870 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24871
24872 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
24873 (is_loop_prefetching_profitable): Do not insert prefetches
24874 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
24875 times the prefetch ahead distance.
24876
24877 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24878
24879 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
24880 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
24881 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
24882 the unroll_factor.
24883
24884 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24885
24886 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
24887 a diagnostic info when the insn-to-mem ratio is too small.
24888
24889 2010-05-07 Richard Guenther <rguenther@suse.de>
24890
24891 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
24892 the linker plugin.
24893 (store_arg): Queue temp_filename for deletion instead of
24894 the whole argument.
24895
24896 2010-05-07 Richard Guenther <rguenther@suse.de>
24897
24898 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
24899 (run_gcc): Handle LTRANS phase invocation.
24900 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
24901
24902 2010-05-07 Jakub Jelinek <jakub@redhat.com>
24903
24904 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
24905 this is also meaningful on PARM_DECLs and RESULT_DECLs.
24906
24907 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24908
24909 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
24910
24911 2010-05-07 Richard Guenther <rguenther@suse.de>
24912
24913 PR tree-optimization/44020
24914 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
24915 code when PRE is not yet initialized.
24916
24917 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24918
24919 * config/mips/dbxmdebug.h: Remove.
24920 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
24921
24922 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
24923
24924 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
24925 with null pointer and also warn about ordered comparison of zero with
24926 pointer if -Wextra.
24927
24928 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24929
24930 * graphite-blocking.c
24931 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
24932 * graphite-clast-to-gimple.c
24933 (clast_to_gcc_expression): Same.
24934 (precision_for_value): Same.
24935 (precision_for_interval): Same.
24936 (gcc_type_for_interval): Same.
24937 (graphite_create_new_guard): Same.
24938 (compute_bounds_for_level): Same.
24939 (graphite_create_new_loop_guard): Same.
24940 * graphite-interchange.c
24941 (build_linearized_memory_access): Same.
24942 (pdr_stride_in_loop): Same.
24943 (memory_strides_in_loop_1): Same.
24944 (memory_strides_in_loop): Same.
24945 (extend_scattering): Same.
24946 (psct_scattering_dim_for_loop_depth): Same.
24947 (pbb_number_of_iterations): Same.
24948 * graphite-poly.h
24949 (debug_iteration_domains): Same.
24950 * graphite-ppl.c
24951 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
24952 (ppl_set_inhomogeneous_gmp): Same.
24953 (ppl_strip_loop): Same.
24954 (ppl_lexico_compare_linear_expressions): Same.
24955 (ppl_read_polyhedron_matrix): Same.
24956 (ppl_max_for_le_pointset): Same.
24957 * graphite-ppl.h
24958 (ppl_read_polyhedron_matrix): Same.
24959 (tree_int_to_gmp): Same.
24960 (gmp_cst_to_tree): Same.
24961 (ppl_set_inhomogeneous): Same.
24962 (ppl_set_inhomogeneous_tree): Same.
24963 (ppl_set_coef): Same.
24964 (ppl_set_coef_tree): Same.
24965 * graphite-sese-to-poly.c
24966 (build_pbb_scattering_polyhedrons): Same.
24967 (build_scop_scattering): Same.
24968 (scan_tree_for_params_right_scev): Same.
24969 (scan_tree_for_params): Same.
24970 (find_params_in_bb): Same.
24971 (find_scop_parameters): Same.
24972 (add_upper_bounds_from_estimated_nit): Same.
24973 (build_loop_iteration_domains): Same.
24974 (add_condition_to_domain): Same.
24975 (pdr_add_memory_accesses): Same.
24976
24977 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24978
24979 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
24980 CLooG's value_* macros to their respective mpz_* counterparts.
24981 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
24982 (graphite_create_new_loop_guard): Same.
24983 * graphite-interchange.c (build_linearized_memory_access): Same.
24984 (pdr_stride_in_loop): Same.
24985 (memory_strides_in_loop_1): Same.
24986 (1st_interchange_profitable_p): Same.
24987 * graphite-poly.c (extend_scattering): Same.
24988 (psct_scattering_dim_for_loop_depth): Same.
24989 (pbb_number_of_iterations): Same.
24990 (pbb_number_of_iterations_at_time): Same.
24991 * graphite-poly.h (new_1st_loop): Same.
24992 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
24993 (oppose_constraint): Same.
24994 (insert_constraint_into_matrix): Same.
24995 (ppl_set_inhomogeneous_gmp): Same.
24996 (ppl_set_coef_gmp): Same.
24997 (ppl_strip_loop): Same.
24998 (ppl_lexico_compare_linear_expressions): Same.
24999 (ppl_max_for_le_pointset): Same.
25000 (ppl_min_for_le_pointset): Same.
25001 (ppl_build_realtion): Same.
25002 * graphite-ppl.h (gmp_cst_to_tree): Same.
25003 (ppl_set_inhomogeneous): Same.
25004 (ppl_set_inhomogeneous_tree): Same.
25005 (ppl_set_coef): Same.
25006 (ppl_set_coef_tree): Same.
25007 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25008 (build_scop_scattering): Same.
25009 (add_value_to_dim): Same.
25010 (scan_tree_for_params_right_scev): Same.
25011 (scan_tree_for_params_int): Same.
25012 (scan_tree_for_params): Same.
25013 (find_params_in_bb): Same.
25014 (find_scop_parameters): Same.
25015 (add_upper_bounds_from_estimated_nit): Same.
25016 (build_loop_iteration_domains): Same.
25017 (create_linear_expr_from_tree): Same.
25018 (add_condition_to_domain): Same.
25019 (pdr_add_memory_accesses): Same.
25020
25021 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
25022 Jason Merrill <jason@redhat.com>
25023
25024 * c-common.c (c_common_reswords): Add nullptr.
25025 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
25026 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
25027 (gen_type_die_with_usage): Likewise.
25028 * dbxout.c (dbxout_type): Likewise.
25029 * sdbout.c (plain_type_1): Likewise.
25030
25031 2010-05-06 Jason Merrill <jason@redhat.com>
25032
25033 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
25034 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
25035 ret appropriately.
25036 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
25037
25038 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
25039 stripping WITH_SIZE_EXPR.
25040 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
25041 change.
25042
25043 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25044
25045 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
25046 list of obsolete configurations.
25047 Disabled check for obsolete configurations.
25048 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
25049 Removed support for previous versions.
25050 * config/mips/iris.h: Removed.
25051 * config/mips/iris5.h: Removed.
25052 * config/mips/iris6.h: Merged old iris.h contents.
25053 (TARGET_IRIX): Removed.
25054 (DRIVER_SELF_SPECS): Removed mabi=32.
25055 (IDENT_ASM_OP): Removed undef.
25056 (STARTFILE_SPEC): Removed mabi=32.
25057 (ENDFILE_SPEC): Likewise.
25058 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
25059 (MACHINE_TYPE): Update for IRIX 6.5.
25060 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25061 TARGET_IRIX by TARGET_IRIX6.
25062 (mips_file_start): Likewise.
25063 (mips_output_external): Remove IRIX 5/6 O32 support.
25064 (mips_output_function_prologue): Likewise.
25065 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25066 TARGET_IRIX6.
25067 (TARGET_CPU_CPP_BUILTINS): Likewise.
25068 (TARGET_IRIX): Removed.
25069 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25070 (MULTILIB_DIRNAMES): Removed 32.
25071 (MULTILIB_OSDIRNAMES): Removed ../lib.
25072 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25073 (Specific, mips-sgi-irix5): Document removal.
25074 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25075 Remove references to older IRIX 6 releases and the O32 ABI.
25076
25077 2010-05-06 Jakub Jelinek <jakub@redhat.com>
25078
25079 PR bootstrap/43994
25080 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25081 instead of DF_REF_REAL_REG.
25082
25083 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
25084
25085 PR target/43888
25086 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25087 handling to still return true for x64 targets.
25088
25089 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25090
25091 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25092
25093 2010-05-06 Jan Hubicka <jh@suse.cz>
25094
25095 PR tree-optimization/43791
25096 * ipa-inline.c (update_caller_keys): Remove bogus
25097 disregard_inline_limits check.
25098
25099 2010-05-06 Michael Matz <matz@suse.de>
25100
25101 PR tree-optimization/43984
25102 * tree-ssa-pre.c (inserted_phi_names): Remove.
25103 (inserted_exprs): Change to bitmap.
25104 (create_expression_by_pieces): Set bits, don't append to vector.
25105 (insert_into_preds_of_block): Don't handle inserted_phi_names.
25106 (eliminate): Don't look at inserted_phi_names, remove deleted
25107 insns from inserted_exprs.
25108 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25109 (init_pre, fini_pre): Allocate and free bitmaps.
25110 (execute_pre): Insert insns on edges before elimination.
25111
25112 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25113
25114 * tree.c (initializer_zerop): Handle STRING_CST.
25115
25116 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
25117
25118 PR 40989
25119 * doc/invoke.texi (Wimplicit): Document as C only.
25120 * opts.c (common_handle_option): Add argument kind.
25121 (handle_option): Rename as read_cmdline_option. Factor out code to...
25122 (handle_option): ... here. New.
25123 (handle_options): Rename as read_cmdline_options.
25124 (decode_options): Update call.
25125 (set_option): Use option index instead of option pointer. Classify
25126 diagnostics correctly.
25127 (enable_warning_as_error): Call handle_option.
25128 * opts.h (set_option): Update declaration.
25129 (handle_option): Declare.
25130 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
25131 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
25132 * c-opts.c (set_Wimplicit): Delete.
25133 (c_family_lang_mask): New static constant.
25134 (c_common_handle_option): Add argument kind. Use handle_option
25135 instead of set_Wimplicit.
25136 (c_common_post_options): warn_implicit and warn_implicit_int
25137 are disabled by default.
25138 * c-common.c (warn_implicit): Do not define here.
25139 * c-common.h (warn_implicit): Do not declare here.
25140 (c_common_handle_option): Update declaration.
25141 * lto-opts.c (lto_reissue_options): Update call to set_option.
25142
25143 2010-05-06 Richard Guenther <rguenther@suse.de>
25144
25145 PR tree-optimization/43571
25146 * domwalk.c (walk_dominator_tree): Walk the dominator
25147 sons in more optimal order.
25148
25149 2010-05-06 Richard Guenther <rguenther@suse.de>
25150
25151 PR tree-optimization/43934
25152 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
25153 (stmt_cost): Likewise.
25154 (extract_true_false_args_from_phi): New helper.
25155 (determine_max_movement): For PHI nodes verify we can hoist them
25156 and compute their cost.
25157 (determine_invariantness_stmt): Handle PHI nodes.
25158 (move_computations_stmt): Likewise. Hoist PHI nodes in
25159 if-converted form using COND_EXPRs.
25160 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
25161 (tree_ssa_lim): Likewise.
25162 * tree-flow.h (tree_ssa_lim): Adjust prototype.
25163 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
25164
25165 2010-05-06 Richard Guenther <rguenther@suse.de>
25166
25167 PR tree-optimization/43987
25168 * tree-ssa-structalias.c (could_have_pointers): For possibly
25169 address-taken variables force pointers to be recorded.
25170 (create_variable_info_for_1): Likewise.
25171 (push_fields_onto_fieldstack): Pass in wheter all fields
25172 must have pointers.
25173 (find_func_aliases): Query types instead of vars whether
25174 they contain pointers where appropriate.
25175
25176 2010-05-06 Jan Hubicka <jh@suse.cz>
25177
25178 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
25179 (record_reference, mark_address, mark_load, mark_store): Record
25180 references.
25181 (record_references_in_initializer): Update call of record_references.
25182 (rebuild_cgraph_edges): Remove all references before rebuiding.
25183 * cgraph.c (cgraph_create_node): Clear ref list.
25184 (cgraph_remove_node): Remove references.
25185 (dump_cgraph_node): Dump references.
25186 (cgraph_clone_node): Clone references.
25187 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
25188 (struct cgraph_node, varpool_node): Add ref_lst.
25189 * ipa-ref.c: New file.
25190 * ipa-ref.h: New file.
25191 * ipa-ref-inline.h: New file.
25192 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
25193 (referenced_from_other_partition_p): New function.
25194 (lto_output_varpool_node): Take set arugment; call
25195 referenced_from_other_partition.
25196 (lto_output_ref): New.
25197 (add_references): New.
25198 (output_refs): New.
25199 (output_cgraph): Compute boundary based on references; output refs.
25200 (output_varpool): Accept cgraph_node_set argument.
25201 (input_ref): New.
25202 (input_refs): New.
25203 (input_cgraph): Call input_refs.
25204 * lto-section-in.c (lto_section_name): Add refs.
25205 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
25206 (ipa-ref.o): New file.
25207 * varpool.c (varpool_node): Clear ipa ref list.
25208 (varpool_remove_node): Remove references.
25209 (dump_varpool_node): Dump references.
25210 (varpool_assemble_decl): Only compile finalized ones.
25211 (varpool_extra_name_alias): Initialize ref list.
25212 * lto-streamer.c (lto-get_section_name): Add .refs section.
25213 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
25214 (referenced_from_other_partition_p): Declared.
25215
25216 2010-05-06 Ira Rosen <irar@il.ibm.com>
25217
25218 PR tree-optimization/43901
25219 * tree-vect-stmts.c (vectorizable_call): Assert that vector
25220 type is not NULL if it's transformation phase, and return
25221 FALSE if it's analysis.
25222 (vectorizable_conversion, vectorizable_operation,
25223 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
25224
25225 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
25226
25227 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25228 Delete.
25229 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25230 New define.
25231 * config/mips/mips-protos.h
25232 (mips_small_register_classes_for_mode_p): Delete prototype.
25233
25234 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
25235
25236 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
25237 * config/arm/arm.c (multiple_operation_profitable_p,
25238 compute_offset_order): New static functions.
25239 (load_multiple_sequence, store_multiple_sequence): Use them.
25240 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
25241 memory offsets, not register numbers.
25242 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
25243
25244 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
25245
25246 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
25247 (get_pending_sizes, put_pending_size, put_pending_sizes):
25248 Update the uses of pending_sizes.
25249 * c-decl.c (store_parm_decls): Likewise.
25250 * c-tree.h (struct c_arg_info): Likewise.
25251 * tree.h: Update the prototype for get_pending_sizes and
25252 put_pending_sizes.
25253
25254 2010-05-05 Jason Merrill <jason@redhat.com>
25255
25256 PR debug/43370
25257 * c-common.c (handle_aligned_attribute): Respect
25258 ATTR_FLAG_TYPE_IN_PLACE.
25259
25260 PR testsuite/43758
25261 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
25262 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25263 (TARGET_INITIALIZER): Use it.
25264 * c-common.c (attribute_takes_identifier_p): Call it.
25265 * c-common.h: Update prototype.
25266 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
25267 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25268
25269 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25270
25271 PR debug/43950
25272 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
25273 DW_ID_down_case for Fortran compilation units.
25274
25275 2010-05-05 Jan Hubicka <jh@suse.cz>
25276
25277 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
25278 handle aliases.
25279
25280 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
25281
25282 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
25283 a variable-sized RESULT_DECL.
25284
25285 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
25286
25287 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
25288
25289 2010-05-05 Jason Merrill <jason@redhat.com>
25290
25291 PR c++/43787
25292 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
25293 returns GS_OK.
25294 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
25295
25296 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
25297 Jakub Jelinek <jakub@redhat.com>
25298
25299 PR debug/43478
25300 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
25301 (dead_debug_init, dead_debug_finish): New functions.
25302 (dead_debug_add, dead_debug_insert_before): Likewise.
25303 (df_note_bb_compute): Initialize a dead_debug object, add dead
25304 debug uses to it, insert debug bind insns before death insns,
25305 reset debug insns that refer to pending uses at the end.
25306 * rtl.h (make_debug_expr_from_rtl): New prototype.
25307 * varasm.c (make_debug_expr_from_rtl): New function.
25308
25309 2010-05-05 Jan Hubicka <jh@suse.cz>
25310
25311 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
25312 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
25313 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
25314 lto_varpool_encoder_deref, lto_varpool_encoder_size,
25315 lto_varpool_encoder_encode_initializer_p,
25316 lto_set_varpool_encoder_encode_initializer): New functions.
25317 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
25318 call output_varpool.
25319 (input_varpool_node): Do not always set analyzed.
25320 (input_cgraph_1): Return vector of cgraph nodes.
25321 (input_varpool_1): Return vector of varpools.
25322 (input_cgraph): Free the vectors.
25323 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25324 output only initializers needed.
25325 (lto_output): Only call output_cgraph.
25326 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
25327 * lto-section-out.c (lto_new_out_decl_state): Initialize
25328 state->varpool_node_encoder.
25329 * lto-streamer.h (lto_varpool_encoder_d): New.
25330 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
25331 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
25332 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
25333 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
25334 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
25335 Declare.
25336 (output_varpool, input_varpool): Remove declarations.
25337
25338 2010-05-05 Jan Hubicka <jh@suse.cz>
25339
25340 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
25341 with body can prevail.
25342
25343 2010-05-05 Jan Hubicka <jh@suse.cz>
25344
25345 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
25346 size.
25347
25348 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25349
25350 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
25351
25352 * gengtype.h (erro_at_line): Constify pos argument.
25353
25354 * gengtype.c: Include hashtab.h.
25355 (enum gc_used): Document GC_MAYBE_POINTED_TO.
25356 (error_at_line): Constify pos argument.
25357 (do_typedef): Initialize p->opt field.
25358 (get_file_gtfilename): Fix comment typo.
25359 (struct walk_type_data): Constify line field.
25360 (get_output_file_for_structure): New function.
25361 (write_local_func_for_structure): Constify orig_s argument.
25362 Use get_output_file_for_structure.
25363 (write_func_for_structure): Use get_output_file_for_structure.
25364 (INDENT): New define.
25365 (dump_pair, dump_type, dump_type_list, dump_typekind)
25366 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
25367 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
25368 functions.
25369 (seen_types): New variable.
25370 (main): New variable do_dump. Process "-d" command line option.
25371 Call dump_everything if dump requested.
25372
25373 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25374
25375 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
25376 in a temporary instead of invoking the macro multiple times.
25377 (track_expr_p): Likewise.
25378
25379 2010-05-04 Neil Vachharajani <nvachhar@google.com>
25380
25381 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
25382 per new semantics.
25383 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
25384 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
25385 conditions for printing notes.
25386 * common.opt (-Wcoverage-mismatch): Allow negative, default to
25387 true, update documentation.
25388 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
25389
25390 2010-05-04 Jakub Jelinek <jakub@redhat.com>
25391
25392 PR c/43981
25393 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
25394 on dimen.
25395
25396 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25397
25398 PR target/43799
25399 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
25400 (*sse_prologue_save_insn1): Likewise.
25401 (SSE prologue save splitter): Likewise.
25402
25403 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
25404
25405 * tree.c (free_lang_data_in_one_sizepos): New inline function.
25406 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
25407 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
25408 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
25409 all decls. Call it on DECL_FIELD_OFFSET of fields.
25410 (find_decls_types_r): Follow DECL_VALUE_EXPR.
25411 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
25412
25413 2010-05-04 Martin Jambor <mjambor@suse.cz>
25414
25415 * tree-sra.c (build_access_from_expr_1): The first parameter type
25416 changed to simple tree.
25417 (build_access_from_expr): Likewise, gsi parameter was eliminated.
25418 (scan_assign_result): Renamed to assignment_mod_result, enum elements
25419 renamed as well.
25420 (build_accesses_from_assign): Removed all parameters except for a
25421 simple gimple statement. Now returns a simple bool.
25422 (scan_function): All non-analysis parts moved to separate functions
25423 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
25424 parameters and updated both callers.
25425 (sra_modify_expr): Removed parameter data.
25426 (sra_modify_function_body): New function.
25427 (perform_intra_sra): Call sra_modify_function_body to modify the
25428 function body.
25429 (replace_removed_params_ssa_names): Parameter data changed into
25430 adjustments vector.
25431 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
25432 changed the parameter dont_convert to convert with the opposite
25433 meaning.
25434 (sra_ipa_modify_assign): Parameter data changed into adjustments
25435 vector, return value changed to bool.
25436 (ipa_sra_modify_function_body): New function.
25437 (sra_ipa_reset_debug_stmts): Updated a comment.
25438 (modify_function): Use ipa_sra_modify_function_body to modify function
25439 body.
25440
25441 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25442
25443 PR middle-end/43671
25444 * alias.c (true_dependence): Handle the same VALUE in x and mem.
25445 (canon_true_dependence): Likewise.
25446 (write_dependence_p): Likewise.
25447
25448 2010-05-04 Jan Hubicka <jh@suse.cz>
25449
25450 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
25451 * cgraphbuild.c: Include ipa-utils.h
25452 (record_reference_ctx): New struct.
25453 (record_reference): Simplify to work on initializers; not statements.
25454 (mark_address, mark_load, mark_store): New.
25455 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25456 walk PHI nodes too.
25457 (record_references_in_initializer): Update use of record_reference.
25458 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25459 walk PHI nodes too.
25460
25461 2010-05-04 Jan Hubicka <jh@suse.cz>
25462
25463 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
25464 node will be removed anyway.
25465 (lto_varpool_replace_node): Allow also unanalyzed nodes;
25466 relink aliases of node into prevailing node.
25467 * varpool.c (varpool_remove_node): Remove aliases properly;
25468 when removing node, remove all its aliases too; remove DECL_INITIAL
25469 of removed node; ggc_free the varpool node.
25470
25471 2010-05-04 Richard Guenther <rguenther@suse.de>
25472
25473 PR tree-optimization/43879
25474 * tree-ssa-structalias.c (alias_get_name): Use
25475 DECL_ASSEMBLER_NAME if available.
25476 (create_function_info_for): Return the varinfo node.
25477 (ipa_pta_execute): Associate same-body aliases and extra names
25478 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
25479
25480 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25481
25482 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
25483
25484 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
25485
25486 PR bootstrap/43964
25487 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
25488 only if HONOR_REG_ALLOC_ORDER is not defined.
25489
25490 2010-05-04 Richard Guenther <rguenther@suse.de>
25491
25492 PR tree-optimization/43949
25493 * tree-vrp.c (extract_range_from_binary_expr): Only handle
25494 TRUNC_MOD_EXPR.
25495
25496 2010-04-26 Jason Merrill <jason@redhat.com>
25497
25498 * c.opt (-fstrict-enums): New.
25499 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
25500
25501 2010-05-03 David Ung <davidu@mips.com>
25502 James E. Wilson <wilson@codesourcery.com>
25503
25504 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
25505 emit the trap instruction before the divide for TUNE_74K.
25506
25507 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
25508
25509 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
25510 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
25511 based on the above, for new target hook.
25512
25513 * hooks.c (hook_bool_mode_true): New generic hook.
25514 * hooks.h (hook_bool_mode_true): Add prototype.
25515
25516 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
25517 target hook.
25518 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
25519 target hook, set to hook_bool_mode_false.
25520 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
25521 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
25522 with targetm.small_register_classes_for_mode_p.
25523 (find_reusable_reload): Likewise.
25524 (combine_reloads): Likewise.
25525 * reload1.c (reload_as_needed): Likewise.
25526 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
25527 * ifcvt.c (noce_process_if_block, check_cond_move_block,
25528 dead_or_predicable): Likewise.
25529 * regmove.c (optimize_reg_copy_1): Likewise.
25530 * calls.c (prepare_call_address): Likewise.
25531 (precompute_register_parameters): Likewise.
25532
25533 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
25534 hook definition.
25535 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
25536 implementation of the hook that considers all register classes
25537 small except for SH64.
25538 (sh_override_options): Use the new hook.
25539 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
25540 Add prototype.
25541
25542 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
25543 hook definition.
25544 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
25545 implementation of the hook that considers all register classes
25546 small for THUMB1.
25547 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
25548 Add prototype.
25549
25550 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
25551 hook definition.
25552 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
25553 implementation of the hook that considers all register classes
25554 small for MIPS16.
25555 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
25556 Add prototype.
25557
25558 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
25559 hook definition.
25560 * config/m32c/m32c.h: Likewise.
25561 * config/pdp11/pdp11.h: Likewise.
25562 * config/avr/avr.h: Likewise.
25563 * config/xtensa/xtensa.h: Likewise.
25564 * config/m68hc11/m68hc11.h: Likewise.
25565 * config/mn10300/mn10300.h: Likewise.
25566 * config/mcore/mcore.h: Likewise.
25567 * config/h8300/h8300.h: Likewise.
25568 * config/bfin/bfin.h: Likewise.
25569
25570 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
25571 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
25572
25573 2010-05-03 Anatoly Sokolov <aesok@post.ru>
25574
25575 * double-int.h (tree_to_double_int): Remove macro.
25576 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
25577 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25578 (tree_to_double_int): New function.
25579 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
25580 Move ...
25581 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25582
25583 2010-05-03 Richard Guenther <rguenther@suse.de>
25584
25585 PR tree-optimization/43971
25586 * tree-ssa-structalias.c (get_constraint_for_1): Fix
25587 constraints in the !flag_delete_null_pointer_checks case.
25588
25589 2010-05-03 Jakub Jelinek <jakub@redhat.com>
25590
25591 PR debug/43972
25592 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
25593 result mode matches original rtl mode.
25594
25595 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
25596
25597 PR target/43888
25598 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
25599
25600 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25601
25602 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
25603 when processing flag options.
25604
25605 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25606
25607 * gcov-iov.c (main): Change format string placeholder
25608 from %#08x to 0x%08x.
25609 * genchecksum.c (dosum): Change format string placeholder
25610 from %#02x to 0x%02x.
25611
25612 2010-05-02 Richard Guenther <rguenther@suse.de>
25613
25614 PR tree-optimization/43879
25615 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
25616
25617 2010-05-02 Bruno Haible <bruno@clisp.org>
25618
25619 * doc/extend.texi (Function Attributes): Fix a typo.
25620
25621 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25622
25623 Revert:
25624 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
25625 placeholder from 0x%x to %#x.
25626 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25627 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25628 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25629 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25630 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25631 * config/i386/i386.c (ix86_target_string): Ditto.
25632 * config/i386/i386.c (output_pic_addr_const): Ditto.
25633 (print_operand): Ditto.
25634
25635 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25636
25637 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
25638 placeholder from 0x%x to %#x.
25639 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
25640 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
25641 (ASM_OUTPUT_DEBUG_DATA): Ditto.
25642 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
25643 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
25644 * optc-gen.awk: Ditto.
25645 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
25646 (HOST_WIDE_INT_PRINT_HEX): Ditto.
25647 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
25648 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25649
25650 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25651
25652 * target.h (struct calls): Add function_value_regno_p field.
25653 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
25654 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
25655 * targhooks.c (default_function_value_regno_p): New function.
25656 * targhooks.h (default_function_value_regno_p): Declare function.
25657 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
25658 * builtins.c. (apply_result_size): (Ditto.).
25659 * combine.c. (likely_spilled_retval_p): (Ditto.).
25660 * mode-switching.c. Include 'target.h'.
25661 (create_pre_exit): Use function_value_regno_p hook.
25662 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
25663 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
25664 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
25665
25666 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
25667 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
25668 (ix86_function_value_regno_p): Declare as static, change argument
25669 type to const unsigned int.
25670 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
25671
25672 2010-05-01 Richard Guenther <rguenther@suse.de>
25673
25674 PR tree-optimization/43949
25675 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
25676 types.
25677 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
25678
25679 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25680
25681 * rtl.h (CONST_DOUBLE_P): Define.
25682 (rtx_to_double_int): Declare.
25683 * emit-rtl.c (rtx_to_double_int): New function.
25684 * dwarf2out.c (insert_double): New function.
25685 (loc_descriptor, add_const_value_attribute): Clean up, use
25686 rtx_to_double_int and insert_double functions.
25687
25688 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
25689
25690 * doc/extend.texi (Inline): Add missing return keyword to examples.
25691 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
25692 "command-line".
25693
25694 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
25695
25696 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
25697 the variable part of the offset as well. Use highest_pow2_factor for
25698 all alignment checks.
25699
25700 2010-04-30 Richard Guenther <rguenther@suse.de>
25701
25702 PR tree-optimization/43879
25703 * tree-ssa-structalias.c (type_could_have_pointers): Functions
25704 can have pointers.
25705
25706 2010-04-30 Jan Hubicka <jh@suse.cz>
25707
25708 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
25709 varpool.
25710 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
25711
25712 2010-04-30 Jan Hubicka <jh@suse.cz>
25713
25714 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
25715 New.
25716 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
25717 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
25718 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
25719 cgraph_node_set_needs_ltrans_p): Remove.
25720
25721 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25722
25723 * sdbout.c: Include vec.h, do not include varray.h.
25724 (deferred_global_decls, sdbout_global_decl,
25725 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
25726 * toplev.c: Do not include varray.h.
25727 (dump_memory_report): Do not dump VARRAY statistics.
25728 * gengtype.c (open_base_file): Ignore varray.h.
25729 * Makefile.in: Update for abovementioned changes.
25730 Remove all traces of varray.c and varray.h.
25731 * varray.c: Remove file.
25732 * varray.h: Remove file.
25733
25734 2010-04-30 Jan Hubicka <jh@suse.cz>
25735
25736 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
25737 references.
25738
25739 2010-04-30 Jan Hubicka <jh@suse.cz>
25740
25741 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
25742 needed.
25743
25744 2010-04-30 Richard Guenther <rguenther@suse.de>
25745
25746 * tree-ssa-structalias.c (get_constraint_for_1): Generate
25747 constraints for CONSTRUCTOR.
25748
25749 2010-04-30 Richard Guenther <rguenther@suse.de>
25750
25751 PR lto/43946
25752 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
25753 first after all lowering passes.
25754
25755 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25756
25757 * toplev.c: Include varray.h for statistics dumping.
25758 * tree.h: Do not declare varray_head_tag.
25759 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
25760 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
25761 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
25762 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
25763 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
25764 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
25765 c-common.c, c-common.h, reg-stack.c, basic-block.h,
25766 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
25767 include varray.h.
25768 * Makefile.in: Update for abovementioned changes.
25769
25770 2010-04-30 Jakub Jelinek <jakub@redhat.com>
25771
25772 PR debug/43942
25773 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
25774
25775 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25776
25777 * config/picochip/picochip.c (picochip_legitimize_address): Define.
25778 Use this function to do machine-specific conversion.
25779 (picochip_legitimize_reload_address): Likewise.
25780 (picochip_legitimate_address_p): Check valid base register only if
25781 strict.
25782 (picochip_check_conditional_copy): Check for modw only if opnd is
25783 register.
25784 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
25785 to call the function in c.
25786 * config/picochip/picochip-protos.h
25787 (picochip_legitimize_reload_address): Define.
25788 * config/picochip/picochip.md (supported_compare1): Define.
25789
25790 2010-04-30 Jan Hubicka <jh@suse.cz>
25791
25792 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
25793 (cgraph_global_info): Remove inlined.
25794 (LTO_cgraph_tag_names): Remove.
25795 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
25796 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
25797 simplify cgraph tags and document.
25798 (lto_output_node): Use only LTO_cgraph_unavail_node and
25799 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
25800 for_functions_valid, global info, process and output flags.
25801 (input_overwrite_node): Initialize estimated stack size and
25802 estimated growth. Do not read flags we no longer store.
25803 (input_node): Likewise do not read info no longer stored.
25804 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
25805 flag.
25806
25807 2010-04-30 Richard Guenther <rguenther@suse.de>
25808
25809 PR tree-optimization/43879
25810 * tree-ssa-structalias.c (get_constraint_for_1): Properly
25811 handle non-zero initializers.
25812
25813 2010-04-30 Richard Guenther <rguenther@suse.de>
25814
25815 * builtins.c (fold_builtin_1): Delete free (0).
25816
25817 2010-04-29 Jan Hubicka <jh@suse.cz>
25818
25819 * gengtype.c (open_base_files): Add lto-streamer.h
25820 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
25821 (pass_ipa_cp): GGC collect.
25822 * toplev. (compile_file): Do not output symbols.
25823 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
25824 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
25825 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
25826 * lto-section-in.c: Include ggc.h
25827 (lto_new_in_decl_state): Alloc in GGC.
25828 (lto_delete_in_decl_state): Likewise.
25829 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
25830 Collect.
25831
25832 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25833
25834 PR target/42895
25835 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
25836 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
25837 (HONOR_REG_ALLOC_ORDER): Describe new macro.
25838 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
25839 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
25840 account only if HONOR_REG_ALLOC_ORDER is not defined.
25841 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
25842 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
25843
25844 2010-04-29 Jon Grant <04@jguk.org>
25845
25846 * collect2.c (vflag): Change type from int to bool.
25847 (debug): Likewise.
25848 (helpflag): New global bool.
25849 (main): Set vflag and debug with boolean, not integer truth values.
25850 Accept new "--help" option and output usage text if found.
25851 * collect2.h (vflag): Update prototype.
25852 (debug): Likewise.
25853
25854 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25855
25856 PR bootstrap/43936
25857 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
25858
25859 2010-04-29 Richard Guenther <rguenther@suse.de>
25860
25861 PR bootstrap/43935
25862 * plugin.h (invoke_plugin_callbacks): Annotate arguments
25863 with ATTRIBUTE_UNUSED.
25864
25865 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25866
25867 PR target/43921
25868 * config/i386/i386.c (get_some_local_dynamic_name): Replace
25869 INSN_P with NONDEBUG_INSN_P.
25870 (distance_non_agu_define): Likewise.
25871 (distance_agu_use): Likewise.
25872
25873 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25874
25875 From Dominique d'Humieres <dominiq@lps.ens.fr>
25876 PR bootstrap/43858
25877 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
25878 test_set.
25879
25880 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
25881
25882 * plugin.h (invoke_plugin_callbacks): New inline function.
25883 * plugin.c (flag_plugin_added): New global flag.
25884 (add_new_plugin): Initialize above flag.
25885 (invoke_plugin_callbacks): Rename to ...
25886 (invoke_plugin_callbacks_full): ... this.
25887
25888 2010-04-28 Jan Hubicka <jh@suse.cz>
25889
25890 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
25891 (lto_varpool_replace_node): New.
25892 (lto_symtab_resolve_symbols): Resolve varpool nodes.
25893 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
25894 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
25895 * cgraph.h (varpool_node_ptr): New type.
25896 (varpool_node_ptr): New vector.
25897 (varpool_node_set_def): New structure.
25898 (varpool_node_set): New type.
25899 (varpool_node_set): New vector.
25900 (varpool_node_set_element_def): New structure.
25901 (varpool_node_set_element, const_varpool_node_set_element): New types.
25902 (varpool_node_set_iterator): New type.
25903 (varpool_node): Add prev pointers, add used_from_other_partition,
25904 in_other_partition.
25905 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
25906 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
25907 varpool_get_node, varpool_remove_node): Declare.
25908 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
25909 varpool_node_set_size): New inlines.
25910 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
25911 * tree-pass.h (varpool_node_set_def): Forward declare.
25912 (ipa_opt_pass_d): Summary writting takes vnode sets too.
25913 (ipa_write_optimization_summaries): Update prototype.
25914 * ipa-cp.c (ipcp_write_summary): Update.
25915 * ipa-reference.c (ipa_reference_write_summary): Update.
25916 * lto-cgraph.c (lto_output_varpool_node): New static function.
25917 (output_varpool): New function.
25918 (input_varpool_node): New static function.
25919 (input_varpool_1): New function.
25920 (input_cgraph): Input varpool.
25921 * ipa-pure-const.c (pure_const_write_summary): Update.
25922 * lto-streamer-out.c (lto_output): Update, output varpool too.
25923 (write_global_stream): Kill WPA hack.
25924 (produce_asm_for_decls): Update.
25925 (output_alias_pair_p): Handle variables.
25926 (output_unreferenced_globals): Output only needed partition of varpool.
25927 * ipa-inline.c (inline_write_summary): Update.
25928 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
25929 cgraph.
25930 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
25931 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
25932 varpool_node_set_new, varpool_node_set_add,
25933 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
25934 debug_varpool_node_set): New functions.
25935 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
25936 (execute_one_pass): Process new decls too.
25937 (ipa_write_summaries_2): Pass around vsets.
25938 (ipa_write_summaries_1): Likewise.
25939 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
25940 to add.
25941 (ipa_write_optimization_summaries_1): Pass around vsets.
25942 (ipa_write_optimization_summaries): Likewise.
25943 * varpool.c (varpool_get_node): New.
25944 (varpool_node): Update doubly linked lists.
25945 (varpool_remove_node): New.
25946 (dump_varpool_node): More dumping.
25947 (varpool_enqueue_needed_node): Update doubly linked lists.
25948 (decide_is_variable_needed): Kill ltrans hack.
25949 (varpool_finalize_decl): Kill lto hack.
25950 (varpool_assemble_decl): Skip decls in other partitions.
25951 (varpool_assemble_pending_decls): Update doubly linkes lists.
25952 (varpool_empty_needed_queue): Likewise.
25953 (varpool_extra_name_alias): Likewise.
25954 * lto-streamer.c (lto_get_section_name): Add vars section.
25955 * lto-streamer.h (lto_section_type): Update.
25956 (output_varpool, input_varpool): Declare.
25957
25958 2010-04-28 Mike Stump <mikestump@comcast.net>
25959
25960 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
25961
25962 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25963
25964 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
25965 record or union type with RECORD_OR_UNION_TYPE_P predicate.
25966 (lto_input_ts_type_tree_pointers): Likewise.
25967 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
25968 (lto_output_ts_type_tree_pointers): Likewise.
25969
25970 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25971
25972 Uniquization of constants at the Tree level
25973 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
25974 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
25975 bit to the end.
25976 (tree_output_constant_def): Declare.
25977 * gimplify.c (gimplify_init_constructor): When using block copy, first
25978 uniquize the constant constructor on the RHS.
25979 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
25980 DECL_IN_CONSTANT_POOL flag.
25981 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
25982 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
25983 constant pool.
25984 (assemble_variable): Deal with symbols belonging to the tree constant
25985 pool.
25986 (get_constant_section): Add ALIGN parameter and simplify.
25987 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
25988 (assemble_constant_contents): Use the expression of the VAR_DECL.
25989 (output_constant_def_contents): Use the alignment of the VAR_DECL.
25990 (tree_output_constant_def): New global function.
25991 (mark_constant): Use the expression of the VAR_DECL.
25992 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
25993 its expression.
25994 (output_object_block): Likewise and assemble the expression.
25995
25996 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25997
25998 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
25999 hash_tree, eq_tree): New tree hash table.
26000 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
26001 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
26002 lto_orig_address_remove): Reimplement.
26003
26004 2010-04-28 Xinliang David Li <davidxl@google.com>
26005
26006 PR c/42643
26007 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
26008 (compute_uninit_opnds_pos): New function.
26009 (is_non_loop_exit_postdominating): New function.
26010 (compute_control_dep_chain): New function.
26011 (find_pdom): New function.
26012 (convert_control_dep_chain_into_preds): New function.
26013 (find_predicates): New function.
26014 (find_control_equiv_block): New function.
26015 (collect_phi_def_edges): New function.
26016 (find_def_preds): New function.
26017 (find_dom): New function.
26018 (dump_predicates): New function.
26019 (get_cmp_code): New function.
26020 (is_value_included_in): New function.
26021 (find_matching_predicate_in_rest_chains): New function.
26022 (use_pred_not_overlap_with_undef_path_pred): New function.
26023 (is_use_properly_guarded): New function.
26024 (normalize_cond_1): New function.
26025 (is_and_or_or): New function.
26026 (normalize_cond): New function.
26027 (is_gcond_subset_of): New function.
26028 (is_subset_of_any): New function.
26029 (is_or_set_subset_of): New function.
26030 (is_and_set_subset_of): New function.
26031 (is_norm_cond_subset_of): New function.
26032 (is_pred_expr_subset_of): New function.
26033 (is_pred_chain_subset_of): New function.
26034 (is_included_in): New function.
26035 (is_superset_of): New function.
26036 (find_uninit_use): New function.
26037 (warn_uninitialized_phi): New function.
26038 (compute_possibly_undefined_names): New function.
26039 (ssa_undefined_value_p): New function.
26040 (execute_late_warn_uninitialized): New function.
26041 * tree-ssa.c (ssa_undefined_value_p): Removed.
26042 (warn_uninit): Changed to extern.
26043 (warn_uninitialized_phi): Removed.
26044 (warn_uninitialized_vars): Changed to extern.
26045 (execute_late_warn_uninitialized): Removed
26046 * tree-flow.h: Add new prototypes.
26047 * timevar.def: Add new time variable.
26048 * Makefile.in: Add new build file.
26049
26050 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
26051
26052 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
26053 type if available.
26054
26055 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26056
26057 PR target/22224
26058 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26059
26060 2010-04-28 Martin Jambor <mjambor@suse.cz>
26061
26062 * cgraph.h (struct cgraph_node): New field indirect_calls.
26063 (struct cgraph_indirect_call_info): New type.
26064 (struct cgraph_edge): Removed field indirect_call. New fields
26065 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26066 (cgraph_create_indirect_edge): Declare.
26067 (cgraph_make_edge_direct): Likewise.
26068 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26069 * ipa-prop.h (struct ipa_param_call_note): Removed.
26070 (struct ipa_node_params): Removed field param_calls.
26071 (ipa_create_all_structures_for_iinln): Declare.
26072 * cgraph.c: Described indirect edges and uids in initial comment.
26073 (cgraph_add_edge_to_call_site_hash): New function.
26074 (cgraph_edge): Search also among the indirect edges, use
26075 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26076 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26077 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26078 site hash.
26079 (initialize_inline_failed): Assign a reason to indirect edges.
26080 (cgraph_create_edge_1): New function.
26081 (cgraph_create_edge): Moved some functionality to
26082 cgraph_create_edge_1.
26083 (cgraph_create_indirect_edge): New function.
26084 (cgraph_edge_remove_callee): Add an assert checking for
26085 non-indirectness.
26086 (cgraph_edge_remove_caller): Special-case indirect edges.
26087 (cgraph_remove_edge): Likewise.
26088 (cgraph_set_edge_callee): New function.
26089 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26090 (cgraph_make_edge_direct): New function.
26091 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26092 the declaration of the call statement matches.
26093 (cgraph_node_remove_callees): Special-case indirect edges.
26094 (cgraph_clone_edge): Likewise.
26095 (cgraph_clone_node): Clone also the indirect edges.
26096 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26097 indirect_call, dump count of indirect_calls edges.
26098 * ipa-prop.c (iinlining_processed_edges): New variable.
26099 (ipa_note_param_call): Create indirect edges instead of
26100 creating notes. New parameter node.
26101 (ipa_analyze_call_uses): New parameter node, pass it on to
26102 ipa_note_param_call.
26103 (ipa_analyze_stmt_uses): Likewise.
26104 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26105 (print_edge_addition_message): Work on edges rather than on notes.
26106 (update_call_notes_after_inlining): Likewise, renamed to
26107 update_indirect_edges_after_inlining.
26108 (ipa_create_all_structures_for_iinln): New function.
26109 (ipa_free_node_params_substructures): Do not free notes.
26110 (ipa_edge_duplication_hook): Propagate bits within
26111 iinlining_processed_edges bitmap.
26112 (ipa_node_duplication_hook): Do not duplicate notes.
26113 (free_all_ipa_structures_after_ipa_cp): Renamed to
26114 ipa_free_all_structures_after_ipa_cp.
26115 (free_all_ipa_structures_after_iinln): Renamed to
26116 ipa_free_all_structures_after_iinln.
26117 (ipa_write_param_call_note): Removed.
26118 (ipa_read_param_call_note): Removed.
26119 (ipa_write_indirect_edge_info): New function.
26120 (ipa_read_indirect_edge_info): Likewise.
26121 (ipa_write_node_info): Do not stream notes, do stream information
26122 in indirect edges.
26123 (ipa_read_node_info): Likewise.
26124 (lto_ipa_fixup_call_notes): Removed.
26125 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
26126 * ipa-inline.c (pass_ipa_inline): Likewise.
26127 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
26128 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
26129 * tree-inline.c (copy_bb): Removed an unnecessary double check for
26130 is_gimple_call.
26131 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
26132 edges.
26133 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
26134 (output_cgraph): Stream also indirect edges.
26135 (lto_output_edge): Added capability to stream indirect edges.
26136 (input_edge): Likewise.
26137 (input_cgraph_1): Likewise.
26138 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
26139 of indirect edges.
26140
26141 2010-04-28 Richard Guenther <rguenther@suse.de>
26142
26143 PR tree-optimization/43879
26144 PR tree-optimization/43909
26145 * tree-ssa-structalias.c (struct variable_info): Add
26146 only_restrict_pointers flag.
26147 (new_var_info): Initialize it. Increment stats.total_vars here.
26148 (create_function_info_for): Do not increment stats.total_vars here.
26149 (get_function_part_constraint): Fix build with C++.
26150 (insert_into_field_list): Remove.
26151 (push_fields_onto_fieldstack): Properly merge fields.
26152 (create_variable_info_for): Split and simplify.
26153 (create_variable_info_for_1): New piece.
26154 (intra_create_variable_infos): Properly make restrict constraints
26155 from parameters.
26156
26157 2010-04-28 Richard Guenther <rguenther@suse.de>
26158
26159 PR c++/43880
26160 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
26161
26162 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
26163 Jan Hubicka <hubicka@ucw.cz>
26164
26165 * doc/invoke.texi (-Wsuggest-attribute=const,
26166 -Wsuggest-attribute=pure): Document.
26167 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
26168 (function_always_visible_to_compiler_p,
26169 suggest_attribute, warn_function_pure, warn_function_const):
26170 New functions.
26171 (check_call): Improve debug info.
26172 (analyze_function): Do not check availability.
26173 (add_new_function): Check availability.
26174 (propagate): Output warnings.
26175 (skip_function_for_local_pure_const): New function.
26176 (local_pure_const): Use it; output warnings.
26177 * common.opt (Wsuggest-attribute=const,
26178 Wsuggest-attribute=pure): New.
26179
26180 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26181
26182 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
26183 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
26184 or DW_CFA_def_cfa_offset{,_sf}.
26185
26186 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26187
26188 * tree.h: Fix truncated long macros.
26189
26190 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
26191
26192 * collect2.c (TARGET_64BIT): Redefine to target's default.
26193 * tlink.c: Likewise.
26194 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
26195 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
26196 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
26197 for underscoring __USER_LABEL_PREFIX__.
26198 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
26199 (SUB_LINK_ENTRY32): New.
26200 (SUB_LINK_ENTRY64): New.
26201 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
26202 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
26203 (SUB_LINK_ENTRY64): New.
26204 (SUB_LINK_ENTRY): New.
26205 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
26206 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
26207 x64 target is choosen.
26208 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
26209 * configure: Regenerated.
26210 * configure.ac (leading-mingw64-underscores): Option added.
26211
26212 2010-04-27 Jan Hubicka <jh@suse.cz>
26213
26214 * doc/invoke.texi (-fipa-profile): Document.
26215 * opts.c (decode_options): Enable ipa-profile at -O1.
26216 * timevar.def (TV_IPA_PROFILE): Define.
26217 * common.opt (fipa-profile): Add.
26218 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
26219 flag for clones.
26220 (cgraph_propagate_frequency): Handle only local ones.
26221 * tree-pass.h (pass_ipa_profile): Declare.
26222 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
26223 (pass_ipa_profile): Use TV_IPA_PROFILE.
26224 * ipa.c (ipa_profile): New function.
26225 (gate_ipa_profile): Likewise.
26226 (pass_ipa_profile): New global variable.
26227 * passes.c (pass_ipa_profile): New.
26228
26229 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
26230
26231 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
26232
26233 2010-04-27 Martin Jambor <mjambor@suse.cz>
26234
26235 PR middle-end/43812
26236 * ipa.c (dissolve_same_comdat_group_list): New function.
26237 (function_and_variable_visibility): Call
26238 dissolve_same_comdat_group_list when comdat group contains external or
26239 newly local nodes.
26240 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
26241 lists are circular and that they contain only DECL_ONE_ONLY nodes.
26242
26243 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26244
26245 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
26246 (const_hash_1) <VECTOR_CST>: New case.
26247 (compare_constant) <VECTOR_CST>: Likewise.
26248 <ADDR_EXPR>: Deal with LABEL_REFs.
26249 (copy_constant) <VECTOR_CST>: New case.
26250
26251 2010-04-27 Jan Hubicka <jh@suse.cz>
26252
26253 * cgraph.c (cgraph_propagate_frequency): New function.
26254 * cgraph.h (cgraph_propagate_frequency): Declare.
26255 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
26256 cgraph_propagate_frequency.
26257
26258 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26259
26260 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
26261
26262 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
26263
26264 PR target/40657
26265 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
26266 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
26267 here to determine which regs to push and how much stack to reserve.
26268
26269 2010-04-27 Jie Zhang <jie@codesourcery.com>
26270
26271 * doc/gimple.texi (gimple_statement_with_ops): Remove
26272 addresses_taken field.
26273 (gimple_statement_with_memory_ops): Likewise.
26274
26275 2010-04-27 Jan Hubicka <jh@suse.cz>
26276
26277 * tree-inline.c (eni_inlining_weights): Remove.
26278 (estimate_num_insns): Special case more builtins.
26279
26280 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
26281
26282 PR c/32207
26283 * c-typeck.c (build_binary_op): Move forward check for comparison
26284 pointer with null pointer constant and adjust the diagnostic message.
26285
26286 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
26287
26288 PR lto/42776
26289 * configure.ac (gcc_cv_as_section_has_align): Set if installed
26290 binutils supports extended .section directive needed by LTO, or
26291 warn if older binutils found.
26292 (LTO_BINARY_READER): New AC_SUBST'd variable.
26293 (LTO_USE_LIBELF): Likewise.
26294 * config.gcc (lto_binary_reader): New target-specific configure
26295 variable.
26296 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
26297 (LTO_USE_LIBELF): Likewise.
26298 * configure: Regenerate.
26299
26300 * collect2.c (is_elf): Rename from this ...
26301 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
26302 object files in addition to ELF-formatted ones.
26303 (scan_prog_file): Caller updated. Also allow for LTO info marker
26304 symbol to be prefixed or not by an extra underscore.
26305
26306 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
26307 * config/i386/winnt.c: Also #include lto-streamer.h
26308 (i386_pe_asm_named_section): Specify 1-byte section alignment for
26309 LTO named sections.
26310 (i386_pe_asm_output_aligned_decl_common): Add comment.
26311 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
26312
26313 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
26314
26315 PR target/43889
26316 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
26317 Add missing earlyclobber for second alternative.
26318
26319 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
26320
26321 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
26322 bits for artificial defs at the top of the block.
26323 * fwprop.c (single_def_use_enter_block): Don't call it.
26324
26325 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
26326
26327 PR 43715
26328 * configure.ac: Use "$gcc_cv_nm -g" on darwin
26329 instead of "$gcc_cv_objdump -T".
26330 Use "-undefined dynamic_lookup" on darwin.
26331 * configure: Regenerate.
26332
26333 2010-04-26 Jakub Jelinek <jakub@redhat.com>
26334
26335 PR c/43893
26336 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
26337
26338 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26339
26340 * c-parser.c (struct c_token): Move location field up.
26341 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
26342 (struct c_declspecs): Convert typespec_word, storage_class, and
26343 default_int_p into bitfields.
26344 (struct c_declarator): Move loc field up.
26345
26346 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26347
26348 * cfgloop.h (struct loop): Move can_be_parallel field up.
26349 * ipa-prop.h (struct ip_node_params): Move bitfields up.
26350 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
26351 down.
26352 (struct iv_cand): Convert pos field into a bitfield.
26353 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
26354 field up.
26355 (struct _stmt_vec_info): Shuffle fields for better packing.
26356
26357 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26358
26359 * varasm.c (IN_NAMED_SECTION): Remove guard.
26360 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
26361 (IN_NAMED_SECTION_P): ...this.
26362 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
26363 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
26364
26365 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26366
26367 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
26368 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
26369 of shadowing it. Fix comments.
26370
26371 2010-04-26 Jan Hubicka <jh@suse.cz>
26372
26373 * cgraph.c (cgraph_create_node): Set node frequency to normal.
26374 (cgraph_clone_node): Copy function frequency.
26375 * cgraph.h (node_frequency): New enum
26376 (struct cgraph_node): Add.
26377 * final.c (rest_of_clean_state): Update.
26378 * lto-cgraph.c (lto_output_node): Output node frequency.
26379 (input_overwrite_node): Input node frequency.
26380 * tre-ssa-loop-ivopts (computation_cost): Update.
26381 * lto-streamer-out.c (output_function): Do not output function
26382 frequency.
26383 * predict.c (maybe_hot_frequency_p): Update and handle functions
26384 executed once.
26385 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
26386 attribute lookup.
26387 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
26388 (compute_function_frequency): Set noreturn functions to be executed
26389 once.
26390 (choose_function_section): Update.
26391 * lto-streamer-in.c (input_function): Do not input function frequency.
26392 * function.c (allocate_struct_function): Do not initialize function
26393 frequency.
26394 * function.h (function_frequency): Remove.
26395 (struct function): Remove function frequency.
26396 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
26397 (try_update): Update.
26398 * tree-inline.c (initialize_cfun): Do not update function frequency.
26399 * passes.c (pass_init_dump_file): Update.
26400 * i386.c (ix86_compute_frame_layout): Update.
26401 (ix86_pad_returns): Update.
26402
26403 2010-04-26 Jie Zhang <jie@codesourcery.com>
26404
26405 PR tree-optimization/43833
26406 * tree-vrp.c (range_int_cst_p): New.
26407 (range_int_cst_singleton_p): New.
26408 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
26409 when both operands are constants. Use range_int_cst_p in
26410 BIT_IOR_EXPR case.
26411
26412 2010-04-26 Jan Hubicka <jh@suse.cz>
26413
26414 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
26415
26416 2010-04-26 Richard Guenther <rguenther@suse.de>
26417
26418 PR lto/43080
26419 * gimple.c (gimple_decl_printable_name): Deal gracefully
26420 with a NULL DECL_NAME.
26421
26422 2010-04-26 Richard Guenther <rguenther@suse.de>
26423
26424 PR lto/42425
26425 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
26426 if emitting debug information and it is either a function
26427 or a namespace decl.
26428
26429 2010-04-26 Ira Rosen <irar@il.ibm.com>
26430
26431 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
26432 determine if the statement is vectorizable, and a macro to access it.
26433 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26434 Skip statements that can't be vectorized. If the analysis fails,
26435 mark the statement as unvectorizable if vectorizing basic block.
26436 (vect_compute_data_refs_alignment): Likewise.
26437 (vect_verify_datarefs_alignment): Skip statements marked as
26438 unvectorizable. Add print.
26439 (vect_analyze_group_access): Skip statements that can't be
26440 vectorized. If the analysis fails, mark the statement as
26441 unvectorizable if vectorizing basic block.
26442 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
26443 * tree-vect-stmts.c (vectorizable_store): Fix the number of
26444 generated stmts for SLP.
26445 (new_stmt_vec_info): Initialize the new field.
26446 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
26447 statements marked as unvectorizable.
26448
26449 2010-04-25 Joseph Myers <joseph@codesourcery.com>
26450
26451 * c-common.c (flag_isoc1x): New.
26452 (flag_isoc99): Update comment.
26453 * c-common.h (flag_isoc1x): New.
26454 (flag_isoc99): Update comment.
26455 * c-cppbuiltin.c (builtin_define_float_constants): Also define
26456 __<type>_DECIMAL_DIG__.
26457 * c-opts.c (set_std_c1x): New.
26458 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
26459 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
26460 * c.opt (-std=c1x, -std=gnu1x): New options.
26461 * doc/cpp.texi: Mention -std=c1x.
26462 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
26463 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
26464 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
26465 * doc/standards.texi: Mention C1X.
26466 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
26467 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
26468 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
26469 Define for C1X.
26470
26471 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
26472
26473 * config/i386/gmon-sol2.c (_mcleanup): Change format string
26474 placeholder from 0x%x to %#x.
26475 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26476 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26477 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26478 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26479 * config/i386/i386.c (ix86_target_string): Ditto.
26480 (output_pic_addr_const): Ditto.
26481 (print_operand): Ditto.
26482
26483 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
26484
26485 * combine.c (find_split_point): Add third argument. Use it
26486 to find nested multiply-accumulate instructions. Adjust calls.
26487 (try_combine): Adjust call to find_split_point.
26488
26489 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
26490
26491 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
26492
26493 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
26494
26495 PR tree-optimization/41442
26496 * fold-const.c (merge_truthop_with_opposite_arm): New function.
26497 (fold_binary_loc): Call it.
26498
26499 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26500
26501 * toplev.c (general_init): Set default for fdiagnostics-show-option.
26502 * opts.c (common_handle_option): Allow disabling it.
26503 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
26504
26505 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
26506
26507 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
26508 between modes if both types are integral.
26509
26510 2010-04-23 Richard Guenther <rguenther@suse.de>
26511
26512 PR tree-optimization/43572
26513 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
26514
26515 2010-04-23 Richard Guenther <rguenther@suse.de>
26516
26517 PR lto/43455
26518 * tree-inline.c (tree_can_inline_p): Also check compatibility
26519 of return types.
26520
26521 2010-04-23 Martin Jambor <mjambor@suse.cz>
26522
26523 PR tree-optimization/43846
26524 * tree-sra.c (struct access): New flag grp_assignment_read.
26525 (build_accesses_from_assign): Set grp_assignment_read.
26526 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
26527 (enum mark_read_status): New type.
26528 (analyze_access_subtree): Propagate grp_assignment_read, create
26529 accesses also if both direct_read and root->grp_assignment_read.
26530
26531 2010-04-23 Martin Jambor <mjambor@suse.cz>
26532
26533 PR middle-end/43835
26534 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
26535 function does not have type attributes.
26536
26537 2010-04-23 Richard Guenther <rguenther@suse.de>
26538
26539 PR lto/42653
26540 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
26541 of FUNCTION_DECLs.
26542
26543 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26544
26545 * sese.h (create_if_region_on_edge): Remove.
26546
26547 * sese.c (create_if_region_on_edge): Make static.
26548
26549 * tree-inline.c: Do not include ggc.h.
26550
26551 * expr.c: Do not include ggc.h.
26552
26553 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
26554 dependencies.
26555
26556 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
26557
26558 PR target/43744
26559 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26560 in the middle of insns for casesi_worker_2.
26561
26562 2010-04-22 David Edelsohn <edelsohn@gnu.org>
26563
26564 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
26565
26566 2010-04-22 Ira Rosen <irar@il.ibm.com>
26567
26568 PR tree-optimization/43842
26569 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
26570 loop unrolling in update of exit phis. Fix comment.
26571 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
26572 least two reduction statements in the loop before starting SLP
26573 analysis.
26574
26575 2010-04-22 Nick Clifton <nickc@redhat.com>
26576
26577 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
26578
26579 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
26580
26581 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
26582 to simplify a + ~a.
26583
26584 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26585
26586 * tree-parloops.c (loop_parallel_p): New argument
26587 parloop_obstack. Pass it down.
26588 (parallelize_loops): New variable parloop_obstack. Initialize it,
26589 pass it down, free it.
26590
26591 * tree-loop-linear.c (linear_transform_loops): Pass down
26592 lambda_obstack.
26593
26594 * tree-data-ref.h (lambda_compute_access_matrices): New argument
26595 of type struct obstack *.
26596
26597 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
26598 scratch_obstack. Initialize it, pass down, free it.
26599
26600 * lambda.h (lambda_loop_new): Remove.
26601 (lambda_matrix_new, lambda_matrix_inverse)
26602 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
26603 argument of type struct obstack *.
26604
26605 * lambda-trans.c (lambda_trans_matrix_new): New argument
26606 lambda_obstack. Pass it down, use obstack allocation for ret.
26607 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
26608 it down.
26609
26610 * lambda-mat.c (lambda_matrix_get_column)
26611 (lambda_matrix_project_to_null): Remove.
26612 (lambda_matrix_new): New argument lambda_obstack. Use obstack
26613 allocation for mat.
26614 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
26615 lambda_obstack.
26616
26617 * lambda-code.c (lambda_loop_new): New function.
26618 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
26619 (lambda_compute_auxillary_space, lambda_compute_target_space)
26620 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
26621 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
26622 (build_access_matrix): New argument lambda_obstack. Use obstack
26623 allocation for am.
26624 (lambda_compute_step_signs, lambda_compute_access_matrices): New
26625 argument lambda_obstack. Pass it down.
26626
26627 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26628
26629 * optabs.h (expand_widening_mult): Declare.
26630
26631 2010-04-22 Richard Guenther <rguenther@suse.de>
26632
26633 PR tree-optimization/43845
26634 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
26635 lookup the CALL_EXPR function and arguments.
26636
26637 2010-04-22 Nick Clifton <nickc@redhat.com>
26638
26639 * config/stormy16/stormy16.c
26640 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
26641 * config/stormy16/stormy16.h: Tidy up formatting.
26642 (DONT_USE_BUILTIN_SETJMP): Remove definition.
26643 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
26644 (ineqbranchsi): Delete pattern.
26645 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
26646 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
26647 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
26648 stormy16-lib2-ucmpsi2.c.
26649
26650 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26651
26652 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
26653 df_simulate_find_noclobber_defs as appropriate. Keep track of an
26654 extra set merge_set_noclobber, and use it to relax the final test
26655 slightly.
26656 * df.h (df_simulate_find_noclobber_defs): Declare.
26657 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
26658 conditional defs.
26659 (df_simulate_find_noclobber_defs): New function.
26660
26661 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
26662
26663 * config/i386/i386.md: Use {} around multi-line preparation statements.
26664
26665 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26666
26667 * c-tree.h (push_init_level, pop_init_level, set_init_index)
26668 (process_init_element): New argument of type struct obstack *.
26669
26670 * c-typeck.c (push_init_level, pop_init_level, set_designator)
26671 (set_init_index, set_init_label, set_nonincremental_init)
26672 (set_nonincremental_init_from_string, find_init_member)
26673 (output_init_element, output_pending_init_elements)
26674 (process_init_element): New argument braced_init_obstack. Pass it
26675 down.
26676 (push_range_stack, add_pending_init): New argument
26677 braced_init_obstack. Use obstack allocation.
26678
26679 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
26680 braced_init_obstack. Pass it down.
26681 (c_parser_braced_init): New variables ret, braced_init_obstack.
26682 Initialize obstack, pass it down and finally free it.
26683
26684 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26685
26686 PR middle-end/29274
26687 * tree-pass.h (pass_optimize_widening_mul): Declare.
26688 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
26689 gate_optimize_widening_mul): New static functions.
26690 (pass_optimize_widening_mul): New.
26691 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
26692 <case MULT_EXPR>: Remove support for widening multiplies.
26693 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
26694 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
26695 simplify_gen_unary rather than directly building extensions.
26696 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
26697 WIDEN_MULT_EXPR.
26698 * expmed.c (expand_widening_mult): New function.
26699 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
26700
26701 2010-04-21 Jan Hubicka <jh@suse.cz>
26702
26703 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
26704 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
26705 * lto-wpa-fixup.c: Remove.
26706 * Makefile.in (lto-wpa-fixup.o): Remove.
26707 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
26708 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
26709 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
26710
26711 2010-04-21 Jan Hubicka <jh@suse.cz>
26712
26713 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
26714 add write_optimization_summary, read_optimization_summary.
26715 (ipa_write_summaries_of_cgraph_node_set): Remove.
26716 (ipa_write_optimization_summaries): Declare.
26717 (ipa_read_optimization_summaries): Declare.
26718 * ipa-cp.c (pass_ipa_cp): Update.
26719 * ipa-reference.c (pass_ipa_reference): Update.
26720 * ipa-pure-const.c (pass_ipa_pure_const): Update.
26721 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
26722 Update.
26723 * ipa-inline.c (pass_ipa_inline): Update.
26724 * ipa.c (pass_ipa_whole_program): Update.
26725 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
26726 * passes.c (ipa_write_summaries_1): Do not test wpa.
26727 (ipa_write_optimization_summaries_1): New.
26728 (ipa_write_optimization_summaries): New.
26729 (ipa_read_summaries): Do not test ltrans.
26730 (ipa_read_optimization_summaries_1): New.
26731 (ipa_read_optimization_summaries): New.
26732
26733 2010-04-21 Jan Hubicka <jh@suse.cz>
26734
26735 * lto-cgraph.c (lto_output_node): Do not output comdat groups
26736 for boundary nodes.
26737 (output_cgraph): Do not arrange comdat groups for boundary nodes.
26738
26739 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26740
26741 PR debug/40040
26742 * dwarf2out.c (add_name_and_src_coords_attributes): Add
26743 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
26744
26745 2010-04-21 Jan Hubicka <jh@suse.cz>
26746
26747 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
26748
26749 2010-04-21 Jan Hubicka <jh@suse.cz>
26750
26751 * varpool.c (decide_is_variable_needed): Variable is always needed
26752 during ltrans.
26753
26754 2010-04-21 Jan Hubicka <jh@suse.cz>
26755
26756 * opts.c (decode_options): Enable pure-const pass for whopr.
26757
26758 2010-04-21 Jan Hubicka <jh@suse.cz>
26759
26760 * cgraph.c (dump_cgraph_node): Dump also assembler name.
26761 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
26762 at WPA dumping.
26763 (cgraph_decide_inlining): Do not expect callee to be removed in all
26764 cases.
26765
26766 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
26767
26768 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
26769
26770 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26771
26772 * config/i386/i386.md (x86_shrd): Add athlon_decode and
26773 amdfam10_decode attributes.
26774
26775 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26776
26777 PR middle-end/43570
26778 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
26779 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
26780 (lower_copyprivate_clauses): Use private var in outer
26781 context instead of original var. Make sure the types
26782 are correct for VLAs.
26783
26784 2010-04-21 Richard Guenther <rguenther@suse.de>
26785
26786 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
26787 to non-pointer objects.
26788
26789 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26790
26791 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
26792 last chain entry if it starts with the still current label.
26793 (add_location_or_const_value_attribute): Check that
26794 loc_list->first->next is NULL instead of comparing ->first with ->last.
26795 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
26796 to add_var_loc_to_decl.
26797
26798 * dwarf2out.c (output_call_frame_info): For dw_cie_version
26799 >= 4 add also address size and segment size fields into CIE header.
26800
26801 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
26802 long as address size is the same as sizeof (void *) and
26803 segment size is 0.
26804 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
26805 address size or segment size is unexpected, return DW_EH_PE_omit.
26806 (classify_object_over_fdes): If get_cie_encoding returned
26807 DW_EH_PE_omit, return -1.
26808 (init_object): If classify_object_over_fdes returned -1,
26809 pretend there were no FDEs at all.
26810
26811 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26812
26813 * config/i386/i386.md (bswap<mode>2): Macroize expander from
26814 bswap{si,di}2 using SWI48 mode iterator.
26815 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
26816 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
26817 set modrm attribute of bswap insn to 0 and remove length attribute.
26818 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
26819 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
26820 set mode attribute to <MODE> and remove length attribute.
26821
26822 2010-04-20 James E. Wilson <wilson@codesourcery.com>
26823
26824 PR rtl-optimization/43520
26825 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
26826 zero available registers.
26827
26828 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26829
26830 * builtins.c (fold_builtin_cproj): Fold more cases.
26831
26832 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26833
26834 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
26835 (fold_builtin_1): Fold builtin cproj.
26836 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
26837 Use ATTR_CONST_NOTHROW_LIST.
26838
26839 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
26840
26841 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
26842 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
26843 ffsi2_no_cmove for !TARGET_CMOVE.
26844 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
26845 (ffssi2): Remove expander.
26846 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
26847 mode iterator.
26848 (ctz<mode>2): Ditto from ctz{si,di}2.
26849 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
26850 mode iterator.
26851 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
26852 mode iterator.
26853
26854 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26855
26856 * dwarf2out.c (AT_linkage_name): Define.
26857 (clone_as_declaration): Handle DW_AT_linkage_name.
26858 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
26859 of DW_AT_MIPS_linkage_name.
26860 (move_linkage_attr): Likewise.
26861 (dwarf2out_finish): Likewise.
26862
26863 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
26864
26865 PR middle-end/41952
26866 * fold-const.c (fold_comparison): New folding rule.
26867
26868 2010-04-20 Anatoly Sokolov <aesok@post.ru>
26869
26870 * double-int.h (double_int_setbit): Declare.
26871 * double-int.c (double_int_setbit): New function.
26872 * rtl.h (immed_double_int_const): Declare.
26873 * emit-rtl.c (immed_double_int_const): New function.
26874 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
26875 and immed_double_int_const functions.
26876 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
26877 expand_copysign_bit): (Ditto.).
26878 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
26879 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
26880 * dojump.c (prefer_and_bit_test): (Ditto.).
26881 * expr.c (convert_modes, reduce_to_bit_field_precision,
26882 const_vector_from_tree): (Ditto.).
26883 * expmed.c (mask_rtx, lshift_value): (Ditto.).
26884
26885 2010-04-20 Jan Hubicka <jh@suse.cz>
26886
26887 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
26888 (dump_cgraph_node): Dump new flags.
26889 * cgraph.h (struct cgraph_node): Add flags
26890 reachable_from_other_partition and in_other_partition.
26891 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
26892 other partition can not be removed.
26893 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
26894 the other partition must be output; silence sanity checking on
26895 leaking functions bodies from other paritition.
26896 * lto-cgraph.c (reachable_from_other_partition_p): New function.
26897 (lto_output_node): Output new flags; do not sanity check that inline
26898 clones are output; drop lto_forced_extern_inline_p code; do not mock
26899 visibility flags at partition boundaries.
26900 (add_node_to): New function.
26901 (output_cgraph): Use it to sort functions so masters appear before
26902 clones.
26903 (input_overwrite_node): Input new flags.
26904 * passes.c (ipa_write_summaries): Do not call
26905 lto_new_extern_inline_states.
26906 * lto-section-out.c (forced_extern_inline,
26907 lto_new_extern_inline_states lto_delete_extern_inline_states,
26908 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
26909 * lto-streamer.h (lto_new_extern_inline_states,
26910 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
26911 lto_forced_extern_inline_p): Kill.
26912
26913 2010-04-20 Richard Guenther <rguenther@suse.de>
26914
26915 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
26916 from vars that can have pointers.
26917 (process_constraint): Dump useless constraints.
26918
26919 2010-04-20 Richard Guenther <rguenther@suse.de>
26920
26921 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
26922 (dump_sa_points_to_info): Remove asserts.
26923 (init_base_vars): nothing_id isn't an escape point nor does it
26924 have pointers.
26925
26926 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26927
26928 * tree.h (TYPE_REF_IS_RVALUE): Define.
26929 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
26930 should_move_die_to_comdat, prune_unused_types_walk): Handle
26931 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
26932 (modified_type_die, gen_reference_type_die): Emit
26933 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
26934 if TYPE_REF_IS_RVALUE and -gdwarf-4.
26935
26936 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26937
26938 PR target/43635
26939 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
26940 calls for -fpic -m31 if they have been sibcall optimized.
26941
26942 2010-04-19 James E. Wilson <wilson@codesourcery.com>
26943
26944 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
26945 ar.lc fixed and call-used.
26946
26947 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
26948
26949 2010-04-19 Jan Hubicka <jh@suse.cz>
26950
26951 * opts.c (decode_options): Disable whpr incompatible passes.
26952 * lto/lto.c (lto_1_to_1_map): Skip clones.
26953 (read_cgraph_and_symbols): Do not mark everything as needed.
26954 (do_whole_program_analysis): Do map only after optimizing;
26955 set proper cgraph_state; use passmanager.
26956
26957 2010-04-19 DJ Delorie <dj@redhat.com>
26958
26959 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
26960 POINTER_PLUS_EXPR and fix them.
26961
26962 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
26963
26964 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
26965 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
26966 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
26967 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
26968 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
26969 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
26970 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
26971 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
26972 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
26973 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
26974 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
26975
26976 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
26977
26978 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
26979 (check_cond_move_block): Likewise.
26980 (cond_move_process_if_block): Likewise.
26981 (noce_find_if_block): Improve formatting.
26982 (find_if_header): Pass 0 to memset and tweak conditions.
26983 (cond_exec_find_if_block): Fix long lines and tweak conditions.
26984
26985 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26986
26987 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
26988 for -gdwarf-4.
26989
26990 PR middle-end/43337
26991 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
26992 with non-local decl doesn't need chain.
26993
26994 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
26995
26996 * ira-color.c (allocno_reload_assign): Avoid accumulating
26997 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
26998
26999 2010-04-19 Martin Jambor <mjambor@suse.cz>
27000
27001 * gimple.h (create_tmp_reg): Declare.
27002 * gimplify.c (create_tmp_reg): New function.
27003 (gimplify_return_expr): Use create_tmp_reg.
27004 (gimplify_omp_atomic): Likewise.
27005 (gimple_regimplify_operands): Likewise.
27006 * tree-dfa.c (make_rename_temp): Likewise.
27007 * tree-predcom.c (predcom_tmp_var): Likewise.
27008 (reassociate_to_the_same_stmt): Likewise.
27009 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
27010 (get_replaced_param_substitute): Likewise.
27011 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27012 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
27013 * tree-ssa-pre.c (get_representative_for): Likewise.
27014 (create_expression_by_pieces): Likewise.
27015 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
27016 (create_tailcall_accumulator): Likewise.
27017
27018 2010-04-19 Martin Jambor <mjambor@suse.cz>
27019
27020 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
27021 new_stmt.
27022 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
27023
27024 2010-04-19 Richard Guenther <rguenther@suse.de>
27025
27026 PR tree-optimization/43796
27027 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
27028 from SCEV in the lattice.
27029 (vrp_visit_phi_node): Dump change.
27030
27031 2010-04-19 Richard Guenther <rguenther@suse.de>
27032
27033 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
27034 * configure: Re-generated.
27035
27036 2010-04-19 Richard Guenther <rguenther@suse.de>
27037
27038 PR tree-optimization/43783
27039 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
27040 constant ARRAY_REF operands two and three if possible.
27041
27042 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
27043
27044 PR target/43766
27045 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
27046
27047 2010-04-19 Jie Zhang <jie@codesourcery.com>
27048
27049 PR target/43662
27050 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
27051
27052 2010-04-19 Ira Rosen <irar@il.ibm.com>
27053
27054 PR tree-optimization/37027
27055 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
27056 and macro to access it.
27057 (vectorizable_reduction): Add argument.
27058 (vect_get_slp_defs): Likewise.
27059 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27060 statements for possible use in SLP.
27061 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27062 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27063 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27064 add new argument.
27065 (vectorizable_reduction): Likewise.
27066 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27067 vect_get_slp_defs.
27068 (vectorizable_type_demotion, vectorizable_type_promotion,
27069 vectorizable_store): Likewise.
27070 (vect_analyze_stmt): Update call to vectorizable_reduction.
27071 (vect_transform_stmt): Likewise.
27072 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27073 (vect_build_slp_tree): Fix indentation. Check that there are no loads
27074 from different interleaving chains in same node.
27075 (vect_slp_rearrange_stmts): New function.
27076 (vect_supported_load_permutation_p): Allow load permutations for
27077 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27078 inside SLP nodes if necessary.
27079 (vect_analyze_slp_instance): Handle reductions.
27080 (vect_analyze_slp): Try to build SLP instances originating from groups
27081 of reductions.
27082 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27083 (vect_get_constant_vectors): Create initial vectors for reductions
27084 according to reduction code. Add new argument.
27085 (vect_get_slp_defs): Add new argument, pass it to
27086 vect_get_constant_vectors.
27087 (vect_schedule_slp_instance): Remove SLP tree root statements.
27088
27089 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27090
27091 * tree.h (ENUM_IS_SCOPED): Define.
27092 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27093 for ENUM_IS_SCOPED enums.
27094
27095 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
27096
27097 * fold-const.c (fold_comparison): Use ssizetype.
27098 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27099 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27100 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27101 * tree-object-size.c (compute_object_sizes): Use size_type_node.
27102
27103 * tree.h (initialize_sizetypes): Remove parameter.
27104 (build_common_tree_nodes): Remove second parameter.
27105 * stor-layout.c (initialize_sizetypes): Remove parameter.
27106 Always create an unsigned type.
27107 (set_sizetype): Assert that the passed type is unsigned and simplify.
27108 * tree.c (build_common_tree_nodes): Remove second parameter.
27109 Adjust call to initialize_sizetypes.
27110 * c-decl.c (c_init_decl_processing): Remove second argument in call to
27111 build_common_tree_nodes.
27112
27113 2010-04-18 Matthias Klose <doko@ubuntu.com>
27114
27115 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
27116
27117 2010-04-18 Ira Rosen <irar@il.ibm.com>
27118
27119 PR tree-optimization/43771
27120 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
27121 load permutation doesn't have gaps.
27122
27123 2010-04-18 Jan Hubicka <jh@suse.cz>
27124
27125 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
27126 (sse_prologue_save_insn expander): Use new pattern.
27127 (sse_prologue_save_insn1): New pattern and splitter.
27128 (sse_prologue_save_insn): Update to deal also with 64bit aligned
27129 blocks.
27130 * i386.c (setup_incoming_varargs_64): Do not compute jump
27131 destination here.
27132 (ix86_gimplify_va_arg): Update alignment needed.
27133 (ix86_local_alignment): Do not align all local arrays to 128bit.
27134
27135 2010-04-17 Jan Hubicka <jh@suse.cz>
27136
27137 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
27138
27139 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27140
27141 * arm.md (negdi2): Remove redundant code to force values into a
27142 register.
27143
27144 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27145
27146 * arm/bpabi.S: Add EABI alignment attributes to objects.
27147 * arm/bpabi-v6m.S: Likewise.
27148 * arm/crti.asm: Likewise.
27149 * arm/crtn.asm: Likewise.
27150 * arm/lib1funcs.asm: Likewise.
27151 * arm/libunwind.S: Likewise.
27152
27153 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27154
27155 * arm-protos.h (tune_params): New structure.
27156 * arm.c (current_tune): New variable.
27157 (arm_constant_limit): Delete.
27158 (struct processors): Add pointer to the tune parameters.
27159 (arm_slowmul_tune): New tuning option.
27160 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
27161 (all_cores): Adjust to pick up the tuning model.
27162 (arm_constant_limit): New function.
27163 (arm_override_options): Select the appropriate tuning model. Delete
27164 initialization of arm_const_limit.
27165 (arm_split_constant): Use the new constant-limit model.
27166 (arm_rtx_costs): Pick up the current tuning model.
27167 * arm.md (is_strongarm, is_xscale): Delete.
27168 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
27169 for Xscale variant architectures.
27170 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
27171
27172 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27173
27174 * config/arm/arm.c (arm_gen_constant): Remove unused variable
27175 can_shift.
27176 (arm_rtx_costs_1): Remove unused variable extra_cost.
27177 (arm_unwind_emit_set): Use variable offset.
27178 (thumb1_output_casesi): Remove unused variable flags.
27179
27180 2010-04-16 Jeff Law <law@redhat.com>
27181
27182 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
27183 needing assignment rather than doing a two-phase assignment. Remove
27184 unused variable 'm'.
27185
27186 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27187
27188 PR bootstrap/43767
27189 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
27190
27191 2010-04-16 Doug Kwan <dougkwan@google.com>
27192
27193 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
27194 (next_operand_entry_id): New static variable.
27195 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
27196 (add_to_ops_vec): Assigned unique ID to operand entry.
27197 (struct oecount_s): New field ID.
27198 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
27199 (undistribute_ops_list): Assign unique IDs to oecounts.
27200 (init_reassoc): reset next_operand_entry_id.
27201
27202 2010-04-16 Doug Kwan <dougkwan@google.com>
27203
27204 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
27205 missing left parenthesis.
27206
27207 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
27208
27209 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
27210 *btdi_rex64 using SWI48 mode iterator.
27211 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
27212 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
27213 *jcc_btdi_mask_rex64.
27214
27215 2010-04-16 Anatoly Sokolov <aesok@post.ru>
27216
27217 * double-int.h (tree_to_double_int): Convert to macro.
27218 * double-int.c (tree_to_double_int): Remove.
27219
27220 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27221
27222 PR debug/43762
27223 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
27224 with want_address 2 and in case a single element list might be
27225 possible, call it again with want_address 0.
27226
27227 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27228
27229 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
27230 case 'W' print operands for HI mode.
27231 * config/h8300/h8300.h (Y0, Y2) : New constraints.
27232 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
27233 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
27234 * config/h8300/predicate.md (bit_register_indirect_operand): New.
27235
27236 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
27237
27238 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
27239 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
27240 #xx:3 and #xx:4 mode.
27241
27242 * config/h8300/h8300.md (inverted load with HImode dest): Add
27243 support for H8300SX.
27244
27245 * config/h8300/predicate.md (bit_operand): Allow immediate values that
27246 satisfy 'U' constraint.
27247
27248 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27249
27250 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
27251 * configure: Regenerate.
27252 * config.in: Regenerate.
27253 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
27254 works.
27255
27256 2010-04-16 Richard Guenther <rguenther@suse.de>
27257
27258 * tree.h (struct tree_decl_minimal): Move pt_uid ...
27259 (struct tree_decl_common): ... here.
27260 (DECL_PT_UID): Adjust.
27261 (SET_DECL_PT_UID): Likewise.
27262 (DECL_PT_UID_SET_P): Likewise.
27263
27264 2010-04-16 Richard Guenther <rguenther@suse.de>
27265
27266 PR tree-optimization/43572
27267 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
27268 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
27269 * tree-flow.h (is_call_clobbered): Remove.
27270 * tree-flow-inline.h (is_call_clobbered): Likewise.
27271 * tree-dfa.c (dump_variable): Do not dump call clobber state.
27272 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
27273 (execute_return_slot_opt): Adjust.
27274 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
27275 check for call clobbered vars here.
27276 (find_tail_calls): Move tailcall verification to the
27277 proper place.
27278
27279 2010-04-16 Diego Novillo <dnovillo@google.com>
27280
27281 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
27282
27283 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27284
27285 PR target/40603
27286 * config/arm/arm.md (cbranchqi4): New pattern.
27287 * config/arm/predicates.md (const0_operand,
27288 cbranchqi4_comparison_operator): New predicates.
27289
27290 2010-04-16 Richard Guenther <rguenther@suse.de>
27291
27292 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
27293 (dump_gimple_stmt): Likewise.
27294
27295 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27296
27297 * recog.h (struct recog_data): New field is_operator.
27298 (struct insn_operand_data): New field is_operator.
27299 * recog.c (extract_insn): Set recog_data.is_operator.
27300 * genoutput.c (output_operand_data): Emit code to set the
27301 is_operator field.
27302 * reload.c (find_reloads): Use it rather than testing for an
27303 empty constraint string.
27304
27305 PR target/41514
27306 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
27307 If the previous insn is a cbranchsi4_insn with the same arguments,
27308 omit the compare instruction.
27309
27310 * config/arm/arm.md (addsi3_cbranch): If destination is a high
27311 register, inputs must be low registers and we need a low register
27312 scratch. Handle alternative 2 like alternative 3.
27313
27314 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27315
27316 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
27317 don't call get_addr on both. If one expression is a VALUE and
27318 the other a REG, check VALUE's locs if the REG isn't among them.
27319
27320 2010-04-16 Christian Bruel <christian.bruel@st.com>
27321
27322 * config/sh/sh.h (sh_frame_pointer_required): New function.
27323 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
27324 (flag_omit_frame_pointer) Set.
27325 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
27326 (rounded_frame_size): Adjust size with outgoing_args_size.
27327 (sh_set_return_address): Must return from stack pointer.
27328 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
27329 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
27330 (ACCUMULATE_OUTGOING_ARGS): Define.
27331 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
27332 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
27333
27334 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27335
27336 PR target/43471
27337 * config/sh/sh.c (sh_legitimize_reload_address): Use
27338 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
27339 Remove a unneeded check for offset_base.
27340
27341 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
27342
27343 * configure: Regenerated.
27344
27345 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27346
27347 * config/s390/s390.c (s390_call_save_register_used): Switch back
27348 to HARD_REGNO_NREGS.
27349
27350 2010-04-15 Richard Guenther <rguenther@suse.de>
27351
27352 * alias.c (alias_set_subset_of): Handle alias-set zero
27353 child properly.
27354
27355 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
27356 Julian Brown <julian@codesourcery.com>
27357
27358 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
27359 alternatives according to use of high and low regs.
27360 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
27361 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
27362 optimizing for size on Thumb-2.
27363
27364 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
27365
27366 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
27367
27368 2010-04-15 Richard Guenther <rguenther@suse.de>
27369
27370 * tree-ssa-structalias.c (struct variable_info): Add
27371 is_fn_info flag.
27372 (new_var_info): Initialize it.
27373 (dump_constraints): Support printing last added constraints.
27374 (debug_constraints): Adjust.
27375 (dump_constraint_graph): Likewise.
27376 (make_heapvar_for): Check for NULL cfun.
27377 (get_function_part_constraint): New function.
27378 (get_fi_for_callee): Likewise.
27379 (find_func_aliases): Properly implement IPA PTA constraints.
27380 (process_ipa_clobber): New function.
27381 (find_func_clobbers): Likewise.
27382 (insert_into_field_list_sorted): Remove.
27383 (create_function_info_for): Properly allocate vars for IPA mode.
27384 Do not use insert_into_field_list_sorted.
27385 (create_variable_info_for): Properly generate constraints for
27386 global vars in IPA mode.
27387 (dump_solution_for_var): Always dump the solution.
27388 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
27389 (find_what_var_points_to): Adjust.
27390 (pt_solution_set): Change.
27391 (pt_solution_ior_into): New function.
27392 (pt_solution_empty_p): Export.
27393 (pt_solution_includes_global): Adjust.
27394 (pt_solution_includes_1): Likewise.
27395 (pt_solutions_intersect_1): Likewise.
27396 (dump_sa_points_to_info): Check some invariants.
27397 (solve_constraints): Move constraint dumping ...
27398 (compute_points_to_sets): ... here.
27399 (ipa_pta_execute): ... and here.
27400 (compute_may_aliases): Do not re-compute points-to info
27401 locally if IPA info is available.
27402 (ipa_escaped_pt): New global var.
27403 (ipa_pta_execute): Properly implement IPA PTA.
27404 * tree-into-ssa.c (dump_decl_set): Support dumping
27405 decls not in referenced-vars.
27406 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
27407 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
27408 (dump_points_to_solution): Likewise.
27409 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
27410 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
27411 (remap_gimple_stmt): Reset call clobber/use information if necessary.
27412 (copy_decl_to_var): Copy DECL_PT_UID.
27413 (copy_result_decl_to_var): Likewise.
27414 * tree.c (make_node_stat): Initialize DECL_PT_UID.
27415 (copy_node_stat): Copy it.
27416 * tree.h (DECL_PT_UID): New macro.
27417 (SET_DECL_PT_UID): Likewise.
27418 (DECL_PT_UID_SET_P): Likewise.
27419 (struct tree_decl_minimal): Add pt_uid member.
27420 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
27421 (pt_solution_empty_p): Declare.
27422 (pt_solution_set): Adjust.
27423 (ipa_escaped_pt): Declare.
27424 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
27425 * gimple-pretty-print.c (pp_points_to_solution): New function.
27426 (dump_gimple_call): Dump call clobber/use information.
27427 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
27428 * tree-pass.h (TDF_ALIAS): New dump option.
27429 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
27430 * doc/invoke.texi (-fipa-pta): Update documentation.
27431
27432 2010-04-15 Richard Guenther <rguenther@suse.de>
27433
27434 * Makefile.in (OBJS-common): Add gimple-fold.o.
27435 (gimple-fold.o): New rule.
27436 * tree.h (maybe_fold_offset_to_reference,
27437 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
27438 prototypes ...
27439 * gimple.h: ... here.
27440 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
27441 may_propagate_address_into_dereference): Move prototypes ...
27442 * gimple.h: ... here.
27443 * tree-ssa-ccp.c (get_symbol_constant_value,
27444 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
27445 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
27446 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
27447 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
27448 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
27449 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
27450 gimplify_and_update_call_from_tree): Move ...
27451 * gimple-fold.c: ... here. New file.
27452 (ccp_fold_builtin): Rename to ...
27453 (gimple_fold_builtin): ... this.
27454 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
27455
27456 2010-04-15 Richard Guenther <rguenther@suse.de>
27457
27458 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
27459 fit_double_type, force_fit_type_double, add_double_with_sign,
27460 neg_double, mul_double_with_sign, lshift_double, rshift_double,
27461 lrotate_double, rrotate_double, div_and_round_double): Move ...
27462 * double-int.c: ... here.
27463 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
27464 add_double, neg_double, mul_double_with_sign, mul_double,
27465 lshift_double, rshift_double, lrotate_double, rrotate_double,
27466 div_and_round_double): Move prototypes ...
27467 * double-int.h: ... here.
27468
27469 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
27470
27471 PR target/43742
27472 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
27473 matching constraints to ensure inputs match the output.
27474
27475 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27476
27477 PR target/43742
27478 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
27479 in an input-only operand.
27480
27481 2010-04-15 Anatoly Sokolov <aesok@post.ru>
27482
27483 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
27484 (double_int_not, double_int_lshift, double_int_rshift): Declare.
27485 (double_int_negative_p): Convert to static inline function.
27486 * double-int.c (double_int_lshift, double_int_lshift): New functions.
27487 (double_int_negative_p): Remove.
27488 * tree.h (lshift_double, rshift_double):
27489 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
27490 * fold-const.c (fold_convert_const_int_from_real,
27491 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
27492 (lshift_double): Change type of arith argument to bool.
27493 (rshift_double): Change type of arith argument to bool. Correct
27494 comment.
27495 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27496
27497 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
27498
27499 PR target/21803
27500 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
27501 at the start and end of the then/else blocks, and omit them from the
27502 conversion.
27503 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
27504 argument; all callers changed. Pass zero to old_insns_match_p instead.
27505 (flow_find_head_matching_sequence): New function.
27506 (old_insns_match_p): Check REG_EH_REGION notes for calls.
27507 * basic-block.h (flow_find_cross_jump,
27508 flow_find_head_matching_sequence): Declare functions.
27509
27510 2010-04-14 Jason Merrill <jason@redhat.com>
27511
27512 PR c++/36625
27513 * c-common.c (attribute_takes_identifier_p): New fn.
27514 * c-common.h: Declare it.
27515
27516 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27517
27518 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
27519 splitter condition.
27520 (*udivmod<mode>4): Ditto.
27521
27522 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27523
27524 * config/i386/i386.md (maxmin_int): Rename code attribute from
27525 maxminiprefix and update all users.
27526 (maxmin_float): Ditto from maxminfprefix.
27527 (logic): Ditto from logicprefix.
27528 (absneg_mnemonic): Ditto from absnegprefix.
27529 * config/i386/mmx.md: Update all users of maxminiprefix,
27530 maxminfprefix and logicprefix for rename.
27531 * config/i386/sse.md: Ditto.
27532 * config/i386/sync.md (sync_<code><mode>): Update for
27533 logicprefix rename.
27534
27535 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
27536
27537 PR 42966
27538 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
27539 warnings converted to errors.
27540
27541 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27542
27543 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
27544 used insn_type variable.
27545 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
27546 to avoid set-but-not-used warning.
27547
27548 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27549
27550 * df-core.c (df_ref_debug): Change format string placeholder
27551 from 0x%x to %#x.
27552 * dwarf2asm.c (dw2_asm_output_data_raw,
27553 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
27554 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
27555 * dwarf2out.c (output_cfi, output_cfi_directive,
27556 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
27557 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
27558 Ditto.
27559 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
27560 * print-rtl.c (print_rtx): Ditto.
27561
27562 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27563
27564 PR middle-end/42694
27565 * builtins.c (expand_builtin_pow_root): New function to expand pow
27566 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
27567 series of sqrt and cbrt calls under -ffast-math.
27568 (expand_builtin_pow): Call it.
27569
27570 2010-04-14 Michael Matz <matz@suse.de>
27571
27572 PR tree-optimization/42963
27573 * tree-cfg.c (touched_switch_bbs): New static variable.
27574 (group_case_labels_stmt): New function broken out from ...
27575 (group_case_labels): ... here, use the above.
27576 (start_recording_case_labels): Allocate touched_switch_bbs.
27577 (end_recording_case_labels): Deallocate it, call
27578 group_case_labels_stmt.
27579 (gimple_redirect_edge_and_branch): Remember index of affected BB.
27580
27581 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27582
27583 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
27584 from insn template.
27585
27586 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27587
27588 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
27589
27590 2010-04-13 Jan Hubicka <jh@suse.cz>
27591
27592 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
27593 of optimized out static functions.
27594 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
27595 cost computation. Also sanity check for overflows.
27596 (update_caller_keys): Update cgraph_edge_badness call; properly
27597 update fibheap and sanity check that it is up to date.
27598 (add_new_edges_to_heap): Update cgraph_edge_badness.
27599 (cgraph_decide_inlining_of_small_function): Likewise;
27600 add sanity checking that badness in heap is up to date;
27601 improve dumping of reason; Update badness of calls to the
27602 offline copy of function currently inlined; dump badness
27603 of functions not inlined because of unit growth limits.
27604
27605 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27606
27607 PR middle-end/32628
27608 * c-common.c (pointer_int_sum): Disregard overflow that occured only
27609 because of sign-extension change when converting to sizetype here...
27610 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
27611
27612 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
27613 the folding to constants. Remove redundant final conversion.
27614 (fold_binary) <associate>: Do not associate if the re-association of
27615 constants alone overflows.
27616 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
27617 to the end of the list.
27618 (multiple_of_p) <COND_EXPR>: New case.
27619
27620 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
27621
27622 * opt-functions.awk (opt_sanitized_name): New.
27623 (opt_enum): New.
27624 * optc-gen.awk: Use it
27625 * opth-gen.awk: Use it.
27626
27627 2010-04-13 Martin Jambor <mjambor@suse.cz>
27628
27629 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
27630 (sra_modify_assign): Delete stmts loading dead data even if racc has no
27631 children. Call replace_uses_with_default_def_ssa_name to handle
27632 SSA_NAES on lhs.
27633
27634 2010-04-13 Michael Matz <matz@suse.de>
27635
27636 PR middle-end/43730
27637 * builtins.c (expand_builtin_interclass_mathfn): Also create
27638 a register if the predicate doesn't match.
27639
27640 2010-04-13 Diego Novillo <dnovillo@google.com>
27641
27642 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
27643 * c-pch.c: Include timevar.h.
27644 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
27645 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
27646 * ggc-common.c: Include timevar.h.
27647 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
27648 * timevar.def (TV_PCH_SAVE): Define.
27649 (TV_PCH_CPP_SAVE): Define.
27650 (TV_PCH_PTR_REALLOC): Define.
27651 (TV_PCH_PTR_SORT): Define.
27652 (TV_PCH_RESTORE): Define.
27653 (TV_PCH_CPP_RESTORE): Define.
27654
27655 2010-04-13 Michael Matz <matz@suse.de>
27656
27657 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
27658 into MINUS_EXPRs.
27659 (can_reassociate_p): New function.
27660 (break_up_subtract_bb, reassociate_bb): Use it.
27661
27662 2010-04-13 Richard Guenther <rguenther@suse.de>
27663
27664 PR bootstrap/43737
27665 * builtins.c (c_readstr): Fix assert.
27666
27667 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
27668
27669 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
27670 when generating cltd insn.
27671
27672 (*ashl<mode>3_1): Remove special handling for register operand 2.
27673 (*ashlsi3_1_zext): Ditto.
27674 (*ashlhi3_1): Ditto.
27675 (*ashlhi3_1_lea): Ditto.
27676 (*ashlqi3_1): Ditto.
27677 (*ashlqi3_1_lea): Ditto.
27678 (*<shiftrt_insn><mode>3_1): Ditto.
27679 (*<shiftrt_insn>si3_1_zext): Ditto.
27680 (*<shiftrt_insn>qi3_1_slp): Ditto.
27681 (*<rotate_insn><mode>3_1): Ditto.
27682 (*<rotate_insn>si3_1_zext): Ditto.
27683 (*<rotate_insn>qi3_1_slp): Ditto.
27684
27685 2010-04-13 Richard Guenther <rguenther@suse.de>
27686
27687 * tree-ssa-structalias.c (callused_id): Remove.
27688 (call_stmt_vars): New.
27689 (get_call_vi): Likewise.
27690 (lookup_call_use_vi): Likewise.
27691 (lookup_call_clobber_vi): Likewise.
27692 (get_call_use_vi): Likewise.
27693 (get_call_clobber_vi): Likewise.
27694 (make_transitive_closure_constraints): Likewise.
27695 (handle_const_call): Adjust to do per-call call-used handling.
27696 (handle_pure_call): Likewise.
27697 (find_what_var_points_to): Remove general callused handling.
27698 (init_base_vars): Likewise.
27699 (init_alias_vars): Initialize call_stmt_vars.
27700 (compute_points_to_sets): Process call-used and call-clobbered
27701 vars for call statements.
27702 (delete_points_to_sets): Free call_stmt_vars.
27703
27704 2010-04-13 Richard Guenther <rguenther@suse.de>
27705
27706 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27707 Only add RW dependence for dependence distance zero.
27708 Adjust maximal vectorization factor according to dependences.
27709 Move alignment handling ...
27710 (vect_find_same_alignment_drs): ... here. New function.
27711 (vect_analyze_data_ref_dependences): Adjust.
27712 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
27713 (vect_analyze_data_refs): Adjust minimal vectorization factor
27714 according to data references.
27715 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
27716 dependences before determining the vectorization factor.
27717 Analyze alignment after determining the vectorization factor.
27718 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
27719 dependences before alignment.
27720 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
27721 Adjust prototype.
27722 (vect_analyze_data_refs): Likewise.
27723 (MAX_VECTORIZATION_FACTOR): New define.
27724
27725 2010-04-13 Duncan Sands <baldrick@free.fr>
27726
27727 * except.h (lang_eh_type_covers): Remove.
27728 * except.c (lang_eh_type_covers): Likewise.
27729
27730 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27731 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27732
27733 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
27734 * config/s390/s390.c: Replace UNTIS_PER_WORD with
27735 UNITS_PER_LONG where it is ABI relevant.
27736 (s390_return_addr_rtx): Likewise.
27737 (s390_back_chain_rtx): Likewise.
27738 (s390_frame_area): Likewise.
27739 (s390_frame_info): Likewise.
27740 (s390_initial_elimination_offset): Likewise.
27741 (save_gprs): Likewise.
27742 (s390_emit_prologue): Likewise.
27743 (s390_emit_epilogue): Likewise.
27744 (s390_function_arg_advance): Likewise.
27745 (s390_function_arg): Likewise.
27746 (s390_va_start): Likewise.
27747 (s390_gimplify_va_arg): Likewise.
27748 (s390_function_profiler): Likewise.
27749 (s390_optimize_prologue): Likewise.
27750 (s390_rtx_costs): Likewise.
27751 (s390_secondary_reload): Likewise.
27752 (s390_promote_function_mode): Likewise.
27753 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
27754 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
27755 registers available.
27756 (s390_unwind_word_mode): New function.
27757 (s390_function_value): Split 64 bit values into register pair if
27758 used as return value.
27759 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
27760 function call parameters. Handle parallels.
27761 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
27762 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
27763 (DWARF_CIE_DATA_ALIGNMENT): New macro.
27764 (s390_expand_setmem): Remove unused variable src_addr.
27765 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
27766 deal with 64 bit registers.
27767 * config/s390/s390.h: Define __zarch__ predefined macro.
27768 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
27769 (UNITS_PER_LONG): New macro.
27770 * libjava/include/s390-signal.h: Define extended ucontext
27771 structure containing the upper halfs of the 64 bit registers.
27772
27773 2010-04-13 Simon Baldwin <simonb@google.com>
27774
27775 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
27776
27777 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27778
27779 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
27780 rvalue on the RHS if the LHS is of a non-renamable type.
27781 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
27782
27783 2010-04-13 Matthias Klose <doko@ubuntu.com>
27784
27785 * gcc.c (cc1_options): Handle -iplugindir before processing
27786 the cc1 spec. Only add -iplugindir once.
27787 (cpp_unique_options): Add -iplugindir option if -fplugin* options
27788 found.
27789 * common.opt (iplugindir): Remove `Separate' property, initialize.
27790 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
27791 option.
27792 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
27793 (distclean): Remove plugin dir.
27794 * doc/invoke.texi: Document -iplugindir.
27795
27796 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
27797
27798 * doc/plugins.texi (Loading Plugins): Document short
27799 -fplugin=foo option.
27800 (Plugin API): Mention default_plugin_dir_name function.
27801
27802 * gcc.c (find_file_spec_function): Add new declaration.
27803 (static_spec_func): Use it for "find-file".
27804 (find_file_spec_function): Add new function.
27805 (cc1_options): Add -iplugindir option if -fplugin* options found.
27806
27807 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
27808
27809 * plugin.c (add_new_plugin): Updated comment, and handle short
27810 plugin name.
27811 (default_plugin_dir_name): Added new function.
27812
27813 * common.opt (iplugindir): New option to set the plugin directory.
27814
27815 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
27816
27817 * config/i386/i386.md (any_rotate): New code iterator.
27818 (rotate_insn): New code attribute.
27819 (rotate): Ditto.
27820 (SWIM124): New mode iterator.
27821 (<rotate_insn>ti3): New expander.
27822 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
27823 any_rotate code iterator.
27824 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
27825 using any_rotate code iterator and SWIM124 mode iterator.
27826 (ix86_rotlti3): New insn_and_split pattern.
27827 (ix86_rotrti3): Ditto.
27828 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
27829 ix86_rotl{di,ti}3 patterns.
27830 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
27831 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
27832 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
27833 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
27834 code iterator and SWI mode iterator.
27835 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
27836 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
27837 code iterator.
27838 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
27839 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
27840 (bswap rotatert splitter): Add splitter.
27841 (bswap splitter): Macroize splitter using any_rotate code iterator.
27842 Add insn predicate to split only for TARGET_USE_XCHGB or when
27843 optimizing function for size.
27844
27845 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27846
27847 * config/pa/pa.c (emit_move_sequence): Remove use of
27848 deleted variable flag_argument_noalias.
27849
27850 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27851
27852 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
27853 configurations.
27854 Add to unsupported targets list.
27855 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
27856 sparc*-sun-solaris2.[567]* from target lists.
27857 * configure: Regenerate.
27858 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
27859 removal.
27860 Remove Solaris 7 patch references.
27861 (Specific, sparc-sun-solaris2.7): Removed.
27862 (sparc-sun-solaris2*): Update Solaris 7 example.
27863 (sparc64-*-solaris2*): Likewise.
27864
27865 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27866
27867 * config.build (alpha*-dec-osf4*): Remove.
27868 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
27869 of obsolete configurations.
27870 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
27871 support.
27872 * config/alpha/t-osf4: Renamed to ...
27873 * config/alpha/t-osf5: ... this.
27874 * config/alpha/osf.h: Renamed to ...
27875 * config/alpha/osf5.h: ... this.
27876 Merged old osf5.h contents.
27877 Update comments.
27878 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
27879 (EXTRA_SPECS): Removed.
27880 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
27881 reflect removal of Tru64 UNIX V4.0/V5.0 support.
27882 Document that.
27883
27884 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27885
27886 * doc/contrib.texi (Contributors, Rainer Orth): Update.
27887
27888 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
27889
27890 PR/43702
27891 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
27892 __thiscall convention.
27893
27894 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27895
27896 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
27897 orig_base.
27898 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
27899
27900 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27901
27902 * function.c (assign_parms_initialize_all): Add unused attribute
27903 to fntype.
27904
27905 2010-04-12 Richard Guenther <rguenther@suse.de>
27906
27907 * gsstruct.def (GSS_CALL): New.
27908 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
27909 * gimple.h: Include tree-ssa-alias.h.
27910 (struct gimple_statement_call): New.
27911 (union gimple_statement_struct_d): Add gimple_call member.
27912 (gimple_call_reset_alias_info): Declare.
27913 (gimple_call_use_set): New function.
27914 (gimple_call_clobber_set): Likewise.
27915 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
27916 * gimple.c (gimple_call_reset_alias_info): New function.
27917 (gimple_build_call_1): Call it.
27918 * lto-streamer-in.c (input_gimple_stmt): Likewise.
27919 * tree-inline.c (remap_gimple_stmt): Likewise.
27920 (expand_call_inline): Remove callused handling.
27921 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
27922 * tree-dfa.c (dump_variable): Likewise.
27923 * tree-parloops.c (parallelize_loops): Likewise.
27924 * tree-ssa.c (init_tree_ssa): Likewise.
27925 (delete_tree_ssa): Likewise.
27926 * tree-flow-inline.h (is_call_used): Remove.
27927 * tree-flow.h (struct gimple_df): Remove callused member.
27928 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
27929 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
27930 (ref_maybe_used_by_call_p_1): Simplify.
27931 (call_may_clobber_ref_p_1): Likewise.
27932 * tree-ssa-structalias.c (compute_points_to_sets): Set
27933 the call stmt used and clobbered sets.
27934 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
27935 (find_tail_calls): Verify the tail call.
27936
27937 2010-04-12 Richard Guenther <rguenther@suse.de>
27938
27939 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
27940 single-iteration always-inline inlining.
27941 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
27942 (cgraph_decide_inlining): Do not handle always-inline specially.
27943 (try_inline): Remove always-inline cycle detection special case.
27944 Do not recurse on always-inlines.
27945 (cgraph_early_inlining): Do not iterate if not optimizing.
27946 (cgraph_gate_early_inlining): remove.
27947 (pass_early_inline): Run unconditionally.
27948 (gate_cgraph_decide_inlining): New function.
27949 (pass_ipa_inline): Use it. Do not run the IPA inliner if
27950 not inlining or optimizing.
27951 (cgraph_decide_inlining_of_small_functions): Also consider
27952 always-inline functions.
27953 (cgraph_default_inline_p): Return true for nodes which should
27954 disregard inline limits.
27955 (estimate_function_body_sizes): Assume zero size and time for
27956 nodes which are marked as disregarding inline limits.
27957 (cgraph_decide_recursive_inlining): Do not perform recursive
27958 inlining on always-inline nodes.
27959
27960 2010-04-12 Jakub Jelinek <jakub@redhat.com>
27961
27962 PR bootstrap/43699
27963 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
27964 for exprs satisfying handled_component_p.
27965
27966 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
27967
27968 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
27969 non-constant aggregate elements.
27970
27971 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
27972 is a real initialization.
27973
27974 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
27975
27976 PR c/36774
27977 * c-decl.c (start_function): Move forward check for nested function.
27978
27979 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
27980
27981 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
27982 * config/sh/sh.c: Include reload.h.
27983 (sh_legitimize_reload_address): New.
27984 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
27985 sh_legitimize_reload_address.
27986
27987 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27988
27989 * config/sh/sh.md (*movqi_pop): New insn pattern.
27990 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
27991
27992 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27993
27994 * config/i386/i386.md (any_shiftrt): New code iterator.
27995 (shiftrt_insn): New code attribute.
27996 (shiftrt): Ditto.
27997 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
27998 using any_shiftrt code iterator.
27999 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
28000 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
28001 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
28002 pattern from corresponding peephole2 patterns.
28003 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
28004 using any_shiftrt code iterator.
28005 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
28006 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
28007 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
28008 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
28009 *{ashr,lshr}<mode>3_cmp_zext.
28010 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
28011
28012 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28013
28014 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
28015 scratch register.
28016 (*lshr<mode>3_cconly): Ditto.
28017
28018 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28019
28020 * config/i386/i386.md (lshr<mode>3): Macroize expander from
28021 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28022 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28023 pattern from *lshr{di,ti}3_1 and corresponding splitters using
28024 DWI mode iterator.
28025 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28026 from corresponding peephole2 patterns.
28027 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
28028 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
28029 and *lshrdi3_1_rex64 using SWI mode iterator.
28030 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
28031 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
28032 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
28033 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
28034 and *lshrdi3_cmp_rex64 using SWI mode iterator.
28035 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
28036 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
28037 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
28038 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
28039 SWI mode iterator.
28040
28041 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
28042
28043 * config/i386/i386.md (ashr<mode>3): Macroize expander from
28044 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28045 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28046 pattern from *ashr{di,ti}3_1 and corresponding splitters using
28047 DWI mode iterator.
28048 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28049 from corresponding peephole2 patterns.
28050 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
28051 (ashrsi3_cvt): Rename from ashrsi3_31.
28052 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
28053 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
28054 and x86_64_shift_adj_3 using SWI48 mode iterator.
28055 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
28056 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
28057 and *ashrdi3_1_rex64 using SWI mode iterator.
28058 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
28059 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28060 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28061 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28062 and *ashrdi3_cmp_rex64 using SWI mode iterator.
28063 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28064 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28065 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28066 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28067 SWI mode iterator.
28068 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28069 * config/i386/i386.c (ix86_split_ashr): Update for renamed
28070 x86_shift<mode>_adj_3 expanders.
28071
28072 2010-04-10 Wei Guozhi <carrot@google.com>
28073
28074 PR target/42601
28075 * config/arm/arm.c (arm_pic_static_addr): New function.
28076 (legitimize_pic_address): Call arm_pic_static_addr when it detects
28077 a static symbol.
28078 (arm_output_addr_const_extra): Output expression for new pattern.
28079 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28080
28081 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
28082
28083 * ira-costs.c (record_reg_classes): Ignore alternatives that are
28084 not enabled.
28085
28086 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28087 * web.c: Include "insn-config.h" and "recog.h".
28088 (union_match_dups): New function.
28089 (web_main): Call it.
28090 (union_defs): Don't try to recognize match_dups.
28091
28092 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28093 if doing so would replace the entire pattern.
28094
28095 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28096
28097 PR target/43707
28098 PR target/43709
28099 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28100 and splitter pattern. Change splitter operand 1 predicate to
28101 nonmemory_operand.
28102
28103 2010-04-09 Martin Jambor <mjambor@suse.cz>
28104
28105 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28106 lattices are addresses of CONST_DECLs with the same initial value.
28107 (ipcp_print_all_lattices): Print values of CONST_DECLs.
28108 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28109
28110 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
28111 Bernd Schmidt <bernds@codesourcery.com>
28112
28113 * loop-invariant.c (replace_uses): New static function.
28114 (move_invariant_reg): Use it to ensure we can replace the uses.
28115
28116 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
28117
28118 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
28119 function template.
28120 (picochip_override_options): Enable section anchors only above -O1.
28121 (picochip_reorg): Fixed a couple of build warnings.
28122
28123 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28124
28125 * configure.ac (plugin -rdynamic test): Log result.
28126 * configure: Regenerate.
28127 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
28128 (RDYNAMIC_SPEC): Define.
28129 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
28130
28131 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28132
28133 * configure.ac: Determine Sun ld version numbers.
28134 (comdat_group): Restrict GNU ld version checks to gld.
28135 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
28136 (enable_comdat): Support --enable-comdat.
28137 * configure: Regenerate.
28138 * doc/install.texi (Configuration): Document --enable-comdat.
28139
28140 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28141
28142 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
28143 * config/sol2-gld.h: ... here.
28144 * config.gcc (sparc*-*-solaris2*): Reflect this.
28145 (i[34567]86-*-solaris2*): Use it.
28146
28147 2010-04-09 Steve Ellcey <sje@cup.hp.com>
28148
28149 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
28150 setup_clocks_p.
28151 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
28152
28153 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28154
28155 PR 42965
28156 * diagnostic.c (diagnostic_initialize): Initialize
28157 some_warnings_are_errors.
28158 (diagnostic_finish): New.
28159 (diagnostic_action_after_output): Call it before exiting.
28160 (diagnostic_report_diagnostic): Do not print message here. Set
28161 some_warnings_are_errors.
28162 * diagnostic.h (diagnostic_context): Delete
28163 issue_warnings_are_errors_message. Add some_warnings_are_errors.
28164 (diagnostic_finish): Declare.
28165 * toplev.c (toplev_main): Call it before exit.
28166
28167 2010-04-09 Jason Merrill <jason@redhat.com>
28168
28169 PR c++/42623
28170 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
28171 for incomplete type.
28172
28173 PR c++/41788
28174 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
28175 based on a warning flag.
28176
28177 2010-04-09 Richard Guenther <rguenther@suse.de>
28178
28179 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
28180
28181 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
28182
28183 PR bootstrap/43684
28184 * varasm.c (default_assemble_visibility): Wrap vars that are
28185 set, but unused, by targets without GAS.
28186 * config/rs6000/rs6000.c (paired_emit_vector_compare):
28187 Remove set, but unused, vars.
28188 (rs6000_legitimize_tls_address): Likewise.
28189 (altivec_expand_dst_builtin): Likewise.
28190 * config/darwin.c (machopic_classify_symbol): Likewise.
28191 (machopic_indirection_name): Likewise.
28192
28193 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28194
28195 * config/i386/i386.md (DWI): New mode iterator.
28196 (S): New mode attribute.
28197 (shift_operand): Ditto.
28198 (shift_immediate_operand): Ditto.
28199 (ashl_input_operand): Ditto.
28200 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
28201 using SDWIM mode iterator.
28202 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
28203 pattern from *ashl{di,ti}3_1 and corresponding splitters using
28204 DWI mode iterator.
28205 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
28206 from corresponding peephole2 patterns.
28207 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
28208 and x86_64_shift_adj_1 using SWI48 mode iterator.
28209 (x86_shift<mode>_adj_2): Ditto.
28210 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
28211 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
28212 using SWI48 mode iterator.
28213 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
28214 *ashldi3_cmp_rex64 using SWI mode iterator.
28215 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
28216 *ashldi3_cconly_rex64 using SWI mode iterator.
28217 * config/i386/i386.c (ix86_split_ashl): Update for renamed
28218 x86_shift<mode>_adj_{1,2}.
28219 (ix86_split_ashr): Ditto.
28220 (ix86_split_lshr): Ditto.
28221
28222 2010-04-09 Richard Guenther <rguenther@suse.de>
28223
28224 * target.h (builtin_conversion): Pass in input and output types.
28225 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
28226 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
28227 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
28228 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
28229
28230 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
28231 Handle AVX modes.
28232 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
28233
28234 2010-04-09 Richard Guenther <rguenther@suse.de>
28235
28236 PR target/43152
28237 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
28238
28239 2010-04-09 Richard Guenther <rguenther@suse.de>
28240
28241 * tree-vectorizer.h (struct _stmt_vec_info): Document
28242 that vectype is the type of the LHS.
28243 (supportable_widening_operation, supportable_narrowing_operation):
28244 Get both input and output vector types as arguments.
28245 (vect_is_simple_use_1): Declare.
28246 (get_same_sized_vectype): Likewise.
28247 * tree-vect-loop.c (vect_determine_vectorization_factor):
28248 Set STMT_VINFO_VECTYPE to the vector type of the def.
28249 (vectorizable_reduction): Adjust.
28250 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
28251 Adjust. Specify the output vector type.
28252 (vect_pattern_recog_1): Adjust.
28253 * tree-vect-stmts.c (get_same_sized_vectype): New function.
28254 (vectorizable_call): Adjust.
28255 (vectorizable_conversion): Likewise.
28256 (vectorizable_operation): Likewise.
28257 (vectorizable_type_demotion): Likewise.
28258 (vectorizable_type_promotion): Likewise.
28259 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
28260 the def.
28261 (vect_is_simple_use_1): New function.
28262 (supportable_widening_operation): Get both input and output
28263 vector types.
28264 (supportable_narrowing_operation): Likewise.
28265 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
28266
28267 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
28268
28269 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
28270 __thiscall and _thiscall as predefined macros.
28271 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
28272 thiscall attribute handling.
28273 (ix86_comp_type_attributes): Likewise.
28274 (ix86_function_regparm): Likewise.
28275 (ix86_return_pops_args): Likewise.
28276 (init_cumulative_args): Likewise.
28277 (find_drap_reg): Likewise.
28278 (ix86_static_chain): Likewise.
28279 (x86_this_parameter): Likewise.
28280 (x86_output_mi_thunk): Likewise.
28281 (ix86_attribute_table): Add description for thiscall attribute.
28282 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
28283 * doc/extend.texi: Add documentation for thiscall.
28284
28285 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28286
28287 PR c++/28584
28288 * c.opt (Wint-to-pointer-cast): Available in C++.
28289 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
28290
28291 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
28292
28293 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
28294 * calls.c (expand_call): Pass the function type to aggregate_value_p.
28295 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
28296 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
28297 function type instead. Reorder and simplify checks.
28298
28299 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
28300
28301 2010-04-08 Jing Yu <jingyu@google.com>
28302 Zdenek Dvorak <ook@ucw.cz>
28303
28304 PR tree-optimization/42720
28305 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
28306 loop unswitch conditions here from ...
28307 (tree_unswitch_single_loop): ... here.
28308
28309 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28310
28311 * tree-if-conv.c: Fix comments and simplify logic.
28312
28313 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28314
28315 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
28316 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
28317 (main_tree_if_conversion): Update call to tree_if_conversion.
28318
28319 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
28320
28321 PR 42485
28322 * doc/invoke.texi (-b,-V): Delete.
28323 * doc/tm.texi: Do not mention -b.
28324 * gcc.c (display_help): Delete -b and -V.
28325 (process_command): Delete -b and -V.
28326 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
28327
28328 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
28329 Wolfgang Gellerich <gellerich@de.ibm.com>
28330
28331 Implement target hook for loop unrolling
28332 * target.h (loop_unroll_adjust): Add a new target hook function.
28333 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
28334 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
28335 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
28336 (s390_loop_unroll_adjust): Implement the new target hook for s390.
28337 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
28338 target hook.
28339 (decide_unroll_stupid): Likewise.
28340
28341 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28342
28343 PR target/43643
28344 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
28345
28346 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28347
28348 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
28349 (Specific, *-*-solaris2*): Likewise.
28350 Don't prefer Sun as over GNU as.
28351
28352 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
28353
28354 * config/s390/s390.c (override_options): Adjust the z10 defaults
28355 for max-unroll-times, max-completely-peeled-insns
28356 and max-completely-peel-times.
28357
28358 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28359
28360 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
28361 instructions for z10.
28362 (s390_expand_setmem): Likewise.
28363 (s390_expand_cmpmem): Likewise.
28364
28365 2010-04-08 Richard Guenther <rguenther@suse.de>
28366
28367 PR tree-optimization/43679
28368 * tree-ssa-pre.c (eliminate): Only propagate copies.
28369
28370 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28371
28372 PR bootstrap/43681
28373 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
28374 set but not used variable warning.
28375
28376 2010-04-08 Wei Guozhi <carrot@google.com>
28377
28378 PR target/41653
28379 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
28380 (arm_size_rtx_costs): Call the new function when optimized for size.
28381
28382 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28383
28384 PR debug/43670
28385 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
28386 op0 is not a MEM, just return NULL instead of assertion
28387 failure.
28388 (discover_nonconstant_array_refs): Don't walk debug stmts.
28389
28390 2010-04-08 Doug Kwan <dougkwan@google.com>
28391
28392 * configure.ac: Recognize gold and do not use its version number
28393 to test ld features.
28394 * configure: Regenerate.
28395
28396 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
28397
28398 PR middle-end/40815
28399 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
28400 (negate_value): Move code to push elements to broken_up_substracts ...
28401 (eliminate_plus_minus_pair): ... here. Push operands that have no
28402 negative pair to plus_negates.
28403 (repropagate_negates, init_reassoc, fini_reassoc): Update.
28404
28405 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28406
28407 * doc/install.texi (Configuration): Move description of
28408 --enable-lto, --with-libelf*, --enable-gold from Java section to
28409 general section.
28410
28411 * doc/generic.texi (Working with declarations)
28412 (Function Properties, C and C++ Trees): Fix typos.
28413 * doc/sourcebuild.texi (Top Level): Likewise.
28414
28415 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28416
28417 PR c/18624
28418 * tree.h (DECL_READ_P): Define.
28419 (struct tree_decl_common): Add decl_read_flag.
28420 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
28421 a set but not used warning.
28422 (merge_decls): Merge DECL_READ_P flag.
28423 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
28424 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
28425 * c-common.c (handle_used_attribute, handle_unused_attribute):
28426 Likewise.
28427 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
28428 New prototypes.
28429 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
28430 New functions.
28431 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
28432 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
28433 c_parser_binary_expression, c_parser_cast_expression,
28434 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
28435 Call default_function_array_read_conversion instead of
28436 default_function_array_conversion where needed.
28437 (c_parser_unary_expression, c_parser_conditional_expression,
28438 c_parser_postfix_expression_after_primary, c_parser_initelt):
28439 Likewise. Call mark_exp_read where needed.
28440 (c_parser_statement_after_labels, c_parser_asm_operands,
28441 c_parser_typeof_specifier, c_parser_sizeof_expression,
28442 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
28443 where needed.
28444 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
28445 New.
28446 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
28447 (warn_unused_but_set_parameter): Default to warn_unused
28448 && extra_warnings.
28449 * doc/invoke.texi: Document -Wunused-but-set-variable and
28450 -Wunused-but-set-parameter.
28451
28452 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
28453 used count variable.
28454 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
28455 when operandN variables aren't used in the body of the expander
28456 or splitter.
28457 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
28458 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
28459 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
28460 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
28461 FOR_EACH_IMM_USE_ON_STMT): Likewise.
28462 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
28463 * tree.c (PROCESS_ARG): Likewise.
28464
28465 2010-04-07 Simon Baldwin <simonb@google.com>
28466
28467 * diagnostic.h (diagnostic_override_option_index): New macro to
28468 set a diagnostic's option_index.
28469 * c-tree.h (c_cpp_error): Add warning reason argument.
28470 * opts.c (_warning_as_error_callback): New.
28471 (register_warning_as_error_callback): Store callback for
28472 warnings enabled via enable_warning_as_error.
28473 (enable_warning_as_error): Call callback, minor code tidy.
28474 * opts.h (register_warning_as_error_callback): Declare.
28475 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
28476 response to -Werror=.
28477 (c_common_init_options): Register warning_as_error_callback in opts.c.
28478 * common.opt: Add -Wno-cpp option.
28479 * c-common.c (struct reason_option_codes_t): Map cpp warning
28480 reason codes to gcc option indexes.
28481 * (c_option_controlling_cpp_error): New function, lookup the gcc
28482 option index for a cpp warning reason code.
28483 * (c_cpp_error): Add warning reason argument, call
28484 c_option_controlling_cpp_error for diagnostic_override_option_index.
28485 * doc/invoke.texi: Document -Wno-cpp.
28486
28487 2010-04-07 Richard Guenther <rguenther@suse.de>
28488
28489 * ipa-reference.c (mark_load): Use get_base_address.
28490 (mark_store): Likewise.
28491
28492 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
28493 inserting GIMPLE_NOPs into the IL.
28494 * tree-ssa-structalias.c (get_constraint_for_component_ref):
28495 Explicitly strip handled components and indirect references.
28496
28497 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
28498 folding address expressions.
28499 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
28500 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
28501 operand_equal_p to compare decls.
28502 (ptr_deref_may_alias_decl_p): Likewise.
28503 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
28504 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
28505 Handle reversed comparison ops.
28506 * tree-sra.c (asm_visit_addr): Use get_base_address.
28507 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
28508 * ipa-reference.c (mark_address): Use get_base_address.
28509
28510 2010-04-07 Richard Guenther <rguenther@suse.de>
28511
28512 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
28513 Propagate constants everywhere.
28514
28515 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28516
28517 PR debug/43516
28518 * tree.c (MAX_INT_CACHED_PREC): Define.
28519 (nonstandard_integer_type_cache): New array.
28520 (build_nonstandard_integer_type): Cache results for precision
28521 <= MAX_INT_CACHED_PREC.
28522
28523 2010-04-07 Richard Guenther <rguenther@suse.de>
28524
28525 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
28526 -fargument-noalias-global, -fargument-noalias-anything): Remove.
28527 * common.opt: Likewise.
28528 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
28529 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
28530 (nonoverlapping_memrefs_p): Likewise.
28531 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
28532 * opts.c (common_handle_option): Handle OPT_fargument_alias,
28533 OPT_fargument_noalias, OPT_fargument_noalias_anything and
28534 OPT_fargument_noalias_global for backward compatibility.
28535
28536 2010-04-07 Richard Guenther <rguenther@suse.de>
28537
28538 PR tree-optimization/43270
28539 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
28540 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
28541 * tree-ssa-pre.c (phi_translate_1): Adjust.
28542 (fully_constant_expression): Split out vn_reference handling to ...
28543 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
28544 Fold reads from constant strings.
28545 (vn_reference_lookup): Handle fully constant references.
28546 (vn_reference_lookup_pieces): Likewise.
28547 * Makefile.in (expmed.o-warn): Add -Wno-error.
28548
28549 2010-04-07 Martin Jambor <mjambor@suse.cz>
28550
28551 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
28552
28553 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
28554
28555 PR driver/41594
28556 * gcc.c: Add -static-libstdc++ to list of recognized options.
28557
28558 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28559
28560 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
28561
28562 2010-04-07 Richard Guenther <rguenther@suse.de>
28563
28564 PR middle-end/42617
28565 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
28566 bases build simple mem attributes to retain points-to information.
28567
28568 2010-04-07 Richard Guenther <rguenther@suse.de>
28569
28570 PR middle-end/42617
28571 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
28572 preserve points-to related information.
28573
28574 2010-04-07 Richard Guenther <rguenther@suse.de>
28575
28576 PR middle-end/42617
28577 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
28578 discard plain indirect references.
28579 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
28580 * tree.c (tree_nop_conversion): Likewise.
28581
28582 2010-04-07 Dodji Seketeli <dodji@redhat.com>
28583
28584 PR debug/43628
28585 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
28586
28587 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
28588
28589 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
28590 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
28591
28592 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28593
28594 * tree-if-conv.c: Fix indentation and comments.
28595
28596 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28597
28598 * tree-if-conv.c: Sort static functions in topological order.
28599
28600 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28601
28602 * tree-if-conv.c: Fix indentation and comments.
28603
28604 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28605
28606 PR middle-end/43519
28607 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
28608 lang_hooks.types.type_for_size instead of
28609 build_nonstandard_integer_type.
28610 When converting an unsigned type to signed, double its precision.
28611 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
28612 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
28613 (graphite_create_new_loop_guard): When ub + 1 wraps around,
28614 use lb <= ub.
28615
28616 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28617
28618 PR middle-end/43519
28619 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
28620 POINTER_PLUS_EXPR for pointer types.
28621
28622 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28623
28624 PR middle-end/43519
28625 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
28626 * graphite-clast-to-gimple.c: Include langhooks.h.
28627 (max_signed_precision_type): New.
28628 (max_precision_type): Takes two types as arguments.
28629 (precision_for_value): New.
28630 (precision_for_interval): New.
28631 (gcc_type_for_interval): New.
28632 (gcc_type_for_value): New.
28633 (gcc_type_for_clast_term): New.
28634 (gcc_type_for_clast_red): New.
28635 (gcc_type_for_clast_bin): New.
28636 (gcc_type_for_clast_expr): Split up into several functions.
28637 (gcc_type_for_clast_eq): Rewritten.
28638 (compute_bounds_for_level): New.
28639 (compute_type_for_level_1): New.
28640 (compute_type_for_level): New.
28641 (gcc_type_for_cloog_iv): Removed.
28642 (gcc_type_for_iv_of_clast_loop): Rewritten.
28643 (graphite_create_new_loop): Compute the lower and upper bound types
28644 with gcc_type_for_clast_expr.
28645 (graphite_create_new_loop_guard): Same.
28646 (find_cloog_iv_in_expr): Removed.
28647 (compute_cloog_iv_types_1): Removed.
28648 (compute_cloog_iv_types): Removed.
28649 (gloog): Do not call compute_cloog_iv_types.
28650 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
28651 GBB_CLOOG_IV_TYPES.
28652 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
28653 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
28654 (GBB_CLOOG_IV_TYPES): Removed.
28655
28656 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28657
28658 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
28659 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
28660 (detect_commutative_reduction): Same.
28661
28662 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28663
28664 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
28665 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
28666 argument.
28667 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
28668 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
28669 (rewrite_commutative_reductions_out_of_ssa): Same.
28670 * passes.c (execute_function_todo): Call verify_ssa for every pass
28671 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
28672 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
28673 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
28674 with an extra argument.
28675 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
28676 verify_ssa only when the extra argument is true.
28677 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
28678 with an extra argument.
28679 (tree_transform_and_unroll_loop): Same.
28680
28681 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28682
28683 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
28684 for all the passes of the LNO having LOOP_CLOSED_SSA.
28685 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
28686 * tree-loop-distribution.c (pass_loop_distribution): Same.
28687 * tree-pass.h (TODO_verify_loops): Removed.
28688 * tree-ssa-loop.c (pass_tree_loop_init): Same.
28689 (pass_lim): Same.
28690 (pass_tree_unswitch): Same.
28691 (pass_predcom): Same.
28692 (pass_vectorize): Same.
28693 (pass_linear_transform): Same.
28694 (pass_graphite_transforms): Same.
28695 (pass_iv_canon): Same.
28696 (pass_complete_unroll): Same.
28697 (pass_complete_unrolli): Same.
28698 (pass_parallelize_loops): Same.
28699 (pass_loop_prefetch): Same.
28700 (pass_iv_optimize): Same.
28701
28702 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
28703
28704 PR middle-end/32824
28705 * passes.c (init_optimization_passes): Move pass_lim before
28706 pass_copy_prop and pass_dce_loop.
28707
28708 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28709
28710 PR target/43667
28711 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
28712 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
28713 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
28714 MULTI_* defines for 4 argument vpermil2p* builtins.
28715
28716 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28717
28718 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
28719 * config/i386/i386.c (x86_maybe_negate_const_int): New.
28720 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
28721 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
28722 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
28723 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
28724 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
28725 Use x86_maybe_negate_const_int to output insn mnemonic.
28726 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
28727 check from instruction predicate. Update comments.
28728 * config/i386/sync.md (sync_add<mode>): Use
28729 x86_maybe_negate_const_int to output insn mnemonic.
28730
28731 2010-04-06 Jan Hubicka <jh@suse.cz>
28732
28733 PR tree-optimization/42906
28734 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
28735 IGNORE_SELF argument. Set visited_control_parents for fully
28736 processed BBs.
28737 (find_obviously_necessary_stmts): Update call of
28738 mark_control_dependent_edges_necessary.
28739 (propagate_necessity): Likewise. Handle PHI edges more curefully.
28740
28741 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28742
28743 * config/i386/i386.md: Remove comment about 'e' and 'E'
28744 operand modifier.
28745
28746 2010-04-06 Richard Guenther <rguenther@suse.de>
28747
28748 PR tree-optimization/43627
28749 * tree-vrp.c (extract_range_from_unary_expr): Widenings
28750 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
28751 not varying.
28752
28753 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28754
28755 * BASE-VER: Change to 4.6.0.
28756
28757 PR target/43638
28758 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
28759 handling.
28760
28761 2010-04-06 Richard Guenther <rguenther@suse.de>
28762
28763 PR middle-end/43661
28764 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
28765
28766 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28767
28768 * doc/invoke.texi (Optimize Options): Document that LTO
28769 won't remove object access purely due to incompatible
28770 declarations.
28771
28772 2010-04-04 Matthias Klose <doko@ubuntu.com>
28773
28774 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
28775 Initialize variable.
28776
28777 2010-04-03 Richard Guenther <rguenther@suse.de>
28778
28779 PR middle-end/42509
28780 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
28781 require a non-NULL MEM_OFFSET.
28782
28783 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
28784
28785 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
28786 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
28787 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
28788 config/alpha/predicates.md, config/arm/arm.md,
28789 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
28790 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
28791 config/darwin9.h, config/darwin.c, config/darwin.h,
28792 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
28793 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
28794 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
28795 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
28796 config/mips/mips.md, config/mn10300/mn10300.c,
28797 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
28798 config/rs6000/aix.h, config/rs6000/dfp.md,
28799 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
28800 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
28801 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
28802 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
28803 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
28804 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
28805 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
28806 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
28807 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
28808 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
28809 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
28810 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
28811 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
28812 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
28813 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
28814 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
28815 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
28816 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
28817 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
28818 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
28819 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
28820 opt-functions.awk, opth-gen.awk, params.def, passes.c,
28821 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
28822 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
28823 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
28824 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
28825 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
28826 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28827 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
28828 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
28829 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
28830 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
28831 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
28832 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
28833 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
28834 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
28835
28836 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28837
28838 PR other/43620
28839 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
28840 * aclocal.m4: Regenerate.
28841
28842 2010-04-02 Richard Guenther <rguenther@suse.de>
28843
28844 PR tree-optimization/43629
28845 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
28846 if we have seen a constant value.
28847
28848 2010-04-02 Joseph Myers <joseph@codesourcery.com>
28849
28850 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
28851
28852 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
28853
28854 PR target/43469
28855 * arm.c (legitimize_tls_address): Adjust call to
28856 gen_tls_load_dot_plus_four.
28857 (arm_note_pic_base): New function.
28858 (arm_cannot_copy_insn_p): Use it.
28859 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
28860 constraint.
28861
28862 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28863
28864 PR bootstrap/43531
28865
28866 Revert:
28867 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28868
28869 * Makefile.in ($(out_object_file)): Depend on
28870 gt-$(basename $(notdir $(out_file))).h.
28871
28872 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
28873
28874 * config.gcc (lm32-*-rtems*): Add t-lm32.
28875
28876 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
28877
28878 * config.gcc: Add lm32-*-rtems*.
28879 * config/lm32/rtems.h: New file.
28880
28881 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
28882
28883 PR target/42609
28884 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
28885
28886 2010-04-01 Jakub Jelinek <jakub@redhat.com>
28887
28888 * dwarf2out.c (output_compilation_unit_header): For
28889 -gdwarf-4 use version 4 instead of version 3.
28890 (output_line_info): For version 4 and above emit additional
28891 maximum ops per insn header field.
28892 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
28893
28894 * dwarf2out.c (is_c_family, is_java): Remove.
28895 (lower_bound_default): New function.
28896 (add_bound_info, gen_descr_array_type_die): Use it.
28897
28898 2010-04-01 Dodji Seketeli <dodji@redhat.com>
28899
28900 PR debug/43325
28901 * dwarf2out.c (gen_variable_die): Allow debug info for variable
28902 re-declaration when it happens in a function.
28903
28904 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
28905
28906 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
28907 (cgraph_remove_function_insertion_hook): Same.
28908 (cgraph_call_function_insertion_hooks): Same.
28909
28910 2010-04-01 Richard Guenther <rguenther@suse.de>
28911
28912 PR middle-end/43614
28913 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
28914 and TREE_THIS_VOLATILE.
28915 (copy_ref_info): Likewise.
28916 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
28917 * tree.c (build6_stat): Ignore side-effects of all but arg5
28918 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
28919 TARGET_MEM_REF.
28920
28921 2010-04-01 Richard Guenther <rguenther@suse.de>
28922
28923 PR tree-optimization/43607
28924 * ipa-type-escape.c (check_call): Do not access non-existing
28925 arguments.
28926
28927 2010-04-01 Richard Guenther <rguenther@suse.de>
28928
28929 PR middle-end/43602
28930 Revert
28931 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28932 Jack Howarth <howarth@bromo.med.uc.edu>
28933
28934 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28935 variables TLS.
28936
28937 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28938
28939 * doc/install.texi (Prerequisites): Document libelf usability on
28940 IRIX 5/6 and Solaris 2.
28941 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
28942 Update GNU as, GNU ld requirements.
28943 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
28944 Document Sun Studio compiler download.
28945 Update and simplify as, ld recommendations.
28946 (Specific, *-*-solaris2.7): Note obsoletion, removal.
28947
28948 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28949
28950 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
28951 with_tune_32 to pentium4.
28952
28953 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
28954
28955 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
28956
28957 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28958
28959 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
28960 obsoletion, removal.
28961 Update IDO URL.
28962 Document GNU as requirement.
28963 Update configure requirements.
28964 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
28965 Recomment IRIX 6.5.18+.
28966 Document IDF/IDL requirement.
28967 Document GNU as requirement.
28968 Document GNU ld bootstrap failure.
28969 Remove freeware.sgi.com reference.
28970
28971 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28972
28973 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
28974 UNIX V4.0, V5.0 obsoletion, removal.
28975 Remove --with-gc=simple reference.
28976 Update VM requirements during bootstrap.
28977 Remove -oldas bootstrap description.
28978 Update binutils reference.
28979 Remove comparison failure note.
28980
28981 2010-03-31 Richard Guenther <rguenther@suse.de>
28982 Zdenek Dvorak <ook@ucw.cz>
28983 Sebastian Pop <sebastian.pop@amd.com>
28984
28985 PR middle-end/43464
28986 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
28987 with multiple arguments.
28988 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
28989
28990 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28991
28992 * graphite-dependences.c (print_pddr): Call print_pdr with an
28993 extra argument.
28994 * graphite-poly.c (debug_pdr): Add an extra argument for the
28995 verbosity level.
28996 (print_pdr): Same.
28997 (print_pbb_domain): Same.
28998 (print_pbb): Same.
28999 (print_scop_context): Same.
29000 (print_scop): Same.
29001 (print_cloog): Same.
29002 (debug_pbb_domain): Same.
29003 (debug_pbb): Same.
29004 (print_pdrs): Same.
29005 (debug_pdrs): Same.
29006 (debug_scop_context): Same.
29007 (debug_scop): Same.
29008 (debug_cloog): Same.
29009 (print_scop_params): Same.
29010 (debug_scop_params): Same.
29011 (print_iteration_domain): Same.
29012 (print_iteration_domains): Same.
29013 (debug_iteration_domain): Same.
29014 (debug_iteration_domains): Same.
29015 (print_scattering_function): Same.
29016 (print_scattering_functions): Same.
29017 (debug_scattering_function): Same.
29018 (debug_scattering_functions): Same.
29019 * graphite-poly.h (debug_pdr): Update declaration.
29020 (print_pdr): Same.
29021 (print_pbb_domain): Same.
29022 (print_pbb): Same.
29023 (print_scop_context): Same.
29024 (print_scop): Same.
29025 (print_cloog): Same.
29026 (debug_pbb_domain): Same.
29027 (debug_pbb): Same.
29028 (print_pdrs): Same.
29029 (debug_pdrs): Same.
29030 (debug_scop_context): Same.
29031 (debug_scop): Same.
29032 (debug_cloog): Same.
29033 (print_scop_params): Same.
29034 (debug_scop_params): Same.
29035 (print_iteration_domain): Same.
29036 (print_iteration_domains): Same.
29037 (debug_iteration_domain): Same.
29038 (debug_iteration_domains): Same.
29039 (print_scattering_function): Same.
29040 (print_scattering_functions): Same.
29041 (debug_scattering_function): Same.
29042 (debug_scattering_functions): Same.
29043
29044 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29045
29046 * graphite-poly.c (print_scattering_function_1): New.
29047 (print_scattering_function): Call it.
29048 (print_scop_params): Remove spaces at the end of lines.
29049 (print_cloog): New.
29050 (debug_cloog): New.
29051 * graphite-poly.h (print_cloog): Declared.
29052 (debug_cloog): Declared.
29053
29054 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29055
29056 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
29057 in loop->header.
29058 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
29059 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29060 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29061 to switch between adding the IV bump in loop->latch or in loop->header.
29062
29063 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29064
29065 * graphite-poly.c (print_scattering_function): Pretty print following
29066 the scoplib format.
29067 (print_pdr): Same.
29068 (print_pbb_domain): Same.
29069 (dump_gbb_cases): Same.
29070 (dump_gbb_conditions): Same.
29071 (print_pdrs): Same.
29072 (print_pbb): Same.
29073 (print_scop_params): Same.
29074 (print_scop_context): Same.
29075 (print_scop): Same.
29076 (print_pbb_body): New.
29077 (lst_indent_to): New.
29078 (print_lst): Start new lines with a #.
29079 * graphite-poly.h (pbb_bb): New.
29080 (pbb_index): Use pbb_bb.
29081 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29082 disjuncts.
29083 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29084
29085 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29086
29087 * dwarf2out.c (size_of_die): For -gdwarf-4 use
29088 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29089 and 0 instead of 1 for dw_val_class_flag.
29090 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29091 dw_val_class_range_list, dw_val_class_loc_list,
29092 dw_val_class_lineptr and dw_val_class_macptr, use
29093 DW_FORM_flag_present for dw_val_class_flag and
29094 DW_FORM_exprloc for dw_val_class_loc.
29095 (output_die): For -gdwarf-4 print dw_val_class_loc
29096 size as uleb128 instead of 1 or 2 bytes and don't print
29097 anything for dw_val_class_flag.
29098
29099 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29100 instead of cselib_lookup following by tweaking locs->setting_insn.
29101
29102 PR bootstrap/43596
29103 * cselib.c (cselib_process_insn): Clear cselib_current_insn
29104 even before returning from label, setjmp call or volatile asm
29105 handling.
29106
29107 2010-03-31 Richard Guenther <rguenther@suse.de>
29108
29109 PR middle-end/43600
29110 * cgraphunit.c (cgraph_output_in_order): Do not allocate
29111 temporary data on stack.
29112
29113 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29114
29115 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
29116 (PUSHSECTION_ASM_OP): Remove.
29117 (POPSECTION_ASM_OP): Remove.
29118 (PUSHSECTION_FORMAT): Remove.
29119 * config/sol2.h (PUSHSECTION_FORMAT): Define.
29120 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
29121 * config/sol2.c (solaris_output_init_fini): Use it.
29122
29123 2010-03-31 Jie Zhang <jie@codesourcery.com>
29124
29125 PR 43574
29126 * opt-functions.awk (var_type_struct): Use signed char type
29127 for simple variables.
29128
29129 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29130
29131 * config/sol2.c: Include output.h.
29132 (solaris_assemble_visibility): New function.
29133 * config/t-sol2 (sol2.o): Add output.h dependency.
29134 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
29135 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
29136 Redefine.
29137
29138 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29139
29140 PR target/43580
29141 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
29142 V2SImode or XFmode on PRE_DEC.
29143
29144 PR debug/43557
29145 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
29146 BLKmode.
29147
29148 2010-03-31 Jie Zhang <jie@codesourcery.com>
29149
29150 PR 43562
29151 * reload.h (caller_save_initialized_p): Declare.
29152 * toplev.c (backend_init_target): Don't call
29153 init_caller_save but set caller_save_initialized_p to false.
29154 * caller-save.c (caller_save_initialized_p): Define.
29155 (init_caller_save): Check caller_save_initialized_p.
29156 * ira.c (ira): Call init_caller_save if flag_caller_saves.
29157
29158 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29159
29160 PR target/39048
29161 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
29162 and soft-fp/t-softfp to tmake_file.
29163 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
29164 (LIBGCC2_TF_CEXT): Define.
29165 (TF_SIZE): Define.
29166
29167 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
29168
29169 PR debug/42977
29170 * cselib.c (n_useless_values): Document handling of debug locs.
29171 (n_useless_debug_values, n_debug_values): New variables.
29172 (new_elt_loc_list): Don't add to debug values, keep count.
29173 (promote_debug_loc): New.
29174 (cselib_reset_table): Zero new variables.
29175 (entry_and_rtx_equal_p): Promote debug locs.
29176 (discard_useless_locs): Increment n_useless_debug_values for
29177 debug values.
29178 (remove_useless_values): Adjust n_useless_values and n_debug_values
29179 with n_useless_debug_values.
29180 (add_mem_for_addr): Promote debug locs.
29181 (cselib_lookup_mem): Likewise.
29182 (cselib_lookup_addr): Renamed to...
29183 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
29184 (cselib_log_lookup): ... this. Turn into...
29185 (cselib_lookup_addr): ... new wrapper.
29186 (cselib_lookup_from_insn): New.
29187 (cselib_invalidate_regno): Increment n_useless_debug_values for
29188 debug values.
29189 (cselib_invalidate_mem): Likewise.
29190 (cselib_process_insn): Take n_deleted and n_debug_values into
29191 account to guard remove_useless_value call.
29192 (cselib_finish): Zero n_useless_debug_values.
29193 * cselib.h (cselib_lookup_from_insn): Declare.
29194 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
29195 (sched_analyze_2): Likewise.
29196
29197 2010-03-30 Jakub Jelinek <jakub@redhat.com>
29198
29199 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
29200 functions.
29201 (adjust_mems): Replace narrowing SUBREG of expression containing
29202 just PLUS, MINUS, MULT and ASHIFT of registers and constants
29203 with operations in the narrower mode.
29204
29205 PR debug/43593
29206 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
29207 regs_invalidated_by_call instead all call_used_reg_set registers.
29208
29209 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
29210
29211 PR middle-end/43430
29212 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
29213 pointer comparisons with types_compatible_p.
29214 * tree-vect-stmts.c (vectorizable_call): Same.
29215 (vectorizable_condition): Same.
29216
29217 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29218
29219 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
29220 stack check if the mask would be zero.
29221
29222 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29223 Jack Howarth <howarth@bromo.med.uc.edu>
29224
29225 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29226 variables TLS.
29227
29228 2010-03-30 Joseph Myers <joseph@codesourcery.com>
29229
29230 PR other/25232
29231 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
29232 and __unordtf2.
29233 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
29234 Include ___unordxf2 and ___unordtf2.
29235 * config/i386/libgcc-glibc.ver: Do not define inheritance from
29236 GCC_4.4.0 here.
29237
29238 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
29239
29240 * config/lm32/t-lm32: New file.
29241 * config.gcc: Use the above file when targetting lm32.
29242
29243 2010-03-28 Duncan Sands <baldrick@free.fr>
29244
29245 * Makefile.in (PLUGIN_HEADERS): Add except.h.
29246
29247 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29248
29249 PR middle-end/43431
29250 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
29251 Improve vectorization cost model diagnostic.
29252
29253 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29254
29255 PR middle-end/43436
29256 * tree-vect-data-refs.c (vect_analyze_data_refs): When
29257 compute_data_dependences_for_loop returns false, early exit
29258 and output an extra diagnostic for the failed data reference
29259 analysis.
29260
29261 2010-03-29 Richard Guenther <rguenther@suse.de>
29262
29263 PR tree-optimization/43560
29264 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
29265 (can_sm_ref_p): Treat stores to readonly locations as trapping.
29266
29267 2010-03-29 Jie Zhang <jie@codesourcery.com>
29268
29269 PR 43564
29270 * toplev.c (process_options): Set optimization_default_node
29271 and optimization_current_node.
29272 * opts.c (decode_options): Don't set optimization_default_node
29273 and optimization_current_node.
29274
29275 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
29276
29277 * config/rtems.h: Abandon -qrtems_debug.
29278
29279 2010-03-28 Jan Hubicka <jh@suse.cz>
29280
29281 PR tree-optimization/43505
29282 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
29283 map should not be copied.
29284
29285 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29286
29287 PR middle-end/41674
29288 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
29289 cdtors, set DECL_PRESERVE_P.
29290 * ipa.c (cgraph_externally_visible_p): Return true if declaration
29291 should be preseved.
29292
29293 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
29294
29295 PR tree-optimization/43528
29296 * stor-layout.c (place_field): Check that constant fits into
29297 unsigned HWI when skipping calculation of MS bitfield layout.
29298
29299 2010-03-27 Jan Hubicka <jh@suse.cz>
29300
29301 PR middle-end/43391
29302 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
29303 notice_global_symbol work.
29304
29305 2010-03-27 Jakub Jelinek <jakub@redhat.com>
29306
29307 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
29308 instead of dwarf2out_decl.
29309 (struct var_loc_node): Remove section_label field.
29310 (dwarf2out_function_decl): New function.
29311 (dwarf2out_var_location): Don't set section_label field.
29312 (dwarf2out_begin_function): Don't empty decl_loc_table here.
29313
29314 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
29315
29316 PR tree-optimization/43544
29317 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29318 First argument for builtin vectorized function hook is now a
29319 tree to be able to distinguish between machine specific and
29320 standard builtins.
29321 * targhooks.c (default_builtin_vectorized_function): Ditto.
29322 * targhooks.h (default_builtin_vectorized_function): Ditto.
29323 * target.h (struct gcc_target): Ditto.
29324 * tree-vect-stmts.c (vectorizable_function): Ditto.
29325 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
29326 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
29327 Ditto.
29328
29329 2010-03-26 Joseph Myers <joseph@codesourcery.com>
29330
29331 PR c/43381
29332 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
29333 nested binding iff it is a FUNCTION_DECL.
29334 (store_parm_decls_newstyle): Pass nested=true to bind for
29335 FUNCTION_DECLs amongst parameters.
29336
29337 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29338
29339 * var-tracking.c (vt_expand_loc_callback): Don't run
29340 cselib_expand_value_rtx_cb in dummy mode if
29341 cselib_dummy_expand_value_rtx_cb returned false.
29342
29343 * var-tracking.c (emit_note_insn_var_location): For one part
29344 notes with offset 0, don't add EXPR_LIST around the location.
29345 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
29346 add_location_or_const_value_attribute): Adjust for that change.
29347
29348 PR debug/43540
29349 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
29350 into first operand and location into second.
29351 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
29352 dw_cfi_oprnd_loc for DW_CFA_expression.
29353 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
29354 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
29355 assume first argument is regnum and second argument is location.
29356
29357 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29358
29359 PR target/42113
29360 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
29361 of scratch register to DImode. Split to DImode comparison operator.
29362 Use SImode subreg of scratch register in the multiplication.
29363 (*cmp_sadd_sidi): Ditto.
29364 (*cmp_ssub_si): Ditto.
29365 (*cmp_ssub_sidi): Ditto.
29366
29367 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29368
29369 PR target/43524
29370 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
29371 Remove invalid assert and wrong comment.
29372
29373 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29374
29375 PR debug/43516
29376 * flags.h (final_insns_dump_p): New extern.
29377 * final.c (final_insns_dump_p): New variable.
29378 (rest_of_clean_state): Set it before -fdump-final-insns=
29379 dumping, clear afterwards.
29380 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
29381 MEM_ALIAS_SET on MEMs.
29382
29383 2010-03-26 David S. Miller <davem@davemloft.net>
29384
29385 * configure.ac: Fix sparc GOTDATA_OP bug check.
29386 * configure: Rebuild.
29387
29388 2010-03-26 Alan Modra <amodra@gmail.com>
29389
29390 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
29391
29392 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29393
29394 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
29395 TLS_SECTION_ASM_FLAG.
29396
29397 2010-03-25 Jakub Jelinek <jakub@redhat.com>
29398
29399 PR bootstrap/43511
29400 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
29401 Clear first_function_block_is_cold.
29402
29403 PR c/43385
29404 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
29405 argument if the argument is truth_value_p.
29406
29407 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29408
29409 * config/rs6000/constraints.md: Update copyright year for my changes.
29410
29411 PR target/43484
29412 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
29413 used in reg+reg addressing, swap registers.
29414
29415 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29416
29417 PR debug/43293
29418 * target.h (struct gcc_target): Add code_end hook.
29419 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
29420 if not yet defined.
29421 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
29422 * toplev.c (compile_file): Call targetm.asm_out.code_end
29423 hook before unwind info/debug info output.
29424 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
29425 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
29426 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29427 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
29428 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29429 * config/i386/i386.c (ix86_file_end): Renamed to...
29430 (ix86_code_end): ... this. Make static. Don't call
29431 file_end_indicate_exec_stack. Emit unwind info using
29432 final_start_function/final_end_function.
29433 (darwin_x86_file_end): Remove.
29434 (TARGET_ASM_CODE_END): Define.
29435 * config/i386/i386.h (TARGET_ASM_FILE_END,
29436 NEED_INDICATE_EXEC_STACK): Don't define.
29437 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
29438 (TARGET_ASM_FILE_END): Define to darwin_file_end.
29439 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
29440 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
29441
29442 PR target/43498
29443 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
29444 at the beginning and final_end_function at the end.
29445 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
29446
29447 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29448
29449 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
29450 and Sun as TLS syntax.
29451 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
29452 * configure: Regenerate.
29453 * config.in: Regenerate.
29454 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
29455 (default_elf_asm_named_section): Use it.
29456 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
29457 (i386_output_dwarf_dtprel): Likewise.
29458 (output_addr_const_extra): Likewise.
29459 (output_pic_addr_const): Lowercase @GOTTPOFF.
29460 (output_addr_const_extra): Likewise.
29461 (output_pic_addr_const): Lowercase @GOTNTPOFF.
29462 (output_addr_const_extra): Likewise.
29463 (output_pic_addr_const): Lowercase @INDNTPOFF.
29464 (output_addr_const_extra): Likewise.
29465 (output_pic_addr_const): Lowercase @NTPOFF.
29466 (output_addr_const_extra): Likewise.
29467 (output_pic_addr_const): Lowercase @TPOFF.
29468 (output_addr_const_extra): Likewise.
29469 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
29470 (*tls_global_dynamic_64): Likewise.
29471 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
29472 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
29473
29474 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
29475 (ASM_OUTPUT_TLS_COMMON): Use it.
29476 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
29477
29478 PR target/38118
29479 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
29480 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
29481 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
29482 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
29483 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29484 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
29485
29486 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29487
29488 * config/i386/i386.c (override_options): Don't accept
29489 -mtls-dialect=sun any longer.
29490 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
29491 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
29492 (*tls_local_dynamic_base_32_sun): Likewise.
29493 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29494
29495 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29496
29497 PR debug/43508
29498 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
29499 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
29500
29501 PR debug/43479
29502 * ira.c (adjust_cleared_regs): New function.
29503 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
29504
29505 PR debug/19192
29506 PR debug/43479
29507 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
29508 from gimple_block.
29509 * expr.c (expand_expr_real): Restore previous
29510 curr_insn_source_location and curr_insn_block after
29511 expand_expr_real_1 call.
29512 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
29513 instead of expand_expr_real_1.
29514
29515 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
29516
29517 PR rtl-optimization/43413
29518 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
29519 hard regs too.
29520
29521 2010-03-22 James E. Wilson <wilson@codesourcery.com>
29522
29523 PR target/43348
29524 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
29525 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
29526
29527 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
29528
29529 * config/i386/i386.c (ix86_target_string): Add -mfma.
29530 Fix a typo in comment.
29531
29532 2010-03-22 Mike Stump <mikestump@comcast.net>
29533
29534 PR target/23071
29535 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
29536 Don't overly align based upon packed packed fields.
29537
29538 2010-03-22 Jason Merrill <jason@redhat.com>
29539
29540 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
29541 Use () rather than [], and move before the element type.
29542
29543 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29544
29545 * doc/configfiles.texi (Configuration Files): Removed
29546 fixinc/Makefile*, intl/Makefile.*.
29547 * doc/makefile.texi: Fixed markup. Abstract from version
29548 control system used.
29549 (Makefile): Removed obsolete java/parse.y example.
29550 * doc/sourcebuild.texi: Likewise.
29551 (Top Level): Added config, gnattools, libdecnumber, libgcc,
29552 libgomp, libssp. Removed fastjar.
29553 (Miscellaneous Docs): Clarify location.
29554 Added COPYING3, COPYING3.LIB.
29555 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
29556
29557 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29558
29559 PR target/38085
29560 * config/i386/i386.c (x86_function_profiler)
29561 [!NO_PROFILE_COUNTERS]: Fix typo.
29562 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
29563 instead of callq.
29564
29565 2010-03-22 Janis Johnson <janis187@us.ibm.com>
29566 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29567
29568 * doc/sourcebuild.texi (Test Directives): Split into six
29569 subsections, with most of the current text in new subsections
29570 Directives, Selectors, and Final Actions.
29571 (Directives): Split list of test directives into multiple
29572 subsubsections.
29573 (Selectors): Describe use and syntax of selectors.
29574 (Effective-Target Keywords): Describe all existing keywords.
29575 (Add Options): Describe features for dg-add-options.
29576 (Require Support): Describe variants of dg-require-support.
29577 (Final Actions): Describe commands to use in dg-final.
29578
29579 2010-03-22 Michael Matz <matz@suse.de>
29580
29581 PR middle-end/43475
29582 * recog.c (validate_replace_rtx_group): Replace also in
29583 REG_EQUAL and REG_EQUIV notes.
29584
29585 2010-03-22 Richard Guenther <rguenther@suse.de>
29586
29587 PR tree-optimization/43390
29588 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
29589 sure vector extracts are type correct.
29590
29591 2010-03-22 Richard Guenther <rguenther@suse.de>
29592
29593 PR middle-end/40106
29594 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
29595 x * sqrt (x) even when optimizing for size if the target
29596 has native support for sqrt.
29597
29598 2010-03-22 Jakub Jelinek <jakub@redhat.com>
29599
29600 * varasm.c (make_decl_rtl_for_debug): Also clear
29601 flag_mudflap for the duration of make_decl_rtl call.
29602
29603 PR debug/43443
29604 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
29605 locs from preserved VALUEs.
29606
29607 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29608
29609 PR middle-end/42718
29610 * pa.md (movmemsi): Set align to one if zero.
29611 (movmemdi): Likewise.
29612
29613 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
29614
29615 PR target/42321
29616 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
29617 with their corresponding prologue pushes.
29618
29619 2010-03-20 Andrew Pinski <pinskia@gmail.com>
29620
29621 PR target/43156
29622 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
29623 at the begining or end.
29624 (spu_expand_epilogue): Likewise.
29625
29626 2010-03-20 Richard Guenther <rguenther@suse.de>
29627
29628 PR rtl-optimization/43438
29629 * combine.c (make_extraction): Properly zero-/sign-extend an
29630 extraction of the low part of a CONST_INT. Also handle
29631 CONST_DOUBLE.
29632
29633 2010-03-19 Mike Stump <mikestump@comcast.net>
29634
29635 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
29636 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
29637 (override_options): Use SUBTARGET32_DEFAULT_CPU.
29638
29639 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29640
29641 PR c/43211
29642 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
29643 an error.
29644
29645 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
29646
29647 PR rtl-optimization/42258
29648 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
29649 use that may match DEF.
29650
29651 PR target/40697
29652 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
29653 the cost of loading the constant rather than assuming
29654 COSTS_N_INSNS (1).
29655 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
29656 outer code is AND, do the same tests as the andsi3 expander and
29657 return COSTS_N_INSNS (1) if and is cheap.
29658
29659 * optabs.c (avoid_expensive_constant): Fix formatting.
29660
29661 2010-03-19 Michael Matz <matz@suse.de>
29662
29663 PR c++/43116
29664 * attribs.c (decl_attributes): When rebuilding a function pointer
29665 type use the same qualifiers as the original pointer type.
29666
29667 2010-03-19 Martin Jambor <mjambor@suse.cz>
29668
29669 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
29670 and is_gimple_ip_invariant_address.
29671
29672 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29673
29674 Revert
29675 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29676
29677 * config/arm/arm.c (arm_override_options): Turn off
29678 flag_dwarf2_cfi_asm for AAPCS variants.
29679
29680 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29681
29682 PR target/43399
29683 * config/arm/arm.c (emit_multi_reg_push): Update comments.
29684 Use PRE_MODIFY instead of PRE_DEC.
29685 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
29686 (vfp_emit_fstmd): Likewise.
29687
29688 2010-03-19 Michael Matz <matz@suse.de>
29689
29690 PR target/43305
29691 * builtins.c (expand_builtin_interclass_mathfn,
29692 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
29693 if that fails.
29694
29695 2010-03-19 Richard Guenther <rguenther@suse.de>
29696
29697 PR tree-optimization/43415
29698 * tree-ssa-pre.c (phi_translate): Split out worker to ...
29699 (phi_translate_1): ... this.
29700 (phi_translate): Move all caching here. Cache all NARY
29701 and REFERENCE translations.
29702
29703 2010-03-19 David S. Miller <davem@davemloft.net>
29704
29705 With help from Eric Botcazou.
29706 * config/sparc/sparc.c: Include dwarf2out.h.
29707 (emit_pic_helper): Delete.
29708 (pic_helper_symbol_name): Delete.
29709 (pic_helper_emitted_p): Delete.
29710 (pic_helper_needed): New.
29711 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
29712 (get_pc_thunk_name): New.
29713 (load_pic_register): Remove 'delay_pic_helper' arg. Use
29714 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
29715 Set pic_helper_needed to true. Don't call emit_pic_helper.
29716 (sparc_expand_prologue): Update load_pic_register call.
29717 (sparc_output_mi_thunk): Likewise.
29718 (sparc_file_end): Emit a hidden comdat symbol for the PIC
29719 thunk if possible. Output CFI information as needed.
29720
29721 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
29722 Jack Howarth <howarth@bromo.med.uc.edu>
29723
29724 PR target/36399
29725 * config/i386/i386.h: Fix ABI on darwin x86-32.
29726
29727 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
29728
29729 * tree.h: Declare make_decl_rtl_for_debug.
29730 * varasm.c (make_decl_rtl_for_debug): New.
29731 * dwarf2out.c (rtl_for_decl_location): Call it.
29732 * cfgexpand.c (expand_debug_expr): Call it.
29733
29734 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29735
29736 PR bootstrap/43399
29737 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
29738 mem_mode.
29739
29740 PR bootstrap/43403
29741 * var-tracking.c (vt_init_cfa_base): Do nothing if
29742 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
29743
29744 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
29745
29746 PR debug/42873
29747 * var-tracking.c (canonicalize_vars_star): New.
29748 (dataflow_post_merge_adjust): Use it.
29749
29750 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29751
29752 PR debug/43058
29753 * var-tracking.c (non_suitable_const): New function.
29754 (add_uses): For DEBUG_INSNs with constants, don't record any
29755 value, instead just the constant value itself.
29756 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
29757 is not VAR_LOC_UNKNOWN_P, set var to the constant.
29758 (emit_notes_in_bb): Likewise.
29759 (emit_note_insn_var_location): For onepart variables if
29760 cur_loc is a VOIDmode constant, use DECL_MODE.
29761
29762 2010-03-18 Martin Jambor <mjambor@suse.cz>
29763
29764 PR middle-end/42450
29765 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
29766 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
29767 all non-clones. Moved call redirection...
29768 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
29769 (cgraph_materialize_all_clones): Dispose of all
29770 combined_args_to_skip bitmaps.
29771 (verify_cgraph_node): Do not check for edges pointing to wrong
29772 nodes in inline clones.
29773 * tree-inline.c (copy_bb): Call
29774 cgraph_redirect_edge_call_stmt_to_callee.
29775 * ipa.c (cgraph_remove_unreachable_nodes): Call
29776 cgraph_node_remove_callees even when there are used clones.
29777
29778 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29779
29780 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
29781
29782 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29783
29784 PR target/43383
29785 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
29786 for 32bit.
29787
29788 2010-03-18 Michael Matz <matz@suse.de>
29789
29790 PR middle-end/43419
29791 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
29792 into sqrt(x) if we need to preserve signed zeros.
29793
29794 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
29795 Eric Botcazou <ebotcazou@adacore.com>
29796
29797 PR rtl-optimization/43360
29798 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
29799 note if we don't know its invariant status.
29800
29801 2010-03-18 Michael Matz <matz@suse.de>
29802
29803 PR tree-optimization/43402
29804 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
29805 PHI chains of ssa names registered for update.
29806
29807 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
29808
29809 PR target/42427
29810 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
29811 non-offsettable and pre_modify update addressing.
29812 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
29813 and "2" alternatives "#".
29814 (*movdd_softfloat32): Make all alternatives "#";
29815 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
29816 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
29817 (*movdf_softfloat32): Make all alternatives "#";
29818 (movdi): Use the new DIFD mode iterator to create a common splitter
29819 for movdi, movdf and movdd patterns.
29820
29821 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
29822
29823 * common.opt (dumpdir): Remove redundant tab.
29824
29825 2010-03-17 Martin Jambor <mjambor@suse.cz>
29826
29827 PR tree-optimization/43347
29828 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
29829 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
29830
29831 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
29832
29833 PR rtl-optimization/42216
29834 * regrename.c (create_new_chain): New function, broken out from...
29835 (scan_rtx_reg): ... here. Call it. Handle the case where we are
29836 appending a use to an empty chain.
29837 (build_def_use): Remove previous changes that convert OP_INOUT to
29838 OP_OUT operands; instead detect the case where an OP_INOUT operand
29839 uses a previously untracked register and create an empty chain for it.
29840
29841 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29842
29843 * doc/extend.texi (Function Attributes): Rewrite unfinished
29844 sentence in ms_abi documentation.
29845
29846 2010-03-17 Alan Modra <amodra@gmail.com>
29847
29848 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
29849 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
29850 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
29851 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
29852
29853 2010-03-16 Richard Henderson <rth@redhat.com>
29854
29855 PR middle-end/43365
29856 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
29857 (lower_try_finally): Save and restore eh_seq around the expansion
29858 of the try-finally.
29859
29860 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29861
29862 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
29863 statements before splitting block.
29864
29865 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29866
29867 * doc/sourcebuild.texi (Testsuites): Fix markup.
29868 Use pathnames relative to gcc/testsuite.
29869 (Test Directives): Move description of how timeout is determined.
29870 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
29871 (C Tests): Correct gcc.misc-tests directory.
29872 Framework tests now live in gcc.test-framework.
29873
29874 2010-03-16 Richard Guenther <rguenther@suse.de>
29875
29876 PR middle-end/43379
29877 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
29878 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
29879
29880 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29881 Alexandre Oliva <aoliva@redhat.com>
29882
29883 PR tree-optimization/42917
29884 * lambda-code.c (remove_iv): Skip debug statements.
29885 (lambda_loopnest_to_gcc_loopnest): Likewise.
29886 (not_interesting_stmt): Debug statements are not interesting.
29887
29888 2010-03-16 Jakub Jelinek <jakub@redhat.com>
29889
29890 PR debug/43051
29891 PR debug/43092
29892 * cselib.c (cselib_preserve_constants,
29893 cfa_base_preserved_val): New static variables.
29894 (preserve_only_constants): New function.
29895 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
29896 clear its REG_VALUES. If cselib_preserve_constants, don't
29897 empty the whole hash table, but preserve there VALUEs with constants,
29898 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
29899 (cselib_preserve_cfa_base_value): New function.
29900 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
29901 (cselib_init): Change argument to int bitfield. Set
29902 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
29903 is in it.
29904 (cselib_finish): Clear cselib_preserve_constants and
29905 cfa_base_preserved_val.
29906 * cselib.h (enum cselib_record_what): New enum.
29907 (cselib_init): Change argument to int.
29908 (cselib_preserve_cfa_base_value): New prototype.
29909 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
29910 * dse.c (dse_step1): Likewise.
29911 * cfgcleanup.c (thread_jump): Likewise.
29912 * sched-deps.c (sched_analyze): Likewise.
29913 * gcse.c (local_cprop_pass): Likewise.
29914 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
29915 If FN is non-NULL, call the callback always and whenever it returns
29916 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
29917 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
29918 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
29919 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
29920 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
29921 * var-tracking.c: Include recog.h.
29922 (bb_stack_adjust_offset): Remove.
29923 (vt_stack_adjustments): Don't call it, instead just gather the
29924 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
29925 (adjust_stack_reference): Remove.
29926 (compute_cfa_pointer): New function.
29927 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
29928 (struct adjust_mem_data): New type.
29929 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
29930 functions.
29931 (get_address_mode): New function.
29932 (replace_expr_with_values): Use it.
29933 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
29934 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
29935 (adjust_sets): Remove.
29936 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
29937 Use get_address_mode.
29938 (get_adjusted_src): Remove.
29939 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
29940 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
29941 (add_with_sets): Don't call adjust_sets.
29942 (fp_setter, vt_init_cfa_base): New functions.
29943 (vt_initialize): Change return type to bool. Move most of pool etc.
29944 initialization to the beginning of the function from end. Pass
29945 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
29946 If !frame_pointer_needed, call vt_stack_adjustment before mos
29947 vector is filled, call vt_init_cfa_base if argp/framep has been
29948 eliminated to sp. If frame_pointer_needed and argp/framep has
29949 been eliminated to hard frame pointer, set
29950 hard_frame_pointer_adjustment and call vt_init_cfa_base after
29951 encountering fp setter in the prologue. For MO_ADJUST, call
29952 log_op_type before pusing the op into mos vector, not afterwards.
29953 Call adjust_insn before cselib_process_insn/add_with_sets,
29954 call cancel_changes (0) afterwards.
29955 (variable_tracking_main_1): Adjust for vt_initialize calling
29956 vt_stack_adjustments and returning whether it succeeded or not.
29957
29958 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
29959
29960 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
29961 debug statements.
29962
29963 2010-03-15 Jakub Jelinek <jakub@redhat.com>
29964
29965 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
29966 has been set.
29967 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
29968 drap_reg has not been set.
29969
29970 2010-03-15 Michael Matz <matz@suse.de>
29971
29972 PR middle-end/43300
29973 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
29974 use it to expand block copies.
29975 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
29976 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
29977 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
29978
29979 2010-03-15 Richard Guenther <rguenther@suse.de>
29980
29981 PR tree-optimization/43367
29982 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
29983 elimination check.
29984
29985 2010-03-15 Richard Guenther <rguenther@suse.de>
29986
29987 PR tree-optimization/43317
29988 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
29989
29990 2010-03-15 Martin Jambor <mjambor@suse.cz>
29991
29992 PR tree-optimization/43141
29993 * tree-sra.c (create_abstract_origin): New function.
29994 (modify_function): Call create_abstract_origin.
29995
29996 2010-03-15 Chris Demetriou <cgd@google.com>
29997
29998 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
29999 wasn't copied.
30000
30001 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30002
30003 PR middle-end/43354
30004 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
30005 call insert_out_of_ssa_copy for default definitions.
30006
30007 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30008
30009 * graphite-clast-to-gimple.c (my_long_long): Defined.
30010 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
30011 * graphite-sese-to-poly.c (my_long_long): Defined.
30012 (scop_ivs_can_be_represented): Use it.
30013
30014 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30015
30016 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
30017 graphite-max-bbs-per-function, and loop-block-tile-size.
30018 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
30019 with "maximum".
30020 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
30021
30022 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30023
30024 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
30025 forward declaration.
30026 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
30027 (add_upper_bounds_from_estimated_nit): New.
30028 (build_loop_iteration_domains): Use it.
30029
30030 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30031
30032 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
30033
30034 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30035
30036 PR middle-end/43306
30037 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
30038 should be an INTEGER_CST. Also handle CASE_CONVERT.
30039
30040 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30041
30042 * graphite.c (graphite_initialize): To bound the number of bbs per
30043 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
30044 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
30045 * doc/invoke.texi: Document it.
30046
30047 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30048
30049 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
30050 * graphite-sese-to-poly.h (build_poly_scop): Same.
30051
30052 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30053
30054 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
30055 the number of parameters in the scop. Use as an upper bound
30056 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
30057 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30058 * doc/invoke.texi: Document it.
30059
30060 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
30061
30062 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30063 * doc/c-tree.texi: Remove.
30064 * doc/generic.texi: Merge c-tree.texi here.
30065 * doc/gccint.texi (Trees): Remove menu entry.
30066 (c-tree.texi): Remove @include.
30067 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30068 * doc/languages.texi (Reading RTL): Ditto.
30069
30070 2010-03-12 Steve Ellcey <sje@cup.hp.com>
30071
30072 PR target/42869
30073 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30074
30075 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30076
30077 PR middle-end/42431
30078 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30079 code added to work around reload clobbering CONST insns.
30080
30081 2010-03-12 Jakub Jelinek <jakub@redhat.com>
30082
30083 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30084 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30085 (cselib_preserve_only_values): Remove retain argument, don't
30086 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30087 * cselib.h (cselib_preserve_only_values): Remove retain argument.
30088 * var-tracking.c (micro_operation): Move insn field before union.
30089 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30090 (struct variable_tracking_info_def): Remove n_mos field, change
30091 mos into a vector of micro_operations.
30092 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30093 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30094 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30095 changing into a vector.
30096 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
30097 come before all other uops generated by add_stores.
30098 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30099 argument removal.
30100 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
30101 a vector. Run just one pass over the bbs instead of separate counting
30102 and computation phase.
30103 (vt_finalize): Free VTI (bb)->mos vector instead of array.
30104
30105 PR debug/43329
30106 * tree-inline.c (remap_decls): Put old_var rather than origin_var
30107 into *nonlocalized_list vector.
30108 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30109 even if origin is non-NULL.
30110 (gen_variable_die): Likewise.
30111 (process_scope_var): Don't change origin.
30112 (gen_decl_die): Likewise.
30113 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
30114 before adding new edges instead of after it, fix moving over
30115 debug stmts.
30116
30117 2010-03-11 David S. Miller <davem@davemloft.net>
30118
30119 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
30120 of four.
30121 * configure: Rebuild.
30122
30123 2010-03-11 Martin Jambor <mjambor@suse.cz>
30124
30125 PR tree-optimization/43257
30126 * tree.c (assign_assembler_name_if_neeeded): New function.
30127 (free_lang_data_in_cgraph): Assembler name assignment moved to the
30128 above new function.
30129 * tree.h (assign_assembler_name_if_neeeded): Declare.
30130 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
30131 the function if needed.
30132
30133 2010-03-11 Chris Demetriou <cgd@google.com>
30134
30135 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
30136 include/stdint-gcc.h, and include/stdint.h world-readable.
30137
30138 2010-03-11 Richard Guenther <rguenther@suse.de>
30139
30140 PR tree-optimization/43255
30141 * tree-vrp.c (process_assert_insertions_for): Do not insert
30142 asserts for trivial conditions.
30143
30144 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30145
30146 PR tree-optimization/43280
30147 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
30148 generation. Move calculation of size out of the if branch.
30149 (find_bswap): Modify compare number generation.
30150
30151 2010-03-11 Richard Guenther <rguenther@suse.de>
30152
30153 PR lto/43200
30154 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
30155 (input_gimple_stmt): Fixup handled component types during
30156 operand read. Also fix up decls in ADDR_EXPRs.
30157
30158 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
30159
30160 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
30161 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
30162
30163 2010-03-10 Jan Hubicka <jh@suse.cz>
30164
30165 PR c/43288
30166 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
30167 * varasm.c (get_variable_section): Don't do that here...
30168 (make_decl_rtl): ... and here.
30169 (do_assemble_alias): Produce decl RTL.
30170 (assemble_alias): Likewise.
30171
30172 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30173
30174 PR debug/43290
30175 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
30176 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
30177 of fde->vdrap_reg.
30178 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
30179 (based_loc_descr): Only express drap or vdrap regno based expressions
30180 using DW_OP_fbreg when not optimizing.
30181 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
30182 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
30183 REG_CFA_SET_VDRAP note.
30184
30185 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
30186
30187 PR tree-optimization/43236
30188 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
30189 error in calculation of base address in reverse iteration case.
30190 (generate_builtin): Take number of latch executions if the statement
30191 is in the latch.
30192
30193 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
30194
30195 PR middle-end/42859
30196 * tree-eh.c: Include pointer-set.h.
30197 (lower_eh_dispatch): Filter out duplicate case labels and
30198 remove the unneeded edge when the label is unused. Return
30199 true when some edges are removed.
30200 (execute_lower_eh_dispatch): When any lowering resulted in
30201 removing an edge, also delete unreachable blocks.
30202
30203 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30204
30205 PR bootstrap/43287
30206 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30207 UNSPEC_MACHOPIC_OFFSET.
30208
30209 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
30210
30211 PR target/43294
30212 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
30213 (m68k_delegitimize_address): New function.
30214
30215 2010-03-09 Jakub Jelinek <jakub@redhat.com>
30216
30217 PR debug/43299
30218 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
30219
30220 PR debug/43299
30221 * var-tracking.c (adjust_sets): New function.
30222 (count_with_sets, add_with_sets): Use it.
30223 (get_adjusted_src): New inline function.
30224 (add_stores): Use it.
30225
30226 PR debug/43304
30227 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
30228 call cselib_dummy_expand_value_rtx_cb instead of
30229 cselib_expand_value_rtx_cb.
30230
30231 PR debug/43293
30232 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
30233 * config/i386/i386.c: Include debug.h and dwarf2out.h.
30234 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
30235 and .cfi_endproc around the pic thunks.
30236 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
30237 all queued unwind info register saves are saved before the call.
30238 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
30239 considered as sp-=4 for unwind info and the pop as sp+=4 which
30240 also clobbers dest, but doesn't actually restore it.
30241
30242 PR debug/43290
30243 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
30244 RTX_FRAME_RELATED_P.
30245
30246 2010-03-09 Jie Zhang <jie@codesourcery.com>
30247
30248 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
30249 whitespaces in output template.
30250
30251 2010-03-09 Jie Zhang <jie@codesourcery.com>
30252
30253 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
30254 out array boundary.
30255
30256 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30257
30258 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
30259 builtins.exp in a separate job.
30260
30261 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30262
30263 * graphite-sese-to-poly.c (add_param_constraints): Use
30264 lower_bound_in_type and upper_bound_in_type.
30265
30266 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30267
30268 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
30269 instead of unsigned_type_node.
30270
30271 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30272 Reza Yazdani <reza.yazdani@amd.com>
30273
30274 PR middle-end/43065
30275 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
30276 on pointer type parameters.
30277
30278 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30279
30280 PR middle-end/42644
30281 PR middle-end/42130
30282 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
30283 handle conversions from pointer to integers.
30284 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
30285 induction variable, to be able to work with code generated by CLooG.
30286 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
30287 (build_poly_scop): Bail out if we cannot codegen a loop.
30288
30289 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30290
30291 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
30292 code generation with gloog_error.
30293
30294 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30295
30296 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
30297 Call fold_convert on all the returned values.
30298 (expand_scalar_variables_expr): Pass to
30299 expand_scalar_variables_ssa_name the type of the resulting expression.
30300
30301 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30302
30303 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
30304 ppl_min_for_le_pointset.
30305 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
30306 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
30307
30308 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30309
30310 * graphite-dependences.c (map_into_dep_poly): Removed.
30311 (dependence_polyhedron_1): Use combine_context_id_scat.
30312
30313 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30314
30315 * graphite-poly.h (struct poly_scattering): Add layout documentation.
30316 (struct poly_bb): Same.
30317 (combine_context_id_scat): New.
30318
30319 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30320
30321 PR middle-end/42326
30322 * sese.c (name_defined_in_loop_p): Return false for default
30323 definitions.
30324
30325 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30326
30327 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
30328 and clean up the logic.
30329
30330 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30331
30332 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
30333 early return.
30334
30335 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30336
30337 * var-tracking.c (remove_cselib_value_chains): Define only for
30338 ENABLE_CHECKING.
30339 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
30340 delete_slot_part, emit_notes_for_differences_1): Don't call
30341 remove_cselib_value_chains here.
30342 (set_slot_part, emit_notes_for_differences_2): Don't call
30343 add_cselib_value_chains here.
30344 (preserved_values): New vector.
30345 (preserve_value): New function.
30346 (add_uses, add_stores, vt_add_function_parameters): Use it
30347 instead of cselib_preserve_value.
30348 (changed_values_stack): New vector.
30349 (check_changed_vars_0): New function.
30350 (check_changed_vars_1, check_changed_vars_2): Use it.
30351 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
30352 changed_values_stack VALUEs.
30353 (vt_emit_notes): For all preserved_values call
30354 add_cselib_value_chains. If ENABLE_CHECKING call
30355 remove_cselib_value_chains before verifying value_chains is empty.
30356 Initialize and free changed_values_stack.
30357 (vt_initialize): Initialize preserved_values.
30358 (vt_finalize): Free preserved_values.
30359
30360 2010-03-08 Richard Guenther <rguenther@suse.de>
30361
30362 PR tree-optimization/43269
30363 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
30364 region detection.
30365
30366 2010-03-08 Martin Jambor <mjambor@suse.cz>
30367
30368 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
30369 (ipa_is_param_called): Removed.
30370 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
30371 (ipa_print_node_params): Do not print the called flag.
30372 (ipa_write_node_info): Do not stream the called flag.
30373 (ipa_read_node_info): Likewise.
30374
30375 2010-03-07 Jakub Jelinek <jakub@redhat.com>
30376
30377 PR debug/43176
30378 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
30379 * cselib.c (struct expand_value_data): Add dummy field.
30380 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
30381 dummy to false.
30382 (cselib_dummy_expand_value_rtx_cb): New function.
30383 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
30384 any rtl.
30385 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
30386 * var-tracking.c: Include pointer-set.h.
30387 (variable): Change n_var_parts to char from int. Add
30388 cur_loc_changed and in_changed_variables fields.
30389 (variable_canonicalize): Remove.
30390 (shared_var_p): New inline function.
30391 (unshare_variable): Maintain cur_loc_changed and
30392 in_changed_variables fields. If var was in changed_variables,
30393 replace it there with new_var. Just copy cur_loc instead of
30394 resetting it to something else.
30395 (variable_union): Don't recompute cur_loc. Use shared_var_p.
30396 (dataflow_set_union): Don't call variable_canonicalize.
30397 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
30398 of their DEBUG_EXPR_TREE_DECLs.
30399 (canonicalize_loc_order_check): Verify that cur_loc is NULL
30400 and in_changed_variables and cur_loc_changed is false.
30401 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
30402 and cur_loc_changed. Don't update cur_loc here.
30403 (variable_merge_over_src): Don't call variable_canonicalize.
30404 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
30405 removing loc that is equal to cur_loc, clear cur_loc,
30406 set cur_loc_changed and ensure variable_was_changed is called.
30407 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
30408 compare pointers in cur_loc check, if it is equal to loc,
30409 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
30410 (variable_different_p): Remove compare_current_location argument,
30411 don't compare cur_loc.
30412 (dataflow_set_different_1): Adjust variable_different_p caller.
30413 (variable_was_changed): If dv had some var in changed_variables
30414 already, reset in_changed_variables flag for it and propagate
30415 cur_loc_changed over to the new variable. On empty var
30416 always set cur_loc_changed. Set in_changed_variables on whatever
30417 var is added to changed_variables.
30418 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
30419 Use shared_var_p. When removing loc that is equal to cur_loc,
30420 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
30421 end, don't set it to something else, just call variable_was_changed.
30422 (delete_slot_part): Use shared_var_p. When cur_loc equals to
30423 loc being removed, clear cur_loc and set cur_loc_changed.
30424 Set cur_loc_changed if all locations have been removed.
30425 (struct expand_loc_callback_data): New type.
30426 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
30427 allocated. Always create SUBREGs if simplify_subreg failed.
30428 Prefer to use cur_loc, when that fails and still in
30429 changed_variables (and seen first time) recompute it. Set
30430 cur_loc_changed of variables which had to change cur_loc and
30431 compute elcd->cur_loc_changed if any of the subexpressions used
30432 had to change cur_loc.
30433 (vt_expand_loc): Adjust to pass arguments in
30434 expand_loc_callback_data structure.
30435 (vt_expand_loc_dummy): New function.
30436 (emitted_notes): New variable.
30437 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
30438 that weren't used for any other decl in current
30439 emit_notes_for_changes call call vt_expand_loc_dummy to update
30440 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
30441 first loc_chain location if NULL before. Always use just
30442 cur_loc instead of first loc_chain location. When cur_loc_changed
30443 is false, when not --enable-checking=rtl just don't emit any note.
30444 When rtl checking, compute the note and assert it is the same
30445 as previous note. Clear cur_loc_changed and in_changed_variables
30446 at the end before removing from changed_variables.
30447 (check_changed_vars_3): New function.
30448 (emit_notes_for_changes): Traverse changed_vars to call
30449 check_changed_vars_3 on each changed var.
30450 (emit_notes_for_differences_1): Clear cur_loc_changed and
30451 in_changed_variables. Recompute cur_loc of new_var.
30452 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
30453 (vt_emit_notes): Initialize and destroy emitted_notes.
30454
30455 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
30456
30457 PR rtl-optimization/42220
30458 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
30459 Use verify_reg_tracked to determine if we should use OP_OUT rather
30460 than OP_INOUT.
30461 (build_def_use): If we see an in-out operand for a register that we
30462 know nothing about, treat is an output if possible, fail the block if
30463 not.
30464
30465 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30466
30467 PR debug/42897
30468 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
30469 permanently.
30470
30471 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30472
30473 PR debug/42897
30474 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
30475 uses of relevant DEFs that are dead outside the loop too.
30476
30477 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30478
30479 * var-tracking.c (dataflow_set_merge): Swap src and src2.
30480 Reverted:
30481 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30482 PR debug/41371
30483 * var-tracking.c (values_to_unmark): New variable.
30484 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30485 values_to_unmark vector. Moved body to...
30486 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30487 instead queue it into values_to_unmark vector.
30488 (vt_find_locations): Free values_to_unmark vector.
30489
30490 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
30491
30492 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
30493 (site.exp): Export them when plugins are enabled.
30494
30495 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
30496
30497 PR middle-end/42326
30498 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
30499 that contain scevs.
30500 (chrec_fold_multiply): Same.
30501
30502 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30503
30504 PR c/43248
30505 * c-decl.c (build_compound_literal): Return early if init is
30506 an error_mark_node.
30507
30508 2010-03-04 Martin Jambor <mjambor@suse.cz>
30509
30510 PR tree-optimization/43164
30511 PR tree-optimization/43191
30512 * tree-sra.c (type_consists_of_records_p): Reject records with
30513 zero-size bit-fields at the end.
30514
30515 2010-03-04 Mike Stump <mikestump@comcast.net>
30516
30517 * Makefile.in (TAGS): Remove *.y.
30518
30519 2010-03-04 Richard Guenther <rguenther@suse.de>
30520
30521 PR tree-optimization/40761
30522 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
30523 in reverse order.
30524 (my_rev_post_order_compute): New function.
30525 (init_pre): Call it.
30526
30527 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
30528
30529 PR middle-end/43209
30530 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
30531 decrease the cost of an IV candidate when the cost is infinite.
30532
30533 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30534
30535 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
30536 Use '3DNow!' for the extension of that name, ensure normal space
30537 after the string.
30538 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
30539
30540 2010-03-03 Jeff Law <law@redhat.com>
30541
30542 * PR middle-end/32693
30543 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
30544 than gen_rtx_SUBREG.
30545 (extract_bit_field_1): Likewise.
30546
30547 2010-03-03 Janis Johnson <janis187@us.ibm.com>
30548
30549 * doc/sourcebuild.texi (Test directives): Document that arguments
30550 include-opts and exclude-opts are now optional for dg-skip-if,
30551 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
30552
30553 2010-03-03 Jason Merrill <jason@redhat.com>
30554
30555 PR c++/12909
30556 * cgraph.h (varpool_node): Add extra_name field.
30557 * varpool.c (varpool_extra_name_alias): New.
30558 (varpool_assemble_decl): Emit extra name aliases.
30559 (varpool_mark_needed_node): Look past an extra name alias.
30560 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
30561 * lto-streamer-in.c (lto_input_tree): Read it.
30562 * lto-streamer-out.c (output_unreferenced_globals): Write it.
30563
30564 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
30565
30566 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
30567 (sparc*-*-solaris2*): ...this.
30568
30569 2010-03-03 Jakub Jelinek <jakub@redhat.com>
30570
30571 PR debug/43229
30572 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
30573 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
30574 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
30575 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
30576
30577 PR debug/43237
30578 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
30579 fallthrough to default handling, just with want_address 0 instead of 2.
30580 For single element lists, add_AT_loc directly, otherwise create an
30581 artificial variable DIE and stick location list to it.
30582
30583 PR debug/43177
30584 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
30585 (VAL_EXPR_HAS_REVERSE): Define.
30586 (reverse_op): New function.
30587 (add_stores): For reversible operations add an extra MO_VAL_USE.
30588
30589 2010-03-02 Jason Merrill <jason@redhat.com>
30590
30591 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
30592
30593 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
30594
30595 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
30596 (sparc64-*-linux*): Likewise.
30597 (sparc64-*-solaris2*): Include assembler files before linker ones.
30598 (sparc-*-solaris2*): Simplify and reorder to match previous case.
30599 * config/sparc/gas.h: Delete.
30600 * config/sparc/sol2-64.h: Add copyright notice.
30601 * config/sparc/sol2-gas-bi.h: Likewise.
30602 * config/sparc/sol2-gld.h: Likewise.
30603 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
30604 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
30605 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
30606 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
30607 (sparc_elf_asm_named_section): Rename into...
30608 (sparc_solaris_elf_asm_named_section): ...this. Always define.
30609
30610 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
30611
30612 * config/alpha/alpha.c (override_options): Fix -mtune error message.
30613
30614 2010-03-02 Jeff Law <law@redhat.com>
30615
30616 PR middle-end/42431
30617 * reload1.c (rtx_p, substitute_stack): Declare.
30618 (substitute): Record addresses of changed rtxs.
30619 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
30620 Restore the original rtx when complete.
30621 (reload): Free subsitute_stack when complete.
30622
30623 2010-03-02 Janis Johnson <janis187@us.ibm.com>
30624
30625 * doc/gccint.texi (menu): Add Testsuites as a chapter.
30626 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
30627 new chapter.
30628 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
30629 LTO Testing, gcov Testing, profopt Testing, compat Testing,
30630 Torture Tests): Change from subsection to section.
30631
30632 2010-03-02 Jakub Jelinek <jakub@redhat.com>
30633 Steven Bosscher <steven@gcc.gnu.org>
30634
30635 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
30636 instead of bb.
30637
30638 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
30639
30640 PR middle-end/42640
30641 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
30642 the assignment from the new induction variable to the assignment
30643 of the value from the original loop PHI function.
30644
30645 2010-03-01 Janis Johnson <janis187@us.ibm.com>
30646 Daniel Jacobowitz <dan@codesourcery.com>
30647
30648 * doc/sourcebuild.texi (Test directives): Clarify options to
30649 dg-skip-if.
30650
30651 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30652
30653 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
30654 Disable cfi directives unless GCC and gas agree on using read-only
30655 .eh_frame sections for 64-bit.
30656 * configure: Regenerate.
30657
30658 2010-03-01 Richard Guenther <rguenther@suse.de>
30659
30660 PR tree-optimization/43220
30661 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
30662 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
30663
30664 2010-03-01 Richard Guenther <rguenther@suse.de>
30665 Martin Jambor <mjambor@suse.cz>
30666
30667 PR middle-end/41250
30668 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
30669 gimplified parameters.
30670
30671 2010-03-01 Christian Bruel <christian.bruel@st.com>
30672
30673 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
30674
30675 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
30676
30677 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
30678
30679 2010-03-01 Richard Guenther <rguenther@suse.de>
30680
30681 PR middle-end/43213
30682 * expr.c (expand_assignment): Use the alias-oracle to tell
30683 if the rhs aliases the result decl.
30684
30685 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30686
30687 PR pch/14940
30688 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
30689 to sol_gt_pch_get_address.
30690 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
30691 64-bit, SPARC and x86.
30692 (sol_gt_pch_get_address): New function.
30693
30694 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
30695
30696 * toplev.h (inform_n, error_n): Declare.
30697 * diagnostic.c (inform_n, error_n): New function.
30698
30699 2010-03-01 Jakub Jelinek <jakub@redhat.com>
30700
30701 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
30702 has no rtl yet when processing local_decls, queue it and recheck
30703 if deferred stack allocation hasn't assigned it rtl.
30704
30705 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
30706
30707 * config/sh/sh.c (unspec_bbr_uid): New.
30708 (gen_block_redirect): Use it instead of INSN_UID.
30709 (gen_far_branch): Likewise.
30710
30711 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
30712
30713 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
30714 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
30715
30716 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30717
30718 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
30719 (Warning Options): -Wno-conversion-null is valid for
30720 Objective-C++ as well.
30721 * doc/tm.texi (Named Address Spaces): Likewise.
30722 * doc/plugins.texi (Plugins): Replace TABs with spaces.
30723 * doc/tree-ssa.texi (Tree SSA): Likewise.
30724
30725 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30726
30727 PR bootstrap/43202
30728 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
30729 by default. Don't set the default arch for
30730 i[34567]86-*-darwin*|x86_64-*-darwin*.
30731
30732 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30733
30734 PR bootstrap/43202
30735 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
30736 default. Set the default 32bit/64bit archs with $with_arch
30737 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
30738
30739 2010-02-27 Richard Guenther <rguenther@suse.de>
30740
30741 PR tree-optimization/43186
30742 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
30743 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
30744 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
30745 unroller iterations.
30746
30747 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30748
30749 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
30750 required and i[34567]86-*-* targets don't support 64bit ISA.
30751
30752 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
30753
30754 PR ada/43096
30755 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30756 the same alias set.
30757
30758 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30759
30760 * config.gcc: Set the default arch at least to Prescott for
30761 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
30762 if SSE math is enabled.
30763
30764 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30765
30766 * diagnostic.c (diagnostic_initialize): Update.
30767 (diagnostic_report_diagnostic): Test inhibit_notes_p for
30768 informative notes.
30769 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
30770 (diagnostic_inhibit_notes): New.
30771 * toplev.c (process_options): inhibit notes with -fcompare-debug.
30772
30773 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30774
30775 PR c/20631
30776 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
30777 * doc/standards.texi: Likewise.
30778 * doc/extend.texi: Likewise.
30779 * doc/trouble.texi: Likewise.
30780 * doc/cppopts.texi: Likewise.
30781 * doc/install.texi: Likewise.
30782 * c.opt (std=c90,std=gnu90): New options.
30783 * c-opts.c (c_common_handle_option): Handle them.
30784
30785 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30786
30787 PR c/24577
30788 * c-decl.c (undeclared_variable): Use an informative note.
30789
30790 2010-02-26 Richard Guenther <rguenther@suse.de>
30791
30792 PR tree-optimization/43186
30793 * gimple.h (gimple_fold): Remove.
30794 * gimple.c (gimple_fold): Remove. Inline into single user ...
30795 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
30796 Try harder for conditions.
30797
30798 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30799
30800 PR debug/43190
30801 * function.c (used_types_insert): Don't skip through named pointer
30802 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
30803 and it is different from the main variant's type.
30804
30805 2010-02-26 Nick Clifton <nickc@redhat.com>
30806
30807 * config/rx/rx.md (sminsi3): Remove bogus alternative.
30808
30809 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30810
30811 * config.gcc: Support --with-fpmath=sse for x86.
30812
30813 * config/i386/ssemath.h: New.
30814
30815 * doc/install.texi (--with-fpmath=sse): Documented.
30816
30817 2010-02-26 Richard Guenther <rguenther@suse.de>
30818
30819 PR tree-optimization/43188
30820 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
30821 vector types of over-aligned element type.
30822
30823 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
30824
30825 PR target/43175
30826 * config/i386/i386.c (expand_vec_perm_blend): Use correct
30827 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
30828
30829 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
30830
30831 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
30832
30833 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30834
30835 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
30836 * var-tracking.c: Include diagnostic.h.
30837 (debug_dv): New function.
30838 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
30839
30840 PR debug/43160
30841 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
30842 (add_value_chain, add_value_chains, remove_value_chain,
30843 remove_value_chains): Handle DEBUG_EXPRs.
30844 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
30845
30846 PR debug/43161
30847 * regcprop.c (struct queued_debug_insn_change): New type.
30848 (struct value_data_entry): Add debug_insn_changes field.
30849 (struct value_data): Add n_debug_insn_changes field.
30850 (debug_insn_changes_pool): New variable.
30851 (free_debug_insn_changes, apply_debug_insn_changes,
30852 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
30853 (kill_value_one_regno): Call free_debug_insn_changes if needed.
30854 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
30855 fields.
30856 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
30857 changes for them.
30858 (copyprop_hardreg_forward_1): Don't call apply_change_group for
30859 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
30860 changes, call cprop_find_used_regs via note_stores.
30861 (copyprop_hardreg_forward): When copying vd from predecessor
30862 which has any queued DEBUG_INSN changes, make sure the pointers are
30863 cleared. At the end call df_analyze and then if there are any
30864 DEBUG_INSN changes queued at the end of some basic block for still
30865 live registers, apply them.
30866 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
30867
30868 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
30869
30870 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
30871 (arm*-*-*): Ditto.
30872
30873 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
30874
30875 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
30876 targets. Set the default with_cpu/with_arch from arch/cpu.
30877 Allow x86-64 and native for with_cpu/with_arch.
30878
30879 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
30880
30881 * ebitmap.c: Change calls to verify_popcount with calls to
30882 sbitmap_verify_popcount.
30883 (ebitmap_clear_bit): Fixed map->cacheindex test and
30884 map>cache update when bit clearing results in an empty
30885 element.
30886
30887 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30888
30889 PR target/43154
30890 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
30891 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
30892 and support both V2DF and V2DI modes.
30893 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
30894 support both V2DF and V2DI modes.
30895 (general): Delete trailing whitespace from a few patterns.
30896
30897 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30898 V2DF/V2DI interleave high/low builtins.
30899
30900 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
30901 new VSX builtins.
30902
30903 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
30904 interleave high/low functions.
30905
30906 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
30907
30908 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
30909 #pragma extern_prefix.
30910
30911 2010-02-25 Jakub Jelinek <jakub@redhat.com>
30912
30913 PR debug/43166
30914 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
30915 BLKmode, assert op0 is a MEM and just adjust its mode.
30916
30917 PR debug/43165
30918 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
30919 if bitpos isn't multiple of mode's bitsize.
30920
30921 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30922
30923 * c.opt (-ftemplate-depth=): New.
30924 (-ftemplate-depth-): Deprecate.
30925 * optc-gen.awk: Handle -ftemplate-depth=.
30926 * opth-gen.awk: Likewise.
30927 * c-opts.c (c_common_handle_option): Likewise.
30928 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
30929
30930 2010-02-24 Jason Merrill <jason@redhat.com>
30931
30932 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
30933
30934 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30935
30936 * cfg.c (alloc_aux_for_block): Remove inline.
30937 (alloc_aux_for_edge): Likewise.
30938
30939 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30940
30941 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
30942
30943 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30944
30945 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
30946 * config/i386/sol2-gas.h: New file.
30947 * config.gcc (i[34567]86-*-solaris2*): Use it.
30948
30949 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30950
30951 PR c/43128
30952 * c-typeck.c (ep_convert_and_check): New.
30953 (build_conditional_expr): Use it.
30954 (build_binary_op): Likewise.
30955
30956 2010-02-24 Jakub Jelinek <jakub@redhat.com>
30957
30958 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
30959
30960 PR debug/43150
30961 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
30962 bounds even for -O+.
30963 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
30964 expr needs to have DECL_NAME set.
30965
30966 2010-02-24 Nick Clifton <nickc@redhat.com>
30967
30968 * config/mep/mep.c: Include gimple.h.
30969 (mep_function_uses_sp): Delete unused function.
30970 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
30971 parameters. Use unsigned integers to count args. Return a
30972 NULL_RTX instead of an error_mark_node. Toidy up formatting.
30973
30974 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30975
30976 PR target/43107
30977 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
30978 greater or equal to nelt instead of 2 * nelt.
30979 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
30980 with nelt - 1.
30981
30982 2010-02-23 Jason Merrill <jason@redhat.com>
30983
30984 PR debug/42800
30985 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
30986 in cfun->local_decls even if they have register types.
30987
30988 PR c++/42837
30989 * stor-layout.c (place_field): Don't warn about unnecessary
30990 DECL_PACKED if the type is packed.
30991
30992 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30993
30994 PR target/43139
30995 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
30996 GOTOFF relocs, even when the base reg isn't pic pointer.
30997
30998 2010-02-23 Michael Matz <matz@suse.de>
30999
31000 PR debug/43077
31001 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
31002 (expand_gimple_basic_block): Generate and use debug temps if there
31003 are debug uses left after the last real use of TERed ssa names.
31004 Unlink debug immediate uses when they are expanded.
31005
31006 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
31007
31008 PR 43123
31009 * config/i386/i386.c (override_options): Reorganise to provide
31010 better error messages.
31011
31012 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31013
31014 PR middle-end/43083
31015 * graphite-scop-detection.c (create_single_exit_edge): Move
31016 the call to find_single_exit_edge to....
31017 (create_sese_edges): ...here. Don't handle multiple edges
31018 exiting the function.
31019 (build_graphite_scops): Don't handle multiple edges
31020 exiting the function.
31021
31022 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31023
31024 PR middle-end/43097
31025 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
31026 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
31027
31028 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31029
31030 PR middle-end/43026
31031 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
31032
31033 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
31034
31035 PR c++/43126
31036 * c-typeck.c (convert_arguments): Print declaration location.
31037 * c-common.c (validate_nargs): Rename as
31038 builtin_function_validate_nargs.
31039 (check_builtin_function_arguments): Update.
31040
31041 2010-02-22 Richard Guenther <rguenther@suse.de>
31042
31043 PR lto/43045
31044 * tree-inline.c (declare_return_variable): Use the type of
31045 the call stmt lhs if available.
31046
31047 2010-02-22 Duncan Sands <baldrick@free.fr>
31048
31049 * passes.c (register_pass): Always consider all pass lists when
31050 ref_pass_instance_number is zero.
31051
31052 2010-02-22 Richard Guenther <rguenther@suse.de>
31053
31054 PR tree-optimization/42749
31055 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
31056 parameter. Do arithmetic in the original type.
31057 (update_accumulator_with_ops): Likewise.
31058 (adjust_accumulator_values): Adjust.
31059
31060 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31061
31062 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31063 (QI to BLKmode splitter): New splitter.
31064
31065 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
31066
31067 * config/i386/i386.c (initial_ix86_tune_features): Turn on
31068 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31069
31070 2010-02-22 Richard Guenther <rguenther@suse.de>
31071
31072 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31073
31074 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
31075
31076 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31077 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31078 ($(T)crti.o, $(T)crtn.o): Remove rules.
31079
31080 2010-02-21 Tobias Burnus <burnus@net-b.de>
31081
31082 PR fortran/35259
31083 * doc/invoke.texi (-fassociative-math): Document that this
31084 option is automatically enabled for Fortran.
31085
31086 2010-02-20 David S. Miller <davem@davemloft.net>
31087
31088 * configure.ac: Test if linker and assembler properly support
31089 GOTDATA_OP relocations.
31090 * configure: Rebuild.
31091 * config.in: Likewise.
31092 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31093 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31094 (movsi_high_pic): Likewise.
31095 (movdi_lo_sum_pic): Likewise.
31096 (movdi_high_pic): Likewise.
31097 (movsi_pic_gotdata_op): New pattern.
31098 (movdi_pic_gotdata_op): Likewise.
31099 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31100 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31101
31102 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
31103
31104 PR target/43067
31105 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31106 attribute to ssemul.
31107 (xop_mulv2div2di3_high): Ditto.
31108
31109 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31110
31111 PR c++/35669
31112 * c.opt (Wconversion-null): New option.
31113 * doc/invoke.texi (Wconversion-null): Document.
31114
31115 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31116
31117 * common.opt (Wlarger-than-): Add Undocumented.
31118
31119 2010-02-19 Mike Stump <mikestump@comcast.net>
31120
31121 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
31122
31123 2010-02-19 Jason Merrill <jason@redhat.com>
31124
31125 PR target/40332
31126 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
31127 * configure: Likewise.
31128
31129 2010-02-20 Alan Modra <amodra@gmail.com>
31130
31131 PR middle-end/42344
31132 * cgraph.h (cgraph_make_decl_local): Declare.
31133 * cgraph.c (cgraph_make_decl_local): New function.
31134 (cgraph_make_node_local): Use it.
31135 * cgraphunit.c (cgraph_function_versioning): Likewise.
31136 * ipa.c (function_and_variable_visibility): Likewise.
31137
31138 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31139
31140 PR bootstrap/43121
31141 * except.c (sjlj_emit_function_enter): Don't call
31142 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
31143 directly.
31144 * rtl.h (add_reg_br_prob_note): Remove prototype.
31145
31146 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
31147
31148 PR 41779
31149 * c-common.c (conversion_warning): Remove widening conversions
31150 before checking the conversion of integers to reals.
31151
31152 2010-02-19 Mike Stump <mikestump@comcast.net>
31153
31154 PR middle-end/43125
31155 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
31156
31157 PR objc/43061
31158 * cgraphunit.c (process_function_and_variable_attributes): Check
31159 DECL_PRESERVE_P instead of looking up attribute "used".
31160 * ipa-pure-const.c (check_decl): Likewise.
31161 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
31162 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
31163 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
31164 instead of attribute "used".
31165 * config/sol2-c.c (solaris_pragma_init): Likewise.
31166 (solaris_pragma_fini): Likewise.
31167
31168 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31169
31170 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
31171 Use XCNEW instead of xcalloc.
31172 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
31173 XNEW instead of xmalloc.
31174 (get_fields): Use XNEWVEC instead of xmalloc.
31175
31176 PR debug/43084
31177 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
31178 populate vars array.
31179 (create_new_general_access): For debug stmts just reset value.
31180 (get_stmt_accesses): For accesses within debug stmts just record them
31181 using add_access_to_acc_sites instead of preventing the peeling or
31182 counting them as accesses.
31183
31184 PR middle-end/42233
31185 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
31186
31187 2010-02-19 Richard Guenther <rguenther@suse.de>
31188
31189 PR tree-optimization/42916
31190 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
31191 instructions.
31192
31193 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
31194
31195 * configure.ac: Replace all uses of changequote in macro arguments
31196 with proper quoting.
31197
31198 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31199
31200 PR middle-end/42233
31201 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
31202
31203 2010-02-19 Richard Guenther <rguenther@suse.de>
31204
31205 PR tree-optimization/42944
31206 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
31207 test for aliasing with errno.
31208
31209 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31210
31211 PR middle-end/42233
31212 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
31213 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
31214 * dojump.c: Include output.h.
31215 (inv): New inline function.
31216 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
31217 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
31218 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
31219 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
31220 argument, pass it down to other calls.
31221 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
31222 add REG_BR_PROB note to the conditional jump.
31223 * cfgexpand.c (add_reg_br_prob_note): Removed.
31224 (expand_gimple_cond): Don't call it, add the probability
31225 as last argument to jumpif_1/jumpifnot_1.
31226 * Makefile.in (dojump.o): Depend on output.h.
31227 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
31228 callers.
31229 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
31230 * stmt.c (do_jump_if_equal): Likewise.
31231 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
31232 * loop-unswitch.c (compare_and_jump_seq): Likewise.
31233 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
31234 Likewise.
31235 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
31236 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
31237 jumpifnot_1 callers.
31238 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
31239 callers.
31240 (store_expr): Adjust jumpifnot caller.
31241 (store_constructor): Adjust jumpif caller.
31242
31243 PR middle-end/42233
31244 * gimplify.c (gimple_boolify): For __builtin_expect call
31245 gimple_boolify also on its first argument.
31246
31247 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
31248
31249 * configure.ac (gnu-unique-object): Wrap regexps using [] in
31250 changequote block.
31251 (__stack_chk_fail): Ditto. Remove quadrigraphs.
31252 * configure: Regenerated.
31253
31254 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31255
31256 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
31257 lang_hooks.types_compatible_p instead of comptypes.
31258
31259 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31260
31261 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
31262 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
31263 if __prefer_thumb__ is defined.
31264
31265 2010-02-18 Martin Jambor <mjambor@suse.cz>
31266
31267 PR tree-optimization/43066
31268 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
31269 array with zero-sized element type.
31270
31271 2010-02-18 Jakub Jelinek <jakub@redhat.com>
31272
31273 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
31274 rtx, allocate struct var_loc_node here and return it to the
31275 caller, and only if it is actually needed.
31276 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
31277 move it earlier and return immediately if it returns NULL.
31278
31279 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
31280
31281 * config/sparc/gas.h: New file. Restore
31282 TARGET_ASM_NAMED_SECTION to its ELF default.
31283 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
31284 check !HAVE_GNU_AS.
31285 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31286 Likewise. Add ATTRIBUTE_UNUSED to prototype.
31287 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
31288 after sparc/sysv4.h.
31289
31290 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
31291
31292 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
31293
31294 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
31295
31296 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
31297 patterns from predicated pattern.
31298
31299 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
31300
31301 PR target/43103
31302 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
31303 for insn mnemonic suffix.
31304
31305 2010-02-17 Richard Guenther <rguenther@suse.de>
31306
31307 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
31308 to loop PHI nodes.
31309
31310 2010-02-17 Jakub Jelinek <jakub@redhat.com>
31311
31312 PR debug/42918
31313 * caller-save.c (save_call_clobbered_regs): If BB ends with
31314 a DEBUG_INSN, move any notes in between last real insn and the last
31315 DEBUG_INSN after the last DEBUG_INSN.
31316
31317 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
31318
31319 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
31320 Fix return type. Fix argument type. Explain meaning of return value.
31321
31322 2010-02-16 Richard Guenther <rguenther@suse.de>
31323
31324 PR tree-optimization/41043
31325 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
31326 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
31327 statements ...
31328 (vrp_visit_phi_node): ... but only for loop PHI nodes.
31329
31330 2010-02-16 Ira Rosen <irar@il.ibm.com>
31331
31332 PR tree-optimization/43074
31333 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
31334 * tree-vect-loop.c (vect_analyze_loop_operations): Add
31335 vectorizable cycles in hybrid SLP check.
31336 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
31337
31338 2010-02-16 Richard Guenther <rguenther@suse.de>
31339
31340 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
31341 (true_dependence): If memrefs_conflict_p computes must-alias
31342 trust it. Move TBAA check after offset-based disambiguation.
31343 (canon_true_dependence): Likewise.
31344
31345 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
31346
31347 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
31348 * doc/invoke.texi: Document it.
31349 * var-tracking.c: Include toplev.h and params.h.
31350 (vt_find_locations): Return bool indicating success. Compute
31351 hash sizes unconditionally. Check new parameter, report.
31352 (variable_tracking_main_1): Check vt_find_locations results and
31353 retry. Renamed from...
31354 (variable_tracking_main): ... this. New wrapper to preserve
31355 flag_var_tracking_assignments.
31356 * Makefile.in (var-tracking.o): Adjust dependencies.
31357
31358 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
31359 Jakub Jelinek <jakub@redhat.com>
31360
31361 PR target/42854
31362 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
31363 if weak_import attribute is present.
31364 * config/darwin.c (machopic_select_section): Likewise.
31365
31366 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
31367
31368 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
31369 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
31370 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
31371 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
31372
31373 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
31374 types.
31375
31376 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31377 Fix argument types.
31378
31379 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
31380 Rewrite text to refer to the names.
31381
31382 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
31383
31384 * config/i386/i386-builtin-types.def
31385 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
31386 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
31387 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
31388 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
31389 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
31390 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
31391 IX86_BUILTIN_VPERMIL2PS256.
31392 (MULTI_ARG_4_DF2_DI_I): Defined.
31393 (MULTI_ARG_4_DF2_DI_I1): Defined.
31394 (MULTI_ARG_4_SF2_SI_I): Defined.
31395 (MULTI_ARG_4_SF2_SI_I1): Defined.
31396 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
31397 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
31398 __builtin_ia32_vpermil2ps256.
31399 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31400 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31401 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
31402 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31403 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31404 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
31405 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
31406 CODE_FOR_xop_vpermil2v8sf3.
31407 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
31408 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
31409 * config/i386/xopintrin.h (_mm_permute2_pd): New.
31410 (_mm256_permute2_pd): New.
31411 (_mm_permute2_ps): New.
31412 (_mm256_permute2_ps): New.
31413
31414 2010-02-15 Nick Clifton <nickc@redhat.com>
31415
31416 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
31417 boolean parameters. Use emit_jump_insn when emitting a pop
31418 instruction containing a return insn.
31419 (push): Use 'true' rather than '1' as second parameter to F.
31420 (h8300_expand_prologue): Likewise.
31421 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
31422 (h8300_expand_epilogue): Likewise.
31423
31424 2010-02-15 Richard Guenther <rguenther@suse.de>
31425
31426 PR middle-end/43068
31427 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
31428 if that is zero.
31429
31430 2010-02-15 Nick Clifton <nickc@redhat.com>
31431
31432 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
31433 delta.
31434
31435 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
31436
31437 * intl.c (fake_ngettext): New function.
31438 * intl.h (fake_ngettext): Declare.
31439 (ngettext): Define macro.
31440 * collect2.c (notice_translated): New function.
31441 (main): Use notice_translated and ngettext.
31442 * collect2.h (notice_translated): Declare.
31443
31444 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
31445
31446 * reorg.c (delete_computation): Comment fixes.
31447 * caller-save.c (setup_save_areas): Idem.
31448 * sel-sched-dump.c (dump_lv_set): Idem.
31449 * rtl.def: Idem.
31450
31451 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31452
31453 * config/s390/s390.c (s390_sched_init): New function.
31454 (TARGET_SCHED_INIT): Target hook defined.
31455
31456 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
31457 Jack Howarth <howarth@bromo.med.uc.edu>
31458 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31459
31460 PR target/42982
31461 Partial revert of unintended change in fix for PR41605.
31462 * config/darwin.h: Fix typo.
31463 * config/darwin9.h: Same.
31464
31465 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31466
31467 * c-pch.c (pch_init): Clear v.
31468
31469 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31470
31471 PR middle-end/42930
31472 * graphite-scop-detection.c (graphite_can_represent_scev): Call
31473 graphite_can_represent_init for MULT_EXPR.
31474
31475 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31476
31477 PR middle-end/42914
31478 PR middle-end/42530
31479 * graphite-sese-to-poly.c (remove_phi): New.
31480 (translate_scalar_reduction_to_array): Call remove_phi.
31481
31482 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31483
31484 PR middle-end/42771
31485 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
31486 * graphite-clast-to-gimple.h (gloog): Update declaration.
31487 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
31488 * graphite-poly.h (struct poly_bb): Add missing comments.
31489 (struct scop): Add poly_scop_p field.
31490 (POLY_SCOP_P): New.
31491 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
31492 * graphite.c (graphite_transform_loops): Build the polyhedral
31493 representation for each scop before code generation.
31494 * sese.c (rename_variables_in_operand): Removed.
31495 (rename_variables_in_expr): Return the renamed expression.
31496 (rename_sese_parameters): New.
31497 * sese.h (rename_sese_parameters): Declared.
31498
31499 2010-02-11 Richard Guenther <rguenther@suse.de>
31500
31501 PR tree-optimization/42998
31502 * tree-ssa-pre.c (create_expression_by_pieces): Treat
31503 POINTER_PLUS_EXPR properly.
31504
31505 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31506 Changpeng Fang <changpeng.fang@amd.com>
31507
31508 PR middle-end/40886
31509 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
31510 the cost of an IV candidate when the IV is used in a test against zero.
31511
31512 * gcc.dg/tree-ssa/ivopts-3.c: New.
31513
31514 2010-02-11 Richard Guenther <rguenther@suse.de>
31515
31516 PR lto/41664
31517 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
31518 pointer-vs-decl case by swapping refs. Handle some cases
31519 of pointer-vs-decl disambiguations more conservatively.
31520 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
31521 to false after expanding.
31522
31523 2010-02-11 Richard Guenther <rguenther@suse.de>
31524
31525 PR driver/43021
31526 * gcc.c (process_command): Handle LTO file@offset case more
31527 appropriately.
31528
31529 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31530
31531 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
31532 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
31533 of DEBUG_INSNs.
31534 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
31535
31536 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
31537 if MEM's mode size isn't DWARF2_ADDR_SIZE.
31538 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
31539 Optimize eq/ne comparisons when both arguments are known to be
31540 zero-extended.
31541 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
31542 Don't mask operands unnecessarily if they are known to be already
31543 zero-extended.
31544
31545 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
31546
31547 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
31548 instead of loop.
31549
31550 2010-02-10 Richard Guenther <rguenther@suse.de>
31551
31552 PR tree-optimization/43017
31553 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
31554 for wrapping signed arithmetic.
31555
31556 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31557
31558 PR debug/43010
31559 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
31560 if no debug info should be emitted for it.
31561
31562 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
31563
31564 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
31565 note when flag_exceptions is set.
31566
31567 2010-02-10 Duncan Sands <baldrick@free.fr>
31568
31569 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
31570
31571 2010-02-10 Richard Guenther <rguenther@suse.de>
31572
31573 PR c/43007
31574 * tree.c (get_unwidened): Handle constants.
31575 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
31576
31577 2010-02-10 Martin Jambor <mjambor@suse.cz>
31578
31579 PR lto/42985
31580 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
31581 check for variable argument counts independently.
31582
31583 2010-02-10 Christian Bruel <christian.bruel@st.com>
31584
31585 PR target/42841
31586 * config/sh/sh.c (find_barrier): Increase length for non delayed
31587 conditional branches.
31588
31589 2010-02-10 Christian Bruel <christian.bruel@st.com>
31590
31591 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
31592
31593 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31594
31595 * builtins.c (set_builtin_user_assembler_name): Also handle
31596 ffs if int is smaller than word.
31597
31598 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
31599
31600 PR middle-end/42973
31601 * ira-conflicts.c (get_dup): Remove.
31602 (process_reg_shuffles): Add new parameter. Use it as an
31603 additional guard for copy generation.
31604 (add_insn_allocno_copies): Rewrite.
31605
31606 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
31607
31608 * common.opt (fsched2-use-traces): Preserved for backward
31609 compatibility.
31610 * doc/invoke.texi: Remove the documentation about option
31611 -fsched2-use-traces.
31612 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
31613 flag_sched2_use_traces.
31614 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
31615 the backward compatibility flag section.
31616
31617 2010-02-09 Richard Guenther <rguenther@suse.de>
31618
31619 PR tree-optimization/43008
31620 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
31621 make HEAP variables initialized from global memory if they
31622 are not known builtin functions.
31623 (find_func_aliases): Adjust.
31624
31625 2010-02-09 Richard Guenther <rguenther@suse.de>
31626
31627 PR tree-optimization/43000
31628 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
31629 arithmetic manually.
31630
31631 2010-02-08 Jakub Jelinek <jakub@redhat.com>
31632
31633 PR tree-optimization/42931
31634 * tree-loop-linear.c (try_interchange_loops): Don't call
31635 double_int_mul if estimated_loop_iterations failed.
31636
31637 2010-02-08 Martin Jambor <mjambor@suse.cz>
31638
31639 PR middle-end/42898
31640 * tree-sra.c (build_accesses_from_assign): Do not mark in
31641 should_scalarize_away_bitmap if stmt has volatile ops.
31642 (sra_modify_assign): Do not process assigns piecemeal if if stmt
31643 has volatile ops.
31644
31645 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
31646
31647 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
31648
31649 2010-02-07 Adam Nemet <adambnmet@gmail.com>
31650
31651 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
31652 before the pattern.
31653
31654 2010-02-07 Andrew Pinski <pinskia@gmail.com>
31655
31656 PR middle-end/42946
31657 * df-core.c (df_finish_pass): Change type of saved_flags to int.
31658
31659 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31660
31661 PR middle-end/42988
31662 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
31663 to unknown_dependence.
31664 (graphite_legal_transform_dr): Handle the unknown_dependence.
31665 (graphite_carried_dependence_level_k): Same.
31666
31667 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31668
31669 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
31670
31671 2010-02-07 Richard Guenther <rguenther@suse.de>
31672
31673 PR middle-end/42991
31674 * expr.c (get_inner_reference): Always initialize *pbitsize.
31675
31676 2010-02-07 Richard Guenther <rguenther@suse.de>
31677
31678 PR middle-end/42956
31679 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
31680 new ARRAY_REFs on variable size element or minimal index arrays.
31681 Complete.
31682 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
31683 gimple_fold_indirect_ref.
31684
31685 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
31686
31687 PR target/42957
31688 * arm.c (arm_override_options): Just return if the user has specified
31689 an invalid fpu name.
31690
31691 2010-02-03 Jason Merrill <jason@redhat.com>
31692
31693 PR c++/42870
31694 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
31695 i386_pe_maybe_record_exported_symbol.
31696
31697 2010-02-05 Steve Ellcey <sje@cup.hp.com>
31698
31699 PR target/42924
31700 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31701 (pa_delegitimize_address): New function.
31702
31703 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
31704
31705 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
31706 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
31707
31708 2010-02-05 Richard Guenther <rguenther@suse.de>
31709
31710 PR lto/42762
31711 * lto-streamer-in.c (get_resolution): Deal with references
31712 to undefined functions.
31713
31714 2010-02-05 Richard Guenther <rguenther@suse.de>
31715
31716 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
31717 (fold_const_aggregate_ref): Likewise.
31718 (ccp_fold_stmt): Substitute loads.
31719 (maybe_fold_reference): Verify types before substituting.
31720 Unshare properly.
31721 (fold_gimple_assign): Unshare properly.
31722 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
31723
31724 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
31725
31726 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
31727 for rs6000_gen_cell_microcode.
31728
31729 2010-02-04 Richard Guenther <rguenther@suse.de>
31730
31731 PR rtl-optimization/42952
31732 * dse.c (const_or_frame_p): Remove MEM handling.
31733
31734 2010-02-04 Nick Clifton <nickc@redhat.com>
31735
31736 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
31737 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31738 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
31739 (mn10300_asm_output_mi_thunk): New function.
31740 (mn10300_can_output_mu_thunk): New function.
31741 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
31742 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
31743 (FUNCTION_ARG): Delete incorrect comment.
31744
31745 2010-02-03 Jason Merrill <jason@redhat.com>
31746
31747 PR c++/40138
31748 * fold-const.c (operand_equal_p): Handle erroneous types.
31749
31750 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31751
31752 * config/h8300/h8300.md (can_delay): Fix attibute condition.
31753
31754 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
31755
31756 PR rtl-optimization/42941
31757 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
31758 of xmalloc.
31759
31760 2010-02-03 Jason Merrill <jason@redhat.com>
31761
31762 PR c++/35652
31763 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
31764
31765 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
31766
31767 PR debug/42896
31768 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
31769 (cselib_reset_table): Renamed from...
31770 (cselib_reset_table_with_next_value): ... this.
31771 (cselib_get_next_uid): Renamed from...
31772 (cselib_get_next_unknown_value): ... this.
31773 * cselib.c (next_uid): Renamed from...
31774 (next_unknown_value): ... this.
31775 (cselib_clear_table): Adjust.
31776 (cselib_reset_table): Adjust. Renamed from...
31777 (cselib_reset_table_with_next_value): ... this.
31778 (cselib_get_next_uid): Adjust. Renamed from...
31779 (cselib_get_next_unknown_value): ... this.
31780 (get_value_hash): Use hash.
31781 (cselib_hash_rtx): Likewise.
31782 (new_cselib_val): Adjust. Set and dump uid.
31783 (cselib_lookup_mem): Pass next_uid as hash.
31784 (cselib_subst_to_values): Likewise.
31785 (cselib_log_lookup): Dump uid.
31786 (cselib_lookup): Pass next_uid as hash. Adjust.
31787 (cselib_process_insn): Adjust.
31788 (cselib_init): Initialize next_uid.
31789 (cselib_finish): Adjust.
31790 (dump_cselib_table): Likewise.
31791 * dse.c (canon_address): Dump value uid.
31792 * print-rtl.c (print_rtx): Print value uid.
31793 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
31794 (dvuid): New type.
31795 (dv_uid): New function, sort of renamed from...
31796 (dv_htab_hash): ... this, reimplemented in terms of it and...
31797 (dv_uid2hash): ... this. New.
31798 (variable_htab_eq): Drop excess assertions.
31799 (tie_break_pointers): Removed.
31800 (canon_value_cmp): Compare uids.
31801 (variable_post_merge_New_vals): Print uids.
31802 (vt_add_function_parameters): Adjust.
31803 (vt_initialize): Reset table. Adjust.
31804
31805 2010-02-03 Richard Guenther <rguenther@suse.de>
31806
31807 PR tree-optimization/42944
31808 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
31809 (call_may_clobber_ref_p_1): Likewise. Properly handle
31810 malloc and calloc clobbering errno.
31811
31812 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
31813
31814 * doc/invoke.texi: Fix name of sched1 dump.
31815
31816 * opts.c (decode_options): Set flag_tree_switch_conversion
31817 only conditionally on optimize >= 2.
31818
31819 * gcse.c: Assorted comment fixes in pass description.
31820
31821 2010-02-03 Anthony Green <green@moxielogic.com>
31822
31823 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
31824 nop padding in order to maintain alignment of storage location of
31825 target function address.
31826 (moxie_trampoline_init): Store target function address at newly
31827 aligned location.
31828 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
31829 to 32.
31830 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
31831
31832 2010-02-03 Richard Guenther <rguenther@suse.de>
31833
31834 PR middle-end/42927
31835 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
31836
31837 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31838
31839 * config.gcc: Reenable check for obsolete targets.
31840 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
31841 mips-sgi-irix6.[0-4]*.
31842
31843 2010-02-02 Nick Clifton <nickc@redhat.com>
31844
31845 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
31846 constant size of 4 as being the same as 0.
31847 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
31848 can take values in the range 0..4.
31849
31850 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
31851
31852 PR java/41991
31853 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
31854 as _darwin10_Unwind_FindEnclosingFunction().
31855 * libgcc-libsystem.ver: New.
31856
31857 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
31858
31859 PR target/41399
31860 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
31861 implicitly set registers.
31862
31863 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
31864
31865 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
31866 (arm_override_options): Allow automatic selection of the thread
31867 pointer register if thumb2.
31868 (legitimize_pic_address): Improve code sequences for Thumb2.
31869 (arm_call_tls_get_addr): Likewise.
31870 (legitimize_tls_address): Likewise.
31871 * arm.md (pic_load_addr_arm): Delete. Replace with ...
31872 (pic_load_addr_32bit): ... this. New named pattern.
31873 * thumb2.md (pic_load_addr_thumb2): Delete.
31874 (pic_load_dot_plus_four): Delete.
31875 (tls_load_dot_plus_four): New named pattern.
31876
31877 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31878
31879 PR libgomp/29986
31880 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
31881 Document fix for TLS bug.
31882
31883 2010-01-31 Richard Guenther <rguenther@suse.de>
31884
31885 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
31886 conservatively correct.
31887
31888 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31889
31890 PR target/42850
31891 Revert:
31892 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31893
31894 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31895
31896 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31897
31898 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
31899
31900 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
31901
31902 * config.gcc: Adjust order of makefile fragments for mingw targets.
31903
31904 2010-01-31 Richard Guenther <rguenther@suse.de>
31905
31906 PR middle-end/42898
31907 * gimplify.c (gimplify_init_constructor): For volatile LHS
31908 initialize a temporary.
31909
31910 2010-01-31 Matthias Klose <doko@ubuntu.com>
31911
31912 * configure.ac: Fix __stack_chk_fail check for cross builds configured
31913 --with-headers
31914 * configure: Regenerate.
31915
31916 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
31917
31918 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31919 the same alias set and their sizes different constantness.
31920 (aliasing_component_refs_p): Revert 2009-10-24 change.
31921
31922 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31923
31924 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
31925 unused.
31926
31927 2010-01-29 Richard Guenther <rguenther@suse.de>
31928
31929 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
31930 Assert we successfully updated the call.
31931
31932 2010-01-29 Jakub Jelinek <jakub@redhat.com>
31933
31934 PR rtl-optimization/42889
31935 * df.h (df_set_bb_dirty_nonlr): New prototype.
31936 * df-core.c (df_set_bb_dirty_nonlr): New function.
31937 * df-scan.c (df_insn_rescan): Call it instead of
31938 df_set_bb_dirty for DEBUG_INSNs.
31939
31940 2010-01-29 Richard Guenther <rguenther@suse.de>
31941
31942 PR middle-end/37448
31943 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
31944 quadratic behavior in most cases.
31945
31946 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
31947
31948 PR target/42891
31949 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
31950 in the call to gen_x86_movsicc_0_m1.
31951
31952 2010-01-28 Richard Guenther <rguenther@suse.de>
31953
31954 PR tree-optimization/42871
31955 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
31956
31957 2010-01-28 Richard Guenther <rguenther@suse.de>
31958
31959 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
31960 into call arguments.
31961
31962 2010-01-28 Richard Guenther <rguenther@suse.de>
31963
31964 PR middle-end/42883
31965 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
31966 the forwarder if the destination is an EH landing pad.
31967
31968 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
31969
31970 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
31971 block list passed to gimple_duplicate_sese_tail.
31972 (parallelize_loops): Avoid parallelization when the function
31973 has_nonlocal_label.
31974 Avoid parallelization when the preheader is IRREDUCIBLE.
31975 Try to optimize when estimated_loop_iterations_int is unresolved.
31976 Add the loop's location to the dump file.
31977 * tree-cfg.c (add_phi_args_after_redirect): Remove.
31978 (gimple_duplicate_sese_tail): Remove the check for the latch.
31979 Redirect nexits to the exit block.
31980 Remove handling of the incoming edges to the latch.
31981 Redirect the backedge from the copied latch to the exit bb.
31982
31983 2010-01-28 Michael Matz <matz@suse.de>
31984
31985 PR target/42881
31986 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
31987 Wrap force_reg into a sequence, emit it before user.
31988
31989 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
31990
31991 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
31992 (arm_rev): New.
31993 (arm_legacy_rev): Likewise.
31994 (thumb_legacy_rev): Likewise.
31995
31996 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31997
31998 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
31999 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
32000 on MEM's address failed, try avoid_constant_pool_reference and
32001 recurse if it returned something different.
32002 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
32003 address, try avoid_constant_pool_reference and recurse if it
32004 returned something different.
32005 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
32006 address and avoid_constant_pool_reference returned something
32007 different, don't set have_address.
32008
32009 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
32010
32011 PR debug/42861
32012 * var-tracking.c (val_store): Add modified argument, obey it.
32013 Adjust callers.
32014 (count_uses): Move down logging of main.
32015 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
32016 don't need resolution.
32017 (emit_notes_in_bb): Likewise.
32018
32019 2010-01-27 Richard Guenther <rguenther@suse.de>
32020
32021 PR middle-end/42878
32022 * tree-inline.c (remap_decl): Delay remapping of SSA name
32023 default definitions until we need them.
32024
32025 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32026
32027 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32028 (rs6000_delegitimize_address): New function.
32029
32030 * config/s390/s390.c (s390_delegitimize_address): Call
32031 delegitimize_mem_from_attrs.
32032
32033 PR middle-end/42874
32034 * tree-inline.c (cannot_copy_type_1): Removed.
32035 (copy_forbidden): Don't forbid copying of functions containing
32036 records/unions with variable length fields.
32037
32038 2010-01-27 Christian Bruel <christian.bruel@st.com>
32039
32040 Revert:
32041 PR target/42841
32042 * config/sh/sh.c (find_barrier): Increase length for non delayed
32043 conditional branches.
32044
32045 2010-01-27 Matthias Klose <doko@ubuntu.com>
32046
32047 * configure.ac (gnu-unique-object): Fix ldd version check.
32048 * configure: Regenerate.
32049
32050 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32051
32052 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
32053 HAVE_GNU_AS value.
32054 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
32055 Test for HAVE_GNU_AS value.
32056
32057 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32058
32059 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32060 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32061 INT64_TYPE): Define.
32062 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32063 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32064 INT_LEAST64_TYPE): Define.
32065 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32066 UINT_LEAST64_TYPE): Define.
32067 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32068 INT_FAST64_TYPE): Define.
32069 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32070 UINT_FAST64_TYPE): Define.
32071 (INTMAX_TYPE, UINTMAX_TYPE): Define.
32072 (INTPTR_TYPE, UINTPTR_TYPE): Define.
32073 (SIG_ATOMIC_TYPE): Define.
32074
32075 2010-01-26 Richard Guenther <rguenther@suse.de>
32076
32077 * df-scan.c (df_scan_set_bb_info): Remove assert.
32078 (df_insn_rescan_debug_internal): Merge asserts.
32079 (df_install_ref): Likewise.
32080 (df_mark_reg): Use bitmap_set_range.
32081 (df_hard_reg_used_p): Remove assert.
32082 (df_hard_reg_used_count): Likewise.
32083
32084 2010-01-26 Richard Guenther <rguenther@suse.de>
32085
32086 PR rtl-optimization/42685
32087 * web.c (web_main): Ignore DEBUG_INSNs.
32088
32089 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
32090
32091 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32092
32093 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32094 Fix types of fndecl and arglist parameters.
32095
32096 2010-01-26 Richard Guenther <rguenther@suse.de>
32097
32098 PR middle-end/42806
32099 * tree-eh.c (unsplit_eh): Skip debug insns.
32100
32101 2010-01-26 Richard Guenther <rguenther@suse.de>
32102
32103 PR tree-optimization/42250
32104 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32105
32106 2010-01-26 Jakub Jelinek <jakub@redhat.com>
32107
32108 PR fortran/42866
32109 * omp-low.c (expand_omp_sections): Only use single_pred if
32110 l2_bb is single_pred_p.
32111
32112 2010-01-25 Christian Bruel <christian.bruel@st.com>
32113
32114 PR target/42841
32115 * config/sh/sh.c (find_barrier): Increase length for non delayed
32116 conditional branches.
32117 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
32118
32119 2010-01-24 David S. Miller <davem@davemloft.net>
32120
32121 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
32122 define if not using GAS.
32123 * config/sparc/sparc.c (sparc_elf_asm_named_section):
32124 Likewise. Delete SECTION_MERGE code, which is only applicable
32125 when using GAS.
32126
32127 2010-01-24 Mark Mitchell <mark@codesourcery.com>
32128
32129 PR c++/42748
32130 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
32131 mangling of va_list in system headers.
32132
32133 2010-01-23 Toon Moene <toon@moene.org>
32134
32135 * tree-predcom.c (combine_chains): Return NULL, not false.
32136
32137 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
32138
32139 * tree-loop-distribution.c (distribute_loop): Fix declaration and
32140 initialization of variable res to agree with return type.
32141
32142 2010-01-22 Steve Ellcey <sje@cup.hp.com>
32143
32144 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
32145 * tree-sra.c: Add include of expr.h.
32146
32147 2010-01-22 Jakub Jelinek <jakub@redhat.com>
32148
32149 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
32150 insert the debug stmt on the single non-EH edge from the stmt.
32151
32152 2010-01-22 Richard Henderson <rth@redhat.com>
32153
32154 PR tree-opt/42833
32155 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
32156 the RHS until after generate_subtree_copies has insertted its
32157 code before the current statement.
32158
32159 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
32160
32161 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
32162
32163 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
32164
32165 2010-01-21 Martin Jambor <mjambor@suse.cz>
32166
32167 PR tree-optimization/42585
32168 * tree-sra.c (struct access): New field grp_total_scalarization.
32169 (dump_access): Dump the new field.
32170 (should_scalarize_away_bitmap): New variable.
32171 (cannot_scalarize_away_bitmap): Likewise.
32172 (sra_initialize): Allocate new bitmaps.
32173 (sra_deinitialize): Free new bitmaps.
32174 (create_access_1): New function.
32175 (create_access): Parts moved to create_access_1.
32176 (type_consists_of_records_p): New function.
32177 (completely_scalarize_record): Likewise.
32178 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
32179 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
32180 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
32181 access.
32182 (analyze_all_variable_accesses): Completely scalarize small eligible
32183 records.
32184
32185 2010-01-21 Martin Jambor <mjambor@suse.cz>
32186
32187 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
32188
32189 2010-01-21 Andrew Haley <aph@redhat.com>
32190
32191 * gcc.c (process_command): Move lang_specific_driver before
32192 setting cc_libexec_prefix.
32193
32194 2010-01-21 Richard Guenther <rguenther@suse.de>
32195
32196 PR middle-end/19988
32197 * fold-const.c (negate_expr_p): Pretend only negative
32198 real constants are easily negatable.
32199
32200 2010-01-20 Janis Johnson <janis187@us.ibm.com>
32201 Jason Merrill <jason@redhat.com>
32202
32203 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
32204 (TYPE_TRANSPARENT_AGGR): this, for union and record.
32205 * calls.c (initialize argument_information): Handle it.
32206 * c-common.c (handle_transparent_union_attribute): Use new name.
32207 * c-decl.c (finish_struct): Ditto.
32208 * c-typeck.c (type_lists_compatible_p): Ditto.
32209 (convert_for_assignment): Use new name and also handle record.
32210 * function.c (aggregate_value_p): Handle it.
32211 (pass_by_reference): Ditto.
32212 (assign_parm_data_types): Ditto.
32213 * print-tree.c (print_node): Ditto.
32214 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
32215 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
32216 * tree.c (first_field): New fn.
32217
32218 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
32219
32220 PR target/42818
32221 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
32222 even when linking statically, for now.
32223
32224 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32225
32226 PR debug/42715
32227 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
32228 without a cselib val.
32229 (count_uses): Accept MO_VAL_SET with no val on stores.
32230 (add_stores): Likewise.
32231
32232 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32233
32234 * var-tracking.c (check_value_val): Add a compile time assertion.
32235 (dv_is_decl_p): Simplify.
32236 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
32237 gcc_assert if ENABLE_CHECKING.
32238
32239 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32240
32241 PR debug/42782
32242 * var-tracking.c: Include tree-flow.h.
32243 (mem_dies_at_call): New.
32244 (dataflow_set_preserve_mem_locs): Use it.
32245 (dataflow_set_remove_mem_locs): Likewise.
32246 (dump_var): Renamed from dump_variable. Adjust all callers.
32247 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
32248 * Makefile.in (var-tracking.o): Adjust deps.
32249
32250 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
32251
32252 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
32253
32254 2010-01-20 Richard Guenther <rguenther@suse.de>
32255
32256 PR tree-optimization/42717
32257 * tree-ssa-dce.c (get_live_post_dom): Remove.
32258 (forward_edge_to_pdom): Take an arbitrary edge to copy
32259 degenerate PHI args from.
32260 (remove_dead_stmt): Use the first post-dominator even if it
32261 does not contain live statements as redirection destination.
32262
32263 2010-01-20 Richard Guenther <rguenther@suse.de>
32264
32265 * tree-inline.c (estimate_num_insns): Handle EH builtins.
32266
32267 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32268
32269 * sel-sched.c (create_speculation_check): Remove set but not used
32270 variable twin.
32271 (try_transformation_cache): Remove set but not used variable ds.
32272 (calculate_privileged_insns): Remove set but not used variables
32273 cur_insn and min_spec_insn.
32274 (find_best_expr): Remove set but not used variable avail_n.
32275 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
32276 variable e.
32277 * cgraphunit.c (assemble_thunk): Remove set but not used variable
32278 false_label.
32279 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
32280 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
32281 new_scop_exit_edge.
32282
32283 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
32284
32285 PR bootstrap/42786
32286 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
32287 cpu types. Add support for *-sse3 cpu types.
32288 (x86_64-*-*): Ditto.
32289
32290 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32291
32292 PR middle-end/42803
32293 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
32294 argument, call initializer_constant_valid_p_1 instead of
32295 initializer_constant_valid_p, pass CACHE to it, return NULL
32296 immediately if first call returns NULL.
32297 (initializer_constant_valid_p_1): New function.
32298 (initializer_constant_valid_p): Use it.
32299
32300 2010-01-20 Thomas Quinot <quinot@adacore.com>
32301
32302 * tree.def (PLACEHOLDER_EXPR): Fix comment.
32303
32304 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32305
32306 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
32307 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
32308 (loc_list_from_tree): Don't handle unsigned division. Handle
32309 signed modulo using DW_OP_{over,over,div,mul,minus}.
32310 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
32311 modulo instead of signed.
32312
32313 2010-01-20 DJ Delorie <dj@redhat.com>
32314
32315 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
32316 (Fpa): Pass it
32317 (h8300_emit_stack_adjustment): Propogate it.
32318 (push): Pass it.
32319 (h8300_expand_prologue): Likewise.
32320 (h8300_expand_epilogue): Likewise.
32321
32322 2010-01-19 Michael Matz <matz@suse.de>
32323
32324 PR tree-optimization/41783
32325 * tree-data-ref.c (toplevel): Include flags.h.
32326 (dump_data_dependence_relation): Also dump the inputs if the
32327 result will be unknown.
32328 (split_constant_offset_1): Look through some conversions.
32329 * tree-predcom.c (determine_roots_comp): Restart a new chain if
32330 the offset from last element is too large.
32331 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
32332 (reassociate_to_the_same_stmt): Handle vector registers.
32333 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
32334 (e.g. conversions).
32335 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
32336 wide_prolog_niters argument, emit widening instructions.
32337 (vect_do_peeling_for_alignment): Adjust caller, use widened
32338 variant of the iteration cound.
32339 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
32340
32341 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32342
32343 PR target/38697
32344 * config/arm/neon-testgen.m (emit_automatics): New parameter
32345 features. Adjust for Fixed_return_reg feature.
32346 (test_intrinsic): Call emit_automatics with new feature.
32347 * config/arm/neon.ml: Update copyright years.
32348 (features): New Fixed_return_reg feature.
32349 (ops): Update feature for Vget_low.
32350
32351 2010-01-19 Jakub Jelinek <jakub@redhat.com>
32352
32353 PR tree-optimization/42719
32354 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
32355 stmt uses.
32356
32357 PR debug/42728
32358 * fwprop.c (all_uses_available_at): Return false if def_set dest
32359 is a REG that is used in def_insn.
32360
32361 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
32362
32363 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
32364
32365 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
32366 Add argument names.
32367
32368 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
32369
32370 * target.h (struct gcc_target) <secondary_reload>: Change type
32371 of last argument to secondary_reload_info *.
32372
32373 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
32374
32375 PR target/42774
32376 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
32377 memory references with unaligned offsets. Remove CQImode handling.
32378 (unaligned_memory_operand): Return 1 for memory references with
32379 unaligned offsets. Remove CQImode handling.
32380
32381 2010-01-18 Richard Guenther <rguenther@suse.de>
32382
32383 PR middle-end/39954
32384 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
32385 builtin calls.
32386
32387 2010-01-18 Richard Guenther <rguenther@suse.de>
32388
32389 PR tree-optimization/42781
32390 * tree-ssa-structalias.c (find_what_var_points_to): Skip
32391 restrict processing only if the original variable was artificial.
32392
32393 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
32394
32395 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
32396 find number of popped argument bytes.
32397
32398 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
32399 Fix the text that describes the return value for invalid insns.
32400
32401 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
32402
32403 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
32404 Clarify what 'cost of the -dependence' is. Fix quoting.
32405
32406 * toplev.c (default_get_pch_validity): Rename argument to "sz".
32407 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
32408
32409 2010-01-17 Jakub Jelinek <jakub@redhat.com>
32410
32411 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32412 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
32413
32414 2010-01-17 Richard Guenther <rguenther@suse.de>
32415
32416 PR middle-end/42248
32417 * function.c (split_complex_args): Take a VEC to modify.
32418 (assign_parms_augmented_arg_list): Build a VEC instead of
32419 a chain of PARM_DECLs.
32420 (assign_parms_unsplit_complex): Take a VEC of arguments.
32421 Do not fixup unmodified parms.
32422 (assign_parms): Deal with the VEC.
32423 (gimplify_parameters): Likewise.
32424
32425 2010-01-17 Richard Guenther <rguenther@suse.de>
32426
32427 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
32428 node existence check.
32429 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
32430 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
32431 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
32432 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
32433 (gimple_execute_on_growing_pred): Likewise.
32434
32435 2010-01-17 Richard Guenther <rguenther@suse.de>
32436
32437 PR tree-optimization/42773
32438 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
32439 (compute_antic_aux): Likewise.
32440 (compute_partial_antic_aux): Likewise.
32441
32442 2010-01-17 Jie Zhang <jie.zhang@analog.com>
32443
32444 PR debug/42767
32445 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
32446 and US_TRUNCATE.
32447
32448 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
32449
32450 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
32451 appearance.
32452
32453 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
32454 Fix markup for strict argument.
32455
32456 (TARGET_SCHED_REORDER2): Fix argument types.
32457
32458 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
32459 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
32460
32461 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
32462 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
32463
32464 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
32465 Add argument name.
32466
32467 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
32468 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
32469 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
32470 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
32471 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
32472
32473 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
32474
32475 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
32476
32477 (TARGET_ASM_RELOC_RW_MASK): Add return type.
32478 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
32479
32480 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
32481
32482 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
32483 Use prototype.
32484
32485 (TARGET_ASM_NAMED_SECTION): Fix argument list.
32486
32487 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
32488 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
32489
32490 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
32491
32492 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
32493
32494 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
32495 referring to it. Fix language.
32496
32497 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
32498
32499 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
32500
32501 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
32502
32503 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
32504
32505 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
32506 '@var{stream}. Remove stray 'and'.
32507
32508 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
32509
32510 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
32511
32512 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
32513
32514 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
32515 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
32516
32517 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
32518 Fix description of return value.
32519 Rename argument "sz" to "len."
32520
32521 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
32522 Clarify meaning of 'true' return value.
32523
32524 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
32525
32526 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
32527 rep_mode versus mode_rep.
32528
32529 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
32530
32531 (TARGET_BUILTIN_DECL): Fix name.
32532
32533 (TARGET_COMMUTATIVE_P): Fix type of first argument.
32534
32535 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
32536
32537 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
32538
32539 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
32540
32541 (TARGET_RELAXED_ORDERING): Use @deftypevr.
32542
32543 (TARGET_GET_DRAP_RTX): Note that this is a hook.
32544 Clarify language.
32545
32546 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
32547 Rename argument tm_fn to md_fn.
32548
32549 (TARGET_OPTION_PRINT): Fix argument list.
32550
32551 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
32552
32553 PR target/42664
32554 * config/i386/i386.c (ix86_fixup_binary_operands):
32555 Revert FMA4 fixup of operands.
32556
32557 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32558
32559 PR gcc/42525
32560 * Makefile.in (write_entries_to_file, install-plugin):
32561 Use \012 instead of \n with tr.
32562
32563 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
32564
32565 * configure.ac (HAVE_AS_REF): New C macro.
32566 * configure: Regenerate.
32567 * config.in: Likewise.
32568 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
32569 if HAVE_AS_REF.
32570 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
32571 if HAVE_AS_REF.
32572
32573 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
32574
32575 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
32576
32577 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
32578
32579 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
32580
32581 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
32582
32583 (TARGET_IN_SMALL_DATA_P): Fix argument type.
32584
32585 (TARGET_BINDS_LOCAL_P): Fix argument type.
32586
32587 (TARGET_ASM_FILE_END): Use prototype.
32588
32589 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
32590
32591 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
32592
32593 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
32594
32595 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
32596
32597 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
32598 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
32599
32600 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
32601 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
32602
32603 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
32604 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
32605 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
32606 (TARGET_ADDR_SPACE_CONVERT): Likewise.
32607
32608 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
32609
32610 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
32611
32612 (TARGET_INIT_BUILTINS): Use prototype.
32613
32614 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
32615 Put 'const char *' in braces. Fix parameter types.
32616 (TARGET_INVALID_CONVERSION): Fix parameter types.
32617 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
32618 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
32619
32620 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
32621 Fix argument type.
32622
32623 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
32624
32625 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
32626
32627 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
32628
32629 * doc/tm.texi (TARGET_HELP): Fix return type.
32630
32631 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
32632 in braces. Fix argument types.
32633
32634 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
32635
32636 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
32637
32638 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
32639
32640 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
32641 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
32642
32643 (TARGET_MANGLE_TYPE): Fix argument types.
32644
32645 (TARGET_IRA_COVER_CLASSES): Use prototype.
32646
32647 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
32648
32649 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
32650
32651 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
32652
32653 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
32654
32655 (TARGET_CALLEE_COPIES): Fix argument types.
32656
32657 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
32658
32659 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
32660
32661 (TARGET_FUNCTION_VALUE): Fix argument types.
32662
32663 (TARGET_RETURN_IN_MSB): Fix argument type.
32664
32665 (TARGET_RETURN_IN_MEMORY): Fix argument types.
32666
32667 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
32668
32669 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
32670
32671 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
32672 agree with return type.
32673
32674 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
32675
32676 2010-01-15 Jing Yu <jingyu@google.com>
32677
32678 PR rtl-optimization/42691
32679 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
32680 a pseudo to a constant and are merged, and adjust comments.
32681
32682 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
32683
32684 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
32685
32686 2010-01-15 Richard Guenther <rguenther@suse.de>
32687
32688 PR middle-end/42739
32689 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
32690 labels of computed or non-local gotos to the destination.
32691 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
32692 landing pad label is the first label.
32693
32694 2010-01-15 Richard Guenther <rguenther@suse.de>
32695
32696 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
32697
32698 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32699
32700 PR target/42747
32701 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
32702 to allow generation of the xssqrtdp instruction on power7.
32703 (sqrtdf2_fpr): Ditto.
32704
32705 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32706
32707 PR middle-end/42674
32708 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
32709 functions with noreturn attribute.
32710
32711 PR c++/42608
32712 * varasm.c (declare_weak): Add weak attribute to decl if it
32713 doesn't have one already.
32714 (assemble_external): Only add decls to weak_decls if they also
32715 have weak attribute.
32716
32717 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
32718
32719 * var-tracking.c (var_reg_delete): Don't delete the association
32720 between REGs and values or one-part variables if the register
32721 isn't clobbered.
32722
32723 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32724
32725 PR debug/42657
32726 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
32727 because its first operand is a non-localized variable.
32728
32729 2010-01-14 Martin Jambor <mjambor@suse.cz>
32730
32731 PR tree-optimization/42706
32732 * tree-sra.c (encountered_recursive_call): New variable.
32733 (encountered_unchangable_recursive_call): Likewise.
32734 (sra_initialize): Initialize both new variables.
32735 (callsite_has_enough_arguments_p): New function.
32736 (scan_function): Call decl and flags check only for IPA-SRA, check
32737 whether there is a recursive call and whether it has enough arguments.
32738 (all_callers_have_enough_arguments_p): New function.
32739 (convert_callers): Look for recursive calls only when
32740 encountered_recursive_call is set.
32741 (ipa_early_sra): Bail out either if
32742 !all_callers_have_enough_arguments_p or
32743 encountered_unchangable_recursive_call.
32744
32745 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32746
32747 * sel-sched.c: Add 2010 to copyright years.
32748 * sel-sched-ir.c: Likewise.
32749 * sel-sched-ir.h: Likewise.
32750
32751 2010-01-14 Martin Jambor <mjambor@suse.cz>
32752
32753 PR tree-optimization/42714
32754 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
32755 constructors specially.
32756
32757 2010-01-14 Andi Kleen <ak@linux.intel.com>
32758
32759 * config/i386/drivers-i386.c (detect_caches_intel):
32760 Add l2sizekb parameter and fill in.
32761 (host_detect_local_cpu): Add l2sizekb, fill in.
32762 Add Atom small cache heuristic.
32763
32764 2010-01-14 Andi Kleen <ak@linux.intel.com>
32765
32766 * config/i386/drivers-i386.c (detect_caches_cpuid4):
32767 Add level3 parameter and fill in.
32768 (detect_caches_intel): Handle level3 cache.
32769
32770 2010-01-14 Andi Kleen <ak@linux.intel.com>
32771
32772 * config/i386/drivers-i386.c (host_detect_local_cpu):
32773 Fix core duo detection.
32774
32775 2010-01-14 Andi Kleen <ak@linux.intel.com>
32776
32777 * config/i386/drivers-i386.c (host_detect_local_cpu):
32778 Fix Atom detection.
32779
32780 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32781
32782 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
32783 (rs6000_variable_issue_1): this. Use...
32784 (rs6000_variable_issue): here. Reimplement. Print debug info.
32785
32786 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32787
32788 * sel-sched-ir.c (sel_restore_other_notes): Rename to
32789 sel_restore_notes. Update all callers. Call reemit_notes
32790 for all insns.
32791
32792 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32793
32794 PR rtl-optimization/42246
32795 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
32796 loops.
32797
32798 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32799
32800 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
32801 all successors is the same as number of successors in current region.
32802
32803 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32804
32805 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
32806 to rename is not separable. Otherwise check that its LHS is not NULL.
32807
32808 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32809
32810 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
32811
32812 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32813
32814 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
32815 available registers when failed to discover LHS register class.
32816 Fix indentation. Update comment.
32817
32818 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32819 Alexander Monakov <amonakov@ispras.ru>
32820
32821 PR rtl-optimization/42389
32822 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
32823 to can_issue_more.
32824 (advance_state_on_fence): Likewise.
32825 (sel_target_adjust_priority): Print debug output only when
32826 sched_verbose >= 4, not 2.
32827 (get_expr_cost): Do not issue all unique insns on the next cycle.
32828 (fill_insns): Initialize can_issue_more from the value saved
32829 with the fence.
32830 * sel-sched-ir.c (flist_add): New parameter issue_more.
32831 Init FENCE_ISSUE_MORE with it.
32832 (merge_fences): Likewise.
32833 (init_fences): Update call to flist_add.
32834 (add_to_fences, add_clean_fence_to_fences)
32835 (add_dirty_fence_to_fences): Likewise.
32836 (move_fence_to_fences): Update call to merge_fences.
32837 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
32838 sched groups.
32839 * sel-sched-ir.h (struct _fence): New field issue_more.
32840 (FENCE_ISSUE_MORE): New accessor macro.
32841
32842 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32843
32844 PR rtl-optimization/42388
32845 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
32846 that have no predecessors nor successors. Do not call move_bb_info
32847 for empty blocks outside of current region.
32848
32849 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32850
32851 PR rtl-optimization/42294
32852 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
32853 * sel-sched.c (move_exprs_to_boundary): Transitively add all
32854 originators' originators.
32855
32856 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32857
32858 PR rtl-optimization/39453
32859 PR rtl-optimization/42246
32860 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
32861 for pipelining_p.
32862 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
32863
32864 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32865 Alexander Monakov <amonakov@ispras.ru>
32866
32867 PR middle-end/42245
32868 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
32869 (maybe_tidy_empty_bb): ... here. Make static. Add new
32870 argument. Update all callers.
32871 (tidy_control_flow): ... and here. Recompute topological order
32872 of basic blocks in region if necessary.
32873 (sel_redirect_edge_and_branch): Change return type. Return true
32874 if topological order might have been invalidated.
32875 (purge_empty_blocks): Export and move from...
32876 * sel-sched.c (purge_empty_blocks): ... here.
32877 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
32878 (maybe_tidy_empty_bb): Delete prototype.
32879 (purge_empty_blocks): Declare.
32880
32881 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32882
32883 PR rtl-optimization/42249
32884 * sel-sched.c (try_replace_dest_reg): When chosen register
32885 and original register is the same, do not bail out early, but
32886 still check all original insns for validity of replacing destination
32887 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
32888 in this case.
32889
32890 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32891
32892 PR c/42721
32893 Port from no-undefined-overflow branch:
32894 2009-03-09 Richard Guenther <rguenther@suse.de>
32895
32896 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
32897
32898 2010-01-14 Richard Guenther <rguenther@suse.de>
32899
32900 PR lto/42665
32901 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
32902
32903 2010-01-14 Ira Rosen <irar@il.ibm.com>
32904
32905 PR tree-optimization/42709
32906 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
32907 as scalar type in creation of constant vector operand.
32908
32909 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32910
32911 PR testsuite/42414
32912 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
32913 (check-parallel-%): Match `testsuite' directory component only
32914 at the end.
32915
32916 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
32917
32918 PR translation/39521
32919 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
32920 strings with _().
32921
32922 2010-01-13 Richard Guenther <rguenther@suse.de>
32923
32924 PR tree-optimization/42730
32925 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
32926 offset zero.
32927
32928 2010-01-13 Steve Ellcey <sje@cup.hp.com>
32929
32930 PR target/pr42542
32931 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
32932 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
32933 them signed.
32934
32935 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
32936
32937 * config/bfin/libgcc-bfin.ver: Regenerate based on current
32938 libgcc-std.ver. Add entries for ___smulsi3_highpart and
32939 ___umulsi3_highpart.
32940
32941 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
32942 rather than schedule_insns if the pass is enabled.
32943
32944 2010-01-13 Martin Jambor <mjambor@suse.cz>
32945
32946 PR tree-optimization/42704
32947 * tree-sra.c (sra_modify_assign): Do not delete assignments to
32948 SSA_NAMEs.
32949
32950 2010-01-13 Martin Jambor <mjambor@suse.cz>
32951
32952 PR tree-optimization/42703
32953 * tree-sra.c (analyze_access_subtree): Check that we can build a
32954 reference to the original data within the aggregate.
32955
32956 2010-01-13 Richard Guenther <rguenther@suse.de>
32957
32958 PR tree-optimization/42705
32959 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
32960
32961 2010-01-13 Richard Guenther <rguenther@suse.de>
32962
32963 PR middle-end/42716
32964 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
32965
32966 2010-01-13 Jakub Jelinek <jakub@redhat.com>
32967
32968 PR debug/41371
32969 * var-tracking.c (values_to_unmark): New variable.
32970 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32971 values_to_unmark vector. Moved body to...
32972 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
32973 instead queue it into values_to_unmark vector.
32974 (vt_find_locations): Free values_to_unmark vector.
32975
32976 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
32977
32978 * config/s390/s390.c (override_options): Set
32979 default of max-pending-list-length to 256
32980
32981 2010-01-13 Richard Guenther <rguenther@suse.de>
32982
32983 PR lto/42678
32984 * tree-pass.h (PROP_gimple_lcx): New.
32985 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
32986 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
32987 before the final cleanup_eh.
32988 (dump_properties): Dump PROP_gimple_lcx.
32989 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
32990 (tree_lower_complex_O0): Remove.
32991 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
32992 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
32993 tree_lower_complex, schedule TODO_update_ssa.
32994 * lto-streamer-out.c (output_function): Stream the functions
32995 properties.
32996 * lto-streamer-in.c (input_function): Likewise.
32997 (lto_read_body): Do not override them here.
32998
32999 2010-01-12 Joseph Myers <joseph@codesourcery.com>
33000
33001 PR c/42708
33002 * c-typeck.c (build_c_cast): Fold value cast to union type before
33003 wrapping it in a CONSTRUCTOR.
33004
33005 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33006
33007 PR rtl-optimization/42699
33008 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
33009 involved.
33010
33011 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33012
33013 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33014 SUBTARGET_WARN_UNUSED_SPEC): Move ...
33015 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33016 SUBTARGET_WARN_UNUSED_SPEC): ... here
33017 * config/mips/iris5.h (LIBGCC_SPEC): Define.
33018
33019 2010-01-12 Julian Brown <julian@codesourcery.com>
33020
33021 * config/arm/neon-schedgen.ml (Utils): Don't try to
33022 open missing module.
33023 (find_with_result): New.
33024
33025 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33026
33027 PR debug/42662
33028 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
33029 sharing when canonicalizing ({lt,ge}u (plus a b) b).
33030
33031 PR tree-optimization/42645
33032 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
33033 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
33034 decl_map, set processing_debug_stmt to -1 and return name without
33035 any remapping.
33036
33037 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
33038
33039 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
33040 binutils version, and reword target configuration description.
33041
33042 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33043
33044 * config/avr/avr.h (LINKER_NAME): Remove.
33045
33046 2010-01-11 Janis Johnson <janis187@us.ibm.com>
33047
33048 PR target/42416
33049 * config/rs6000/rs6000.c (rs6000_override_options): On targets
33050 that support VSX, warn for -mno-altivec if vsx is not disabled,
33051 and disable vsx.
33052
33053 2010-01-11 Joseph Myers <joseph@codesourcery.com>
33054 Shujing Zhao <pearly.zhao@oracle.com>
33055
33056 PR translation/42469
33057 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
33058 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
33059 character between option name and help text.
33060 * c.opt (imultilib): Likewise.
33061
33062 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
33063
33064 * lto-streamer-out.c (output_unreferenced_globals): Output static
33065 variables.
33066
33067 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
33068
33069 PR rtl-optimization/42621
33070 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33071 optimizing for size.
33072 (duplicate_computed_gotos): Remove now-redundant check.
33073
33074 2010-01-10 Steve Ellcey <sje@cup.hp.com>
33075
33076 PR target/37454
33077 * configure.ac: Save and restore LDFLAGS and LIBS
33078 * configure: Regenerate.
33079
33080 2010-01-10 Richard Guenther <rguenther@suse.de>
33081
33082 PR middle-end/42667
33083 * builtins.c (fold_builtin_strlen): Add type argument and
33084 convert the resulting length to it.
33085 (fold_builtin_1): Adjust.
33086
33087 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33088
33089 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33090 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33091 1 insn.
33092 (num_insns_constant_wide): Adjust for that change.
33093
33094 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33095
33096 PR debug/42631
33097 * web.c (union_defs): Add used argument, to combine uses of
33098 uninitialized regs.
33099 (entry_register): Adjust type and tests of used argument.
33100 (web_main): Widen used for new use. Pass it to union_defs.
33101 * df.h (union_defs): Adjust prototype.
33102
33103 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33104
33105 PR debug/42630
33106 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33107 uses in new incoming argument. Free body.
33108 (reset_debug_uses_in_loop): New.
33109 (analyze_insn_to_expand_var): Call the latter if the former found
33110 anything. Fix whitespace. Reject invalid dest overlaps before
33111 going through all insns in the loop.
33112
33113 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33114
33115 PR debug/42629
33116 * haifa-sched.c (dying_use_p): Debug insns don't count.
33117
33118 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33119
33120 PR middle-end/42363
33121 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
33122 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
33123 (verify_gimple_call): Reject LHS in noreturn calls.
33124
33125 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33126
33127 PR debug/42604
33128 PR debug/42395
33129 * tree-vect-loop-manip.c (adjust_info): New type.
33130 (adjust_vec): New pointer to vector.
33131 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
33132 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
33133 (slpeel_update_phis_for_duplicate_loop): Use them.
33134 (slpeel_update_phi_nodes_for_guard1): Likewise.
33135 (slpeel_update_phi_nodes_for_guard2): Likewise.
33136 (slpeel_tree_peel_loop_to_edge): Likewise.
33137 (vect_update_ivs_after_vectorizer): Likewise.
33138
33139 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33140
33141 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
33142 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
33143
33144 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33145
33146 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
33147 bogus uninitialized warning.
33148
33149 2010-01-09 Richard Guenther <rguenther@suse.de>
33150
33151 PR middle-end/42512
33152 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
33153 the evolution is compatible with the initial condition.
33154
33155 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33156
33157 * gcc.c (process_command): Update copyright notice dates.
33158 * gcov.c (print_version): Likewise.
33159 * gcov-dump.c (print_version): Likewise.
33160 * mips-tfile.c (main): Likewise.
33161 * mips-tdump.c (main): Likewise.
33162
33163 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33164
33165 PR target/41885
33166 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
33167 (rotlhi3): Delete.
33168 (rotlhi3_8): Delete.
33169 (rotlsi3): Delete.
33170 (rotlsi3_8): Delete.
33171 (rotlsi3_16): Delete.
33172 (rotlsi3_24): Delete.
33173 (rotl<mode>3): New.
33174 (*rotw<mode>3): New.
33175 (*rotb<mode>3): New.
33176 * config/avr/avr.c (avr_rotate_bytes): New function.
33177 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
33178
33179 2010-01-08 Steve Ellcey <sje@cup.hp.com>
33180
33181 PR target/37454
33182 * configure.ac: Modify -rdynamic check.
33183 * configure: Regenerate.
33184
33185 2010-01-08 DJ Delorie <dj@redhat.com>
33186
33187 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
33188 register popping order.
33189
33190 2010-01-08 Richard Guenther <rguenther@suse.de>
33191
33192 PR lto/42528
33193 * c.opt (fsigned-char): Also let LTO handle this option.
33194 (funsigned-char): Likewise.
33195
33196 2010-01-07 Richard Guenther <rguenther@suse.de>
33197
33198 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
33199 (gimple_op): Likewise.
33200 (gimple_op_ptr): Likewise.
33201 (gimple_assign_set_lhs): Remove gcc_assert.
33202 (gimple_assign_set_rhs1): Likewise.
33203 (gimple_assign_set_rhs2): Likewise.
33204 (gimple_call_set_lhs): Likewise.
33205 (gimple_call_set_fn): Likewise.
33206 (gimple_call_set_fndecl): Likewise.
33207 (gimple_call_fndecl): Likewise.
33208 (gimple_call_return_type): Likewise.
33209 (gimple_call_set_chain): Likewise.
33210 (gimple_call_num_args): Likewise.
33211 (gimple_call_set_arg): Likewise.
33212 (gimple_cond_set_code): Likewise.
33213 (gimple_cond_set_lhs): Likewise.
33214 (gimple_cond_set_rhs): Likewise.
33215 (gimple_cond_set_true_label): Likewise.
33216 (gimple_cond_set_false_label): Likewise.
33217 (gimple_label_set_label): Likewise.
33218 (gimple_goto_set_dest): Likewise.
33219 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
33220 (gimple_debug_bind_get_value): Likewise.
33221 (gimple_debug_bind_get_value_ptr): Likewise.
33222 (gimple_debug_bind_set_var): Likewise.
33223 (gimple_debug_bind_set_value): Likewise.
33224 (gimple_debug_bind_reset_value): Likewise.
33225 (gimple_debug_bind_has_value_p): Likewise.
33226 (gimple_return_retval_ptr): Remove gcc_assert.
33227 (gimple_return_retval): Likewise.
33228 (gimple_return_set_retval): Likewise.
33229 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
33230 (safe_referenced_var_iterator): Remove.
33231 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
33232 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
33233 (fill_referenced_var_vec): Remove.
33234 (first_readonly_imm_use): Remove redundant gcc_assert.
33235 (phi_arg_index_from_use): Combine gcc_asserts.
33236 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
33237 (first_imm_use_stmt): Remove redundant gcc_assert.
33238 * tree-cfg.c (verify_gimple_call): Verify function and chain
33239 operands. Verify arguments.
33240 (verify_types_in_gimple_stmt): Verify condition code and labels.
33241
33242 2010-01-07 Richard Guenther <rguenther@suse.de>
33243
33244 PR tree-optimization/42641
33245 * sese.c (rename_map_elt_info): Use the SSA name version, do
33246 not hash pointers.
33247
33248 2010-01-07 Jakub Jelinek <jakub@redhat.com>
33249
33250 PR tree-optimization/42625
33251 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
33252 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
33253
33254 2010-01-07 Duncan Sands <baldrick@free.fr>
33255
33256 * Makefile.in (PLUGIN_HEADERS): Add version.h.
33257
33258 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
33259
33260 PR target/42511
33261 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
33262 note itself is not function_invariant_p.
33263
33264 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
33265
33266 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
33267 Do not add the DF_NOTE problem.
33268 * store-motion.c (execute_rtl_store_motion): Likewise.
33269
33270 2010-01-07 Martin Jambor <mjambor@suse.cz>
33271
33272 PR tree-optimization/42157
33273 * tree-sra.c (compare_access_positions): Stabilize sort if both
33274 accesses have integer types, return zero immediately if they are the
33275 same.
33276
33277 2010-01-06 Richard Henderson <rth@redhat.com>
33278
33279 PR middle-end/41883
33280 * haifa-sched.c (add_to_note_list): Merge into ...
33281 (concat_note_lists): ... here, and ...
33282 (unlink_other_notes, rm_other_notes): Merge into...
33283 (remove_notes): ... here. Create REG_SAVE_NOTEs for
33284 NOTE_INSN_EPILOGUE_BEG.
33285
33286 2010-01-06 Richard Guenther <rguenther@suse.de>
33287
33288 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
33289 not inline regular functions into always-inline functions.
33290
33291 2010-01-06 Nick Clifton <nickc@redhat.com>
33292
33293 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
33294 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
33295 used together.
33296 (OVERRIDE_OPTIONS): Delete.
33297 (OPTIMIZATION_OPTIONS): Define.
33298 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
33299 * config/rx/rx.c (rx_handle_option): Issue an error message if
33300 -mcpu=rx200 and -fpu are used together.
33301 (rx_set_optimization_options): New function. Issue an error
33302 message if an optimization attribute attempts to reset the FPU/
33303 math optimization pairing.
33304 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
33305 * config/rx/rx.opt: Set the default to 32-bit doubles.
33306 * config/rx/t-rx: Add multilibs for -nofpu option.
33307 * doc/invoke.texi: Update documentation of RX options.
33308
33309 2010-01-06 Richard Guenther <rguenther@suse.de>
33310
33311 * tree-ssa-pre.c (name_to_id): New global.
33312 (alloc_expression_id): Simplify SSA name handling.
33313 (lookup_expression_id): Likewise.
33314 (init_pre): Zero name_to_id.
33315 (fini_pre): Free it.
33316
33317 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
33318
33319 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
33320
33321 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
33322
33323 PR target/42542
33324 * config/i386/sse.md (smaxv2di3): New.
33325 (umaxv2di3): Likewise.
33326 (sminv2di3): Likewise.
33327 (uminv2di3): Likewise.
33328
33329 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
33330
33331 PR target/42564
33332 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
33333 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
33334 (legitimize_tls_address): Likewise.
33335 (sparc_tls_referenced_p): Likewise.
33336 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
33337 and adjust calls to legitimize_pic_address.
33338 (legitimate_constant_p) Use sparc_tls_referenced_p.
33339 (legitimate_pic_operand_p): Likewise.
33340 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
33341 (sparc_tls_symbol_ref_1): Delete.
33342 (sparc_tls_referenced_p): Make static, recognize specific patterns.
33343 (legitimize_tls_address): Make static, handle CONST patterns.
33344 (legitimize_pic_address): Make static, remove unused parameter and
33345 adjust recursive calls.
33346 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
33347 and adjust call to legitimize_pic_address.
33348 (sparc_output_mi_thunk): Likewise.
33349
33350 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
33351 H.J. Lu <hongjiu.lu@intel.com>
33352
33353 PR target/42542
33354 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
33355 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
33356 operands to make them signed.
33357
33358 Revert:
33359 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33360
33361 PR target/42542
33362 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33363 GTU to GT for V4SI and V2DI.
33364
33365 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33366 (umin<mode>3): Removed.
33367 (uminv8hi3): New.
33368 (uminv4si3): Likewise.
33369
33370 2010-01-05 Martin Jambor <mjambor@suse.cz>
33371
33372 PR tree-optimization/42462
33373 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
33374 current_function_decl to helper functions and macros.
33375
33376 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33377
33378 PR bootstrap/41771
33379 * flags.h: Don't include real.h.
33380 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
33381 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
33382 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
33383 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
33384 * dominance.c: Update copyright.
33385 * gimple.c (walk_gimple_op): Remove inline.
33386 * tree-ssa-reassoc.c: Include real.h.
33387 * Makefile.in (FLAGS_H): Remove $(REAL_H).
33388 (tree-ssa-reassoc.o): Depend on $(REAL_H).
33389
33390 2010-01-05 Nick Clifton <nickc@redhat.com>
33391
33392 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
33393 register to push into the stack frame when the accumulator has to
33394 be saved during interrupts.
33395
33396 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
33397
33398 * doc/invoke.texi: Remove the documentation about option
33399 -Wunreachable-code.
33400 * common.opt (Wunreachable-code): Preserved for backward
33401 compatibility.
33402 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
33403 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
33404 the backward compatibility flag section.
33405
33406 2010-01-05 Richard Guenther <rguenther@suse.de>
33407
33408 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
33409
33410 2010-01-05 Jakub Jelinek <jakub@redhat.com>
33411
33412 PR other/42611
33413 * cfgexpand.c (expand_one_var): Diagnose too large variables.
33414
33415 PR tree-optimization/42508
33416 * tree-sra.c (convert_callers): Check for recursive call
33417 by comparing cgraph nodes instead of decls.
33418 (modify_function): Call ipa_modify_formal_parameters also
33419 on all same_body aliases.
33420
33421 * cgraphunit.c (cgraph_materialize_all_clones): Compare
33422 cgraph nodes when checking for same_body aliases.
33423
33424 2010-01-05 Richard Guenther <rguenther@suse.de>
33425
33426 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
33427 allocation and lookup.
33428 (get_or_alloc_expr_for_constant): Likewise.
33429 (phi_translate): Sink allocation.
33430
33431 2010-01-04 Richard Guenther <rguenther@suse.de>
33432
33433 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
33434 a new entry only if needed.
33435 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
33436 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
33437 hashtable lookup.
33438 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
33439 the result array.
33440 (phi_translate): Handle CONSTANTs early.
33441
33442 2010-01-04 Martin Jambor <mjambor@suse.cz>
33443
33444 PR tree-optimization/42398
33445 * tree-sra.c (struct access): Removed flag grp_different_types.
33446 (dump_access): Do not dump the removed flag.
33447 (sort_and_splice_var_accesses): Do not set the removed flag.
33448 (sra_modify_expr): Check for type compatibility directly.
33449
33450 2010-01-04 Martin Jambor <mjambor@suse.cz>
33451
33452 PR tree-optimization/42366
33453 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
33454 edges with variable number of parameters.
33455 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
33456 flag instead of asserting it.
33457 (ipa_read_node_info): Read uses_analysis_done flag.
33458
33459 2010-01-04 Richard Guenther <rguenther@suse.de>
33460
33461 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
33462 iterative_hash_* as intended.
33463 (vn_reference_compute_hash): Likewise. Simplify hashing
33464 SSA names.
33465 (vn_reference_lookup_2): Likewise.
33466 (vn_nary_op_compute_hash): Likewise.
33467 (vn_phi_compute_hash): Likewise.
33468 (expressions_equal_p): Remove strange code.
33469 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
33470 (pre_expr_hash): Likewise. Simplify hashing SSA names.
33471 (bitmap_insert_into_set_1): Take value-id as parameter.
33472 (add_to_value): Pass it.
33473 (bitmap_insert_into_set): Likewise.
33474 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
33475
33476 2010-01-04 Jakub Jelinek <jakub@redhat.com>
33477
33478 PR driver/42442
33479 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
33480 (do_self_spec): For switches with SWITCH_IGNORE set set also
33481 SWITCH_IGNORE_PERMANENTLY.
33482 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
33483 of SWITCH_IGNORE.
33484
33485 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
33486
33487 * lto-streamer-out.c (output_unreferenced_globals): Output the full
33488 tree of an unreferenced global var.
33489
33490 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33491
33492 PR target/42542
33493 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33494 GTU to GT for V4SI and V2DI.
33495
33496 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33497 (umin<mode>3): Removed.
33498 (uminv8hi3): New.
33499 (uminv4si3): Likewise.
33500
33501 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33502
33503 PR lto/42581
33504 * collect2.c (main): Turn on trace in collect2 if -v is passed
33505 to gcc with LTO.
33506
33507 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
33508
33509 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
33510 description of expression operand.
33511
33512 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
33513
33514 * configure.ac: Add install-html to target_list for Make-hooks.
33515 * configure: Regenerate.
33516 * fortran/Make-lang.in (F95_HTMLFILES): New.
33517 (fortran.html): Use it.
33518 (fortran.install-html): New.
33519 * Makefile.in (install-html): Add lang.install-html.
33520 * java/Make-lang.in (JAVA_HTMLFILES): New.
33521 (java.html): Use it.
33522 (java.install-html): New.
33523 * objc/Make-lang.in (objc.install-html): New.
33524 * objcp/Make-lang.in (obj-c++.install-html): New.
33525 * cp/Make-lang.in (c++.install-html): New.
33526 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
33527 * lto/Make-lang.in (lto.install-html): New.
33528
33529 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33530
33531 PR lto/42520
33532 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
33533
33534 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
33535
33536 PR rtl-optimization/41862
33537 * store-motion.c (store_killed_in_insn, compute_store_table,
33538 remove_reachable_equiv_notes, replace_store_insn,
33539 build_store_vectors): Ignore all DEBUG_INSNs.
33540
33541 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33542
33543 PR lto/41564
33544 * common.opt: Add dumpdir.
33545
33546 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
33547 isn't specified.
33548 (option_map): Add --dumpdir.
33549
33550 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
33551
33552 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
33553
33554 * opts.c (decode_options): Try dump_dir_name first if
33555 dump_base_name isn't an absolute path.
33556 (common_handle_option): Handle OPT_dumpdir.
33557
33558 * toplev.c (dump_dir_name): New.
33559 (print_switch_values): Also ignore -dumpdir.
33560
33561 * toplev.h (dump_dir_name): New.
33562
33563 2010-01-03 Richard Guenther <rguenther@suse.de>
33564
33565 PR tree-optimization/42589
33566 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
33567 double-word expansion of bswap32.
33568
33569 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
33570
33571 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
33572 with BLOCK_FOR_INSN.
33573 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
33574 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
33575 noce_process_if_block): Likewise.
33576 * gcse.c (compute_local_properties, insert_expr_in_table,
33577 insert_set_in_table, canon_list_insert, find_avail_set,
33578 pre_insert_copy_insn): Likewise.
33579
33580 * basic-block.h (BLOCK_NUM): Move from here...
33581 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
33582
33583 2010-01-03 Richard Guenther <rguenther@suse.de>
33584
33585 PR tree-optimization/42438
33586 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
33587 contains_may_not_return_call flag.
33588 (BB_MAY_NOTRETURN): New.
33589 (valid_in_sets): Trapping nary operations are not valid
33590 in blocks that may not return.
33591 (insert_into_preds_of_block): Remove check for trapping expressions.
33592 (compute_avail): Compute also BB_MAY_NOTRETURN.
33593
33594 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
33595
33596 * doc/invoke.texi: Add 2010 to copyright years.
33597
33598 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
33599
33600 * config/sparc/sparc.c: Fix formatting nits.
33601
33602 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33603 Alexander Monakov <amonakov@ispras.ru>
33604
33605 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
33606
33607 2010-01-02 Richard Guenther <rguenther@suse.de>
33608
33609 PR middle-end/42577
33610 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
33611 (simplify_switch_using_ranges): Mark to be removed edges
33612 as non-executable.
33613
33614 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33615
33616 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33617
33618 * collect2.c (scan_libraries): Add missing argument in call to
33619 scan_prog_file.
33620
33621 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
33622
33623 PR target/42448
33624 * config/alpha/predicates.md (aligned_memory_operand): Return false
33625 for CQImode.
33626 (unaligned_memory_operand): Return true for CQImode.
33627 * config/alpha/alpha.c (get_aligned_mem): Assert that location
33628 doesn not cross aligned SImode word boundary.
33629
33630 2010-01-02 Anatoly Sokolov <aesok@post.ru>
33631
33632 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
33633 Remove.
33634 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
33635 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
33636
33637 2010-01-02 Richard Guenther <rguenther@suse.de>
33638
33639 PR lto/41597
33640 * toplev.c (compile_file): Emit LTO marker properly. Change
33641 it to __gnu_lto_v1.
33642 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
33643
33644 2010-01-01 Richard Guenther <rguenther@suse.de>
33645
33646 PR debug/42455
33647 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
33648
33649 2010-01-01 Richard Guenther <rguenther@suse.de>
33650
33651 PR c/42570
33652 * c-decl.c (grokdeclarator): For zero-size arrays force
33653 structural equality checks as layout_type does.
33654
33655 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33656
33657 * builtins.c: Update copyright to 2010.
33658
33659 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33660
33661 PR lto/42531
33662 * lto-streamer-out.c (produce_asm): Revert the last change.
33663 (copy_function): Likewise.
33664
33665 * lto-streamer.c (lto_get_section_name): Skip any leading
33666 asterisk in name.
33667
33668 2010-01-01 Richard Guenther <rguenther@suse.de>
33669
33670 PR middle-end/42559
33671 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
33672 for LABEL_DECLs.
33673
33674 \f
33675 Copyright (C) 2010 Free Software Foundation, Inc.
33676
33677 Copying and distribution of this file, with or without modification,
33678 are permitted in any medium without royalty provided the copyright
33679 notice and this notice are preserved.