re PR target/46729 (32-bit 30_threads execution tests fail on Solaris 10/SPARC with...
[gcc.git] / gcc / ChangeLog
1 2010-12-19 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR target/46729
4 * config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
5 (PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
6 * config/sparc/sparc.c (pic_helper_needed): Delete.
7 (global_offset_table): Likewise.
8 (pic_helper_symbol): Rename to...
9 (got_helper_rtx): ...this.
10 (global_offset_table_rtx): New global variable.
11 (sparc_got_symbol): Likewise.
12 (sparc_got): New static function.
13 (check_pic): Use local variable and call sparc_got.
14 (sparc_tls_symbol): Initialize to NULL_RTX.
15 (sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
16 and 32-bit ABI and copy the GOT symbol to a new register otherwise.
17 (get_pc_thunk_name): Rename local variable.
18 (gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
19 (load_pic_register): Rename to...
20 (load_got_register): ...this. Adjust and call gen_load_pcrel_sym.
21 (sparc_expand_prologue): Do not test flag_pic.
22 (sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
23 (sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
24 Rename local variable and do not call get_pc_thunk_name again.
25 * config/sparc/sparc.md (load_pcrel_sym): Add operand #3.
26
27 2010-12-19 Dave Korn <dave.korn.cygwin@gmail.com>
28
29 PR middle-end/46674
30 PR middle-end/46221
31 * varasm.c (symbol_alias_set_t): New typedef for derived pointer_set
32 wrapper class.
33 (symbol_alias_set_create): New wrapper function.
34 (symbol_alias_set_destroy): Likewise.
35 (symbol_alias_set_contains): Likewise.
36 (symbol_alias_set_insert): Likewise.
37 (compute_visible_aliases): Use the above and return symbol_alias_set_t,
38 not a pointer_set.
39 (remove_unreachable_alias_pairs): Adjust likewise to match.
40 (finish_aliases_1): Likewise.
41
42 2010-12-19 Chung-Lin Tang <cltang@codesourcery.com>
43
44 * config/arm/arm.c (arm_legitimate_index_p): Add VFP load/store
45 index range case. Change to SF/DFmode tests to avoid capturing HFmode.
46 (thumb2_legitimate_index_p): Same.
47
48 2010-12-18 Jakub Jelinek <jakub@redhat.com>
49
50 PR tree-optimization/46969
51 * tree-parloops.c (struct reduction_info): Add reduc_version.
52 (reduction_info_hash): Return reduc_version field.
53 (reduction_phi): Set reduc_version to gimple_uid (phi).
54 (build_new_reduction): Set reduc_version to SSA_NAME_VERSION of
55 phi result.
56 (set_reduc_phi_uids): New function.
57 (gather_scalar_reductions): Call it at the end through htab_traverse.
58
59 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
60
61 * c-parser.c (c_parser_objc_try_catch_finally_statement): Call
62 objc_maybe_warn_exceptions.
63 (c_parser_objc_synchronized_statement): Call
64 objc_maybe_warn_exceptions.
65
66 2010-12-18 Jakub Jelinek <jakub@redhat.com>
67
68 PR tree-optimization/46985
69 * tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL,
70 return it immediately.
71
72 2010-12-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
73
74 PR target/46915
75 * config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
76 of next_real_insn. Search forward checking for both ASM_INPUT and
77 ASM_OPERANDS asms until exit condition is found.
78 (branch_needs_nop_p): Likewise.
79 (use_skip_p): New function.
80 (output_cbranch): Use use_skip_p.
81 (output_bb, output_bvb): Likewise.
82
83 2010-12-18 Kai Tietz <kai.tietz@onevision.com>
84
85 PR target/36834
86 * config/i386/i386.c (ix86_keep_aggregate_return_pointer):
87 New local function.
88 (ix86_return_pops_args): Use ix86_keep_aggregate_return_pointer
89 function instead of KEEP_AGGREGATE_RETURN_POINTER.
90 (ix86_handle_callee_pop_aggregate_return): New handler.
91 (ix86_attribute_table): Add new attribute
92 callee_pop_aggregate_return.
93 * doc/extend.texi (callee_pop_aggregate_return): Add
94 attribute documentation.
95
96 2010-12-18 Iain Sandoe <iains@gcc.gnu.org>
97
98 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS):
99 Only set sjlj exceptions for NeXT/m32.
100
101 2010-12-18 Iain Sandoe <iains@gcc.gnu.org>
102
103 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION):
104 Only expose when not building for target.
105
106 2010-12-17 Joseph Myers <joseph@codesourcery.com>
107
108 * config/netbsd.opt, config/netbsd-elf.opt: New files.
109 * config.gcc (alpha*-*-netbsd*, arm*-*-netbsdelf*, arm*-*-netbsd*,
110 i[34567]86-*-netbsdelf*, i[34567]86-*-netbsd*, x86_64-*-netbsd*,
111 m68k*-*-netbsdelf*, mips*-*-netbsd*, powerpc-*-netbsd*,
112 sh*-*-netbsd*, sparc-*-netbsdelf*, sparc64-*-netbsd*,
113 vax-*-netbsdelf*, vax-*-netbsd*): Use these .opt files.
114
115 2010-12-17 Richard Henderson <rth@redhat.com>
116
117 * regcprop.c (find_oldest_value_reg): Continue search instead of
118 failing if an element in the copy chain is of the wrong regclass.
119
120 2010-12-17 Paolo Bonzini <bonzini@gnu.org>
121
122 PR c/20385
123 * function.c (used_types_insert): Handle ERROR_MARK.
124 * c-decl.c (grokdeclarator): Handle ERROR_MARK.
125 (declspecs_add_type): Leave error_mark_node in specs->type.
126 (finish_declspecs): Change it to integer_type_node here.
127 * c-parser.c (c_parser_peek_2nd_token): Move earlier.
128 (enum c_lookahead_kind): New.
129 (c_parser_next_token_starts_typename): New name of
130 c_parser_next_tokens_start_typename. Accept lookahead enum
131 and handle it here instead of...
132 (c_parser_next_tokens_start_declaration): ... here. Call it.
133 (c_parser_declspecs): Accept another argument. Do not exit
134 on C_ID_ID if it is guessed to be an unknown typename.
135 (c_parser_parms_declarator): Use 2nd token to distinguish a K&R
136 declaration from an ANSI declaration starting with an unknown
137 typename.
138 (c_parser_struct_declaration, c_parser_objc_type_name,
139 c_parser_typeof_specifier, c_parser_declarator,
140 c_parser_direct_declarator_inner): Adjust calls.
141 (c_parser_parameter_declaration): Likewise.
142 (c_parser_type_name): Pass back an error_mark_node to the caller.
143 (c_parser_postfix_expression): Do error recovery when
144 c_parser_type_name returns NULL.
145
146 2010-12-17 Joseph Myers <joseph@codesourcery.com>
147
148 * config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
149 Define.
150 * config/i386/nto.h (LIB_SPEC, ASM_SPEC): Define.
151 (DBX_REGISTER_NUMBER): Undefine.
152 * config/i386/sol2.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
153 * config/i386/vxworksae.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
154 Define.
155 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
156 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
157 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
158 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
159 i[3456x]86-*-netware*, i[34567]86-*-nto-qnx*,
160 i[34567]86-*-solaris2*,
161 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae): Don't use svr4.h.
162
163 2010-12-17 H.J. Lu <hongjiu.lu@intel.com>
164
165 * config/i386/i386.c (move_or_delete_vzeroupper_2): Replace
166 "BB [%i]" with "[bb %i]" in dump.
167 (move_or_delete_vzeroupper_1): Likewise.
168 (rescan_move_or_delete_vzeroupper): Likewise. Always dump
169 upper 128bit state at exit.
170
171 2010-12-17 Joseph Myers <joseph@codesourcery.com>
172
173 * config/interix.opt: New.
174 * config/interix.h (LINK_SPEC): Don't handle -soname*.
175 * config.gcc (i[34567]86-*-interix3*): Use interix.opt.
176
177 2010-12-17 Andrew Stubbs <ams@codesourcery.com>
178
179 * config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
180 operand order for plus.
181 Drop redundant % from constraints.
182
183 2010-12-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
184
185 * config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
186 _floatunstisf.
187 * config/spu/spu.md ("floattisf2"): New expander.
188 ("floatunstisf2"): New insn pattern and splitter.
189 ("cgt_ti_m1"): New insn pattern.
190
191 2010-12-17 Bernd Schmidt <bernds@codesourcery.com>
192
193 * config/arm/arm.c (arm_select_cc_mode): Before calling
194 arm_select_dominance_cc_mode for AND or IOR operations, ensure
195 that op is NE or EQ.
196
197 2010-12-17 Alexander Monakov <amonakov@ispras.ru>
198
199 PR middle-end/46761
200 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer
201 to use unadjusted UB.
202
203 2010-12-17 Dodji Seketeli <dodji@redhat.com>
204
205 * dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
206 info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
207 that underlying type instead.
208
209 2010-12-16 Jan Hubicka <jh@suse.cz>
210
211 PR middle-end/44563
212 * ipa-inline.c: Update doplevel comment.
213 (cgraph_estimate_size_after_inlining): Remove times attribute.
214 (cgraph_mark_inline_edge): Update.
215 (cgraph_mark_inline): Remove.
216 (cgraph_estimate_growth): Update.
217 (cgraph_check_inline_limits): Remove one only argument.
218 (cgraph_edge_badness): Update.
219 (cgraph_decide_recursive_inlining): Update.
220 (cgraph_decide_inlining_of_small_function): Fix handling of tree_can_inline_p
221 and call_stmt_cannot_inline_p.
222 (cgraph_flatten): Likewise.
223 (cgraph_decide_inlining): Update.
224 (cgraph_decide_inlining_incrementally): Fix handling of call_stmt_cannot_inline_p.
225
226 2010-12-16 Joseph Myers <joseph@codesourcery.com>
227
228 * config/darwin.opt (dylinker, headerpad_max_install_names,
229 keep_private_externs, nofixprebinding, nomultidefs, noprebind,
230 noseglinkedit, object, prebind, prebind_all_twolevel_modules,
231 preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
232 twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
233 Driver options.
234 * config/darwin.h (LINK_SPEC): Remove '*' after
235 headerpad_max_install_names.
236
237 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
238
239 PR tree-optimization/46924
240 * graphite-sese-to-poly.c (detect_commutative_reduction): Do not
241 detect reductions outside the current SESE region.
242 * sese.h (stmt_in_sese_p): New.
243 (defined_in_sese_p): Call stmt_in_sese_p.
244
245 2010-12-16 Jakub Jelinek <jakub@redhat.com>
246
247 PR tree-optimization/46966
248 * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
249 for bbs that are removed from SCOP_BBS vector.
250
251 2010-12-16 Eric Botcazou <ebotcazou@adacore.com>
252
253 * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
254 get_ref_base_and_extent returns -1 as the max size.
255
256 2010-12-16 Konrad Eisele <konrad@gaisler.com>
257 Eric Botcazou <ebotcazou@adacore.com>
258
259 Support for LEON processor
260 * config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
261 (sparc-*-linux*): Likewise.
262 (sparc-*-rtems*): Remove Solaris left-overs.
263 (sparc*-*-*): Remove obsolete sparc86x setting.
264 (sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
265 * doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
266 * config/sparc/sparc.h (TARGET_CPU_leon): Define.
267 (TARGET_CPU_sparc86x): Delete.
268 (TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
269 (TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
270 (TARGET_CPU_f934): Likewise.
271 (TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
272 (CPP_CPU_SPEC): Add entry for -mcpu=leon.
273 (enum processor_type): Add PROCESSOR_LEON. Reorganize.
274 * config/sparc/sparc.c (leon_costs): New cost array.
275 (sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
276 Initialize cost array to leon_costs if -mtune=leon.
277 * config/sparc/sparc.md (cpu attribute): Add leon. Reorganize.
278 Include leon.md scheduling description.
279 * config/sparc/leon.md: New file.
280 * config/sparc/t-elf: Do not assemble Solaris startup files.
281 * config/sparc/t-leon: New file.
282 * config/sparc/t-leon3: Likewise.
283
284 2010-12-16 Jakub Jelinek <jakub@redhat.com>
285
286 PR tree-optimization/43655
287 * tree-ssa-ter.c (is_replaceable_p): Don't use
288 gimple_references_memory_p for -O0, instead check for load
289 by looking at rhs.
290
291 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
292
293 PR tree-optimization/46404
294 * graphite-clast-to-gimple.c (gloog): Call scev_reset.
295
296 2010-12-16 Anatoly Sokolov <aesok@post.ru>
297
298 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
299 * config/sh/sh.c (sh_asm_output_addr_const_extra): New function.
300 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
301
302 2010-12-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
303
304 * config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
305 * config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define.
306 (LIBGCC2_UNITS_PER_WORD): Define if not already defined.
307
308 2010-12-16 Jakub Jelinek <jakub@redhat.com>
309
310 PR debug/46893
311 * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
312 use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
313
314 2010-12-16 Chung-Lin Tang <cltang@codesourcery.com>
315
316 PR target/46883
317 * config/arm/arm.md
318 (zero_extendhisi2 for register input splitter): Change
319 "register_operand" to "s_register_operand".
320 (zero_extendqisi2 for register input splitter): Same.
321
322 2010-12-16 Jan Hubicka <jh@suse.cz>
323
324 PR middle-end/46939
325 * predic.c (predict_paths_leading_to_edge): New function.
326 (apply_return_prediction): Use it.
327 (predict_paths_for_bb): Do not special case abnormals.
328
329 2010-12-16 Joseph Myers <joseph@codesourcery.com>
330
331 * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
332 extra_options twice.
333
334 2010-12-15 Joseph Myers <joseph@codesourcery.com>
335
336 * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
337 * doc/tm.texi: Regenerate.
338 * system.h (US_SOFTWARE_GOFAST): Poison.
339 * config.gcc (enable_gofast): Don't handle.
340 * config/gofast.h: Remove.
341 * config/mips/t-gofast: Remove.
342 * config/fp-bit.c (US_SOFTWARE_GOFAST): Don't handle.
343 * config/fp-bit.h (US_SOFTWARE_GOFAST): Don't handle.
344 * config/mips/elforion.h: Don't mention GOFAST in comment.
345 * config/mips/mips.c: Don't include gofast.h.
346 (mips_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
347 * config/mips/t-sr71k (dp-bit.c, fp-bit.c): Don't define
348 US_SOFTWARE_GOFAST.
349 * config/sparc/sparc.c: Don't include gofast.h.
350 (sparc_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
351 * config/spu/t-spu-elf (dp-bit.c, fp-bit.c): Don't undefine
352 US_SOFTWARE_GOFAST.
353
354 2010-12-14 Jan Hubicka <jh@suse.cz>
355
356 * config/darwin.opt (dylinker, headerpad_max_install_names,
357 keep_private_externs, nofixprebinding, nomultidefs, noprebind,
358 noseglinkedit, object, prebind, prebind_all_twolevel_modules,
359 preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
360 twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
361 Driver options.
362 * config/darwin.h (LINK_SPEC): Remove '*' after
363 headerpad_max_install_names.
364
365 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
366
367 PR tree-optimization/46924
368 * graphite-sese-to-poly.c (detect_commutative_reduction): Do not
369 detect reductions outside the current SESE region.
370 * sese.h (stmt_in_sese_p): New.
371 (defined_in_sese_p): Call stmt_in_sese_p.
372
373 2010-12-16 Jakub Jelinek <jakub@redhat.com>
374
375 PR tree-optimization/46966
376 * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
377 for bbs that are removed from SCOP_BBS vector.
378
379 2010-12-16 Eric Botcazou <ebotcazou@adacore.com>
380
381 * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
382 get_ref_base_and_extent returns -1 as the max size.
383
384 2010-12-16 Konrad Eisele <konrad@gaisler.com>
385 Eric Botcazou <ebotcazou@adacore.com>
386
387 Support for LEON processor
388 * config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
389 (sparc-*-linux*): Likewise.
390 (sparc-*-rtems*): Remove Solaris left-overs.
391 (sparc*-*-*): Remove obsolete sparc86x setting.
392 (sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
393 * doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
394 * config/sparc/sparc.h (TARGET_CPU_leon): Define.
395 (TARGET_CPU_sparc86x): Delete.
396 (TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
397 (TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
398 (TARGET_CPU_f934): Likewise.
399 (TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
400 (CPP_CPU_SPEC): Add entry for -mcpu=leon.
401 (enum processor_type): Add PROCESSOR_LEON. Reorganize.
402 * config/sparc/sparc.c (leon_costs): New cost array.
403 (sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
404 Initialize cost array to leon_costs if -mtune=leon.
405 * config/sparc/sparc.md (cpu attribute): Add leon. Reorganize.
406 Include leon.md scheduling description.
407 * config/sparc/leon.md: New file.
408 * config/sparc/t-elf: Do not assemble Solaris startup files.
409 * config/sparc/t-leon: New file.
410 * config/sparc/t-leon3: Likewise.
411
412 2010-12-16 Jakub Jelinek <jakub@redhat.com>
413
414 PR tree-optimization/43655
415 * tree-ssa-ter.c (is_replaceable_p): Don't use
416 gimple_references_memory_p for -O0, instead check for load
417 by looking at rhs.
418
419 2010-12-16 Sebastian Pop <sebastian.pop@amd.com>
420
421 PR tree-optimization/46404
422 * graphite-clast-to-gimple.c (gloog): Call scev_reset.
423
424 2010-12-16 Anatoly Sokolov <aesok@post.ru>
425
426 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
427 * config/sh/sh.c (sh_asm_output_addr_const_extra): New function.
428 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
429
430 2010-12-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
431
432 * config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
433 * config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define.
434 (LIBGCC2_UNITS_PER_WORD): Define if not already defined.
435
436 2010-12-16 Jakub Jelinek <jakub@redhat.com>
437
438 PR debug/46893
439 * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
440 use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
441
442 2010-12-16 Chung-Lin Tang <cltang@codesourcery.com>
443
444 PR target/46883
445 * config/arm/arm.md
446 (zero_extendhisi2 for register input splitter): Change
447 "register_operand" to "s_register_operand".
448 (zero_extendqisi2 for register input splitter): Same.
449
450 2010-12-16 Jan Hubicka <jh@suse.cz>
451
452 PR middle-end/46939
453 * predic.c (predict_paths_leading_to_edge): New function.
454 (apply_return_prediction): Use it.
455 (predict_paths_for_bb): Do not special case abnormals.
456
457 2010-12-16 Joseph Myers <joseph@codesourcery.com>
458
459 * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
460 extra_options twice.
461
462 2010-12-15 Joseph Myers <joseph@codesourcery.com>
463
464 * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
465 * doc/tm.texi: Regenerate.
466 * system.h (US_SOFTWARE_GOFAST): Poison.
467 * config.gcc (enable_gofast): Don't handle.
468 * config/gofast.h: Remove.
469 * config/mips/t-gofast: Remove.
470 * config/fp-bit.c (US_SOFTWARE_GOFAST): Don't handle.
471 * config/fp-bit.h (US_SOFTWARE_GOFAST): Don't handle.
472 * config/mips/elforion.h: Don't mention GOFAST in comment.
473 * config/mips/mips.c: Don't include gofast.h.
474 (mips_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
475 * config/mips/t-sr71k (dp-bit.c, fp-bit.c): Don't define
476 US_SOFTWARE_GOFAST.
477 * config/sparc/sparc.c: Don't include gofast.h.
478 (sparc_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
479 * config/spu/t-spu-elf (dp-bit.c, fp-bit.c): Don't undefine
480 US_SOFTWARE_GOFAST.
481
482 2010-12-14 Jan Hubicka <jh@suse.cz>
483
484 * tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I
485 and GLOBAL_sub_D.
486
487 2010-12-15 Martin Jambor <mjambor@suse.cz>
488
489 PR tree-optimization/46053
490 PR middle-end/46287
491 PR middle-end/46242
492 * cgraph.h (cgraph_indirect_call_info): New field thunk_delta.
493 * gimple.h (gimple_fold_obj_type_ref): Declaration removed.
494 (gimple_fold_call): Declare.
495 (gimple_adjust_this_by_delta): Likewise.
496 * cgraph.c (cgraph_make_edge_direct): New parameter delta. Updated
497 all users.
498 (cgraph_clone_edge): Create a copy of indirect_info also for direct
499 edges.
500 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Adjust this
501 parameters.
502 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Renamed to
503 gimple_get_virt_mehtod_for_binfo, new parameter delta. Do not search
504 through thunks, in fact bail out if we encounter one, check that
505 BINFO_VIRTUALS is not NULL.
506 (gimple_adjust_this_by_delta): New function.
507 (gimple_fold_obj_type_ref): Removed.
508 (gimple_fold_obj_type_ref_call): New function.
509 (fold_gimple_call): Renamed to gimple_fold_call, made external.
510 Updated users. Call gimple_fold_obj_type_ref_call instead of
511 gimple_fold_obj_type_ref.
512 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Process
513 thunk deltas.
514 (ipcp_discover_new_direct_edges): Likewise.
515 * ipa-prop.c (ipa_make_edge_direct_to_target): New parameter delta.
516 Updated callers.
517 (ipa_write_indirect_edge_info): Stream thunk_delta.
518 (ipa_read_indirect_edge_info): Likewise.
519 * tree-ssa-ccp.c (ccp_fold_stmt): Use gimple_fold_call instead of
520 gimple_fold_obj_type_ref.
521
522 2010-12-15 Alexander Monakov <amonakov@ispras.ru>
523
524 PR rtl-optimization/46649
525 * sel-sched-ir.c (purge_empty_blocks): Unconditionally skip the first
526 basic block in the region.
527
528 2010-12-15 Joseph Myers <joseph@codesourcery.com>
529
530 * config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
531 * config.gcc (xstormy16-*-elf): Don't use svr4.h.
532
533 2010-12-15 Joseph Myers <joseph@codesourcery.com>
534
535 * config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
536 * config.gcc (rx-*-elf*): Don't use svr4.h.
537
538 2010-12-14 Sebastian Pop <sebastian.pop@amd.com>
539
540 PR tree-optimization/46845
541 * sese.c (scalar_evolution_in_region): Handle scop parameters
542 before scev analysis.
543
544 2010-12-14 Sebastian Pop <sebastian.pop@amd.com>
545
546 PR tree-optimization/46928
547 * tree-data-ref.c (analyze_overlapping_iterations): Handle "A[p] == A[p]"
548 in data dependence analysis with p a parameter of the loop.
549
550 2010-12-14 Sebastian Pop <sebastian.pop@amd.com>
551
552 PR tree-optimization/45948
553 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): New.
554 (stmt_has_scalar_dependences_outside_loop): New.
555 (stmt_generated_in_another_partition): New.
556 (add_scalar_computations_to_partition): New.
557 (rdg_build_partitions): Call add_scalar_computations_to_partition.
558
559 2010-12-14 Joseph Myers <joseph@codesourcery.com>
560
561 * config/arc/arc.h (LIB_SPEC): Define.
562 * config.gcc (arc-*-elf*): Don't use svr4.h.
563
564 2010-12-14 Joseph Myers <joseph@codesourcery.com>
565
566 * config/sh/elf.h (LIB_SPEC): Define.
567 * config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* |
568 sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* |
569 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* |
570 sh5l*-*-netbsd* | sh64-*-netbsd* | sh64l*-*-netbsd*, sh-*-rtems*,
571 sh-wrs-vxworks): Don't use svr4.h.
572
573 2010-12-14 Jan Hubicka <jh@suse.cz>
574
575 PR lto/46940
576 PR lto/44463
577 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Construct nodes
578 for aliases when they are used.
579
580 2010-12-14 Joseph Myers <joseph@codesourcery.com>
581
582 * config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
583 sparc-*-netbsdelf*, sparc*-*-solaris2*, sparc-wrs-vxworks,
584 sparc64-*-elf*, sparc64-*-rtems*, sparc64-*-linux*,
585 sparc64-*-netbsd*, sparc64-*-openbsd*): Don't use svr4.h.
586
587 2010-12-14 Thomas Klein <th.r.klein@web.de>
588
589 * config/arm/arm.c (arm_expand_prologue): Report the static stack
590 size if -fstack-usage is used.
591 (thumb1_expand_prologue): Likewise.
592
593 2010-12-14 Jakub Jelinek <jakub@redhat.com>
594
595 PR debug/46885
596 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Use gsi_last_bb
597 instead of gsi_last_nondebug_bb if bump_in_latch.
598
599 PR tree-optimization/46909
600 * gimple-fold.c (and_var_with_comparison_1): Save partial
601 result even in the is_and case, if both partial results
602 are the same, return it.
603 (or_var_with_comparison_1): Use is_or predicate instead of
604 innercode == TRUTH_OR_EXPR test. Save partial result
605 even in the is_or case, if both partial results are the
606 same, return it. In the !is_or case when both partial
607 results are the same, return the partial result instead
608 of boolean_true_node.
609
610 2010-12-14 Jan Hubicka <jh@suse.cz>
611
612 PR middle-end/46667
613 * varasm.c (assemble_start_function): Do not call resolve_unique_section.
614 * cfgexpand.c (gimple_expand_cfg): Resolve it here.
615
616 2010-12-14 Alexander Monakov <amonakov@ispras.ru>
617
618 PR rtl-optimization/46875
619 * sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs.
620 * sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps.
621
622 2010-12-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
623
624 * config/h8300/h8300.md (define_split) : Add condition for
625 "and with single_zero" splitter to handle 16-bit const operands.
626 * config/h8300/h8300.md (define_split) : Add condition for
627 "ior with single_one" splitter to handle 16-bit const operands.
628 * config/h8300/h8300.md (define_split) : Add condition for
629 "xor with single_one" splitter to handle 16-bit const operands.
630 * testsuite/gcc.dg/h8300-bit-insn-ice.c: New.
631
632 2010-12-13 Jan Hubicka <jh@suse.cz>
633
634 PR middle-end/45388
635 * ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
636 (cgraph_build_static_cdtor): ... here.
637 (build_cdtor): Use cgraph_build_static_cdtor_1.
638
639 2010-12-13 Joseph Myers <joseph@codesourcery.com>
640
641 * config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
642 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
643 * config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.
644
645 2010-12-14 Bernd Schmidt <bernds@codesourcery.com>
646
647 PR rtl-optimization/44374
648 Reapply patch with fixes.
649 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
650 * df-core.c (df_set_bb_dirty): Set it.
651 * ifcvt.c (find_memory): Remove function.
652 (dead_or_predicable): Use can_move_insns_across.
653 * df.h (can_move_insns_across): Declare function.
654 * cfgcleanup.c (block_was_dirty): New static variable.
655 (flow_find_head_matching_sequence): Test for epilogue notes.
656 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
657 than df_get_bb_dirty.
658 (try_head_merge_bb): New static function.
659 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
660 is set.
661 * df-problems.c: Include "target.h"
662 (df_simulate_find_uses): New static function.
663 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
664 (find_memory, find_memory_store): New static functions.
665 (can_move_insns_across): New function.
666 * Makefile.in (df-problems.o): Update dependencies.
667
668 2010-12-13 Joseph Myers <joseph@codesourcery.com>
669
670 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
671 (DBX_REGISTER_NUMBER): Undefine.
672 * config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
673 (DBX_REGISTER_NUMBER): Undefine.
674 * config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
675
676 2010-12-13 Jack Howarth <howarth@bromo.med.uc.edu>
677 Joseph Myers <joseph@codesourcery.com>
678
679 PR bootstrap/46650
680 * system.h: Include cstring for cxx bootstrap.
681
682 2010-12-13 Jakub Jelinek <jakub@redhat.com>
683
684 PR lto/46879
685 * lto-streamer-out.c (output_gimple_stmt): Never replace first
686 GIMPLE_DEBUG argument with MEM_REF.
687
688 PR debug/46867
689 * var-tracking.c (emitted_notes, string_pointer_flags): Removed.
690 (emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
691 (vt_emit_notes): Don't initialize and destroy emitted_notes.
692
693 2010-12-13 Nathan Froyd <froydnj@codesourcery.com>
694
695 PR target/46040
696 * config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
697 (arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
698
699 2010-12-13 Joseph Myers <joseph@codesourcery.com>
700
701 * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
702 WCHAR_TYPE_SIZE): Define.
703 * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
704
705 2010-12-13 Joseph Myers <joseph@codesourcery.com>
706
707 * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
708 Don't use svr4.h.
709
710 2010-12-13 Joseph Myers <joseph@codesourcery.com>
711
712 * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
713 WCHAR_TYPE_SIZE): Undefine.
714 * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
715 WCHAR_TYPE_SIZE): Define.
716 * config.gcc (mn10300-*-*): Don't use svr4.h.
717
718 2010-12-13 Joseph Myers <joseph@codesourcery.com>
719
720 * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
721 redefine.
722 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
723 * config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.
724
725 2010-12-13 Alexandre Oliva <aoliva@redhat.com>
726
727 PR debug/46756
728 * jump.c (mark_all_labels): Skip debug insns.
729
730 2010-12-13 Alexandre Oliva <aoliva@redhat.com>
731
732 PR debug/46782
733 * cfgcleanup.c (try_forward_edges): Skip debug insns.
734
735 2010-12-12 Jan Hubicka <jh@suse.cz>
736 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
737
738 * varasm.c (default_function_section): Check flag_reorder_functions
739 and targetm.have_named_sections.
740 * config/darwin.c (darwin_function_section): Check
741 flag_reorder_functions.
742
743 2010-12-12 Finn Thain <fthain@telegraphics.com.au>
744
745 PR target/46179
746 * config/m68k/m68k.c (handle_move_double): Insert calls to
747 m68k_final_prescan_insn to clean up @TLS operand syntax.
748
749 2010-12-10 Sebastian Pop <sebastian.pop@amd.com>
750
751 PR tree-optimization/43023
752 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
753 Removed.
754 (stores_zero_from_loop): Call stmt_stores_zero.
755 * tree-data-ref.h (stmt_stores_zero): New.
756 * tree-loop-distribution.c (generate_memset_zero): Do not return a
757 boolean. Call gcc_assert on stride_of_unit_type_p.
758 (generate_builtin): Call stmt_stores_zero.
759 (rdg_flag_all_uses): Removed.
760 (rdg_flag_similar_memory_accesses): Removed.
761 (build_rdg_partition_for_component): Removed parameter
762 other_stores. Removed call to rdg_flag_similar_memory_accesses.
763 (can_generate_builtin): New.
764 (similar_memory_accesses): New.
765 (fuse_partitions_with_similar_memory_accesses): New.
766 (rdg_build_partitions): Call
767 fuse_partitions_with_similar_memory_accesses.
768
769 2010-12-10 Jakub Jelinek <jakub@redhat.com>
770
771 PR rtl-optimization/46804
772 * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
773 on the setter of src_reg rather than on insn. If it is
774 equal to the setter's original SET_SRC, replace it with its
775 zero or sign extension instead of dropping it.
776
777 2010-12-10 Richard Guenther <rguenther@suse.de>
778
779 PR lto/46808
780 * lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
781 after errors.
782 (lto_symtab_merge_decls_1): Adjust.
783
784 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
785
786 PR middle-end/46674
787 PR lto/43157
788 * target.def (mangle_assembler_name): New target asm_out hook.
789 * targhooks.c (default_mangle_assembler_name): Add default hook
790 implementation.
791 * targhooks.h (default_mangle_assembler_name): Add prototype.
792 * lto-symtab.c (lto_symtab_register_decl): Use new hook when
793 processing DECL_ASSEMBLER_NAMEs for lto symtabs.
794 (lto_symtab_get_resolution): Likewise.
795 (lto_cgraph_replace_node): Likewise.
796 (lto_symtab_prevailing_decl): Likewise.
797 * lto-streamer-out.c (write_symbol): Likewise.
798 * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
799 * doc/tm.texi: Regenerate.
800 * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
801 point at i386_pe_mangle_assembler_name.
802 * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
803 * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
804 prototype.
805
806 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
807
808 * c-typeck.c (readonly_error): Delete.
809
810 2010-12-10 Jakub Jelinek <jakub@redhat.com>
811
812 PR rtl-optimization/46865
813 * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
814 ASM_OPERANDS and ASM_INPUT if integers are different,
815 call locator_eq.
816 * jump.c (rtx_renumbered_equal_p): Likewise.
817
818 PR tree-optimization/46864
819 * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
820 when there are EDGE_EH exit edges.
821
822 2010-12-10 Tobias Burnus <burnus@net-b.de>
823
824 PR fortran/46540
825 * configure.ac: Handle --disable-libquadmath-support.
826 * doc/install.texi: Document --disable-libquadmath and
827 --disable-libquadmath-support
828 * configure: Regenerate.
829 * config.in: Regenerate.
830
831 2010-12-10 Jack Howarth <howarth@bromo.med.uc.edu>
832 Iain Sandoe <iains@gcc.gnu.org>
833
834 PR 43751/target
835 * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
836
837 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
838
839 * config/rs6000/rs6000.c
840 (rs6000_darwin64_record_arg_advance_recurse): Name register increment
841 explicitly. (rs6000_darwin64_record_arg_recurse): Make sure we split
842 long doubles when we run out of regs. Also flag that this requires
843 stack and therefore cannot be returned by value.
844 (rs6000_darwin64_record_arg): Update comment.
845 (rs6000_function_value): Likewise.
846
847 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
848
849 * c-parser.c (c_parser_objc_class_definition): Recognize
850 Objective-C 2.0 class extensions.
851
852 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
853
854 * config/darwin.c: Remove c-tree.h and c-lang.h
855 * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
856
857 2010-12-10 Joern Rennecke <amylaar@spamcop.net>
858
859 PR target/46881
860 * doc/tm.texi: Regenerate.
861 * target.def: Fix "preferred" spelling. Refer to rclass by its
862 exact name.
863 * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
864 to rclass.
865
866 2010-12-09 Paul Koning <ni1d@arrl.net>
867
868 * config/pdp11/pdp11-protos.h (output_move_double,
869 output_move_quad): Delete.
870 (output_move_multiple, pdp11_expand_operands): New functions.
871 (pdp11_action, pdp11_partorder): New enums.
872 * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
873 output_move_multiple.
874 (adddi3, subdi3, negdi2): New patterns.
875 (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
876 (abshi2): Delete.
877 (neghi2, negqi2): Use PDPint iterator.
878 * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
879 output_move_quad): Delete.
880 (pdp11_expand_operands, output_move_multiple): New functions.
881
882 2010-12-09 Joseph Myers <joseph@codesourcery.com>
883
884 * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
885 * config.gcc (vax-*-linux*): Don't use svr4.h.
886
887 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
888
889 * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
890
891 2010-12-09 Joseph Myers <joseph@codesourcery.com>
892
893 * doc/extend.texi (Attribute Syntax): Correct description of
894 attributes in pointer declarators.
895
896 2010-12-09 Joseph Myers <joseph@codesourcery.com>
897
898 * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
899 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
900 mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
901
902 2010-12-09 Joseph Myers <joseph@codesourcery.com>
903
904 * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
905 WCHAR_TYPE_SIZE): Define.
906 * config.gcc (mep-*-*): Don't use svr4.h.
907
908 2010-12-09 Joseph Myers <joseph@codesourcery.com>
909
910 * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
911 WCHAR_TYPE_SIZE): Define.
912 * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
913 WCHAR_TYPE_SIZE): Don't define.
914 * config.gcc (mcore-*-elf): Don't use svr4.h.
915
916 2010-12-09 Joseph Myers <joseph@codesourcery.com>
917
918 * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
919 m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
920
921 2010-12-09 Joseph Myers <joseph@codesourcery.com>
922
923 * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
924 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
925 * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
926
927 2010-12-09 Joseph Myers <joseph@codesourcery.com>
928
929 * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
930
931 2010-12-09 Joseph Myers <joseph@codesourcery.com>
932
933 * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
934 * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
935 svr4.h.
936
937 2010-12-09 Joseph Myers <joseph@codesourcery.com>
938
939 * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
940 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
941 * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
942 WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
943 * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
944
945 2010-12-09 Joseph Myers <joseph@codesourcery.com>
946
947 * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
948 WCHAR_TYPE_SIZE): Define.
949 * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
950
951 2010-12-09 Joseph Myers <joseph@codesourcery.com>
952
953 * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
954 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
955 * config.gcc (fr30-*-elf): Don't use svr4.h.
956
957 2010-12-09 Joseph Myers <joseph@codesourcery.com>
958
959 * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
960 * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
961
962 2010-12-09 Richard Guenther <rguenther@suse.de>
963
964 PR middle-end/46844
965 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
966 addresses.
967
968 2010-12-09 Joseph Myers <joseph@codesourcery.com>
969
970 * config/i386/netware.h (TARGET_POSIX_IO): Define.
971 * config/i386/nto.h (TARGET_POSIX_IO): Define.
972 * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
973 * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
974 * config/openbsd.h (TARGET_POSIX_IO): Define.
975 * config/rtems.h (TARGET_POSIX_IO): Define.
976 * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
977 * config/sol2.h (TARGET_POSIX_IO): Define.
978 * config/svr4.h (TARGET_POSIX_IO): Don't define.
979 * config/vxworksae.h (TARGET_POSIX_IO): Define.
980
981 2010-12-09 Joseph Myers <joseph@codesourcery.com>
982
983 * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
984 * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
985 Define.
986 * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
987 undefine.
988 * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
989 undefine.
990 * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
991 Don't undefine.
992 * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
993 Don't undefine.
994 * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
995 Don't undefine.
996 * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
997 * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
998 Don't undefine.
999 * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1000 Don't undefine.
1001 * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1002 Don't undefine.
1003 * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1004 define.
1005 * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1006 undefine.
1007
1008 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1009
1010 * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
1011 non-GNU assembler.
1012 * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
1013 Remove.
1014 * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1015 * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1016 * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
1017 non-GNU assembler.
1018 * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1019 * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1020
1021 2010-12-09 Martin Jambor <mjambor@suse.cz>
1022
1023 * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
1024 zero is the first phi parameter.
1025
1026 2010-12-09 Martin Jambor <mjambor@suse.cz>
1027
1028 * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
1029 * ipa-prop.c (ipa_modify_call_arguments): Use it.
1030 * tree-sra.c (splice_param_accesses): Test that all accesses have the
1031 same alias reference type.
1032 (turn_representatives_into_adjustments): Set alias_ptr_type of the
1033 adjustment.
1034
1035 2010-12-09 Martin Jambor <mjambor@suse.cz>
1036
1037 PR middle-end/46734
1038 * tree-sra.c (splice_param_accesses): Check that there are not
1039 multiple ADDRESSABLE types.
1040
1041 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1042
1043 * config/arc/arc.h (ASM_SPEC): Remove %{v}.
1044 * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
1045 * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
1046 * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
1047 * config/frv/frv.h (ASM_SPEC): Remove %{v}.
1048 * config/i386/linux.h (ASM_SPEC): Remove %{v}.
1049 * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
1050 * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
1051 * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
1052 * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
1053 * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
1054 * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
1055 * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
1056 * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
1057 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
1058 * config/mips/mips.h (ASM_SPEC): Remove %{v}.
1059 * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
1060 * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
1061 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
1062 * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
1063 * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
1064 * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
1065 * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
1066 * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
1067 * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
1068
1069 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1070
1071 * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1072 * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
1073 * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
1074 %{r*:}.
1075 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
1076 %{r*:}.
1077 * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
1078 * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1079
1080 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1081
1082 * config/alpha/freebsd.h (LINK_SPEC): Don't use
1083 %{!dynamic-linker:}.
1084 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
1085 * config/arm/freebsd.h (LINK_SPEC): Likewise.
1086 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
1087 * config/bfin/linux.h (LINK_SPEC): Likewise.
1088 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
1089 * config/frv/linux.h (LINK_SPEC): Likewise.
1090 * config/i386/freebsd.h (LINK_SPEC): Likewise.
1091 * config/i386/freebsd64.h (LINK_SPEC): Likewise.
1092 * config/i386/linux.h (LINK_SPEC): Likewise.
1093 * config/i386/linux64.h (LINK_SPEC): Likewise.
1094 * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
1095 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
1096 * config/ia64/linux.h (LINK_SPEC): Likewise.
1097 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1098 * config/m32r/linux.h (LINK_SPEC): Likewise.
1099 * config/m68k/linux.h (LINK_SPEC): Likewise.
1100 * config/microblaze/linux.h (LINK_SPEC): Likewise.
1101 * config/mips/linux.h (LINK_SPEC): Likewise.
1102 * config/mips/linux64.h (LINK_SPEC): Likewise.
1103 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1104 * config/mn10300/linux.h (LINK_SPEC): Likewise.
1105 * config/netbsd-elf.h (LINK_SPEC): Likewise.
1106 * config/pa/pa-linux.h (LINK_SPEC): Likewise.
1107 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
1108 LINK_OS_LINUX_SPEC64): Likewise.
1109 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
1110 LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
1111 Likewise.
1112 * config/s390/linux.h (LINK_SPEC): Likewise.
1113 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
1114 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1115 * config/sparc/linux.h (LINK_SPEC): Likewise.
1116 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1117 LINK_SPEC): Likewise.
1118 * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
1119 * config/vax/linux.h (LINK_SPEC): Likewise.
1120 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1121
1122 2010-12-09 Joseph Myers <joseph@codesourcery.com>
1123
1124 * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
1125 * config/frv/frv.h (ASM_SPEC): Likewise.
1126 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
1127 * config/i386/sol2.h (ASM_SPEC): Likewise.
1128 * config/m68k/linux.h (ASM_SPEC): Likewise.
1129 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1130 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1131 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1132 * config/sol2.h (ASM_SPEC): Likewise.
1133 * config/sparc/linux.h (ASM_SPEC): Likewise.
1134 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1135 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1136 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
1137 * config/svr4.h (SVR4_ASM_SPEC): Likewise.
1138
1139 2010-12-09 Richard Guenther <rguenther@suse.de>
1140
1141 * reginfo.c (struct subregs_of_mode_node): Remove.
1142 (subregs_of_mode): Likewise.
1143 (som_hash): Likewise.
1144 (som_eq): Likewise.
1145 (invalid_mode_changes): New bitmap.
1146 (record_subregs_of_mode): Get subregs_of_mode argument.
1147 Fill in invalid_mode_changes bitmap.
1148 (find_subregs_of_mode): Get subregs_of_mode argument and pass
1149 it through.
1150 (init_subregs_of_mode): Adjust.
1151 (finish_subregs_of_mode): Likewise.
1152 (invalid_mode_change_p): Query invalid_mode_changes bitmap.
1153
1154 2010-12-09 Richard Guenther <rguenther@suse.de>
1155
1156 * ira.c (ira): Do not call finish_subregs_of_mode.
1157 * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
1158
1159 2010-12-09 Richard Guenther <rguenther@suse.de>
1160
1161 * rtl.h (invalid_mode_change_p): Adjust prototype.
1162 * reginfo.c (invalid_mode_change_p): Remove from argument.
1163 * ira-costs.c (print_allocno_costs): Adjust callers.
1164 (find_costs_and_classes): Likewise.
1165
1166 2010-12-09 Jakub Jelinek <jakub@redhat.com>
1167
1168 * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
1169 locg and stocg even in comment.
1170 (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
1171
1172 PR target/41082
1173 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
1174 instead of stve*x.
1175 (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
1176 of operand 0.
1177 * config/rs6000/altivec.md (VI_scalar): New mode attr.
1178 (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
1179 vector mode for operand 0, put operand 1 into UNSPEC.
1180
1181 2010-12-09 Yao Qi <yao@codesourcery.com>
1182
1183 * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
1184 PREFERRED_RENAME_CLASS.
1185
1186 2010-12-08 Ian Lance Taylor <iant@google.com>
1187
1188 * doc/sourcebuild.texi (Front End): Remove reference to
1189 snapshot-README and snapshot-index.html.
1190
1191 2010-12-08 Ian Lance Taylor <iant@google.com>
1192
1193 * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
1194 to update_web_docs_svn.
1195 (Front End): Likewise.
1196
1197 2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
1198
1199 gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
1200 x86_64-*-darwin* to with_cpu:-core2.
1201 gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
1202 with movd for darwin assembler.
1203 gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1204 (*vec_concatv2di_rex64_sse): Ditto.
1205
1206 2010-12-08 Richard Guenther <rguenther@suse.de>
1207 Sebastian Pop <sebastian.pop@amd.com>
1208
1209 PR tree-optimization/45230
1210 PR tree-optimization/45231
1211 PR tree-optimization/45370
1212 * sese.c (rename_uses): Returns a bool. Call
1213 recompute_tree_invariant_for_addr_expr only on the RHS of a
1214 GIMPLE_ASSIGN.
1215 (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
1216 rename_uses returns true.
1217 * tree-ssa-copy.c (replace_exp): Add a comment about calling
1218 fold_stmt_inplace after replace_exp.
1219
1220 2010-12-08 Mike Stump <mikestump@comcast.net>
1221
1222 PR debug/46749
1223 * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
1224 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1225 * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
1226 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1227 * collect2.c (post_ld_pass): Add.
1228 (process_args): Add.
1229 (maybe_run_lto_and_relink): Call post_ld_pass after ld.
1230 (main): Likewise. Call process_args.
1231
1232 2010-12-08 Jakub Jelinek <jakub@redhat.com>
1233
1234 PR middle-end/46844
1235 * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
1236 parameter.
1237
1238 2010-12-08 Richard Earnshaw <rearnsha@arm.com>
1239
1240 PR target/46631
1241 * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
1242 into a 16-bit instruction.
1243
1244 2010-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1245
1246 PR middle-end/42694
1247 * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
1248 where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
1249 instruction, but do optimize if y is 0.5 or 1./3. since that
1250 changes an expensive call into a cheaper one.
1251
1252 2010-12-08 Richard Guenther <rguenther@suse.de>
1253
1254 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
1255 instead of a division to divide by BITS_PER_UNIT.
1256
1257 2010-12-08 Richard Guenther <rguenther@suse.de>
1258
1259 * gimplify.c (gimple_tree_eq): Assert hashes are equal only
1260 when checking is enabled.
1261
1262 2010-12-07 Andrey Belevantsev <abel@ispras.ru>
1263
1264 PR target/43603
1265 * haifa-sched.c (sched_create_recovery_edges): Update
1266 dominator info.
1267 * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
1268 after deleting an empty block.
1269 (tidy_control_flow): Also verify dominators.
1270 (sel_remove_bb): Update dominator info after removing a block.
1271 (sel_redirect_edge_and_branch_force): Assert that no unreachable
1272 blocks will be created. Update dominator info.
1273 (sel_redirect_edge_and_branch): Update dominator info when
1274 basic blocks do not become unreachable.
1275 (sel_remove_loop_preheader): Update dominator info.
1276
1277 2010-12-07 Richard Guenther <rguenther@suse.de>
1278
1279 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1280 Reset alignment information.
1281 (bump_vector_ptr): Likewise.
1282
1283 2010-12-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1284
1285 PR middle-end/46671
1286 PR target/46685
1287 * config/pa/pa.c (pa_function_section): New function.
1288 (TARGET_ASM_FUNCTION_SECTION): Define.
1289
1290 2010-12-07 Ian Lance Taylor <iant@google.com>
1291 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1292
1293 PR bootstrap/46810
1294 * configure.ac: Disable AC_MSG_ERROR while looking for the C++
1295 preprocessor.
1296 * configure: Rebuild.
1297
1298 2010-12-07 Paul Koning <ni1d@arrl.net>
1299
1300 * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
1301 values with sign rather than as unsigned.
1302
1303 2010-12-07 Paul Koning <ni1d@arrl.net>
1304
1305 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
1306 (pdp11_function_section): New function.
1307
1308 2010-12-07 Joseph Myers <joseph@codesourcery.com>
1309
1310 * config/mcore/mcore.c Don't include assert.h.
1311 (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
1312 * config/spu/spu.c: Don't include assert.h.
1313 (spu_sms_res_mii): Use gcc_assert.
1314
1315 2010-12-07 Sebastian Pop <sebastian.pop@amd.com>
1316
1317 PR tree-optimization/42327
1318 * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
1319 instead of using integer_minus_one_node.
1320
1321 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
1322
1323 PR c++/45330
1324 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
1325 * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
1326
1327 2010-12-07 Richard Guenther <rguenther@suse.de>
1328
1329 PR tree-optimization/46832
1330 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
1331 that the call has a lhs.
1332
1333 2010-12-07 Yao Qi <yao@codesourcery.com>
1334
1335 * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
1336 * regrename.c (struct du_head): Add new element length.
1337 (sort_du_head, get_element, merge, merge_sort_comparison):
1338 New functions of merge sort implementation to du_head list.
1339 (regrename_optimize): Sort du_head linked list by length.
1340 Iterate registers in a preferred-register-first order.
1341 Move some code to ...
1342 (check_new_reg_p): here. New function.
1343 (create_new_chain): Initialize length.
1344 (scan_rtx_reg): Increase length for non-debug insns.
1345 * target.def: New hook preferred_rename_class.
1346 * targhook.c (default_preferred_rename_class): New.
1347 * targhook.h: Declare it.
1348 * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
1349 * doc/tm.texi: Regenerate.
1350
1351 2010-12-07 Jakub Jelinek <jakub@redhat.com>
1352
1353 PR debug/46799
1354 * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
1355 instead of BUILTINS_LOCATION.
1356 (create_loop_fn): Add LOC argument, pass it to build_decl instead of
1357 BUILTINS_LOCATION.
1358 (create_parallel_loop): Add LOC argument, use it for OMP clauses
1359 and GIMPLE_*OMP* statements.
1360 (gen_parallel_loop): Determine locus for the parallel loop, pass it
1361 to create_loop_fn and create_parallel_loop.
1362 * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
1363 set_curr_insn_source_location (UNKNOWN_LOCATION).
1364
1365 2010-12-07 Joern Rennecke <amylaar@spamcop.net>
1366 Richard Guenther <rguenther@suse.de>
1367
1368 PR target/46737
1369 * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
1370 (bfin_reorder_loops): Change type of index to intptr_t.
1371
1372 2010-12-07 Richard Guenther <rguenther@suse.de>
1373
1374 PR tree-optimization/46726
1375 * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
1376
1377 2010-12-07 Richard Guenther <rguenther@suse.de>
1378
1379 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
1380 virtual operands.
1381
1382 2010-12-07 Nicola Pero <nicola.pero@meta-innovation.com>
1383
1384 * c-parser.c (c_parser_typeof_specifier): Removed special
1385 treatment of objc_volatilized attribute for Objective-C.
1386
1387 2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
1388
1389 * ira.c (update_equiv_regs): Prohibit move insns if
1390 pressure-sensitive scheduling was done.
1391
1392 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
1393
1394 * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
1395 of c_process_expr_stmt() for the iterating and collection
1396 expressions of an Objective-C fast enumeration loop.
1397
1398 2010-12-06 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR debug/45997
1401 * dwarf2out.c (modified_type_die): If both is_const_type and
1402 is_volatile_type is set, start with DW_TAG_const_type or
1403 DW_TAG_volatile_type depending on where we get qualified type
1404 in the recursive call.
1405
1406 PR target/43897
1407 * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
1408 as a store into that register.
1409
1410 PR tree-optimization/46528
1411 PR debug/46338
1412 * profile.c (branch_prob): Make sure last is never set to a debug
1413 stmt.
1414
1415 PR debug/46771
1416 * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
1417 on DEBUG_INSNs.
1418
1419 PR rtl-optimization/46777
1420 * cfglayout.c (duplicate_insn_chain): Avoid duplicating
1421 also barrier after tablejump.
1422
1423 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
1424 Richard Henderson <rth@redhat.com>
1425
1426 PR target/46740
1427 * config/vax/vax.c (vax_output_int_move): Fold #if into if.
1428
1429 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
1430
1431 * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
1432 * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
1433
1434 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
1435
1436 PR target/46735
1437 * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
1438 (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
1439 (int12_operand, int_2word_operand, uint16_operand): Likewise.
1440 (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
1441 (uint5_operand, uint4_operand): Likewise.
1442 * config/frv/frv.h (IN_RANGE_P): Delete.
1443 (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
1444 (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
1445 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
1446 (CONST_OK_FOR_P): Likewise.
1447 * config/frv/frv.md (*movqicc_internal2_int): Likewise.
1448 (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
1449 (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
1450 (*movsicc_internal2_float, casesi): Likewise.
1451 * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
1452 (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
1453 (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
1454 (frv_split_cond_move, frv_rtx_costs): Likewise.
1455
1456 PR target/46739
1457 * config/mmix/mmix.c (mmix_intval): Split shift count.
1458
1459 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 * config/i386/i386.c (m_COREI7): New.
1462 (initial_ix86_tune_features): Turn on
1463 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
1464 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
1465
1466 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
1467
1468 * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
1469
1470 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1471 Sandy Bridge.
1472
1473 * config/i386/i386.c (override_options): Handle "corei7-avx".
1474
1475 * doc/invoke.texi: Document corei7-avx.
1476
1477 2010-12-06 Richard Guenther <rguenther@suse.de>
1478
1479 PR tree-optimization/46806
1480 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
1481 coalesce different types.
1482
1483 2010-12-06 Richard Guenther <rguenther@suse.de>
1484
1485 PR tree-optimization/46785
1486 * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
1487 call statements as operand definition.
1488
1489 2010-12-06 Mingjie Xing <mingjie.xing@gmail.com>
1490
1491 * doc/tm.texi.in: Fix typo.
1492 * doc/tm.texi: Regenerate.
1493
1494 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1495
1496 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
1497 last change.
1498
1499 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
1500
1501 * c-family/c-common.h: Removed the declarations of all the objc_
1502 callbacks, and moved them into c-objc.h. Removed
1503 objc_ivar_visibility_kind and moved it into c-objc.h.
1504 * c-family/c-objc.h: New file.
1505 * c-family/c-common.c: Include c-objc.h.
1506 * c-family/c-format.c: Same change.
1507 * c-family/stub-objc.c: Same change.
1508 * c-decl.c: Include c-family/c-objc.h.
1509 * c-parser.c: Same change.
1510 * c-typeck.c: Same change.
1511 * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
1512 * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
1513 (c-parser.o): same change.
1514 (c-typeck.o): Same change.
1515 (c-family/c-format.o): Same change.
1516 (c-family/stub-objc.o): Same change.
1517 (c-family/c-common.o): Same change.
1518 (PLUGIN_HEADERS): Added c-family/c-objc.h.
1519
1520 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1521
1522 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Ignore
1523 --with-dwarf2 option.
1524
1525 2010-12-03 Jan Hubicka <jh@suse.cz>
1526
1527 * lto-streamer-in.c (input_cfg): Fix pasto.
1528
1529 2010-12-03 Jan Hubicka <jh@suse.cz>
1530
1531 * ipa.c (cgraph_externally_visible_p): Do not localize builtins
1532 and functions with user asm defined names.
1533 (varpool_externally_visible_p): Do not localize vars with user
1534 asm defined names.
1535
1536 2010-12-03 Jan Hubicka <jh@suse.cz>
1537
1538 * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
1539 to prevent mangling with lto frontend.
1540
1541 2010-12-03 Jan Hubicka <jh@suse.cz>
1542
1543 * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
1544 * lto-cgraph.c (merge_profile_summaries): Fix thinko.
1545
1546 2010-12-03 Jan Hubicka <jh@suse.cz>
1547
1548 PR tree-optimization/46760
1549 * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
1550 * cgraph.h (struct cgraph_node): Add count_materialization_scale.
1551 * lto-cgraph.c (lto_output_edge): Fix assert.
1552 (lto_output_node): Output count_materialization_scale.
1553 (output_profile_summary): Output only runs and sum_max.
1554 (input_node): Input count_materialization_scale.
1555 (input_profile_summary): Read data into file specific gcov summary.
1556 (merge_profile_summaries): New function.
1557 (input_cgraph): Update call of input_profile_summary;
1558 call merge_profile_summaries.
1559 * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
1560 rescale counts at read in.
1561 (intput_bb): Likewise.
1562 (input_function): Update call of input_bb.
1563 (lto_read_body): Update call of input_cfg.
1564 * lto-streamer.h: Inlclude gcov-io.h
1565 (lto_file_decl_data): Add gcov_ctr_summary.
1566
1567 2010-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
1568
1569 * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
1570 (Cond Exec Macros): ... to this.
1571 * doc/tm.texi: Regenerate.
1572
1573 2010-12-03 Jason Merrill <jason@redhat.com>
1574
1575 PR debug/46123
1576 * dwarf2out.c (gen_tagged_type_die): Don't put local types in
1577 a declaration DIE.
1578
1579 2010-12-03 Nathan Froyd <froydnj@codesourcery.com>
1580
1581 * config/arm/arm.c (arm_legitimate_index_p): Split
1582 VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases. Permit
1583 slightly larger constants in the latter case.
1584 (thumb2_legitimate_index_p): Likewise.
1585
1586 2010-12-03 Joseph Myers <joseph@codesourcery.com>
1587
1588 * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
1589 * gcc.c (cc1_options): Add %{Qy:}.
1590
1591 2010-12-03 Joseph Myers <joseph@codesourcery.com>
1592
1593 * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
1594 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
1595 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
1596
1597 2010-12-03 Alexander Monakov <amonakov@ispras.ru>
1598
1599 PR rtl-optimization/45354
1600 * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
1601 (bb_has_removable_jump_to_p): This. Update all callers. Make static.
1602 Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps.
1603 * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
1604
1605 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1606
1607 * basic-block.h (struct edge_prediction): Remove forward
1608 declaration.
1609 * tree-flow.h (struct edge_prediction): Move from here...
1610 * predict.c (struct edge_prediction): ...to here.
1611 * cselib.h (struct elt_list): Move from here...
1612 * cselib.c (struct elt_list): ...to here.
1613
1614 2010-12-02 Ian Lance Taylor <iant@google.com>
1615
1616 * gcc.c (default_compilers): Add entry for ".go".
1617 * common.opt: Add -static-libgo as a driver option.
1618 * doc/install.texi (Configuration): Mention libgo as an option for
1619 --enable-shared. Mention go as an option for --enable-languages.
1620 * doc/invoke.texi (Overall Options): Mention .go as a file name
1621 suffix. Mention go as a -x option.
1622 * doc/frontends.texi (G++ and GCC): Mention Go as a supported
1623 language.
1624 * doc/sourcebuild.texi (Top Level): Mention libgo.
1625 * doc/standards.texi (Standards): Add section on Go language.
1626 Move references for other languages into their own section.
1627 * doc/contrib.texi (Contributors): Mention that I contributed the
1628 Go frontend.
1629
1630 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1631
1632 * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
1633 (const_call_expr_arg_iterator_d): Likewise.
1634 (expanded_location): Likewise.
1635 * c-tree.h (struct c_arg_tag_d): Likewise.
1636 * dwarf2out.c (struct cfa_loc): Likewise.
1637 (struct skeleton_chain_struct): Likewise.
1638 * except.c (struct ttypes_filter): Likewise.
1639 * cselib.h (struct cselib_val_struct): Likewise.
1640 (elt_loc_list): Likewise.
1641 (elt_list): Likewise.
1642 * varasm.c (struct addr_const): Likewise.
1643 * tree-flow.h (struct edge_prediction): Likewise.
1644 (struct int_tree_map): Likewise.
1645 (struct _edge_var_map): Likewise.
1646
1647 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
1648
1649 PR target/46768
1650 * config/i386/i386.c (initial_ix86_tune_features): Turn on
1651 X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
1652
1653 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
1654
1655 * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
1656
1657 2010-12-02 Ian Lance Taylor <iant@google.com>
1658
1659 * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX. Check for C++
1660 header files unordered_map, tr1/unordered_map, and ext/hash_map.
1661 * configure, config.in: Rebuild.
1662
1663 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
1664
1665 PR target/46685
1666 * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
1667 (sparc_expand_move): Call it to decide whether to emit the special
1668 mov{si,di}_pic_label_ref patterns.
1669 (sparc_legitimize_pic_address): Call it to decide whether to emit
1670 the regular PIC sequence for labels. Fix long line.
1671 (sparc_file_end): Set is_thunk for the PIC helper.
1672
1673 2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
1674
1675 * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
1676 for a non-shared type.
1677
1678 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
1679
1680 PR middle-end/45297
1681 * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
1682 with MEM_REFs as POINTER_PLUS_EXPR.
1683
1684 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1685
1686 * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
1687 config/sparc/linux.h, config/sparc/linux64.h: Remove comments
1688 mentioning /lib/elf.
1689
1690 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1691
1692 * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
1693 * config/frv/frv.h (LINK_SPEC): Remove %{b}.
1694 * config/i386/netware.h (LINK_SPEC): Remove %{b}.
1695 * config/i386/nto.h (LINK_SPEC): Remove %{b}.
1696 * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
1697 * config/sol2.h (LINK_SPEC): Remove %{b}.
1698 * config/svr4.h (LINK_SPEC): Remove %{b}.
1699
1700 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1701
1702 * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
1703 * config/i386/linux.h (LINK_SPEC): Cut long comment.
1704 * config/i386/netware.h (LINK_SPEC): Remove %{V}.
1705 * config/m32r/linux.h (LINK_SPEC): Cut long comment.
1706 * config/m68k/linux.h (LINK_SPEC): Cut long comment.
1707 * config/sparc/linux.h (LINK_SPEC): Cut long comment.
1708 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1709 * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
1710 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1711 * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
1712 %{v:%{!V:-V}}.
1713
1714 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1715
1716 * gcc.c (trad_capable_cpp, default_compilers): Don't handle
1717 -ftraditional.
1718
1719 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1720
1721 * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
1722 * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
1723 * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
1724 * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
1725 * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
1726 * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
1727 * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
1728 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1729 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
1730 * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
1731 * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
1732 * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
1733 * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
1734 * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
1735 * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
1736 * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
1737 * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1738 * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
1739
1740 2010-12-02 Paul Koning <ni1d@arrl.net>
1741
1742 * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
1743 opcodes if CC_NO_OVERFLOW is set.
1744 (notice_update_cc_on_set): Correct setting of CC0 as a side
1745 effect; set CC_NO_OVERFLOW for cases where C flag is not
1746 meaningful.
1747
1748 2010-12-02 Ian Lance Taylor <iant@google.com>
1749
1750 * doc/install.texi (Configuration): Update default for
1751 --with-boot-ldflags.
1752
1753 2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
1754
1755 PR c/45062
1756 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
1757 !funcdef_flag.
1758
1759 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
1760
1761 PR tree-optimization/45199
1762 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
1763 (stores_zero_from_loop): Call
1764 mem_write_stride_of_same_size_as_unit_type_p.
1765 * tree-data-ref.h (stride_of_unit_type_p): New.
1766 * tree-loop-distribution.c (generate_memset_zero): Simplified.
1767 Call stride_of_unit_type_p.
1768 (build_rdg_partition_for_component): Do not call
1769 rdg_flag_similar_memory_accesses when
1770 flag_tree_loop_distribute_patterns is set.
1771
1772 2010-12-02 Richard Guenther <rguenther@suse.de>
1773
1774 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
1775 sign-changing conversions for induction detection.
1776
1777 2010-12-02 Richard Guenther <rguenther@suse.de>
1778
1779 PR tree-optimization/46723
1780 * tree-vect-loop.c (get_initial_def_for_induction): Strip
1781 conversions from the induction evolution and apply it to
1782 the result instead.
1783 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
1784 assigns for induction defs.
1785
1786 2010-12-02 Richard Guenther <rguenther@suse.de>
1787
1788 * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
1789 the case we need to split the edge and not the block.
1790
1791 2010-12-02 Bernd Schmidt <bernds@codesourcery.com>
1792
1793 DFA model for Core 2 and Core i7 scheduling.
1794
1795 * config/i386/core2.md: New DFA model for Core 2 and Core i7.
1796 * config/i386/i386.c (ix86_option_override_internal): Update entries
1797 for Core 2 and Core i7.
1798 (ix86_issue_rate): Set issue rate to 3 [be realistic].
1799 * config/i386/i386.md: Include "core2.md".
1800 (define_attr cpu): Add "corei7".
1801
1802 2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
1803
1804 Define tuning for Core 2 and Core i7.
1805
1806 * config/i386/i386-c.c (ix86_target_macros_internal): Update.
1807 * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
1808 (m_CORE2): Replace with m_CORE2_{32,64}.
1809 (m_CORE2I7{,_32,_64}): New macros.
1810 (m_GENERIC32, m_GENERIC64): Update.
1811 (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
1812 (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
1813 set m_CORE2I7_64 iff m_GENERIC64.
1814 (processor_target_table): Use generic costs for Core 2 and Core i7.
1815 (ix86_option_override_internal): Update entries for Core 2 and Core i7.
1816 (ix86_issue_rate): Remove entry for Core 2.
1817 (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
1818 * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
1819 (TARGET_CORE2): Update.
1820 (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
1821 (PROCESSOR_CORE2): Remove.
1822
1823 2010-12-02 Richard Guenther <rguenther@suse.de>
1824
1825 * lto-streamer.h (LTO_major_version): Bump to 2.
1826
1827 2010-12-02 Richard Guenther <rguenther@suse.de>
1828
1829 PR lto/44871
1830 * gimple.c (canonical_type_hash_cache): New hashtable.
1831 (gimple_type_hash): Make a wrapper around ...
1832 (gimple_type_hash_1): ... this. Take gtc_mode argument.
1833 (gimple_canonical_type_hash): Likewise.
1834 (gtc_visit): Take a gtc_mode argument.
1835 (gimple_types_compatible_p_1): Likewise. Do not compare struct
1836 tag names or field names when computing canonical types.
1837 (gimple_types_compatible_p): Adjust.
1838 (visit): Take a gtc_mode argument.
1839 (iterative_hash_gimple_type): Likewise. Do not hash struct tag
1840 names or field names when computing hashes of canonical types.
1841 (gimple_register_canonical_type): Use gimple_canonical_type_hash
1842 for the hash.
1843 (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
1844 (free_gimple_type_tables): Free canonical_type_hash_cache.
1845
1846 2010-12-02 Richard Guenther <rguenther@suse.de>
1847 Ira Rosen <irar@il.ibm.com>
1848
1849 PR tree-optimization/46663
1850 * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
1851 FUNCTION_DECL exists and that it's a builtin.
1852
1853 2010-12-02 Jie Zhang <jie@codesourcery.com>
1854
1855 PR middle-end/46674
1856 * varasm.c (compute_visible_aliases): Handle user set
1857 assembler name.
1858
1859 2010-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1860
1861 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1862 thinko regarding setting -mno-<xxx> debug switches.
1863 (rs6000_rtx_costs): Add FMA. Delete old rtl based FMA costs.
1864
1865 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1866
1867 * intl.c: Don't include tm.h.
1868 * Makefile.in (intl.o): Don't depend on $(TM_H).
1869
1870 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1871
1872 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
1873 unused warning.
1874 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1875
1876 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1877
1878 * graphite-sese-to-poly.c (analyze_drs): Removed.
1879 (build_scop_drs): Do not call analyze_drs.
1880 (analyze_drs_in_stmts): New.
1881 (insert_stmts): New.
1882 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
1883 (insert_out_of_ssa_copy_on_edge): Same.
1884 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
1885 (rewrite_phi_out_of_ssa): Same.
1886 (rewrite_cross_bb_scalar_dependence): Same.
1887 (split_reduction_stmt): Move data references in the new basic blocks.
1888 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
1889
1890 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1891
1892 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
1893
1894 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1895
1896 PR middle-end/45297
1897 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
1898 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
1899 * graphite-poly.h (new_poly_bb): Update declaration.
1900 (gbb_from_bb): Moved here...
1901 (pbb_from_bb): New.
1902 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
1903 Removed.
1904 (graphite_stmt_p): Removed.
1905 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
1906 sbitmap reductions. Always build a gimple_bb_p. Do not call
1907 new_poly_bb.
1908 (build_scop_bbs_1): Do not pass in sbitmap reductions.
1909 (build_scop_bbs): Same.
1910 (gbb_from_bb): ... from here.
1911 (add_conditions_to_constraints): Moved up.
1912 (analyze_drs): New.
1913 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
1914 not contain data references.
1915 (new_pbb_from_pbb): New.
1916 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
1917 block is split.
1918 (rewrite_close_phi_out_of_ssa): Update call to
1919 insert_out_of_ssa_copy_on_edge.
1920 (rewrite_reductions_out_of_ssa): Now static.
1921 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1922 (split_pbb): New.
1923 (split_reduction_stmt): Call split_pbb.
1924 (translate_scalar_reduction_to_array): Pass in the scop, do not
1925 pass in the sbitmap reductions.
1926 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1927 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1928 (rewrite_commutative_reductions_out_of_ssa): Same.
1929 (build_poly_scop): Call build_scop_bbs,
1930 rewrite_commutative_reductions_out_of_ssa,
1931 rewrite_reductions_out_of_ssa, and
1932 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
1933 before scop_to_lst.
1934 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1935 Removed declaration.
1936 (rewrite_reductions_out_of_ssa): Same.
1937 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1938 (build_scop_bbs): Same.
1939 * graphite.c (graphite_transform_loops): Do not initialize reductions.
1940 Do not call build_scop_bbs,
1941 rewrite_commutative_reductions_out_of_ssa,
1942 rewrite_reductions_out_of_ssa, and
1943 rewrite_cross_bb_scalar_deps_out_of_ssa.
1944 * sese.h (struct gimple_bb): Add field pbb.
1945 (GBB_PBB): New.
1946
1947 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1948
1949 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1950 New.
1951 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
1952 handle_scalar_deps_crossing_scop_limits.
1953 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1954 after the scop. Update call to rewrite_cross_bb_scalar_deps.
1955
1956 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1957
1958 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1959 when replacing a constant in an ADDR_EXPR.
1960
1961 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1962
1963 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1964 for the stride.
1965 (lst_do_strip_mine): Same.
1966 (scop_do_strip_mine): Same.
1967 * graphite-poly.c (apply_poly_transforms): Update call to
1968 scop_do_strip_mine.
1969 * graphite-poly.h (scop_do_strip_mine): Update declaration.
1970
1971 2010-12-01 Jan Hubicka <jh@suse.cz>
1972
1973 * tree.c (build_common_builtin_nodes): Do not initialize
1974 BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1975 * builtins.c (expand_builtin_profile_func): Remove.
1976 (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1977 BUILT_IN_PROFILE_FUNC_EXIT.
1978 * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1979 (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1980 * gimplify.c (gimplify_function_tree): Reorganize code calling
1981 profiling functions.
1982
1983 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1984
1985 * opts.c: Expand comment on tm.h include.
1986
1987 2010-12-01 Yao Qi <yao@codesourcery.com>
1988
1989 * config/arm/predicates.md ("vfp_register_operand"): Return true for
1990 VFP_D0_D7_REGS classes.
1991
1992 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1993
1994 * common.opt (flag_stack_check): New Variable entry.
1995 (fcompare-debug-second): Use Var.
1996 * flags.h (flag_compare_debug, flag_stack_check): Remove.
1997 * opts.c (flag_compare_debug): Remove.
1998 (common_handle_option): Don't handle OPT_fcompare_debug_second.
1999 Set opts->x_flag_stack_check for OPT_fstack_check_.
2000 * toplev.c (flag_stack_check): Remove.
2001
2002 2010-12-01 Joseph Myers <joseph@codesourcery.com>
2003
2004 * common.opt (main_input_filename, main_input_basename,
2005 main_input_baselength): New Variable entries. From toplev.c.
2006 * final.c (output_quoted_string): Move from toplev.c.
2007 * output.h (output_quoted_string): Move from toplev.h.
2008 * opts-global.c (read_cmdline_options): Use gcc_options pointer to
2009 access main_input_filename, main_input_baselength and
2010 main_input_basename.
2011 * targhooks.c: Include intl.h and opts.h.
2012 (option_affects_pch_p, default_get_pch_validity): Move from
2013 toplev.c.
2014 * targhooks.h (option_affects_pch_p, default_get_pch_validity):
2015 Move from toplev.h.
2016 * toplev.c (main_input_filename, main_input_basename,
2017 main_input_baselength): Move to common.opt.
2018 (output_quoted_string): Move to final.c.
2019 (warn_deprecated_use): Move to tree.c.
2020 (option_affects_pch_p, default_get_pch_validity,
2021 pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
2022 * toplev.h (skip_leading_substring): Move to tree-dump.c.
2023 (warn_deprecated_use): Move to tree.h.
2024 (output_quoted_string): Move to output.h.
2025 (main_input_filename, main_input_basename, main_input_baselength):
2026 Move to common.opt.
2027 (default_get_pch_validity, default_pch_valid_p): Move to
2028 targhooks.c.
2029 * tree-dump.c (skip_leading_substring): Move from toplev.h.
2030 * tree.c (warn_deprecated_use): Move from toplev.c.
2031 * tree.h (warn_deprecated_use): Move from toplev.h.
2032 * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
2033 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
2034 config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
2035 config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
2036 config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
2037 config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
2038 config/mcore/mcore.c, config/mep/mep.c,
2039 config/microblaze/microblaze.c, config/mips/mips.c,
2040 config/mmix/mmix.c, config/mn10300/mn10300.c,
2041 config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
2042 config/picochip/picochip.c, config/s390/s390.c,
2043 config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
2044 config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
2045 config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
2046 graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
2047 varasm.c, xcoffout.c: Don't include toplev.h.
2048 * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
2049 gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
2050 varasm.o, xcoffout.o): Update dependencies.
2051 * config/arm/t-arm (arm.o): Update dependencies.
2052 * config/spu/t-spu-elf (spu.o): Update dependencies.
2053
2054 2010-12-01 Richard Guenther <rguenther@suse.de>
2055
2056 PR tree-optimization/46730
2057 * value-prof.c (gimple_ic): Always generate a separate merge BB.
2058
2059 2010-11-30 Ian Lance Taylor <iant@google.com>
2060
2061 * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V. Remove
2062 all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
2063 * config/i386/linux64.h (ASM_SPEC): Likewise.
2064 * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
2065 * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
2066 * config/i386/vxworks.h (ASM_SPEC): Likewise.
2067 * config/i386/x86-64.h (ASM_SPEC): Likewise.
2068 * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
2069 * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
2070
2071 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2072
2073 * c-decl.c (finish_function): Call objc_finish_function in
2074 Objective-C.
2075 * c-typeck.c (convert_for_assignment): Do not call
2076 objc_type_quals_match().
2077
2078 2010-11-30 Richard Guenther <rguenther@suse.de>
2079
2080 PR tree-optimization/46722
2081 * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
2082 operands as arguments.
2083 (execute_optimize_widening_mul): Also handle power of two as
2084 multiplication.
2085
2086 2010-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2087
2088 PR middle-end/46709
2089 * cgraphunit.c (process_function_and_variable_attributes): Fix
2090 cut'n'pasteo.
2091
2092 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2093
2094 * hwint.c: New. Extracted from toplev.c.
2095 * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2096 Move from toplev.h.
2097 * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2098 Move to hwint.c.
2099 * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2100 Move to hwint.h.
2101 * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
2102 explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
2103 ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
2104 real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
2105 stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
2106 tree-ssa-loop-niter.c, tree-vect-data-refs.c,
2107 tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
2108 tree-vrp.c: Don't include toplev.h.
2109 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
2110 genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
2111 toplev.h in generated output.
2112 * Makefile.in (OBJS-common): Add hwint.o.
2113 Dependencies for above files changed to remove toplev.h.
2114 (hwint.o): New.
2115 (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
2116 insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
2117 toplev.h.
2118 * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
2119 * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
2120
2121 2010-11-30 Richard Guenther <rguenther@suse.de>
2122
2123 PR tree-optimization/46717
2124 * value-prof.c (gimple_ic): Preserve EH edges of the indirect
2125 call. Manually create EH edges for the direct call and update
2126 target PHI nodes.
2127
2128 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2129
2130 * diagnostic-core.h: Include bversion.h.
2131 * toplev.h: Don't include input.h or bversion.h.
2132 (parse_optimize_options): Don't declare here.
2133 * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
2134 caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
2135 combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
2136 config/host-darwin.c, config/i386/host-cygwin.c,
2137 config/i386/host-mingw32.c, config/i386/msformat-c.c,
2138 config/i386/netware.c, config/i386/nwld.c,
2139 config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
2140 config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
2141 config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
2142 config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
2143 config/score/score3.c, config/score/score7.c,
2144 config/sh/symbian-base.c, config/sh/symbian-c.c,
2145 config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
2146 config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
2147 cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
2148 fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
2149 graphite-blocking.c, graphite-clast-to-gimple.c,
2150 graphite-dependences.c, graphite-flattening.c,
2151 graphite-interchange.c, graphite-poly.c,
2152 graphite-scop-detection.c, graphite.c, haifa-sched.c,
2153 implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
2154 ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
2155 lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
2156 lto-opts.c, lto-section-in.c, lto-section-out.c,
2157 lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
2158 params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
2159 regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
2160 sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
2161 sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
2162 tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
2163 tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
2164 tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
2165 tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
2166 tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2167 tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
2168 include toplev.h.
2169 * Makefile.in (TOPLEV_H): Remove. All uses changed to use
2170 toplev.h. Dependencies for above files and c-family files changed
2171 to remove $(TOPLEV_H) or toplev.h.
2172 (C_TREE_H): Don't include $(TOPLEV_H).
2173 (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h. Add
2174 bversion.h.
2175 * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
2176 config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
2177 config/t-darwin, config/t-sol2,
2178 config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
2179 Dependencies for above files changed to remove $(TOPLEV_H) or
2180 toplev.h.
2181
2182 2010-11-30 Richard Guenther <rguenther@suse.de>
2183
2184 PR lto/44986
2185 * gcc.c (main): Use the first input with a compiler as infile
2186 for link spec processing.
2187
2188 2010-11-30 Richard Guenther <rguenther@suse.de>
2189
2190 PR lto/45949
2191 * cgraphunit.c (ipa_passes): Stop after errors from
2192 small IPA passes.
2193
2194 2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
2195
2196 * gcc-plugin.h: Include coretypes.h.
2197 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
2198
2199 2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2200
2201 * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
2202 * ggc-none.c (ggc_internal_alloc_zone_stat)
2203 (ggc_internal_cleared_alloc_zone_stat): New.
2204
2205 2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2206
2207 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
2208 TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
2209 (rs6000_emit_prologue): Don't set PIC register if
2210 TARGET_SINGLE_PIC_BASE.
2211 * config/rs6000/rs6000.opt (msingle-pic-base): New option.
2212 * doc/invoke.texi (msingle-pic-base): Document.
2213
2214 2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
2215
2216 PR driver/46712
2217 * exec-tool.in (id): New.
2218 Check and export LT_RCU_$id instead of LT_RCU.
2219
2220 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
2221
2222 PR tree-optimization/46675
2223 * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
2224 in offset calculation.
2225
2226 2010-11-29 Jan Hubicka <jh@suse.cz>
2227
2228 * collect2.c (main): Do not imply verbose output with
2229 LTO and linker plugin.
2230
2231 2010-11-29 Dodji Seketeli <dodji@redhat.com>
2232
2233 * dwarf2out.c (print_die): Print the address of the current DIE or
2234 of any DIE referenced by the current one.
2235
2236 2010-11-29 Dodji Seketeli <dodji@redhat.com>
2237
2238 PR debug/46101
2239 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
2240 function.
2241 (scope_die_for, gen_type_die_for_member): Replace uses of
2242 lookup_type_die with use of lookup_type_die_strip_naming_typedef.
2243
2244 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
2245
2246 * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
2247 (darwin_asm_declare_object_name): Correct spelling.
2248 (darwin_output_aligned_bss): Likewise.
2249
2250 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
2251 Mike Stump <mrs@gcc.gnu.org>
2252
2253 PR target/26427
2254 PR target/33120
2255 PR testsuite/35710
2256 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
2257 (ASM_OUTPUT_LOCAL): Likewise.
2258 * config/darwin-protos.h (darwin_asm_declare_object_name): New.
2259 (darwin_output_aligned_bss): Likewise.
2260 (darwin_asm_output_aligned_decl_local): Likewise.
2261 (darwin_asm_output_aligned_decl_common): Likewise.
2262 (darwin_use_anchors_for_symbol_p): Likewise.
2263 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
2264 (TARGET_ASM_OUTPUT_ANCHOR): Define.
2265 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
2266 (DARWIN_SECTION_ANCHORS): Set to 1.
2267 * config/darwin.c (emit_aligned_common): New var.
2268 (darwin_init_sections): Check that the Darwin private zero-size section
2269 marker is in range.
2270 (darwin_text_section): Check for zero-sized objects.
2271 (darwin_mergeable_string_section): Likewise.
2272 (darwin_mergeable_constant_section): Likewise.
2273 (machopic_select_section): Adjust to check for zero-sized objects.
2274 Assert that OBJC meta data are non-zero sized.
2275 (darwin_asm_declare_object_name): New.
2276 (darwin_asm_declare_constant_name): Adjust for zero-sized
2277 object sections.
2278 (BYTES_ZFILL): Define.
2279 (darwin_emit_weak_or_comdat): New.
2280 (darwin_emit_local_bss): New.
2281 (darwin_emit_common): New.
2282 (darwin_output_aligned_bss): New.
2283 (darwin_asm_output_aligned_decl_common): New.
2284 (darwin_asm_output_aligned_decl_local): New.
2285 (darwin_file_end): Disable subsections_via_symbols when section
2286 anchoring is active.
2287 (darwin_asm_output_anchor): Re-enable.
2288 (darwin_use_anchors_for_symbol_p): New.
2289 (darwin_override_options): Check for versions that can emit
2290 aligned common. Update usage of flags to current.
2291 * config/darwin-sections.def: Update comments and flags for
2292 non-anchor sections. zobj_const_section, zobj_data_section,
2293 zobj_bss_section, zobj_const_data_section: New.
2294 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
2295 (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
2296 (L2_MAX_OFILE_ALIGNMENT): Define.
2297 (ASM_OUTPUT_ALIGNED_BSS): Define.
2298 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2299 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2300 (SECTION_NO_ANCHOR): Define.
2301 (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
2302 (DARWIN_SECTION_ANCHORS): Define with a default of 0.
2303
2304 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2305
2306 * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
2307 Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
2308 (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
2309 Conditionally define.
2310 (GET_ENVIRONMENT): Poison.
2311 * configure.ac: Don't test for mincore.
2312 * configure: Regenerate.
2313 * config.in: Regenerate.
2314 * collect2-aix.c: Don't include <sys/mman.h>.
2315 * collect2.c: Don't include <signal.h>.
2316 (SIGCHLD): Don't define.
2317 (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
2318 * config/alpha/alpha.c: Include "splay-tree.h" instead of
2319 <splay-tree.h>.
2320 * config/arm/arm.c (arm_target_help): Use getenv instead of
2321 GET_ENVIRONMENT.
2322 * config/avr/driver-avr.c: Don't include <stdlib.h>.
2323 * config/frv/frv.c: Don't include <ctype.h>.
2324 * config/host-darwin.c: Don't include <sys/mman.h>.
2325 * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
2326 (MAP_FAILED): Don't define.
2327 * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
2328 * config/host-solaris.c: Don't include <sys/mman.h>.
2329 * config/i386/cygming.h: Don't include <stdio.h>.
2330 * config/i386/driver-i386.c: Don't include <stdlib.h>.
2331 * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
2332 * config/iq2000/iq2000.c: Don't include <signal.h>.
2333 * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
2334 * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
2335 * config/mep/mep-pragma.c: Don't include <stdio.h>.
2336 * config/microblaze/microblaze.c: Don't include <signal.h>.
2337 * config/mips/mips.c: Don't include <signal.h>.
2338 * config/rs6000/host-darwin.c: Don't include <signal.h>.
2339 * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
2340 * defaults.h (GET_ENVIRONMENT): Don't define.
2341 * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
2342 * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
2343 (SIGCHLD, MAP_FAILED, kill): Don't define.
2344 (process_command): Use getenv instead of GET_ENVIRONMENT.
2345 * genhooks.c: Don't include <string.h>.
2346 * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
2347 <sys/types.h>.
2348 (MAP_FAILED): Don't define.
2349 * ggc-page.c Don't include <sys/mman.h>.
2350 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2351 * ggc-zone.c: Don't include <sys/mman.h>.
2352 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2353 * graph.c: Include "config.h" instead of <config.h>.
2354 * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
2355 * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
2356 (SIGCHLD, kill): Don't define.
2357 * mips-tfile.c: Don't include <signal.h>.
2358 * opts.c: Don't include <signal.h> or <sys/resource.h>.
2359 (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
2360 * passes.c: Don't include <signal.h>, <sys/resource.h> or
2361 <sys/times.h>.
2362 * sparseset.h: Don't include <assert.h>.
2363 * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
2364 * tlink.c: Don't include "libiberty.h".
2365 * toplev.c: Don't include <signal.h> or <sys/times.h>.
2366 * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
2367 * tree-switch-conversion.c: Don't include <signal.h>.
2368 * vmsdbgout.c: Don't include <errno.h> or <string.h>.
2369
2370 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
2371
2372 * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
2373 c_parser_objc_try_catch_finally_statement for consistency with the
2374 C++ parser. Parse @catch(...) and pass NULL_TREE to
2375 objc_begin_catch_clause() in that case. Improved error recovery.
2376 Reorganized code to be almost identical to
2377 cp_parser_objc_try_catch_finally_statement.
2378
2379 2010-11-29 Joern Rennecke <amylaar@spamcop.net>
2380
2381 PR tree-optimization/46621
2382 * gimple.h: Don't include tm.h or hard-reg-set.h .
2383 * Makefile.in (GIMPLE_H): Remove $(TM_H).
2384
2385 PR bootstrap/44756
2386 * cppbuiltin.c: Include target.h .
2387 (define_builtin_macros_for_type_sizes):
2388 Use targetm.float_words_big_endian.
2389
2390 2010-11-27 Jan Hubicka <jh@suse.cz>
2391
2392 * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
2393 and output cold_text_section_label.
2394 (dwarf2out_init): Don't do that there.
2395 (dwarf2out_finish): Handle cold section end label only if cold
2396 section was used.
2397
2398 2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
2399
2400 * tree-nested.c (remap_vla_decls): Fully expand value expressions of
2401 VLA variables.
2402
2403 2010-11-27 Richard Guenther <rguenther@suse.de>
2404
2405 * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
2406 (gimple_assign_ssa_name_copy_p): Likewise.
2407 (gimple_assign_unary_nop_p): Use is_gimple_assign.
2408 (is_gimple_cast): Remove.
2409 (gimple_assign_single_p): Move ...
2410 * gimple.h (gimple_assign_single_p): ... here.
2411 (is_gimple_cast): Remove.
2412 (gimple_assign_rhs_code): Simplify.
2413 * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
2414 instead of is_gimple_cast.
2415 * ipa-type-escape.c (look_for_casts): Likewise.
2416
2417 2010-11-26 Joseph Myers <joseph@codesourcery.com>
2418
2419 * doc/options.texi (Enum, EnumValue): Document new record types.
2420 (Enum): Document new option flag.
2421 * opt-functions.awk
2422 * optc-gen.awk: Handle enumerated option arguments.
2423 * opth-gen.awk: Handle enumerated option arguments.
2424 * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
2425 enum_value_to_arg): New.
2426 (decode_cmdline_option): Handle enumerated arguments.
2427 (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
2428 (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
2429 * opts.c (print_filtered_help, print_specific_help): Take
2430 lang_mask arguments.
2431 (print_filtered_help): Handle printing values of enumerated
2432 options. Print possible arguments for enumerated options.
2433 (print_specific_help): Update call to print_filtered_help.
2434 (common_handle_option): Update calls to print_specific_help. Use
2435 value rather than arg for OPT_fdiagnostics_show_location_. Don't
2436 handle OPT_ffp_contract_, OPT_fexcess_precision_,
2437 OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
2438 OPT_fira_region_ here.
2439 * opts.h (enum cl_var_type): Add CLVC_ENUM.
2440 (struct cl_option): Add var_enum.
2441 (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
2442 struct cl_enum, cl_enums, cl_enums_count): New.
2443 (CL_ERR_ENUM_ARG): Define.
2444 (CL_ERR_NEGATIVE): Update value.
2445 (enum_value_to_arg): Declare.
2446 * common.opt (flag_ira_algorithm, flag_ira_region,
2447 flag_fp_contract_mode, flag_excess_precision_cmdline,
2448 default_visibility, flag_tls_default): Remove Variable entries.
2449 (help_enum_printed): New Variable.
2450 (fdiagnostics-show-location=): Use Enum. Add associated
2451 SourceInclude, Enum and EnumValue entries.
2452 (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
2453 ftls-model=, fvisibility=): Use Enum, Var and Init. Add
2454 associated Enum and EnumValue entries.
2455
2456 2010-11-26 Joern Rennecke <amylaar@spamcop.net>
2457
2458 PR target/46623
2459 * config/microblaze/microblaze.c (microblaze_block_move_straight):
2460 Use XALLOCAVEC.
2461 (microblaze_option_override): Don't use C++ style comments.
2462 (save_restore_insns): Remove unused variable base_offset.
2463 (microblaze_expand_prologue): Remove unused variable insn.
2464 (microblaze_secondary_reload): Adjust type to match target.h .
2465 (microblaze_elf_in_small_data_p): Move declarations to start of block.
2466 (microblaze_expand_move): Likewise.
2467 * config/microblaze/microblaze.h (LARGE_INT):
2468 Avoid signed / unsigned comparisons.
2469 (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
2470 (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
2471 (ASM_FINISH_DECLARE_OBJECT): Likewise. Constify name.
2472
2473 2010-11-26 Michael Matz <matz@suse.de>
2474
2475 * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
2476
2477 * passes.c (init_optimization_passes): Remove superfluous
2478 copy-prop pass.
2479
2480 2010-11-26 Richard Guenther <rguenther@suse.de>
2481
2482 PR lto/46648
2483 * gimple.c (gtc_visit): Do not return true for members of an
2484 SCC still being processed but the current lattice value of
2485 the member. Treat SCC members comparison state as lattice,
2486 starting at equal, eventually dropping to unequal.
2487 (gimple_types_compatible_p_1): Likewise.
2488
2489 2010-11-26 Richard Guenther <rguenther@suse.de>
2490
2491 PR middle-end/46559
2492 * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
2493 for location list processing.
2494
2495 2010-11-26 Richard Guenther <rguenther@suse.de>
2496
2497 PR lto/46560
2498 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
2499 flags manually.
2500
2501 2010-11-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2502
2503 * config/s390/s390.c (print_operand_address): Replace assert with
2504 error message.
2505 (print_operand): Replace assertions, gcc_unreachable and
2506 fatal_insn with error messages.
2507
2508 2010-11-26 Richard Guenther <rguenther@suse.de>
2509
2510 PR tree-optimization/46665
2511 * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
2512
2513 2010-11-26 Ian Bolton <ian.bolton@arm.com>
2514
2515 * config/arm/arm.c (arm_option_override): enable loop array
2516 prefetching at -O3 for suitable targets, and configure params.
2517 * config/arm/arm-protos.h (struct tune_params): Add fields for
2518 configuring loop array prefetching.
2519
2520 2010-11-26 Christian Borntraeger <borntraeger@de.ibm.com>
2521
2522 * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
2523
2524 2010-11-26 Richard Guenther <rguenther@suse.de>
2525
2526 PR tree-optimization/46664
2527 * tree-affine.c (aff_combination_to_tree): Add rest last.
2528
2529 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2530
2531 PR target/33637
2532 * configure.ac: Accept extra arguments for AS_FOR_TARGET,
2533 LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
2534 * configure: Regenerated.
2535 * exec-tool.in: Not quoting command, may have extra arguments.
2536
2537 2010-11-26 Richard Guenther <rguenther@suse.de>
2538
2539 PR tree-optimization/46528
2540 PR debug/46338
2541 * profile.c (branch_prob): Do not split blocks based on locations
2542 from debug statements.
2543
2544 2010-11-26 Jakub Jelinek <jakub@redhat.com>
2545
2546 PR middle-end/46647
2547 * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
2548 of host_integerp check. Use TREE_INT_CST_LOW instead of tree_low_cst.
2549
2550 PR bootstrap/45700
2551 * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
2552 build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
2553 (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
2554 build6_loc): Define.
2555 * fold-const.c (protected_set_expr_location_unshare): New inline.
2556 (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
2557 (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
2558 pedantic_omit_one_operand_loc, omit_two_operands_loc,
2559 fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
2560 optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
2561 build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
2562 fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
2563 instead of buildN followed by SET_EXPR_LOCATION or
2564 protected_set_expr_location.
2565 (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
2566 Use buildN_stat_loc instead of buildN_stat followed by
2567 SET_EXPR_LOCATION.
2568
2569 2010-11-26 Basile Starynkevitch <basile@starynkevitch.net>
2570
2571 * Makefile.in (s-tm-texi): Remove spurous tab.
2572
2573 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
2574
2575 PR debug/46258
2576 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
2577 debug stmts.
2578
2579 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
2580
2581 * toplev.c (finalize): Add no_backend parameter. Don't finish
2582 passes when preprocessing only. Adjust...
2583 (do_compile): ... caller.
2584
2585 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2586
2587 * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
2588 flag_unsafe_math_optimizations.
2589 (negsf2): Likewise.
2590 Move fnegabs related patterns together. Only use fmpynfadd instruction
2591 to negate a multiply if !flag_signed_zeros is true.
2592
2593 2010-11-25 Uros Bizjak <ubizjak@gmail.com>
2594
2595 * gengtype-state.c (read_state_structures): Initialize "previous".
2596
2597 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
2598 Jeremie Salvucci <jeremie.salvucci@free.fr>
2599
2600 * gengtype-state.c: Add new file.
2601
2602 * gengtype.c (type count): New variable.
2603 (new_structure, find_param_structure, create_pointer)
2604 (create_array): Use it to set state_number in types.
2605 (dump_everything): Improve comment.
2606 (main): Call read_state and write_state. Print type_count.
2607
2608 * gengtype.h (type_lineloc): New function.
2609 (read_state, write_state): New declarations.
2610
2611 * Makefile.in (GENGTYPE_FLAGS): New variable.
2612 (s-gtype): Run gengtype twice and generate gtype.state.
2613 (build/gengtype-state.o): New rule.
2614 (build/gengtype$(build_exeext)): Link gengtype-state.o.
2615 (mostlyclean): Update comment. Remove gtype.state.
2616
2617 2010-11-25 Jakub Jelinek <jakub@redhat.com>
2618
2619 PR middle-end/46637
2620 * combine.c (try_combine): When substing i2dest for i2src, pass
2621 1 as last argument even if
2622 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
2623
2624 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
2625
2626 PR middle-end/46647
2627 * builtins.c (target_char_cast): Check INTEGER_CST instead of
2628 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
2629
2630 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2631
2632 * target.def (supports_split_stack, except_unwind_info): Take
2633 gcc_options parameters.
2634 * targhooks.c (default_except_unwind_info,
2635 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
2636 gcc_options parameters.
2637 * targhooks.h (default_except_unwind_info,
2638 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
2639 prototypes.
2640 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
2641 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
2642 Document that hooks must not be modified.
2643 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
2644 * doc/tm.texi: Regenerate.
2645 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
2646 &global_options to targetm.except_unwind_info.
2647 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2648 dwarf2out_begin_prologue, dwarf2out_frame_init,
2649 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
2650 &global_options to targetm.except_unwind_info.
2651 * except.c (init_eh, finish_eh_generation,
2652 gate_convert_to_eh_region_ranges,
2653 output_one_function_exception_table): Pass &global_options to
2654 targetm.except_unwind_info.
2655 * expr.c (build_personality_function): Pass &global_options to
2656 targetm.except_unwind_info.
2657 * function.c (expand_function_end): Pass &global_options to
2658 targetm.except_unwind_info.
2659 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
2660 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
2661 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
2662 and targetm.supports_split_stack. Remove assertions about opts
2663 and opts_set.
2664 (common_handle_option): Remove assertions about opts, opts_set and dc.
2665 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
2666 &global_options to targetm.except_unwind_info.
2667 * tree.c (build_common_builtin_nodes: Pass &global_options to
2668 targetm.except_unwind_info.
2669 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
2670 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
2671 thumb1_expand_prologue, thumb1_output_function_prologue,
2672 arm_unwind_emit, arm_output_fn_unwind): Update calls to
2673 arm_except_unwind_info.
2674 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
2675 parameter.
2676 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
2677 parameter.
2678 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
2679 ia64_reorg, ia64_asm_unwind_emit): Update calls to
2680 ia64_except_unwind_info.
2681 * config/pa/pa.c (pa_option_override): Pass &global_options to
2682 targetm.except_unwind_info.
2683 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
2684 Remove prototype.
2685
2686 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
2687
2688 * cgraphunit.c (process_function_and_variable_attributes):
2689 Mark dllexport-ed function/variables as needed.
2690 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
2691 as externally visible.
2692
2693 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
2694
2695 PR rtl-optimization/46585
2696 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
2697 (vinsn_init): Skip computation of dependencies for local NOPs.
2698 (vinsn_delete): Don't try to free regsets for local NOPs.
2699 (setup_nop_and_exit_insns): Change definition of nop_pattern.
2700
2701 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
2702
2703 PR rtl-optimization/46602
2704 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
2705 (tidy_control_flow): Here.
2706
2707 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
2708 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2709
2710 PR bootstrap/45888
2711 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
2712 Fix target.def pathname in timestamp comparison.
2713
2714 2010-11-24 Richard Henderson <rth@redhat.com>
2715
2716 * config/ia64/predicates.md (pmpyshr_operand): New.
2717 * config/ia64/ia64.c (ia64_expand_unpack): New.
2718 (ia64_expand_widen_mul_v4hi): New.
2719 (ia64_expand_widen_sum): Update for pattern renames.
2720 (ia64_expand_dot_prod_v8qi): Likewise.
2721 * config/ia64/ia64-protos.h: Update.
2722 * config/ia64/vect.md (vecwider): New mode attribute.
2723 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
2724 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
2725 (pmpyshr2, pmpyshr2_u): New.
2726 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
2727 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
2728 (mulv2si3): New.
2729 (vec_pack_ssat_v4hi): Rename from pack2_sss.
2730 (vec_pack_usat_v4hi): Rename from *pack2_uss.
2731 (vec_pack_ssat_v2si): Rename from pack4_sss.
2732 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
2733 vec_select operation.
2734 (vec_interleave_highv8qi): Similarly.
2735 (mux1_alt): Rename from *mux1_alt.
2736 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
2737 (vec_interleave_lowv4hi): Rename from unpack2_l.
2738 (vec_interleave_highv4hi): Rename from unpack2_h.
2739 (mix2_r): Rename from *mix2_r.
2740 (mix2_l): Similarly.
2741 (vec_extract_evenodd_helper): New.
2742 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
2743 (vec_interleave_lowv2si): Rename from *unpack4_l.
2744 (vec_interleave_highv2si): Rename from *unpack4_h.
2745 (vec_extract_evenv2si, vec_extract_oddv2si): New.
2746 (vec_interleave_lowv2sf): Rename from fmix_r.
2747 (vec_interleave_highv2sf): Rename from *fmix_l.
2748 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
2749 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
2750 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
2751 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
2752
2753 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
2754
2755 * targhooks.c (default_except_unwind_info): Remove
2756 MUST_USE_SJLJ_EXCEPTIONS case.
2757 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2758 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2759 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2760 * doc/tm.texi: Regenerate.
2761 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
2762
2763 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
2764
2765 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2766 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
2767 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
2768 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
2769 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
2770
2771 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
2772
2773 PR target/46519
2774 * config/i386/i386.c (ix86_expand_call): Don't check
2775 TREE_THIS_VOLATILE.
2776
2777 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
2778
2779 PR target/46519
2780 * config/i386/i386.c (upper_128bits_state): New.
2781 (block_info_def): Remove upper_128bits_set and done. Add state,
2782 referenced, count, processed and rescanned.
2783 (check_avx256_stores): Updated.
2784 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
2785 Call note_stores only if needed. Set referenced and count.
2786 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
2787 (rescan_move_or_delete_vzeroupper): New.
2788 (move_or_delete_vzeroupper): Process and rescan all all basic
2789 blocks instead of predecessor blocks of all exit points.
2790 (ix86_option_override_internal): Enable vzeroupper optimization
2791 only for -fexpensive-optimizations and not optimizing for size.
2792 (use_avx256_p): Removed.
2793 (init_cumulative_args): Don't set use_avx256_p.
2794 (ix86_function_arg): Likewise.
2795 (ix86_expand_move): Likewise.
2796 (ix86_expand_vector_move_misalign): Likewise.
2797 (ix86_local_alignment): Likewise.
2798 (ix86_minimum_alignment): Likewise.
2799 (ix86_expand_epilogue): Don't check use_avx256_p when generating
2800 vzeroupper.
2801 (ix86_expand_call): Likewise.
2802
2803 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
2804 and use_avx256_p. Add rescan_vzeroupper_p.
2805
2806 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2807
2808 * toplev.c: Include <signal.h>.
2809
2810 2010-11-24 Richard Guenther <rguenther@suse.de>
2811
2812 PR lto/43218
2813 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
2814 conflicting function signatures as non-inlineable.
2815
2816 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2817
2818 PR rtl-optimization/46614
2819 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
2820 (deps_analyze_insn): Mark JUMP_INSNs in
2821 last_pending_memory_flush that weren't added through
2822 flush_pending_lists with NON_FLUSH_JUMP_KIND.
2823 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
2824 on INSN_LIST instead of JUMP_P check on its operand.
2825 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
2826
2827 2010-11-24 Richard Guenther <rguenther@suse.de>
2828
2829 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2830
2831 2010-11-24 Richard Guenther <rguenther@suse.de>
2832
2833 PR lto/46606
2834 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
2835 a FIELD_DECL that is type correct issue a warning and fixup
2836 with a VIEW_CONVERT_EXPR.
2837
2838 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2839
2840 * doc/invoke.texi (Options for Debugging Your Program or GCC):
2841 Explain static numbering of dump files.
2842
2843 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2844
2845 * common.opt (user_vect_verbosity_level): New Variable entry.
2846 (ftree-vectorizer-verbose=): Mark as UInteger.
2847 * flag-types.h (enum vect_verbosity_levels): Move from enum
2848 verbosity_levels in tree-vectorizer.h.
2849 * opts.c: Don't include tree.h.
2850 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
2851 gcc_options parameter; take integer option argument.
2852 (common_handle_option): Update call to vect_set_verbosity_level.
2853 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
2854 (vect_set_verbosity_level): Move to opts.c.
2855 (vect_verbosity_level, vect_print_dump_info): Update for change of
2856 enum name.
2857 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
2858 (vect_print_dump_info): Update for change of enum name.
2859 * tree.h (vect_set_verbosity_level): Remove.
2860 * Makefile.in (opts.o): Update dependencies.
2861
2862 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2863
2864 PR middle-end/46629
2865 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
2866 instead of insn with any_condjump_p.
2867
2868 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
2869
2870 * config/mips/loongson.md: Change the description comment of the file
2871 and update the copyright years.
2872 (define_insn "<u>div<mode>3): Add loongson3a support.
2873 (define_insn "<u>mod<mode>3"): Likewise.
2874 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
2875 mul<mode>3_mul3_loongson.
2876 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
2877 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
2878
2879 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2880
2881 * common.opt (initial_max_fld_align, flag_debug_asm,
2882 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
2883 flag_print_asm_name, graph_dump_format, help_printed,
2884 help_columns, flag_opts_finished): New Variable entries.
2885 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
2886 frandom-seed=): Mark deferred.
2887 (fsched-verbose=): Use UInteger and Var.
2888 * flags.h (set_struct_debug_option, flag_print_asm_name,
2889 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
2890 graph_dump_format): Don't declare here.
2891 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
2892 * opts-global.c: Include dbgcnt.h and debug.h.
2893 (decode_options): Pass location to finish_options.
2894 (handle_common_deferred_options): Check flag_dump_all_passed.
2895 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
2896 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
2897 OPT_fstack_limit.
2898 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
2899 (set_struct_debug_option): Add location_t parameter. Update
2900 recursive call. Use error_at.
2901 (default_options_optimization): Use error_at.
2902 (finish_options): Add location_t parameter. Use
2903 opts->x_flag_opts_finished instead of first_time_p. Use
2904 opts->x_optimize instead of optimize. Use error_at. Pass
2905 location to inform.
2906 (print_filtered_help): Use opts->x_help_printed to track what
2907 options have been printed.
2908 (print_specific_help): Use opts->x_help_columns to track number of
2909 columns.
2910 (common_handle_option): Pass locations and gcc_options pointers to
2911 more functions. Use warning_at instead of fnotice and warning.
2912 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
2913 OPT_fdebug_prefix_map_. Use error_at. Set
2914 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
2915 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
2916 OPT_fsched_verbose_.
2917 (handle_param): Add location_r parameter. Use error_at.
2918 (set_debug_level): Add location_r parameter. Use error_at and
2919 warning_at.
2920 (setup_core_dumping): Add diagnostic_context parameter.
2921 (decode_d_option): Add gcc_options, location_t and
2922 diagnostic_context parameters and use them instead of global
2923 state. Use warning_at.
2924 (enable_warning_as_error): Use error_at.
2925 * opts.h (finish_options): Update prototype.
2926 (set_struct_debug_option): Declare here.
2927 * rtl.h (fix_sched_param): Remove.
2928 * stor-layout.c (initial_max_fld_align): Remove.
2929 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2930 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2931 (process_options): Set maximum_field_alignment.
2932 * tree.h (initial_max_fld_align) Don't declare here.
2933 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2934
2935 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2936
2937 * flag-types.h (struct visibility_flags): Don't declare here.
2938 * flags.h (strip_off_ending, fast_math_flags_set_p,
2939 fast_math_flags_struct_set_p): Declare here.
2940 (visibility_options): Don't declare here.
2941 * opts-common.c (option_enabled, get_option_state): Move from
2942 opts.c.
2943 * opts-global.c: Include diagnostic.h instead of
2944 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
2945 and toplev.h.
2946 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2947 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2948 print_ignored_options, unknown_option_callback,
2949 post_handling_callback, lang_handle_option, add_input_filename,
2950 read_cmdline_options, initial_lang_mask, init_options_once,
2951 decode_cmdline_options_to_array_default_mask,
2952 set_default_handlers, decode_options): Move from opts.c.
2953 (print_ignored_options): Use warning_at instead of saving and
2954 restoring input_location.
2955 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
2956 instead of expr.h. Don't include langhooks.h, except.h or
2957 lto-streamer.h. Add more comments on includes.
2958 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2959 toplev.c.
2960 (visibility_options): Move to c-family/c-common.c.
2961 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2962 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2963 print_ignored_options, unknown_option_callback,
2964 post_handling_callback, lang_handle_option, add_input_filename,
2965 read_cmdline_options, initial_lang_mask, init_options_once,
2966 decode_cmdline_options_to_array_default_mask,
2967 set_default_handlers, decode_options): Move to opts-global.c.
2968 (target_handle_option, default_options_optimization,
2969 finish_options, common_handle_option): Remove static.
2970 (option_enabled, get_option_state): Move to opts-common.c.
2971 * opts.h (common_handle_option, target_handle_option,
2972 finish_options, default_options_optimization): Declare.
2973 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2974 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2975 opts.c.
2976 * toplev.h (strip_off_ending, decode_d_option,
2977 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2978 declare here.
2979 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2980
2981 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
2982
2983 PR driver/42690
2984 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2985 options, replace by call of pass-through-libs spec function to process
2986 link_gcc_c_sequence spec.
2987 (lto_libgcc_spec): Delete variable.
2988 (static_specs[]): Remove related entry.
2989 (static_spec_functions[]): Add new entry for pass-through-libs.
2990 (main): Don't generate deleted lto_libgcc_spec.
2991 (pass_through_libs_spec_func): New function to implement the new
2992 pass-through-libs spec function.
2993 * doc/invoke.texi (pass-through-libs): Document new spec function.
2994
2995 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2996
2997 * doc/options.texi (Warning, Optimization): Document.
2998
2999 2010-11-23 Jan Hubicka <jh@suse.cz>
3000
3001 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
3002 (tree_decl_with_vis): Add implicit_section_name_p.
3003 * targhooks.h (default_function_section): Declare.
3004 * target.def (function_section): New hook.
3005 * defaults.h (HOT_TEXT_SECTION_NAME,
3006 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3007 * predict.c (choose_function_section): Remove.
3008 (estimate_bb_frequencies): Do not use choose_function_section.
3009 * coretypes.h (enum node_frequency): Move here from cgraph.h
3010 * cgraph.h (enum node_frequency): Remove.
3011 * varasm.c (initialize_cold_section_name, unlikely_text_section,
3012 unlikely_text_section_p): Remove.
3013 (named_subsection_entry): New structure.
3014 (get_text_section): New function.
3015 (default_function_section): New function.
3016 (function_section_1): Break out from ...; handle profile info.
3017 (function_section): ... here.
3018 (unlikely_text_section): Remove.
3019 (unlikely_text_section_p): Use function_section_1.
3020 (assemble_start_function): Do not initialize cold section.
3021 (default_section_type_flags): Do not special case cold subsection.
3022 (switch_to_section): Likewise.
3023 * output.h (get_text_section): Define.
3024 * config/i386/winnt.c: Do not special case cold section.
3025 * config/darwin-protos.h (darwin_function_section): Declare.
3026 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
3027 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3028 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
3029 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3030 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
3031 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
3032 * config/darwin.c (machopic_select_section): Use
3033 darwin_function_section.
3034 (darwin_function_section): New function.
3035 * config/darwin.h (HOT_TEXT_SECTION_NAME,
3036 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3037 (TARGET_ASM_FUNCTION_SECTION): Define.
3038 * system.h (HOT_TEXT_SECTION_NAME,
3039 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
3040
3041 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
3042
3043 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
3044 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
3045
3046 2010-11-23 Jakub Jelinek <jakub@redhat.com>
3047
3048 PR middle-end/46499
3049 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
3050 following unconditional jumps.
3051
3052 2010-11-23 Richard Guenther <rguenther@suse.de>
3053
3054 * doc/md.texi (386 constraints): Clarify A constraint documentation.
3055
3056 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
3057 Jeremie Salvucci <jeremie.salvucci@free.fr>
3058
3059 * gengtype.c (enum typekind, struct options)
3060 (struct nested_ptr_data, struct pair, NUM_PARAM)
3061 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
3062 Move to gengtype.h.
3063 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
3064 Remove static, add zero state_number.
3065 (typedefs, structures, param_structs, variables): Remove static.
3066 (create_option): Remove.
3067 (create_string_option, create_type_option, create_nested_option):
3068 New functions.
3069 (create_nested_ptr_option): Use create_nested_option.
3070 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
3071 new create*option functions.
3072 (process_gc_options): Adjust for discriminated option.
3073 (output_mangled_typename): Handle TYPE_NONE.
3074 (walk_type): Test option kinds.
3075 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
3076 (write_func_for_structure, write_type, write_local, write_root)
3077 (write_roots, note_def_vec, dump_options): Adjust for
3078 discriminated option.
3079
3080 * gengtype.h (typedefs, structures, param_structs, variables
3081 enum typekind): Move from gengtype.c
3082 (enum option_kind): New discriminating enumeration.
3083 (struct options): Becomes discriminated.
3084 (struct nested_ptr_data): Nove from gengtype.c
3085 (create_string_option, create_type_option, create_nested_option)
3086 (create_nested_ptr_option): New functions
3087 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
3088 (UNION_OR_STRUCT_P): Move from gengtype.c
3089
3090 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
3091 discriminated options.
3092
3093 2010-11-23 Richard Guenther <rguenther@suse.de>
3094
3095 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
3096 twice. Avoid re-allocating the ops vector all the time.
3097
3098 2010-11-23 Richard Guenther <rguenther@suse.de>
3099
3100 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
3101 is_gimple_min_invariant, group tree code checks to allow
3102 combining them.
3103 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
3104 of is_gimple_reg.
3105
3106 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
3107
3108 * config.gcc (sparc*-*-*): Reorder.
3109
3110 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
3111
3112 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
3113 Remove ENABLE_CHECKING around DBGPRINTF.
3114
3115 2010-11-22 Joseph Myers <joseph@codesourcery.com>
3116
3117 * common.opt (exit_after_options, write_symbols, debug_info_level,
3118 use_gnu_debug_info_extensions): New Variable entries.
3119 (fprofile-dir=): Use Var.
3120 * flag-types.h (enum debug_info_level): Rename to enum
3121 debug_info_levels.
3122 * flags.h (write_symbols, debug_info_level,
3123 use_gnu_debug_info_extensions): Remove declarations.
3124 * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
3125 (set_struct_debug_option): Make static variables const.
3126 (use_gnu_debug_info_extensions): Remove.
3127 (set_debug_level, print_filtered_help, print_specific_help,
3128 fast_math_flags_set_p): Take gcc_options parameters and use them
3129 in place of global variables.
3130 (print_filtered_help): Make new_help non-static.
3131 (print_specific_help): Update call to print_filtered_help.
3132 (common_handle_option): Update calls to print_specific_help. Use
3133 gcc_options structure for more settings. Make --help table
3134 const. Don't handle OPT_fprofile_dir_ here. Update calls to
3135 set_debug_level.
3136 * toplev.c (profile_data_prefix): Remove.
3137 * toplev.h (profile_data_prefix, exit_after_options): Remove
3138 declarations.
3139 (fast_math_flags_set_p): Update prototype.
3140 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3141 Update call to fast_math_flags_set_p.
3142
3143 2010-11-22 Richard Henderson <rth@redhat.com>
3144
3145 PR target/46434
3146 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
3147 return the address register extracted.
3148 (crx_decompose_address): Update the extracted address register.
3149
3150 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
3151
3152 PR driver/43335
3153 * gcc.c (main): Don't crash when lto-wrapper program is not found.
3154
3155 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
3156
3157 PR target/46608
3158 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
3159 * config/picochip/picochip-protos.h: Don't include "target.h" .
3160 (picochip_secondary_reload): Don't declare.
3161
3162 PR target/46613
3163 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
3164 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
3165 static.
3166
3167 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
3168
3169 PR bootstrap/46609
3170 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
3171 (source_dot_c_frul): Likewise.
3172
3173 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
3174
3175 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
3176
3177 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
3178
3179 PR bootstrap/44970
3180 * Makefile.in (fwprop.o) Add sparseset.h.
3181 * fwprop.c: Include sparseset.h
3182 (struct find_occurrence_data, find_occurrence_callback,
3183 find_occurrence): Remove.
3184 (active_defs, active_defs_check, register_active_defs,
3185 update_df_init, update_uses): New.
3186 (update_df): Rewrite.
3187 (try_fwprop_subst, forward_propagate_asm): Add calls to
3188 update_df_init and update_df.
3189 (fwprop_init): Allocate active_defs and active_defs_check.
3190 (fwprop_done): Free them.
3191 (fwprop, fwprop_addr): Adjust comments.
3192 * df.h (df_uses_create): Declare.
3193 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
3194 (df_ref_create): Return result of df_ref_create_structure directly.
3195 (df_ref_create_structure): Call df_install_ref_incremental when
3196 no collection_rec is passed.
3197 (df_ref_record): Do not create multiword hard reg info when no
3198 collection_rec is passed.
3199 (df_uses_create): New.
3200
3201 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
3202
3203 PR middle-end/43057
3204 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
3205 setting location.
3206
3207 2010-11-22 Richard Guenther <rguenther@suse.de>
3208
3209 * gimple-fold.c (maybe_fold_reference): When canonicalizing
3210 MEM_REFs, preserve volatileness.
3211 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
3212 addresses.
3213
3214 2010-11-22 Richard Guenther <rguenther@suse.de>
3215
3216 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
3217
3218 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
3219
3220 PR rtl-optimization/45652
3221 * alias.c (get_reg_base_value): New.
3222 * rtl.h (get_reg_base_value): Add prototype.
3223 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
3224 non-null REG_BASE_VALUE for renaming.
3225
3226 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
3227 Basile Starynkevitch <basile@starynkevitch.net>
3228
3229 * gengtype.c: Include xregex.h and obstack.h
3230 Added comments about role of get_output_file_with_visibility and
3231 our regexpr machinery.
3232 (frul_actionrout_t, struct file_rule_st): New.
3233 (hader_dot_h_frul, source_dot_c_frul): New functions.
3234 (NULL_REGEX, NULL_FRULACT): New.
3235 (files_rules): New.
3236 (matching_file_name_substitute): New function.
3237 (get_output_file_with_visibility): Updated comments and rewritten
3238 to use the new files_rules machinery.
3239
3240 * Makefile.in (XREGEX_H): Added variable.
3241 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
3242
3243 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
3244
3245 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
3246
3247 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
3248
3249 * target.def (conditional_register_usage): Define.
3250 * reginfo.c (init_reg_sets_1): Call
3251 targetm.conditional_register_usage.
3252 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
3253 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
3254 for making it a hook.
3255 * doc/tm.texi: Regenerate.
3256 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3257 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
3258 New function.
3259 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3260 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3261 * config/arc/arc.c (arc_conditional_register_usage): ...here.
3262 New function.
3263 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3264 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3265 * config/arm/arm.c (arm_conditional_register_usage): ...here.
3266 New function.
3267 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3268 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
3269 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
3270 * config/bfin/bfin.c (conditional_register_usage): Move code into...
3271 (bfin_conditional_register_usage): ...here. New function.
3272 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3273 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
3274 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
3275 * config/cris/cris.c (cris_conditional_register_usage): Make static.
3276 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3277 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
3278 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
3279 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
3280 * config/frv/frv.c (frv_conditional_register_usage): Make static.
3281 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3282 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3283 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
3284 New function.
3285 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3286 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
3287 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
3288 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
3289 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3290 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
3291 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
3292 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
3293 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3294 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3295 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
3296 New function.
3297 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3298 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
3299 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
3300 Delete.
3301 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
3302 static.
3303 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3304 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
3305 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
3306 * config/mep/mep.c (mep_conditional_register_usage): Make static.
3307 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3308 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
3309 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
3310 * config/mips/mips.c (mips_conditional_register_usage): Make static.
3311 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3312 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
3313 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
3314 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
3315 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3316 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3317 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
3318 ...here. New function.
3319 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3320 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3321 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
3322 * config/pa/pa.c (pa_conditional_register_usage): ...here.
3323 New function.
3324 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3325 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3326 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
3327 New function.
3328 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3329 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
3330 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
3331 Delete.
3332 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
3333 static.
3334 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3335 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
3336 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
3337 * config/rx/rx.c (rx_conditional_register_usage): Make static.
3338 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3339 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
3340 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
3341 * config/s390/s390.c (s390_conditional_register_usage): Make static.
3342 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3343 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3344 * config/score/score.c (score_conditional_register_usage): ...here.
3345 New function.
3346 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3347 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3348 * config/sh/sh.c (sh_conditional_register_usage): ...here.
3349 New function.
3350 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3351 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3352 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
3353 New function.
3354 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3355 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
3356 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
3357 * config/spu/spu.c (spu_conditional_register_usage): Make static.
3358 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3359 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3360 * config/v850/v850.c (v850_conditional_register_usage): ...here.
3361 New function.
3362 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3363
3364 2010-11-21 Jan Hubicka <jh@suse.cz>
3365 Dominique d'Humieres <dominiq@lps.ens.ft>
3366
3367 PR target/46510
3368 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
3369 finalize external decls.
3370
3371 2010-11-21 Joseph Myers <joseph@codesourcery.com>
3372
3373 * system.h (strerror): Poison.
3374
3375 2010-11-21 Richard Henderson <rth@redhat.com>
3376
3377 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
3378 for infq/huge_valq.
3379
3380 2010-11-21 Richard Henderson <rth@redhat.com>
3381
3382 PR rtl-optimization/46571
3383 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
3384 (compute_hash_table_work): Use NONDEBUG_INSN_P.
3385
3386 2010-11-21 Paul Koning <ni1d@arrl.net>
3387
3388 * config/mips/pdp11.md (negsi2): Fix wrong code.
3389
3390 2010-11-21 Paul Koning <ni1d@arrl.net>
3391
3392 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
3393 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3394
3395 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
3396
3397 * config/mips/mips.c (machine_function): Rename load_label_length to
3398 load_label_num_insns.
3399 (mips_load_label_length): Rename to...
3400 (mips_load_label_num_insns): ...this. Adjust to first renaming.
3401 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
3402
3403 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
3404
3405 PR target/46533
3406 * config/alpha/predicates.md (direct_call_operand): Return false
3407 for !TARGET_SMALL_TEXT targets.
3408
3409 2010-11-20 Joseph Myers <joseph@codesourcery.com>
3410
3411 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
3412 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
3413 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
3414 * doc/tm.texi: Regenerate.
3415 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
3416 HANDLE_PRAGMA_WEAK): Poison.
3417 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
3418 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3419 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
3420 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
3421 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3422 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3423 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3424 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
3425 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3426 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
3427 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3428 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
3429 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3430 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3431 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
3432 (HANDLE_PRAGMA_WEAK): Don't undefine.
3433 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3434 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
3435 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3436 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
3437 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
3438 (HANDLE_PRAGMA_WEAK): Don't undefine.
3439 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3440 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
3441 (HANDLE_PRAGMA_PACK): Don't undefine.
3442 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
3443 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3444 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3445 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3446 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
3447 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3448 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3449 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3450 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
3451 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3452 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
3453 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3454 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3455 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
3456 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3457 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
3458 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3459
3460 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
3461
3462 PR target/31100
3463 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
3464 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
3465 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
3466
3467 2010-11-20 Jan Hubicka <jh@suse.cz>
3468
3469 * cgraph.c (ld_plugin_symbol_resolution_names): New.
3470 (dump_cgraph_node): Dump resolution.
3471 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
3472 (cgraph_comdat_can_be_unshared_p): Dclare.
3473 * lto-streamer-out.c (produce_symtab): Use
3474 cgraph_comdat_can_be_unshared_p.
3475 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
3476 (cgraph_comdat_can_be_unshared_p): New function based on logic
3477 in cgraph_externally_visible_p.
3478 (cgraph_externally_visible_p): Use it.
3479 (varpool_externally_visible_p): Virtual tables can be unshared.
3480 * varpool.c (dump_varpool_node): Dump resolution.
3481
3482 2010-11-20 Jan Hubicka <jh@suse.cz>
3483
3484 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
3485
3486 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3487
3488 PR other/46202
3489 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
3490 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
3491 shell quoting.
3492 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
3493 (install-strip): New target.
3494 (STRIPPROG): New variable, exported if STRIP is set.
3495 * doc/install.texi (Final install): Minor markup and code style
3496 fixes. Document install-strip target.
3497
3498 2010-11-20 Paul Koning <ni1d@arrl.net>
3499
3500 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
3501 pdp11_regno_reg_class): New functions.
3502 * config/pdp11/pdp11.md (define_constants): Add register numbers.
3503 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
3504 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
3505 functions.
3506 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
3507 frame pointer and argument pointer pseudo-registers.
3508 (ARG_POINTER_REGNUM): Define.
3509 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
3510 argument pointer.
3511 (FIRST_PARM_OFFSET): Update for argument pointer.
3512 (INITIAL_FRAME_POINTER_OFFSET): Delete.
3513 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
3514 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
3515 frame pointer and argument pointer.
3516
3517 2010-11-20 Jakub Jelinek <jakub@redhat.com>
3518
3519 PR debug/46561
3520 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
3521 when looking for immediate uses.
3522
3523 PR tree-optimization/45830
3524 * stmt.c (expand_switch_using_bit_tests_p): New function.
3525 (expand_case): Use it.
3526 * tree.h (expand_switch_using_bit_tests_p): New prototype.
3527 * tree-switch-conversion.c (struct switch_conv_info): Add
3528 bit_test_uniq, bit_test_count and bit_test_bb fields.
3529 (check_range): Fix a comment.
3530 (check_process_case): Compute bit_test_uniq and bit_test_count.
3531 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
3532 allocation.
3533 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
3534 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
3535 (array_value_type): New function.
3536 (build_one_array): Use it, if it returned different type,
3537 fold_convert all constructor fields and convert back to the
3538 wider type in the generated code.
3539 (process_switch): Initialize bit_test_uniq, bit_test_count and
3540 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
3541 returned true.
3542
3543 2010-11-19 Michael Matz <matz@suse.de>
3544
3545 PR tree-optimization/46077
3546 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
3547
3548 2010-11-19 Anatoly Sokolov <aesok@post.ru>
3549
3550 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3551 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
3552 function.
3553 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3554
3555 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
3556
3557 * mode-switching.c (optimize_mode_switching): Use
3558 FOR_BB_INSNS instead of open-coded loop.
3559 * cfgrtl.c (redirect_branch_edge): Ditto.
3560
3561 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
3562
3563 PR target/46436
3564 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
3565 to accomodate 32 bit HOST_WIDE_INT.
3566 (m68hc11_emit_logical): Remove unused variable insn.
3567 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
3568 this_insn_uses_iy before use.
3569
3570 PR target/46434
3571 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
3572
3573 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3574
3575 PR c/46547
3576 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
3577 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
3578
3579 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3580
3581 * doc/extend.texi (Function attributes): Document PowerPC target
3582 attributes that are supported.
3583 (Pragmas): Document that PowerPC now supports target pragmas.
3584
3585 * doc/options.texi (TargetVariable): Document TargetVariable,
3586 HeaderInclude, and SourceInclude.
3587
3588 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
3589 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
3590 -ffp-contract=off.
3591
3592 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
3593 SourceInclude directives. Fix a cut+paste error with target save
3594 enum variables. Sort enums in the structures after ints and
3595 before shorts.
3596 * opth-gen.awk: Ditto.
3597
3598 * configure.ac: Add support for HeaderInclude and SourceInclude option
3599 directives to add the appropriate files to the dependency lists.
3600 * configure: Regenerate.
3601 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
3602 (OPTIONS_C_EXTRA): New variable for SourceInclude.
3603 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
3604 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
3605 (gcc-options.o): Ditto.
3606 * opt-include.awk: New awk script to handle HeaderInclude and
3607 TargetInclude.
3608
3609 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
3610 gets saved in the target options.
3611 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
3612 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3613 (-mprototype): Ditto.
3614 (-mbit-word): ditto.
3615 (-mregnames): Ditto.
3616 (-msecure-plt): Ditto.
3617 (-mbss-plt): Ditto.
3618 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
3619 (-mpowerpc-gfxopt): Ditto.
3620 (-mmfcrf): Ditto.
3621 (-mpopcntb): Ditto.
3622 (-mfprnd): Ditto.
3623 (-mcmpb): Ditto.
3624 (-mmmfpgpr): Ditto.
3625 (-maltivec): Ditto.
3626 (-mhard-dfp): Ditto.
3627 (-mmulhw): Ditto.
3628 (-mdlmzb): Ditto.
3629 (-mmultiple): Ditto.
3630 (-mstring): Ditto.
3631 (-mpopcntd): Ditto.
3632 (-mfriz): Ditto.
3633 (-mvsx): Ditto.
3634 (-mno-update): Ditto.
3635 (-mavoid-indexed-addresses): Ditto.
3636 (-mtls-markers): Ditto.
3637 (-msched-epilog): Ditto.
3638 (-msched-prolog): Ditto.
3639 (-maix-struct-return): Ditto.
3640 (-msvr4-struct-return): Ditto.
3641 (-mxl-compat): Ditto.
3642 (-mrecip-precision): Ditto.
3643 (-mfp-in-toc): Ditto.
3644 (-msum-in-toc): Ditto.
3645 (-mvrsave): Ditto.
3646 (-mblock-move-inline-limit=): Ditto.
3647 (-misel): Ditto.
3648 (-mpaired): Ditto.
3649 (-mlongcall): Ditto.
3650 (-mgen-cell-microcode): Ditto.
3651 (-mwarn-cell-microcode): Ditto.
3652 (-mwarn-altivec-long): Ditto.
3653 (-mprioritize-restricted-insns=): Ditto.
3654 (-msingle-float): Ditto.
3655 (-mdouble-float): Ditto.
3656 (-msimple-fpu): Ditto.
3657 (-mxilinx-fpu): Ditto.
3658 * config/rs6000/aix64.opt (-mpe): Ditto.
3659
3660 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
3661 (rs6000_cpu): Move variable to be a target variable. Rename
3662 cmodel to rs6000_current_cmodel because of macro conflict. Merge
3663 -mdebug=<xxx> variables into a single int.
3664 (rs6000_always_hint): Ditto.
3665 (rs6000_sched_groups): Ditto.
3666 (rs6000_align_branch_targets): Ditto.
3667 (rs6000_sched_costly_dep): Ditto.
3668 (rs6000_sched_insert_nops): Ditto.
3669 (rs6000_long_double_type_size): Ditto.
3670 (rs6000_ieeequad): Ditto.
3671 (rs6000_altivec_abi): Ditto.
3672 (rs6000_spe): Ditto.
3673 (rs6000_spe_abi): Ditto.
3674 (rs6000_float_gprs): Ditto.
3675 (rs6000_darwin64_abi): Ditto.
3676 (can_override_loop_align): Ditto.
3677 (rs6000_sdata): Ditto.
3678 (rs6000_tls_size): Ditto.
3679 (rs6000_current_abi): Ditto.
3680 (rs6000_traceback): Ditto.
3681 (rs6000_alignment_flags): Ditto.
3682 (rs6000_current_cmodel): Ditto.
3683 (rs6000_recip_control): Ditto.
3684 (rs6000_cpu_index): Ditto.
3685 (rs6000_tune_index): Ditto.
3686 (rs6000_debug): Ditto.
3687 (rs6000_target_flags_explict): Ditto.
3688
3689 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
3690 declaration.
3691
3692 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
3693 cmodel. Change all uses.
3694
3695 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
3696 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
3697 Rename cmodel to rs6000_current_cmodel.
3698 (rs6000_sched_groups): Ditto.
3699 (rs6000_align_branch_targets): Ditto.
3700 (rs6000_sched_costly_dep): Ditto.
3701 (rs6000_sched_insert_nops): Ditto.
3702 (rs6000_long_double_type_size): Ditto.
3703 (rs6000_ieeequad): Ditto.
3704 (rs6000_altivec_abi): Ditto.
3705 (rs6000_spe): Ditto.
3706 (rs6000_spe_abi): Ditto.
3707 (rs6000_float_gprs): Ditto.
3708 (rs6000_darwin64_abi): Ditto.
3709 (can_override_loop_align): Ditto.
3710 (rs6000_sdata): Ditto.
3711 (rs6000_tls_size): Ditto.
3712 (rs6000_current_abi): Ditto.
3713 (rs6000_traceback): Ditto.
3714 (rs6000_alignment_flags): Ditto.
3715 (rs6000_current_cmodel): Ditto.
3716 (rs6000_recip_control): Ditto.
3717 (rs6000_cpu_index): Ditto.
3718 (rs6000_tune_index): Ditto.
3719 (rs6000_debug): Ditto.
3720 (rs6000_target_flags_explict): Ditto.
3721 (rs6000_sched_insert_nops_str): Make static.
3722 (rs6000_sched_costly_dep_str): Ditto.
3723 (rs6000_recip_name): Ditto.
3724 (rs6000_abi_name): Ditto.
3725 (rs6000_sdata_name): Ditto.
3726 (enum rs6000_traceback_name): Move to rs6000-opts.h.
3727 (rs6000_parse_tls_size_option): Delete.
3728 (rs6000_valid_attribute_p): New function for target attributes and
3729 pragmas.
3730 (rs6000_function_specific_save): Ditto.
3731 (rs6000_function_specific_restore): Ditto.
3732 (rs6000_function_specific_print): Ditto.
3733 (rs6000_can_inline_p): Ditto.
3734 (rs6000_set_current_function): Ditto.
3735 (rs6000_inner_target_options): Ditto.
3736 (rs6000_debug_target_options): Ditto.
3737 (rs6000_pragma_target_parse): Ditto.
3738 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
3739 attributes and pragmas.
3740 (TARGET_OPTION_SAVE): Ditto.
3741 (TARGET_OPTION_RESTORE): Ditto.
3742 (TARGET_OPTION_PRINT): Ditto.
3743 (TARGET_CAN_INLINE_P): Ditto.
3744 (TARGET_SET_CURRENT_FUNCTION): Ditto.
3745 (POWER_MASKS): Move to file level scope from the
3746 rs6000_option_override_internal function.
3747 (POWERPC_MASKS): Ditto.
3748 (ISA_*_MASKS): Ditto.
3749 (struct rs6000_ptt): Ditto.
3750 (processor_target_table): Ditto.
3751 (rs6000_cpu_name_lookup): Map cpu name to an index in
3752 processor_target_table.
3753 (rs6000_debug_reg_global): Print more information on processor
3754 options for -mdebug=reg.
3755 (rs6000_init_hard_regno_mode_ok): Add support for target
3756 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
3757 Allow -mdebug=val1,val2. Rename cmodel variable.
3758 (rs6000_option_override_internal): Ditto.
3759 (rs6000_option_override): Ditto.
3760 (rs6000_handle_option): Ditto.
3761 (rs6000_conditional_register_usage): Add debug trace message.
3762 (struct rs6000_opt_mask): New for target attribute/pragma support.
3763 (rs6000_opt_masks): Ditto.
3764 (struct rs6000_opt_var): Ditto.
3765 (rs6000_opt_vars): Ditto.
3766 (rs6000_previous_function): Ditto.
3767
3768 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
3769 wasn't already included.
3770 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
3771 (enum processor_type): Ditto.
3772 (rs6000_cpu): Ditto.
3773 (enum fpu_type_t): Ditto.
3774 (fpu_type): Ditto.
3775 (enum rs6000_dependence_cost): Ditto.
3776 (enum rs6000_nop_insertion): Ditto.
3777 (enum group_termination): Ditto.
3778 (rs6000_long_double_type_size): Ditto.
3779 (rs6000_ieeequad): Ditto.
3780 (rs6000_altivec_abi): Ditto.
3781 (rs6000_spe_abi): Ditto.
3782 (rs6000_spe): Ditto.
3783 (rs6000_float_gprs): Ditto.
3784 (rs6000_alignment_flags): Ditto.
3785 (rs6000_sched_insert_nops): Ditto.
3786 (enum rs6000_vector): Ditto.
3787 (enum rs6000_abi): Ditto.
3788 (rs6000_current_opt): Ditto.
3789 (rs6000_debug_*): Delete.
3790 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
3791 (TARGET_DEBUG*): Ditto.
3792
3793 * config/rs6000/rs6000-opts.h: New header file to define the enums
3794 that are used in target variables that are now defined in rs6000.opt.
3795
3796 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
3797 rs6000-opts.h.
3798 (rs6000_sdata): Ditto.
3799 (rs6000_abi_name): Delete.
3800 (rs6000_sdata_name): Ditto.
3801 (rs6000_tls_size_string): Ditto.
3802
3803 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3804
3805 * common.opt (debug_struct_ordinary, debug_struct_generic): New
3806 Variable entries.
3807 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
3808 should_emit_struct_debug): Move from opts.c.
3809 * flag-types.h (enum debug_struct_file): Move from opts.c.
3810 * flags.h (should_emit_struct_debug): Remove.
3811 (base_of_path): Declare.
3812 (set_struct_debug_option): Add gcc_options parameter.
3813 * optc-gen.awk, opth-gen.awk: Handle array variables.
3814 * opts.c (enum debug_struct_file, debug_struct_ordinary,
3815 debug_struct_generic): Remove.
3816 (set_struct_debug_option): Add gcc_options parameter.
3817 (base_of_path): Remove static.
3818 (main_input_basename, main_input_baselength, matches_main_base,
3819 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
3820 Remove.
3821 * toplev.c (main_input_basename, main_input_baselength): Define
3822 here.
3823 * toplev.h (main_input_basename, main_input_baselength): Declare
3824 here.
3825
3826 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3827
3828 * common.opt (flag_instrument_functions_exclude_functions,
3829 flag_instrument_functions_exclude_files): New Variable definitions.
3830 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
3831 * gimplify.c (char_p): Declare type and vectors.
3832 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
3833 * opts.c (flag_instrument_functions_exclude_functions,
3834 flag_instrument_functions_exclude_files): Remove.
3835 (add_comma_separated_to_vector): Take void **.
3836 (flag_instrument_functions_exclude_p): Move to gimplify.c.
3837 (common_handle_option): Use options structure for
3838 -finstrument-functions-exclude- options.
3839
3840 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3841
3842 * doc/options.texi (Var): Document effects of Defer.
3843 (Defer): Document.
3844 * opt-functions.awk (var_type, var_set): Handle deferred options.
3845 * opts-common.c (set_option): Handle CLVC_DEFER.
3846 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
3847 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
3848 fstack-limit-symbol=): Mark as deferred.
3849 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
3850 plugin.h.
3851 (print_filtered_help): Don't report state of CLVC_DEFER options.
3852 (common_handle_option): Move code for OPT_fcall_used_,
3853 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
3854 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
3855 OPT_fstack_limit_symbol_ to opts-global.c.
3856 (option_enabled, get_option_state): Handle CLVC_DEFER.
3857 * opts.h: Include vec.h.
3858 (enum cl_var_type): Add CLVC_DEFER.
3859 (cl_deferred_option): Define type and vectors.
3860 (handle_common_deferred_options): Declare.
3861 * opts-global.c: New.
3862 * toplev.c (toplev_main): Call handle_common_deferred_options
3863 * Makefile.in (OPTS_H): Include $(VEC_H).
3864 (OBJS-common): Include opts-global.o.
3865 (opts.o): Update dependencies.
3866 (opts-global.o): Add dependencies.
3867
3868 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3869
3870 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
3871 to objc_declare_protocols.
3872
3873 2010-11-19 Richard Guenther <rguenther@suse.de>
3874
3875 PR lto/45789
3876 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
3877 IDENTIFIERs do not stream TREE_TYPE.
3878 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
3879
3880 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
3881
3882 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
3883
3884 2010-11-19 Jakub Jelinek <jakub@redhat.com>
3885
3886 PR target/45870
3887 * dwarf2out.c (const_ok_for_output_1): Don't complain about
3888 non-delegitimized TLS UNSPECs.
3889
3890 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
3891 Ian Lance Taylor <iant@google.com>
3892
3893 * config/darwin-c.c (darwin_additional_format_types): Export.
3894
3895 2010-11-18 Paul Koning <ni1d@arrl.net>
3896
3897 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
3898 pointer.
3899
3900 2010-11-18 Paul Koning <ni1d@arrl.net>
3901
3902 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
3903 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
3904 * config/pdp11/pdp11.opt (-mabshi): Delete.
3905
3906 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
3907
3908 * resource.h (struct resources): Fix typo in the comment.
3909
3910 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
3911
3912 PR target/46546
3913 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
3914
3915 2010-11-18 Richard Henderson <rth@redhat.com>
3916
3917 PR middle-end/46515
3918 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
3919 maybe_copy_epilogue_insn; handle prologue insns as well.
3920 * rtl.h, cfglayout.c: Update for rename.
3921 * recog.c (peep2_attempt): Copy prologue/epilogue data for
3922 RTX_FRAME_RELATED_P insns.
3923
3924 2010-11-18 Jakub Jelinek <jakub@redhat.com>
3925
3926 PR middle-end/46534
3927 * builtins.c (fold_builtin_printf): Don't copy and modify string
3928 before build_string_literal, instead modify what
3929 build_string_literal returned.
3930
3931 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3932
3933 PR c/33193
3934 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3935 REALPART_EXPR and IMAGPART_EXPR.
3936
3937 2010-11-18 Richard Guenther <rguenther@suse.de>
3938
3939 PR tree-optimization/46172
3940 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3941 function.
3942 (slpeel_tree_peel_loop_to_edge): Call it.
3943
3944 2010-11-18 Jeff Law <law@redhat.com>
3945
3946 PR middle-end-optimization/46297
3947 * postreload.c (reload_combine_note_store): Deal with embedded
3948 side effects in MEM expressions.
3949
3950 2010-11-18 Richard Guenther <rguenther@suse.de>
3951
3952 PR lto/45089
3953 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3954 when checking is not enabled.
3955
3956 2010-11-18 Richard Guenther <rguenther@suse.de>
3957
3958 PR lto/46525
3959 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3960 type leaders.
3961 (gimple_register_canonical_type): Also cache the canoncial type
3962 for non type leaders.
3963
3964 2010-11-18 Richard Guenther <rguenther@suse.de>
3965
3966 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3967
3968 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
3969
3970 PR middle-end/46518
3971 * sel-sched-ir.c (init_expr): Use the correct type for
3972 target_available.
3973 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3974
3975 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3976
3977 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3978 as well as -mrelocatable at the same time.
3979
3980 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
3981
3982 PR target/46422
3983 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3984 Call the clz builtin.
3985
3986 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3987 Steve Ellcey <sje@cup.hp.com>
3988
3989 PR middle-end/31490
3990 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3991 if section attribute used.
3992
3993 2010-11-17 Jan Hubicka <jh@suse.cz>
3994
3995 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3996 expand errno setting variant when optimizing for size.
3997
3998 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
3999
4000 * postreload.c (reload_combine): Call control_flow_insn_p only once.
4001 Reverse backward loop. Fix formatting issues.
4002
4003 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
4004
4005 * c-parser.c (c_token_is_qualifier,
4006 c_parser_next_token_is_qualifier): New.
4007 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
4008 Improve error message on specs->tagdef_seen_p.
4009 (c_parser_struct_or_union_specifier): Improve error recovery.
4010 (c_parser_declspecs): Move exit condition on C_ID_ID early.
4011 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
4012 using c_parser_next_token_is_qualifier; extend it to cover
4013 a ctsk_tagdef typespec and !typespec_ok in general.
4014
4015 2010-11-17 Richard Guenther <rguenther@suse.de>
4016
4017 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
4018 (gimple_mod_pow2_value_transform): Likewise.
4019 (gimple_mod_subtract_transform): Likewise.
4020
4021 2010-11-17 Richard Guenther <rguenther@suse.de>
4022
4023 PR lto/46504
4024 * gimple.c (gimple_register_canonical_type): Make sure to only
4025 make type leaders canonical types.
4026
4027 2010-11-17 Michael Matz <matz@suse.de>
4028
4029 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
4030 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
4031 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
4032 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
4033 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
4034 (pass_build_ssa): ... but here.
4035 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
4036 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
4037 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
4038 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
4039 * predict.c (rebuild_frequencies): Ditto.
4040 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
4041 * emit-rtl.c (verify_rtl_sharing): Ditto.
4042 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
4043 * tree-ssa-live.c (remove_unused_locals): Ditto.
4044 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
4045 * tree-ssa.c (pass_early_warn_uninitialized,
4046 execute_update_addresses_taken, pass_update_address_taken): Ditto.
4047 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
4048 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
4049 * passes.c (pass_postreload, execute_todo): Ditto.
4050 * tree-ssanames.c (pass_release_ssa_names): Ditto.
4051
4052 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4053
4054 * doc/invoke.texi (-dy): Remove.
4055 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
4056 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
4057 * langhooks.c (lhd_do_nothing_i): Remove.
4058 * langhooks.h (lang_hooks.parse_file): Take no arguments.
4059 * toplev.c (set_yydebug): Remove.
4060 (compile_file): Update call to lang_hooks.parse_file.
4061 (decode_d_option): Don't handle -dy.
4062
4063 2010-11-17 Jakub Jelinek <jakub@redhat.com>
4064
4065 PR rtl-optimization/46440
4066 * combine.c (update_cfg_for_uncondjump): When changing
4067 an indirect jump into unconditional jump, remove BARRIERs
4068 from bb's footer.
4069
4070 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4071
4072 * opts.c (target_handle_option): Do not assert that loc ==
4073 UNKNOWN_LOCATION.
4074
4075 2010-11-17 Jakub Jelinek <jakub@redhat.com>
4076 Richard Guenther <rguenther@suse.de>
4077
4078 PR middle-end/45838
4079 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4080 call_may_clobber_ref_p_1): Return true for __sync_* and some
4081 OpenMP builtins that act as threading barriers.
4082
4083 2010-11-17 Richard Guenther <rguenther@suse.de>
4084
4085 PR tree-optimization/46498
4086 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
4087
4088 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4089
4090 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
4091 (xtensa_function_arg_boundary): ...this.
4092 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
4093 thinko in declaration.
4094 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
4095 number of parameters to picochip_function_arg_boundary.
4096 (picochip_arg_advance): Likewise.
4097
4098 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4099
4100 PR target/46512
4101 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
4102 under check for type.
4103
4104 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
4105
4106 * ifcvt.c (dead_or_predicable): Fix typo.
4107
4108 2010-11-16 Richard Henderson <rth@redhat.com>
4109
4110 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
4111 * config/s390/s390.opt (mfused-madd): Remove.
4112 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
4113 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
4114 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
4115 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
4116
4117 2010-11-16 Richard Henderson <rth@redhat.com>
4118
4119 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
4120 * config/rs6000/rs6000.opt (mfused-madd): Remove.
4121 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
4122 (*altivec_vmaddfp_1): Remove.
4123 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
4124 (altivec_mulv4sf3): Expand to FMA directly.
4125 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
4126 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
4127 * config/rs6000/paired.md (paired_madds0): Use FMA.
4128 (paired_madds1): Likewise.
4129 (*paired_madd): Rename from paired_madd; use FMA.
4130 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
4131 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
4132 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
4133 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
4134 (rs6000_emit_madd): Use fma_optab.
4135 (rs6000_emit_msub): Use fms_optab.
4136 (rs6000_emit_nmsub): Expand the FMA pattern directly.
4137 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
4138 (*fmasf4_fpr): Rename from fmasf4_fpr.
4139 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
4140 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
4141 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
4142 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
4143 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
4144 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
4145 (*fmadf4_fpr): Rename from fmadf4_fpr.
4146 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
4147 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
4148 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
4149 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
4150 (fmasf4, fmadf4): Macroize into...
4151 (fma<FMA_F>4): ... here.
4152 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
4153 (nfma<FMA_F>4, nfms<FMA_F>4): New.
4154 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
4155 TARGET_FUSED_MADD.
4156 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
4157 (*vsx_fmadd<mode>4_1): Remove.
4158 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
4159 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
4160 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
4161 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
4162 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
4163 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
4164 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
4165
4166 2010-11-16 Richard Henderson <rth@redhat.com>
4167
4168 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
4169 (fmasf4, fnmadf4, fnmasf4): Likewise.
4170 (unnamed plus+mult insns and splitters): Delete.
4171
4172 2010-11-16 Richard Henderson <rth@redhat.com>
4173
4174 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
4175 (fnma<VSF>4): Rename from fnms_<VSF>.
4176 (fms<VSF>4): Rename from fms_<VSF>.
4177 (fma<VDF>4): Rename from fma_<VDF>.
4178 (fms<VDF>4): Rename from fms_<VDF>.
4179 (nfma<VDF>4): Rename from fnma_<VDF>.
4180 (nfms<VDF>4): Rename from fnms_<VDF>.
4181 (fnma<VDF>4, fnms<VDF>4): New expanders.
4182 (floatunsdisf2): Update for the renames.
4183 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
4184 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
4185
4186 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
4187
4188 PR rtl-optimization/46490
4189 * combine.c (expand_compound_operation): Fix thinko.
4190
4191 2010-11-16 Richard Henderson <rth@redhat.com>
4192
4193 PR target/46470
4194 * recog.c (peep2_attempt): Convert frame-related info when possible.
4195 (peep2_fill_buffer): Allow frame-related insns into the buffer.
4196 (peephole2_optimize): Allow peep2_attempt to fail.
4197
4198 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
4199
4200 PR rtl-optimization/46315
4201 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
4202 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
4203 extracted from...
4204 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
4205 (remove_reg_equal_equiv_notes_for_defs): ...this.
4206 (delete_unmarked_insns): Adjust to above renaming.
4207 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
4208 referring to registers set in the insns being moved, if any.
4209
4210 * df-core.c (df_ref_dump): New function extracted from...
4211 (df_refs_chain_dump): ...here. Call it.
4212 (df_regs_chain_dump): Likewise.
4213 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
4214 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
4215
4216 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
4217
4218 PR rtl-optimization/46395
4219 * postreload.c (reload_combine): Invalidate register use
4220 information on all control flow insns.
4221
4222 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
4223 LABEL_REF in UNSPEC operand.
4224
4225 2010-11-16 Jan Hubicka <jh@suse.cz>
4226
4227 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
4228 when !flag_toplevel_reorder do not remove unless variable is
4229 COMDAT or ARTIFICIAL.
4230 * ipa.c (varpool_can_remove_if_no_refs): ... here.
4231 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
4232 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
4233 * varpool.c (decide_is_variable_needed): Do not handle visibility
4234 issues.
4235 (varpool_finalize_decl): Likewise.
4236 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
4237 update outdated comment on DECL_RTL_SET_P check.
4238
4239 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4240
4241 * config/sol2.h (NM_FLAGS): Define.
4242 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
4243 * doc/tm.texi: Update.
4244
4245 2010-11-16 Nick Clifton <nickc@redhat.com>
4246
4247 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
4248 (msubsf4): Rename to fmssf4, and use fma.
4249 (nmaddsf4): Rename to fnmasf4 and use fma.
4250 (nmsubsf4): Rename to fnmssf4 and use fma.
4251
4252 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
4253
4254 PR target/44762
4255 * config/score/score3.c (score3_return_in_memory): Constify arguments.
4256 (score3_in_small_data_p, score3_function_value): Likewise.
4257 (score3_trampoline_init): Use LCT_NORMAL.
4258 (score3_print_operand): Initialize code as UNKNOWN.
4259 * config/score/predicates.md (score_load_multiple_operation):
4260 Remove unused variable.
4261 (score_store_multiple_operation): Likewise.
4262 * config/score/score7.c (score7_return_in_memory): Constify arguments.
4263 (score7_in_small_data_p, score7_function_value): Likewise.
4264 (score7_trampoline_init): Use LCT_NORMAL.
4265 (score7_print_operand): Initialize code as UNKNOWN.
4266 * config/score/score3.h (score3_return_in_memory): Update prototype.
4267 (score3_in_small_data_p, score3_function_value): Likewise.
4268 * config/score/score-protos.h (score_function_value): Likewise.
4269 * config/score/score7.h (score7_return_in_memory): Update prototype.
4270 (score7_in_small_data_p, score7_function_value): Likewise.
4271 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
4272 (score_return_in_memory, score_pass_by_reference): Constify arguments.
4273 (score_output_mi_thunk, score_function_prologue): Don't return a value.
4274 (score_function_epilogue, score_in_small_data_p): Likewise.
4275 (score_option_override, score_asm_trampoline_template): Likewise.
4276 (score_trampoline_init, score_print_operand): Likewise.
4277 (score_print_operand_address, score_prologue): Likewise.
4278 (score_epilogue, score_call, score_call_value): Likewise.
4279 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
4280 (score_function_arg_advance): Likewise. Make static.
4281 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
4282 (score_function_arg, score_legitimate_address_p): Make static.
4283 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
4284 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
4285 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
4286 Allow (W) == HOST_BITS_PER_WIDE_INT.
4287
4288 PR java/46386
4289 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
4290 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
4291
4292 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4293
4294 * config/arc/arc.c: Delete pasto.
4295 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
4296
4297 2010-11-16 Anatoly Sokolov <aesok@post.ru>
4298
4299 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
4300 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4301 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
4302 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4303 (mn10300_preferred_reload_class,
4304 mn10300_preferred_output_reload_class): New functions.
4305
4306 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4307
4308 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
4309 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
4310 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
4311 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
4312
4313 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4314
4315 * builtins.c (std_gimplify_va_arg_expr): Use
4316 targetm.calls.function_arg_boundary.
4317 * function.c (assign_parms, locate_and_pad_parm): Likewise.
4318 * calls.c (struct arg_data): Update comment.
4319 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
4320 * target.def (function_arg_boundary): Define.
4321 * targhooks.h (default_function_arg_boundary): Declare.
4322 * targhooks.c (default_function_arg_boundary): Define.
4323 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
4324 TARGET_FUNCTION_ARG_BOUNDARY.
4325 (FUNCTION_ARG_BOUNDARY): Delete.
4326 (TARGET_FUNCTION_ARG_BOUNDARY): New.
4327 * doc/tm.texi: Regenerate.
4328 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
4329 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
4330 * config/arc/arc.c (arc_function_arg_boundary): Define.
4331 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4332 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
4333 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
4334 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
4335 (arm_function_arg_boundary): Define.
4336 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4337 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
4338 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
4339 * config/frv/frv.c (frv_function_arg_boundary): Make static.
4340 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4341 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
4342 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
4343 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
4344 (ix86_compat_function_arg_boundary): Take and return unsigned int.
4345 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4346 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
4347 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
4348 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
4349 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4350 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
4351 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
4352 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4353 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
4354 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
4355 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
4356 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4357 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
4358 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
4359 * config/mips/mips.c (mips_function_arg_boundary): Make static.
4360 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4361 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
4362 * config/pa/pa.c (pa_function_arg_boundary): Define.
4363 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4364 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
4365 * config/picochip/picochip-protos.h
4366 (picochip_get_function_arg_boundary): Delete.
4367 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
4368 Rename to...
4369 (picochip_function_arg_boundary): ...this. Make static.
4370 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
4371 (picochip_arg_advance): Adjust.
4372 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4373 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
4374 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
4375 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
4376 (rs6000_function_arg_boundary): ...this. Make static.
4377 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
4378 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4379 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
4380 * config/rx/rx.c (rx_function_arg_boundary): Define.
4381 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4382 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
4383 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
4384 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4385 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
4386 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
4387 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
4388 (xtensa_function_arg_boundary): ...this. Make static.
4389 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4390
4391 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4392
4393 * expr.c (alignment_for_piecewise_move): New function.
4394 (widest_int_mode_for_size): New function.
4395 (move_by_pieces, move_by_pieces_ninsns): Call them.
4396 (can_store_by_pieces, store_by_pieces_1): Likewise.
4397
4398 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4399
4400 * gcc.c (char_p): Define. Define a VEC of it.
4401 (n_linker_options, n_assembler_options, n_preprocessor_options):
4402 Delete.
4403 (linker_options, assembler_options, preprocessor_options): Convert
4404 to a VEC.
4405 (add_preprocessor_option): Adjust.
4406 (add_assembler_option): Adjust.
4407 (add_linker_option): Adjust.
4408 (do_specs_vec): New function.
4409 (do_spec_1): Call it. Adjust for new types.
4410
4411 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4412
4413 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
4414 (sreal.o, statistics.o, stringpool.o): Likewise.
4415
4416 2010-11-16 Richard Guenther <rguenther@suse.de>
4417
4418 PR tree-optimization/44545
4419 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
4420 statements are not reassociatable.
4421 (reassociate_bb): Likewise.
4422
4423 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
4424
4425 * bitmap.c: Delete unnecessary includes.
4426 * ebitmap.c: Likewise.
4427 * et-forest.c: Likewise.
4428 * sreal.c: Likewise.
4429 * statistics.c: Likewise.
4430 * stringpool.c: Likewise.
4431 * double-int.c: Add comment for inclusion of tm.h.
4432
4433 2010-11-16 Richard Guenther <rguenther@suse.de>
4434
4435 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
4436 (visit_nary_op): ... this.
4437 (visit_binary_op): Remove.
4438 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
4439
4440 2010-11-16 Richard Guenther <rguenther@suse.de>
4441
4442 PR middle-end/45172
4443 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
4444
4445 2010-11-16 Nick Clifton <nickc@redhat.com>
4446
4447 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
4448 record is packed.
4449
4450 2010-11-15 Richard Henderson <rth@redhat.com>
4451
4452 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
4453 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
4454 DOT_PROD_EXPR.
4455
4456 2010-11-15 Richard Henderson <rth@redhat.com>
4457
4458 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
4459 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
4460 fma rtx_code.
4461
4462 2010-11-15 Richard Henderson <rth@redhat.com>
4463
4464 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
4465 and *mulsubsf4 respectively. Use fma rtx_code.
4466
4467 2010-11-15 Joseph Myers <joseph@codesourcery.com>
4468
4469 * gcc.c: Include "vec.h".
4470 (argbuf): Make into a VEC.
4471 (argbuf_length, argbuf_index): Remove.
4472 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
4473 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
4474 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
4475 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
4476 (gcc.o): Depend on $(VEC_H).
4477
4478 2010-11-15 Richard Henderson <rth@redhat.com>
4479
4480 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
4481 via FMA if unsafe math.
4482 (insert_var_expansion_initialization): Handle FMA.
4483 (combine_var_copies_in_loop_exit): Likewise.
4484
4485 2010-11-15 Richard Henderson <rth@redhat.com>
4486
4487 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
4488 * config/ia64/ia64.opt: Remove mfused-madd.
4489 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
4490 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
4491 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
4492 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
4493 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
4494 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
4495 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
4496 (fmav2sf4): Rename from fpma; use FMA code.
4497 (fmsv2sf4): Rename from fpms; use FMA code.
4498 (fnmav2sf4): Rename from *fpnma; use FMA code.
4499 * config/ia64/ia64.md (MODE_SDF): New iterator.
4500 (suffix): New mode attribute.
4501 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
4502 (fmssf4): Rename from *fmssf4.
4503 (fnmasf4): Rename from *nfmasf4.
4504 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
4505 (*nmadddf4, *nmadddf4_truncsf): Remove.
4506 (fmsdf4): Rename from *fmsdf4.
4507 (fnmadf4): Rename from *nfmadf4.
4508 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
4509 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
4510 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
4511 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
4512 (fmsxf4): Rename from *fmsxf4.
4513 (fnmaxf4): Rename from *nfmaxf4.
4514 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
4515 (*fnmaxf_trunc_<MODE_SDF>): New.
4516
4517 2010-11-15 Jakub Jelinek <jakub@redhat.com>
4518
4519 PR tree-optimization/46461
4520 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
4521 a gimple val.
4522
4523 2010-11-15 Ian Lance Taylor <iant@google.com>
4524
4525 * godump.c: New file.
4526 * common.opt (fdump-go-spec=): New option.
4527 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
4528 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
4529 (TYPE_SYMTAB_IS_DIE): Define.
4530 (struct tree_type): Change GTY for symtab field to use
4531 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
4532 to pick the union field.
4533 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
4534 (dump_go_spec_init): Declare.
4535 * toplev.c (process_options): Handle flag_dump_go_spec.
4536 * debug.c: Include "tree.h".
4537 (do_nothing_debug_hooks): Set tree_type_symtab_field.
4538 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4539 * dbxout.c (dbx_debug_hooks): Likewise.
4540 (xcoff_debug_hooks): Likewise.
4541 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4542 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
4543 SDB_DEBUGGING_INFO is not defined.
4544 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
4545 (Overall Options): Document -fdump-go-spec.
4546 * Makefile.in (OBJS-common): Add godump.o.
4547 (debug.o): Add dependency on $(TREE_H).
4548 (godump.o): New target.
4549 (GTFILES): Add $(srcdir)/godump.c.
4550
4551 2010-11-15 Jakub Jelinek <jakub@redhat.com>
4552
4553 PR debug/46095
4554 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
4555 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
4556 style < 0, add REG_FRAME_RELATED_EXPR.
4557
4558 PR debug/46387
4559 * rtl.h (vt_equate_reg_base_value): New prototype.
4560 * alias.c (vt_equate_reg_base_value): New function.
4561 * var-tracking.c (vt_init_cfa_base): Use it.
4562
4563 2010-11-15 Jan Hubicka <jh@suse.cz>
4564 Diego Novillo <dnovillo@google.com>
4565
4566 PR lto/41528
4567 * doc/lto.texi: Add.
4568 * doc/gccint.texi: Add reference to lto.texi.
4569 * doc/invoke.texi: Update user documentation for LTO.
4570 Move internal flags to lto.texi
4571
4572 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4573
4574 * c-typeck.c (build_unary_op): Use
4575 objc_build_incr_expr_for_property_ref to build the pre/post
4576 increment/decrement of an Objective-C property ref, and skip the
4577 lvalue_or_else check in that case.
4578
4579 2010-11-15 Martin Jambor <mjambor@suse.cz>
4580
4581 PR tree-optimization/46349
4582 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
4583 (contains_vce_or_bfcref_p): Likewise.
4584 (sra_modify_assign): Use them.
4585
4586 2010-11-15 Richard Guenther <rguenther@suse.de>
4587
4588 PR tree-optimization/46467
4589 * tree-ssa-structalias.c (do_structure_copy): Properly treat
4590 variables without subvars.
4591
4592 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
4593
4594 * config/picochip/picochip.c (file header): Picochip name change.
4595 * config/picochip/picochip.md (file header): Likewise.
4596 * config/picochip/predicates.md (file header): Likewise.
4597 * config/picochip/dfa_space.md (file header): Likewise.
4598 * config/picochip/dfa_speed.md (file header): Likewise.
4599 * config/picochip/picochip.h(file header): Likewise.
4600 * config/picochip/constraints.md (file header): Likewise.
4601 * config/picochip/picochip-protos.h (file header): Likewise.
4602 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
4603 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
4604 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
4605 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
4606 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
4607 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
4608 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
4609 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
4610 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
4611 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
4612 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
4613 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
4614 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
4615 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
4616
4617 2010-11-15 Richard Guenther <rguenther@suse.de>
4618
4619 PR bootstrap/46474
4620 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
4621
4622 2010-11-15 Nick Clifton <nickc@redhat.com>
4623
4624 * config/stormy16/stormy16.c (direct_return): Do not generate a
4625 direct return for interrupt handlers.
4626
4627 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
4628
4629 * Makefile.in (tm.texi): Replace with rule for:
4630 ($(srcdir)/doc/tm.texi).
4631 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
4632 $(srcdir)/doc/tm.texi .
4633 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
4634 tm.texi .
4635
4636 PR target/46427
4637 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
4638
4639 PR bootstrap/45444
4640 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
4641 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
4642
4643 PR target/46432
4644 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
4645
4646 2010-11-15 Richard Guenther <rguenther@suse.de>
4647
4648 PR lto/44150
4649 * lto-opts.c (lto_write_options): Write -fexceptions even if
4650 not set by the user.
4651
4652 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4653
4654 PR c/46462
4655 * c-decl.c (declspecs_add_type): Make variables with error types
4656 integers.
4657 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
4658 do not start a declaration before an Objective-C foreach.
4659 (c_parser_declaration_or_fndef): Improve recovery after unknown
4660 type name.
4661 (c_parser_for_statement): Hoist entrance of "foreach context"
4662 before ifs, add corresponding reset where it was missing. Do
4663 not set objc_could_be_foreach_context for C.
4664
4665 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
4666
4667 PR tree-optimization/45722
4668 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
4669 this is a reference to a component.
4670 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
4671 (ipa_note_param_call): Adjust comment.
4672
4673 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
4674
4675 * config/mips/mips.c (machine_function): Remove
4676 initialized_mips16_gp_pseudo_p.
4677 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
4678 detect whether a pseudo has already been created. Unconditionally
4679 create a new one if not.
4680 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
4681 expanding to rtl. Create a new pseudo otherwise, if allowed.
4682
4683 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
4684
4685 PR target/43440
4686 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
4687 * tm.texi: Regenerated.
4688 * output.h (decode_reg_name_and_count): Declare.
4689 * varasm.c (decode_reg_name_and_count): New function.
4690 (decode_reg_name): Reimplement using decode_reg_name_and_count.
4691 * reginfo.c (fix_register): Use decode_reg_name_and_count and
4692 iterate over all regs used.
4693 * stmt.c (expand_asm_operands): Likewise.
4694 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
4695 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
4696 multiple machine registers.
4697
4698 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
4699
4700 * stor-layout.c (place_union_field): Do not put location information
4701 on offset expressions.
4702 (place_field): Likewise.
4703 (finalize_record_size): Likewise on size expressions.
4704 (finalize_type_size): Likewise.
4705 (layout_type): Likewise.
4706
4707 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
4708
4709 PR debug/42889
4710 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
4711 * df-core.c (df_set_bb_dirty_nonrl): Remove.
4712 * df.h (df_set_bb_dirty_nonlr): Likewise.
4713
4714 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
4715
4716 * config/mips/mips.md (call_internal): Pass curr_insn to
4717 mips_split_call.
4718 (call_internal_direct): Ditto.
4719 (call_value_internal): Ditto.
4720 (call_value_internal_direct): Ditto.
4721 (call_value_multiple_internal): Ditto.
4722 * config/mips/mips.c (mips_split_call): Do not copy
4723 CALL_INSN_FUNCTION_USAGE here.
4724
4725 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
4726
4727 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
4728 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
4729 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
4730 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
4731 (TUNE_LOONGSON_3A): Define.
4732 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
4733 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
4734 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
4735 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
4736 (mips_rtx_cost_data): Add Loongson-3A.
4737
4738 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
4739
4740 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
4741 switches.
4742
4743 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
4744
4745 * dwarf2out.c (macinfo_entry): New struct.
4746 (output_comp_unit): Emit the section start label here and flag that we
4747 will emit an info section.
4748 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
4749 emitting directly.
4750 (dwarf2out_end_source_file): Likewise.
4751 (dwarf2out_define): Likewise.
4752 (dwarf2out_undef): Likewise.
4753 (output_macinfo): New.
4754 (dwarf2out_init): Do not emit debug section switches here, allocate a
4755 vec for macinfo, when required.
4756 (dwarf2out_finish): First switch to debug_abbrev_section here.
4757 debug_line_section, debug_macinfo_section, Likewise.
4758 Check that the pubtypes table has at least one unpruned entry before
4759 trying to emit it.
4760
4761 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4762
4763 PR c/20385
4764 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
4765 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
4766 token lookahead.
4767 (c_parser_compound_statement_nostart, c_parser_label,
4768 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
4769 (c_parser_declaration_or_fndef): Detect the case now matched by
4770 c_parser_next_tokens_start_declaration, give error and correct it.
4771
4772 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4773
4774 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
4775 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
4776 with typespec_kind.
4777 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
4778 (shadow_tag_warned, check_compound_literal_type): Adjust
4779 uses of tag_defined_p.
4780 (declspecs_add_type): Set typespec_kind.
4781 * c-parser.c (c_parser_declaration_or_fndef,
4782 c_parser_declspecs, c_parser_struct_declaration,
4783 c_parser_parameter_declaration, c_parser_type_name,
4784 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
4785 of type_seen_p.
4786 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
4787 tag_defined_p, pass ctsk_firstref through.
4788
4789 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4790
4791 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
4792 (struct format_wanted_type): Replace field "name" with "kind", add
4793 "format_start" and "format_length".
4794 (check_format_info_main): Fill in new fields. Fill in
4795 FORMAT_WANTED_TYPES even for missing arguments. Move checks
4796 after the final NUL outside the while loop. Do not include
4797 width and precision modifiers in the format_start/format_length
4798 of the main format.
4799 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
4800 arguments. Compute WANTED_TYPE first so that format_type_warning
4801 can be called for missing arguments. Adjust calls to
4802 format_type_warning.
4803 (format_type_warning): Fetch as much information as possible
4804 from format_wanted_type. Adjust printing now that every
4805 warning has a "descr", as well as for missing argument warnings
4806 and to include % sign for format specifiers.
4807
4808 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
4809
4810 PR rtl-optimization/46204
4811 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
4812 Update all callers. Do not recompute topological order. Adjust
4813 fallthrough edges following a degenerate conditional jump.
4814
4815 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4816
4817 * opts-common.c (control_warning_option): New.
4818 * opts.c (set_default_handlers): New.
4819 (decode_options): Use set_default_handlers and
4820 control_warning_option.
4821 (common_handle_option): Update call to enable_warning_as_error.
4822 (enable_warning_as_error): Take gcc_options parameters. Use
4823 control_warning_option.
4824 * opts.h (set_default_handlers, control_warning_option): Declare.
4825
4826 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4827
4828 * Makefile.in (OPTS_H): Define.
4829 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
4830 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
4831 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
4832 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
4833 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
4834 * gcc.c (driver_handle_option): Take location_t parameter.
4835 (process_command, do_self_spec): Update calls to
4836 read_cmdline_option.
4837 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
4838 * langhooks.c (lhd_handle_option): Take location_t parameter.
4839 * langhooks.h (handle_option): Take location_t parameter.
4840 * lto-opts.c (lto_reissue_options): Update call to set_option.
4841 * opts-common.c (handle_option): Make static. Take location_t
4842 parameter and pass it to other functions.
4843 (handle_generated_option): Take location_t parameter and pass it
4844 to other functions.
4845 (read_cmdline_option): Take location_t parameter and pass it to
4846 other functions. Use warning_at and error_at.
4847 (set_option): Take location_t parameter and pass it to other
4848 functions.
4849 * opts.c (common_handle_option): Take location_t parameter and
4850 pass it to other functions.
4851 (enable_warning_as_error): Make static. Take location_t parameter
4852 and pass it to other functions.
4853 (lang_handle_option): Take location_t parameter and pass it to
4854 other functions.
4855 (target_handle_option): Take location_t parameter.
4856 (read_cmdline_options, maybe_default_option,
4857 maybe_default_options, default_options_optimization,
4858 decode_options): Take location_t parameter and pass it to other
4859 functions.
4860 * opts.h: Include input.h.
4861 (struct cl_option_handler_func, decode_options, set_option,
4862 handle_generated_option, read_cmdline_option): Take location_t
4863 parameters.
4864 (handle_option, enable_warning_as_error): Remove.
4865 * toplev.c (toplev_main): Update call to decode_options.
4866
4867 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
4868
4869 * graphite-cloog-util.c (oppose_constraint,
4870 cloog_matrix_to_ppl_constraint,
4871 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
4872 CLooG isl uses unsigned integers. This triggered a warning.
4873
4874 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4875
4876 PR target/46438
4877 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
4878 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
4879 (xtensa_function_arg_1): De-constify cum.
4880 (xtensa_expand_prologue): Use add_reg_note.
4881
4882 PR target/46435
4883 * config/cris/cris.c (saved_regs_mentioned): Delete.
4884 (cris_reload_address_legitimized): Cast itype to enum reload_type.
4885 Remove unused variable op0p.
4886 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
4887 (cris_emit_movem_store): Use add_reg_note.
4888
4889 PR bootstrap/46456
4890 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
4891
4892 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
4893
4894 * function.c (expand_function_end): Set the locator of the prologue on
4895 the stack checking insns.
4896
4897 2010-11-12 Richard Henderson <rth@redhat.com>
4898
4899 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
4900 * config/xtensa/xtensa.opt (mfused-madd): Remove.
4901 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
4902 MASK_FUSED_MADD.
4903 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
4904 (fnmasf4): Rename from mulsubsf3; use fma.
4905
4906 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4907 Richard Henderson <rth@redhat.com>
4908
4909 PR target/46428
4910 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
4911 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
4912 comparison.
4913
4914 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
4915
4916 * opts-common.c (decode_cmdline_option): Initialize separate_args.
4917
4918 2010-11-12 Jan Hubicka <jh@suse.cz>
4919
4920 * doc/invoke.texi (early-inlining-insns): Update default.
4921 * params.def (early-inlining-insns): Default to 10.
4922
4923 2010-11-12 Olivier Hainque <hainque@adacore.com>
4924
4925 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
4926
4927 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4928
4929 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
4930 (SUPPORTS_INIT_PRIORITY): Define.
4931
4932 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4933
4934 PR target/46430
4935 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
4936 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
4937 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
4938 (avr_device_to_devicelib): Likewise.
4939 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
4940 into block.
4941 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
4942 (zero_extendhidi2, zero_extendsidi2): Likewise.
4943 * config/avr/avr.c (avr_num_arg_regs): Constify type.
4944 (avr_return_addr_rtx): De-constify tem.
4945 (avr_rotate_bytes): Move declarations to start of block.
4946 Don't use variable length array. Put nested if/else into block.
4947
4948 PR rtl-optimization/46433
4949 * var-tracking.c: Include tm_p.h .
4950
4951 PR bootstrap/44756
4952 PR build/44767
4953 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
4954 should be unsigned.
4955 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
4956 * doc/tm.texi: Regenerate.
4957
4958 PR target/46412
4959 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
4960 * config/bfin/bfin.c: Include sel-sched.h .
4961 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
4962 (expand_interrupt_handler_prologue): Remove unused variable insn.
4963 (bfin_load_pic_reg): Likewise.
4964 (bfin_rtx_costs): Make code / outer_code variables of type
4965 enum rtx_code, copied from re-named parameters.
4966 (bfin_local_alignment): Change align argument and return type
4967 to unsigned.
4968 (bfin_adjust_cost): Remove unused variable insn_type.
4969 Declare variables at start of block.
4970 (struct loop_info): Rename to...
4971 (struct loop_info_d).
4972 (workaround_rts_anomaly): Change type of icode to int.
4973 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
4974 with int-typed variable.
4975 (note_np_check_stores): Likewise.
4976 (trapping_loads_p): Remove unused variable pat.
4977 (bfin_expand_binop_builtin): Use expand_normal.
4978 (bfin_expand_unop_builtin): Likewise.
4979 (bfin_expand_builtin): Likewise. Set tmode before use.
4980
4981 PR middle-end/44769
4982 * final.c (split_double): Don't use BITS_PER_WORD directly in
4983 shift count.
4984
4985 PR target/46431
4986 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
4987 assignment.
4988
4989 PR target/46450
4990 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
4991 Use add_reg_note.
4992 (xstormy16_function_arg): Dereference cum.
4993 (xstormy16_expand_builtin): Use expand_normal.
4994 Change type of omode to enum machine_mode.
4995 (combine_bnp): Rename and to and_insn.
4996
4997 PR target/46437
4998 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
4999 localreg.
5000
5001 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
5002
5003 PR debug/46375
5004 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
5005
5006 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
5007
5008 PR lto/46376
5009 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
5010
5011 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
5012
5013 PR c/44782
5014 * common.opt (fmax-errors=): New option.
5015 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
5016 * diagnostic.h (struct diagnostic_context): Add max_errors field.
5017 * diagnostic.c (diagnostic_initialize): Initialize it.
5018 (diagnostic_action_after_output): Exit if more than max_errors
5019 have been output.
5020 * doc/invoke.texi (Warning Options): Add -fmax-errors.
5021 (-fmax-errors): Document.
5022
5023 2010-11-11 Richard Henderson <rth@redhat.com>
5024
5025 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
5026
5027 2010-11-11 Richard Henderson <rth@redhat.com>
5028
5029 * config/fused-madd.opt: New file.
5030 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
5031 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
5032 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
5033 * config/i386/i386.opt (mfused-madd): Remove.
5034 * config/i386/sse.md (split_fma): Remove.
5035 (split_fms, split_fnma, split_fnms): Remove.
5036
5037 2010-11-12 Jakub Jelinek <jakub@redhat.com>
5038
5039 PR target/46088
5040 * config/i386/i386.md (*ashl<mode>3_cconly,
5041 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
5042 change nonimmediate_operand predicate to register_operand.
5043
5044 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
5045
5046 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
5047
5048 2010-11-11 Jan Hubicka <jh@suse.cz>
5049
5050 * opts.c (finish_options): Do not error on -flto-partition alone.
5051
5052 * doc/invoke.texi (-fwhopr): Merge into -flto section.
5053 (-flto-partition): Document none.
5054 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
5055 * lto-wrapper.c: Update comment.
5056 (run_gcc): Update LTO option parsing.
5057 * opts.c (finish_options): add support -flto-partition=none
5058 (common_handle_option): Remove fwhopr.
5059 * common.opt: Turn fwhopr into flto.
5060 * collect2.c (main): Update option handling.
5061 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
5062 * ipa-split.c (execute_split_functions): Remove flag_whopr.
5063 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
5064 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
5065 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
5066
5067 2010-11-11 Jan Hubicka <jh@suse.cz>
5068
5069 PR tree-optimize/40436
5070 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
5071 (eliminated_by_inlining_prob): ... this one; return 50% probability
5072 for SRA.
5073 (estimate_function_body_sizes): Update use of
5074 eliminated_by_inlining_prob; estimate static function size
5075 for 2 instructions.
5076
5077 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
5078
5079 PR target/44749
5080 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
5081 declare. Change type of argument four to type int.
5082 (mep_secondary_input_reload_class): Returns enum reg_class.
5083 (mep_secondary_output_reload_class): Likewise.
5084 (mep_function_value): Change types of arguments to cont_tree.
5085 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
5086 argument four to type int.
5087 (mep_secondary_input_reload_class): Returns enum reg_class.
5088 (mep_secondary_output_reload_class): Likewise.
5089 (mep_function_value): Change types of arguments to cont_tree.
5090 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
5091 mep_regno_reg_class to enum reg_class.
5092
5093 2010-11-11 Richard Henderson <rth@redhat.com>
5094
5095 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
5096 that the target has the exact fma operation that we matched.
5097
5098 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5099
5100 * reginfo.c (fix_register): Avoid inserting English word in
5101 diagnostic sentence. Use %qs for quoting and %'.
5102
5103 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
5104
5105 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5106 Intel processor family 6, model 0x2c.
5107
5108 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5109
5110 * opts.c (warning_as_error_callback,
5111 register_warning_as_error_callback): Remove.
5112 (enable_warning_as_error): Don't use warning_as_error_callback.
5113 * opts.h (register_warning_as_error_callback): Remove.
5114
5115 2010-11-11 Richard Henderson <rth@redhat.com>
5116
5117 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
5118 in between the MULT and the PLUS/MINUS.
5119
5120 2010-11-11 Jakub Jelinek <jakub@redhat.com>
5121
5122 PR middle-end/46388
5123 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
5124 BLKmode mode for it.
5125 (expand_expr_real_1): Similarly for op0.
5126
5127 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5128
5129 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
5130 Document optional target selector.
5131
5132 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
5133
5134 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
5135 assembling high and low parts of size if not using 32-bit HWINT; else
5136 use DECL_SIZE_UNITS, not DECL_SIZE.
5137
5138 2010-11-11 Martin Jambor <mjambor@suse.cz>
5139
5140 PR tree-optimization/46383
5141 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
5142 offsets.
5143 (compute_complex_ancestor_jump_func): Likewise.
5144 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
5145
5146 2010-11-11 Jakub Jelinek <jakub@redhat.com>
5147
5148 PR debug/46150
5149 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
5150 true if expr1->hash != expr2->hash.
5151
5152 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5153
5154 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
5155 diagnostics with lowercase letters.
5156 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
5157 lowercase letters.
5158 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
5159 diagnostic.
5160 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5161 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
5162 lowercase letters.
5163 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5164 Remove trailing ' ' from diagnostic.
5165 * config/avr/avr.c (print_operand_address): Start diagnostic with
5166 a lowercase letter and remove trailing '.'.
5167 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
5168 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
5169 with lowercase letters. Use %' in diagnostics. Remove trailing
5170 '.' from diagnostics.
5171 (bfin_handle_longcall_attribute): Use %' in diagnostic.
5172 * config/cris/cris.c (cris_split_movdx,
5173 cris_expand_pic_call_address): Start diagnostics with lowercase
5174 letters.
5175 (cris_asm_output_label_ref): Use %' in diagnostic.
5176 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
5177 letter.
5178 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
5179 lowercase letter.
5180 * config/darwin-c.c (version_as_macro): Start diagnostic with a
5181 lowercase letter.
5182 * config/darwin-driver.c (darwin_default_min_version): Use %' in
5183 diagnostic.
5184 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
5185 diagnostic.
5186 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5187 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
5188 diagnostics.
5189 * config/i386/i386.c (ix86_option_override_internal): Write
5190 diagnostic as a single sentence without trailing '.'. Use %' in
5191 diagnostics.
5192 (ix86_function_sseregparm, classify_argument): Start diagnostics
5193 with lowercase letters.
5194 (ix86_expand_prologue): Use %' in diagnostic.
5195 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
5196 diagnostic.
5197 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
5198 lowercase letter.
5199 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
5200 diagnostic.
5201 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5202 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
5203 '`' in help text.
5204 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
5205 lowercase letter.
5206 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
5207 lowercase letters.
5208 * config/microblaze/microblaze.c (microblaze_handle_option):
5209 Remove trailing '.' from diagnostic.
5210 (print_operand): Start diagnostic with a lowercase letter.
5211 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
5212 lowercase letters. Avoid '`' in diagnostics.
5213 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
5214 lowercase letters. Avoid '`' in diagnostics.
5215 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
5216 lowercase letters. Avoid '`' in diagnostics.
5217 * config/picochip/picochip.c (picochip_option_override,
5218 picochip_emit_save_register, picochip_function_arg,
5219 picochip_output_label, picochip_output_internal_label,
5220 picochip_asm_output_opcode, picochip_output_cbranch,
5221 picochip_output_compare, picochip_output_branch,
5222 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
5223 diagnostics. Start diagnostics with lowercase letters. Use %' in
5224 diagnostics.
5225 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
5226 "SPE" capitalization. Start diagnostic with a lowercase letter.
5227 (rs6000_handle_option): Start diagnostics with lowercase letters.
5228 (def_builtin): Remove trailing '.' from diagnostic.
5229 (rs6000_savres_routine_name): Start diagnostic with a lowercase
5230 letter.
5231 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
5232 diagnostic.
5233 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
5234 lowercase letter.
5235 * config/s390/s390.c (s390_option_override) Start diagnostics with
5236 lowercase letters. Use %' in diagnostic.
5237 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
5238 lowercase letters.
5239 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
5240 diagnostic.
5241 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
5242 diagnostic.
5243 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
5244 diagnostic.
5245 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5246 * config/spu/spu.c (spu_option_override): Start diagnostics with
5247 lowercase letters. Use %qs for quoting in diagnostics.
5248 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
5249 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
5250 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
5251 from diagnostic.
5252 * convert.c (convert_to_integer, convert_to_vector): Use %' in
5253 diagnostics.
5254 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
5255 letter and use "cannot" spelling.
5256 * expmed.c (extract_fixed_bit_field): Start diagnostic with
5257 lowercase letter and format as a single sentence without '.'.
5258 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
5259 Use %' in diagnostics.
5260 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
5261 Use %' in diagnostics.
5262 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
5263 Use %' in diagnostics.
5264 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
5265 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
5266 with lowercase letters and remove tailing '.' and '\n'.
5267 * lto-cgraph.c (input_profile_summary): Start diagnostic with
5268 lowercase letter and remove trailing '.'.
5269 (input_cgraph): Start diagnostics with lowercase letters and
5270 remove trailing '\n'.
5271 * opts.c (finish_options, common_handle_option): Start diagnostics
5272 with lowercase letters and remove trailing '.'. Fix typo in
5273 diagnostic.
5274 * passes.c (position_pass): Start diagnostic with lowercase letter.
5275 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
5276 register_callback, try_init_one_plugin): Start diagnostics with
5277 lowercase letters.
5278 * reload1.c (spill_failure): Use %' in diagnostic.
5279 (gen_reload): Start diagnostic with a lowercase letter.
5280 * stor-layout.c (place_field): Start diagnostic with a lowercase
5281 letter.
5282 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
5283 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
5284 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
5285 Start diagnostics with lowercase letters, remove trailing '.' and
5286 use %' in diagnostics.
5287 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
5288 (verify_ssa): Don't split diagnostic across two error calls.
5289 Spell out "number" and use %' in diagnostic.
5290 * value-prof.c (visit_hist, check_counter): Start diagnostics with
5291 lowercase letters.
5292
5293 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
5294
5295 PR middle-end/46419
5296 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
5297 (_mm_cvtpu16_ps): Ditto.
5298
5299 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5300
5301 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
5302 warn_larger_than, larger_than_size, warn_frame_larger_than,
5303 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
5304 default_visibility, flag_tls_default): New Variable declarations.
5305 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
5306 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
5307 (v): Declare as Common and document here.
5308 * flags.h (default_visibility, flag_generate_lto,
5309 warn_larger_than, larger_than_size, warn_frame_larger_than,
5310 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
5311 flag_shlib, flag_excess_precision_cmdline): Remove.
5312 (set_Wstrict_aliasing): Update prototype.
5313 * gcc.c (verbose_flag): Remove.
5314 (driver_handle_option): Add diagnostic_context parameter. Don't
5315 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
5316 incrementing it.
5317 * opts-common.c (handle_option): Pass dc to handler.
5318 * opts.c (warn_larger_than, larger_than_size,
5319 warn_frame_larger_than, frame_larger_than_size,
5320 default_visibility): Remove.
5321 (common_handle_option): Add diagnostic_context parameter.
5322 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
5323 gcc_options parameters.
5324 (lang_handle_option, target_handle_option, read_cmdline_options,
5325 decode_options): Add diagnostic_context parameters.
5326 (finish_options): Access option state through opts pointer where
5327 possible.
5328 (common_handle_option): Access option state through opts pointer
5329 where possible. Do not set local static variable verbose. Do not
5330 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
5331 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
5332 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
5333 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
5334 OPT_fwhopr_. Do not explicitly set .opt file variables for
5335 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
5336 (set_Wstrict_aliasing): Add gcc_options parameter.
5337 * opts.h (struct cl_option_handler_func): Add diagnostic_context
5338 parameter to handler.
5339 (decode_options): Add diagnostic_context parameter.
5340 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
5341 asm_file_name, flag_generate_lto, flag_gen_aux_info,
5342 aux_info_file_name, flag_shlib, flag_tls_default,
5343 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
5344 (toplev_main): Pass global_dc to decode_options.
5345 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
5346 aux_info_file_name, asm_file_name): Remove.
5347 * tree.h (flag_tls_default): Remove.
5348
5349 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
5350
5351 PR target/45986
5352 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
5353 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
5354
5355 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
5356
5357 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
5358 (x86_64-*-*): Likewise.
5359 * config/i386/cpuid.h: Define TBM bit.
5360 * config/i386/driver-i386.c (host_detect_local_cpu): Define
5361 and set has_tbm.
5362 * config/i386/i386-c.c (ix86_target_macros_internal): Check
5363 isa_flag for TBM.
5364 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
5365 (OPTION_MASK_ISA_TBM_UNSET): New.
5366 (ix86_handle_option): Handle -mtbm.
5367 (isa_opts): Add -mtbm.
5368 (enum pta_flags): Add PTA_TBM.
5369 (ix86_option_override_internal): Add TBM support.
5370 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
5371 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
5372 (IX86_BUILTIN_BEXTRI64): Likewise.
5373 (bdesc_args): Add TBM intrinsics.
5374 (ix86_expand_builtin): Add TBM specific case.
5375 * config/i386/i386.h (TARGET_TBM): New for TBM.
5376 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
5377 (tbm_bextri_<mode>): Likewise.
5378 (*tbm_blcfill_<mode>): Likewise.
5379 (*tbm_blci_<mode>): Likewise.
5380 (*tbm_blcic_<mode>): Likewise.
5381 (*tbm_blcmsk_<mode>): Likewise.
5382 (*tbm_blcs_<mode>): Likewise.
5383 (*tbm_blsfill_<mode>): Likewise.
5384 (*tbm_blsic_<mode>): Likewise.
5385 (*tbm_t1mskc_<mode>): Likewise.
5386 (*tbm_tzmsk_<mode>): Likewise.
5387 * config/i386/i386.opt: Add -mtbm.
5388 * config/i386/tbmintrin.h (__bextri_u32): New.
5389 (__blcfill_u32): Likewise.
5390 (__blci_u32): Likewise.
5391 (__blcic_u32): Likewise.
5392 (__blcmsk_u32): Likewise.
5393 (__blcs_u32): Likewise.
5394 (__blsfill_u32): Likewise.
5395 (__blsic_u32): Likewise.
5396 (__t1mskc_u32): Likewise.
5397 (__tzmsk_u32): Likewise.
5398 (__bextri_u64): Likewise.
5399 (__blcfill_u64): Likewise.
5400 (__blci_u64): Likewise.
5401 (__blcic_u64): Likewise.
5402 (__blcmsk_u64): Likewise.
5403 (__blcs_u64): Likewise.
5404 (__blsfill_u64): Likewise.
5405 (__blsic_u64): Likewise.
5406 (__t1mskc_u64): Likewise.
5407 (__tzmsk_u64): Likewise.
5408 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
5409 * doc/invoke.texi: Document -mtbm.
5410 * doc/extend.texi: Document TBM built-in functions.
5411
5412 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
5413
5414 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
5415 (x86_64-*-*): Likewise.
5416 * config/i386/cpuid.h: Define BMI bit.
5417 * config/i386/driver-i386.c (host_detect_local_cpu): Define
5418 and set has_bmi.
5419 * config/i386/i386-c.c (ix86_target_macros_internal): Check
5420 isa_flag for BMI.
5421 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
5422 (OPTION_MASK_ISA_BMI_UNSET): New.
5423 (ix86_handle_option): Handle -mbmi.
5424 (isa_opts): Add -mbmi.
5425 (enum pta_flags): Add PTA_BMI.
5426 (ix86_option_override_internal): Add BMI support.
5427 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
5428 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
5429 (IX86_BUILTIN_BEXTR64): Likewise.
5430 (IX86_BUILTIN_CTZS): Likewise.
5431 (bdesc_args): Add BMI intrinsics.
5432 (ix86_expand_args_builtin): Add BMI specific cases.
5433 * config/i386/i386.h (TARGET_BMI): New for BMI.
5434 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
5435 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
5436 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
5437 (UNSPEC_TZCNT): Likewise.
5438 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
5439 (bmi_andn_<mode>): New for BMI.
5440 (bmi_bextr_<mode>): Likewise.
5441 (bmi_blsi_<mode>): Likewise.
5442 (bmi_blsmsk_<mode>): Likewise.
5443 (bmi_blsr_<mode>): Likewise.
5444 * config/i386/i386.opt: Add -mbmi.
5445 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
5446 * config/i386/bmiintrin.h (__lzcnt_u16): New.
5447 (__tzcnt_u16): Likewise.
5448 (__andn_u32): Likewise.
5449 (__bextr_u32): Likewise.
5450 (__blsi_u32): Likewise.
5451 (__blsmsk_u32): Likewise.
5452 (__blsr_u32): Likewise.
5453 (__lzcnt_u32): Likewise.
5454 (__tzcnt_u32): Likewise.
5455 (__andn_u64): Likewise.
5456 (__bextr_u64): Likewise.
5457 (__blsi_u64): Likewise.
5458 (__blsmsk_u64): Likewise.
5459 (__blsr_u64): Likewise.
5460 (__lzcnt_u64): Likewise.
5461 (__tzcnt_u64): Likewise.
5462 * doc/invoke.texi: Document -mbmi and -mno-bmi.
5463 * doc/extend.texi: Document BMI built-in functions.
5464
5465 2010-11-10 Jan Hubicka <jh@suse.cz>
5466
5467 PR tree-optimize/46228
5468 * doc/invoke.texi (comdat-sharing-probability): Document.
5469 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
5470 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
5471
5472 2010-11-10 Jan Hubicka <jh@suse.cz>
5473
5474 PR tree-optimize/46228
5475 * cgraph.c (cgraph_propagate_frequency): Fix typo.
5476
5477 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
5478
5479 PR tree-optimization/46414
5480 * tree-inline.c (estimate_move_cost): Check preferred vector
5481 mode for vector type.
5482
5483 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5484
5485 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
5486
5487 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
5488
5489 PR tree-optimization/45971
5490 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
5491 for phi nodes analyzable by scev.
5492
5493 2010-11-10 Richard Guenther <rguenther@suse.de>
5494
5495 PR tree-optimization/44964
5496 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
5497
5498 2010-11-10 Martin Jambor <mjambor@suse.cz>
5499
5500 PR tree-optimization/46351
5501 PR tree-optimization/46377
5502 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
5503 aggregate bit-fields.
5504
5505 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5506
5507 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5508 * doc/tm.texi: Regenerate.
5509 * opts-common.c (tm.h): Don't include.
5510 (target_option_translations): Remove.
5511 (decode_cmdline_options_to_array): Don't handle translating options.
5512 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
5513 * config/darwin-driver.c: Don't condition includes on
5514 CROSS_DIRECTORY_STRUCTURE.
5515 (darwin_default_min_version): Make static.
5516 (darwin_driver_init): New. Call darwin_default_min_version if not
5517 CROSS_DIRECTORY_STRUCTURE.
5518 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5519 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
5520 (ASM_SPEC): Add %{static}.
5521 (darwin_default_min_version): Don't declare.
5522 (darwin_driver_init): Declare.
5523 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
5524 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
5525 * config/darwin.opt (all_load, allowable_client,
5526 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
5527 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
5528 exported_symbols_list, filelist, findirect-virtual-calls,
5529 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
5530 framework, fterminated-vtables, gfull, gused, image_base, init,
5531 install_name, multi_module, multiply_defined,
5532 multiply_defined_unused, no_dead_strip_inits_and_terms,
5533 seg_addr_table, seg_addr_table_filename, segaddr,
5534 segs_read_only_addr, segs_read_write_addr, single_module,
5535 umbrella, unexported_symbols_list, weak_reference_mismatches,
5536 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
5537 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
5538 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
5539 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
5540 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
5541 (ASM_SPEC): Add %{static}.
5542 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
5543 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5544 (DRIVER_SELF_SPECS): Handle options formerly in
5545 TARGET_OPTION_TRANSLATE_TABLE.
5546 * config/mep/mep.opt (mfar): New.
5547 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5548 (DRIVER_SELF_SPECS): Define. Handle options formerly in
5549 TARGET_OPTION_TRANSLATE_TABLE.
5550 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
5551 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
5552 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
5553 ffix-and-continue, findirect-data): New.
5554 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
5555 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
5556 (mnofpu): Define mask and use Report here.
5557
5558 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5559
5560 * config/s390/s390.c (s390_emit_prologue): Report the stack
5561 size if -fstack-usage is used.
5562
5563 2010-11-10 Richard Guenther <rguenther@suse.de>
5564
5565 PR tree-optimization/46398
5566 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
5567
5568 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
5569
5570 PR target/44760
5571 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
5572 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
5573 GP_REG_OR_PSEUDO_STRICT_P.
5574 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
5575 unexpected alternative.
5576 (*movsf_internal): Likewise.
5577 (indirect_jump): Replace call to non-existant function with call to
5578 internal_error.
5579 (tablejump): Likewise.
5580 * config/iq2000/iq2000.c: Include df.h .
5581 (iq2000_function_arg_advance): Use CONST_CAST2.
5582 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
5583 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
5584 a non-zero function address.
5585 (iq2000_initial_elimination_offset): Add gcc_unreachable for
5586 unexpected value of FROM.
5587 (symbolic_expression_p): Delete.
5588 (iq2000_function_value): Constify func.
5589 (expand_one_builtin): Use expand_normal.
5590 (iq2000_print_operand): Don't print VALUE if calculating it failed.
5591
5592 PR rtl-optimization/44764
5593 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
5594
5595 PR target/46407
5596 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
5597 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
5598 with ATTRIBUTE_UNUSED.
5599 (valid_psw_flag): Constify parameter which.
5600 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
5601
5602 PR target/46415
5603 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
5604 (mmix_dbx_register_number): Likewise.
5605 * config/mmix/mmix.c: Include df.h .
5606 (mmix_local_alignment): Change argument basic_align and return type
5607 to unsigned.
5608 (mmix_dbx_register_number): Change argument and return type to
5609 unsigned.
5610 (mmix_expand_prologue): Use add_reg_note.
5611
5612 PR target/46417
5613 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
5614 (spu_split_store): Use aform.
5615 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
5616
5617 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5618
5619 PR/46268
5620 * doc/gty.texi (GTY Options): Clarify that variable_size produces
5621 allocators taking size in bytes, compare with length option. Add
5622 size calculation example.
5623 (Invoking the garbage collector): Ensure that sentences are
5624 followed by two spaces. Describe that pointer fields must be
5625 initialized at ggc_collect call.
5626 (Troubleshooting): New section.
5627
5628 2010-11-09 Jan Hubicka <jh@suse.cz>
5629
5630 PR tree-optimization/40436
5631 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
5632 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
5633 normal instructions; be sure bultin is not implemented in this file;
5634 compute non-zero return cost.
5635 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
5636 * tree-inline.h (eni_weights_d): Add return cost.
5637
5638 2010-11-09 Joseph Myers <joseph@codesourcery.com>
5639
5640 * c-parser.c (c_parser_struct_declaration): Handle declaration
5641 specifiers followed by CPP_CLOSE_BRACE.
5642
5643 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5644
5645 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
5646 split occurs before reload, and we allocate memory at the time of
5647 the split, not during expansion. Add attributes.
5648 (floatsi<mode>2_lfiwax_mem): Ditto.
5649 (floatunssi<mode>2_lfiwzx): Ditto.
5650 (floatunssi<mode>2_lfiwzx_mem): Ditto.
5651 (floatsidf2): Ditto.
5652 (floatunssisf2): Ditto.
5653 (floatunssidf2): Ditto.
5654 (fix_trunc<mode>si2): Ditto.
5655 (fix_trunc<mode>si2_stfiwx): Ditto.
5656 (fix_trunc<mode>si2_internal): Ditto.
5657 (fix_trunc<mode>si2): Ditto.
5658 (fix_trunc<mode>di2): Ditto.
5659 (fixuns_trunc<mode>si2_stfiwx): Ditto.
5660 (floatsisf2): Ditto.
5661 (floatdidf2_mem): Ditto.
5662 (floatunsdidf2_mem): Ditto.
5663 (floatunsdidf2): Ditto.
5664 (floatdisf2_internal1): Ditto.
5665 (floatdisf2_mem): Ditto.
5666 (floatunsdisf2_mem): Ditto.
5667 (floatsi<mode>2_lfiwax_mem2): Delete.
5668 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
5669 (fix_trunc<mode>si2_mem): Ditto.
5670 (fixuns_trunc<mode>si2_mem): Ditto.
5671 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
5672 type operations to reduce copying the values to multiple memory slots.
5673 (roundu32<mode>2_fprs): Ditto.
5674
5675 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
5676 PRE_INC, PRE_DEC, PRE_MODIFY.
5677 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
5678
5679 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
5680 Delete prototype.
5681
5682 2010-11-09 Jakub Jelinek <jakub@redhat.com>
5683
5684 PR target/43808
5685 * cfgexpand.c (partition_stack_vars): Call
5686 update_alias_info_with_stack_vars unconditionally.
5687 (update_alias_info_with_stack_vars): Allow unused
5688 unreferenced vars when not optimizing.
5689
5690 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
5691
5692 PR tree-optimization/46036
5693 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
5694 add_to_dst_predicate_list.
5695
5696 2010-11-09 Jakub Jelinek <jakub@redhat.com>
5697
5698 PR debug/46171
5699 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
5700 earlier.
5701 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
5702 argument, call dead_debug_reset when adding REG_UNUSED note.
5703 (dead_debug_reset): New function.
5704 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
5705 df_create_unused_note callers.
5706
5707 2010-11-09 Anatoly Sokolov <aesok@post.ru>
5708
5709 * config/fr30/fr30.c: Include "df.h".
5710
5711 2010-11-09 Richard Guenther <rguenther@suse.de>
5712
5713 PR tree-optimization/46355
5714 * tree-loop-distribution.c (tree_loop_distribution): Do not
5715 distribute loops without a single exit.
5716
5717 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5718
5719 PR rtl-optimization/46237
5720 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
5721 saved hard regs if they might get partially clobbered.
5722
5723 2010-11-09 Paul Koning <ni1d@arrl.net>
5724
5725 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
5726
5727 2010-11-09 Richard Guenther <rguenther@suse.de>
5728
5729 PR tree-optimization/46177
5730 * tree-loop-distribution.c (prop_phis): Remove.
5731 (generate_builtin): Re-use the old loop exit edge to avoid
5732 needing to update PHI nodes.
5733
5734 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
5735
5736 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
5737 type of args_size to unsigned HOST_WIDE_INT.
5738
5739 PR target/44755
5740 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
5741 * config/t-pnt16-warn: New file.
5742 * config/picochip/picochip.c (picochip_emit_stack_allocate):
5743 Use add_reg_note.
5744 (picochip_emit_save_register): Likewise.
5745 (picochip_emit_restore_register): Remove variable insn.
5746 (picochip_legitimize_address): Don't use C++ style comments.
5747 (picochip_legitimize_reload_address): Likewise.
5748 (reorder_var_tracking_notes): Remove variable vliw_start.
5749 (picochip_reorg): Cast first arguemnt to emit_note_after to
5750 enum insn_note.
5751 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
5752 (picochip_expand_builtin_3op): Likewise.
5753 (picochip_expand_builtin_2opvoid): Likewise.
5754 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
5755 (picochip_expand_array_testport): Likewise.
5756 (picochip_init_builtins): Remove unused variables.
5757 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
5758 to unsigned long, and output it as such.
5759 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
5760 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
5761 (schedType): Cast result of picochip_schedule_type to
5762 enum attr_schedType.
5763
5764 PR target/44759
5765 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
5766 conditional to type of S.
5767 (mn10300_function_arg): Remove unused variable align.
5768 (mn10300_arg_partial_bytes): Likewise.
5769 * config/mn10300/mn10300.md (attribute cpu): Cast value to
5770 enum attr_cpu.
5771
5772 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
5773
5774 PR bootstrap/46392
5775 * gengtype-parse.c (type): Call get_input_file_name to get file name.
5776
5777 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
5778
5779 * tree.h (contains_placeholder_p): Fix comment.
5780 (type_contains_placeholder_p): Adjust comment.
5781 * tree.c (contains_placeholder_p): Fix comment.
5782 (type_contains_placeholder_1): Do not recurse on pointed-to types and
5783 adjust comment.
5784 (type_contains_placeholder_p): Add comment.
5785
5786 2010-11-09 Paul Koning <ni1d@arrl.net>
5787
5788 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
5789 output of byte values.
5790
5791 2010-11-09 Jakub Jelinek <jakub@redhat.com>
5792
5793 PR middle-end/46360
5794 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
5795 not in SSA mode.
5796
5797 2010-11-09 Richard Guenther <rguenther@suse.de>
5798
5799 PR middle-end/46221
5800 * varasm.c (compute_visible_aliases): New function.
5801 (remove_unreachable_alias_pairs): Aliases make a target available
5802 even though we reclaimed the cgraph node.
5803 (finish_aliases_1): Likewise.
5804 * Makefile.in (varasm.o): Add pointer-set.h dependency.
5805
5806 2010-11-09 Nick Clifton <nickc@redhat.com>
5807
5808 * config/mn10300/mn10300-modes.def: New file.
5809
5810 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
5811 Jeremie Salvucci <jeremie.salvucci@free.fr>
5812
5813 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
5814 (plugin_files, get_file_basename, get_file_realbasename)
5815 (get_file_langdir, error_at_line, gt_files, this_file)
5816 (system_h_file, read_input_list, create_field_all)
5817 (get_file_srcdir_relative_path, get_file_basename)
5818 (get_file_langdir, get_file_gtfilename)
5819 (get_output_file_with_visibility, get_output_file_name)
5820 (struct flist, put_mangled_filename, walk_type)
5821 (put_mangled_filename, finish_root_table, write_roots): Use
5822 input_file-s.
5823 (lang_dir_names, num_lang_dirs): Remove static.
5824 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
5825 (main): Use input_file-s.
5826
5827 * gengtype.h: (struct input_file_st, input_file): New type.
5828 (struct fileloc): Use it.
5829 (gt_files, num_gt_files, this_file, system_h_file)
5830 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
5831 (get_input_file_name): New function.
5832 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
5833 use input_file.
5834 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
5835 (get_output_file_name): Ditto.
5836
5837 * gengtype-lex.l (yybegin): Use input_file.
5838
5839 * gengtype-parse.c (parse_error): Use input_file.
5840
5841 2010-11-08 Xinliang David Li <davidxl@google.com>
5842
5843 PR tree-optimization/46316
5844 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
5845 * double-int.h (double_int_mul_with_sign): New function.
5846 * double-int.c (double_int_mul_with_sign): New function.
5847
5848 2010-11-08 Paul Koning <ni1d@arrl.net>
5849
5850 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
5851
5852 2010-11-08 Paul Koning <ni1d@arrl.net>
5853
5854 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
5855
5856 2010-11-08 Paul Koning <ni1d@arrl.net>
5857
5858 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
5859 to 8 bits.
5860
5861 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5862
5863 PR target/46378
5864 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5865 turn on ISA 2.04 rounding instructions for power5.
5866
5867 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
5868 not ISA 2.02.
5869
5870 PR target/45585
5871 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
5872 in FPR registers.
5873 (movdi_low_st): Ditto.
5874
5875 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5876 Richard Henderson <rth@redhat.com>
5877
5878 PR target/44758
5879 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
5880 (attribute acc_group): Cast value to enum attr_acc_group.
5881 (*movdi_nodouble+6): Use gen_int_mode.
5882 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
5883 if RTX_CODE is defined or not.
5884 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
5885 struct frv_io.
5886 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
5887 (frv_frame_access, frv_expand_prologue): Remove unused variables.
5888 (frv_expand_block_clear): Likewise.
5889 (frv_trampoline_init): Use LCT_NORMAL.
5890 (struct frv_packet_group): New struct, broken out of type of
5891 frv_packet.
5892 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
5893 use cast in loop counter increment.
5894 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
5895 assigning to io->type.
5896 (bdesc_set): Use rtx_code UNKNOWN in initializer.
5897 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
5898 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
5899 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
5900 (frv_read_argument): Use expand_normal.
5901
5902 PR target/44757
5903 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
5904 lm32_legitimate_constant_p.
5905 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5906 * config/lm32/lm32.c (gen_int_relational): Make new block for
5907 LE / LT / LEU / LTU case. Declare variables at start of block.
5908 (lm32_block_move_inline): Use XALLOCAVEC.
5909
5910 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5911
5912 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
5913
5914 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5915
5916 * gengtype (get_output_file_for_structure): Ensure type is union
5917 or struct.
5918 (write_splay_tree_allocator_def): Use
5919 get_output_file_with_visibility.
5920
5921 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5922
5923 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
5924 to defined values in case of an error.
5925 (s390_option_override): Skip further processing if the -march
5926 parameter wasn't recognized.
5927
5928 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5929
5930 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
5931 assert that REG is a hard register number before using it as an index.
5932
5933 PR bootstrap/46358
5934 * config/i386/i386.c (ix86_expand_split_stack_prologue):
5935 Avoid warnings when HOST_WIDE_INT is 32 bit.
5936
5937 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
5938
5939 PR target/46208
5940 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
5941 (sparc_promote_prototypes): Likewise.
5942 (sparc_promote_function_mode): Promote in 32-bit mode as well.
5943 (sparc_return_in_memory): Remove superfluous parentheses.
5944 (sparc_struct_value_rtx): Fix long lines.
5945 (sparc_function_value_1): Promote in 32-bit mode as well.
5946
5947 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
5948
5949 PR rtl-optimization/45352
5950 * sel-sched.c (find_best_expr): Do not set pneed_stall when
5951 the variable_issue hook is not implemented.
5952 (fill_insns): Remove dead variable stall_iterations.
5953 (init_seqno_1): Force EBB start for resetting sched cycles on any
5954 successor blocks of the rescheduled region.
5955 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
5956 (reset_sched_cycles_in_current_ebb): Add debug printing.
5957 New variable issued_insns. Advance state when we have issued
5958 issue_rate insns.
5959
5960 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5961
5962 * gengtype (main): Get here's position using POS_HERE macro for
5963 do*typedef calls.
5964
5965 2010-11-07 Ian Lance Taylor <iant@google.com>
5966
5967 PR target/46089
5968 * config/i386/i386.c (split_stack_fn_large): New static variable.
5969 (ix86_expand_split_stack_prologue): Handle large model.
5970
5971 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
5972
5973 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
5974 all possible addressing modes.
5975
5976 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
5977
5978 PR tree-optimization/46346
5979 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
5980
5981 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5982
5983 * config/mips/mips.c: Revert previous patch.
5984 * config/mips/mips.md: Likewise.
5985
5986 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5987
5988 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
5989 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
5990 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
5991 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
5992 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
5993 to use FMA.
5994 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
5995 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
5996 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
5997 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
5998
5999 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
6000
6001 PR c/43384
6002 * c-decl.c (lookup_label): Labels can only be referenced in a
6003 function's scope.
6004 (store_parm_decls_oldstyle): Skip erroneous parameters.
6005
6006 2010-11-06 Anatoly Sokolov <aesok@post.ru>
6007
6008 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6009 LIBCALL_VALUE): Remove macros.
6010 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6011 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6012 (fr30_function_value_regno_p, fr30_function_value,
6013 fr30_libcall_value): New functions.
6014
6015 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
6016
6017 PR middle-end/46314
6018 * target.def (generate_internal_label): New asm_out hook.
6019 * output.h (default_generate_internal_label): Declare.
6020 * varasm.c (default_generate_internal_label): Define.
6021
6022 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6023
6024 PR target/44981
6025 * doc/extend.tex (format): Document NSString extension.
6026 (format_arg): Likewise.
6027 (Darwin Format Checks): New section.
6028 * doc/tm.texi: Document string object hooks (generated).
6029 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
6030 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
6031 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
6032 * target.def (objc_construct_string_object): Rename, amend
6033 documentation.
6034 (string_object_ref_type_p): New hook.
6035 (check_string_object_format_arg): New hook.
6036 * c-parser.c (c_parser_attributes): Allow objective-c class names as
6037 attribute identifiers.
6038 * config/darwin-c.c (darwin_cfstring_ref_p): New.
6039 (darwin_check_cfstring_format_arg): New.
6040 (darwin_additional_format_types): New.
6041 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
6042 (darwin_check_cfstring_format_arg): New.
6043 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
6044 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
6045 (TARGET_N_FORMAT_TYPES): New.
6046 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
6047
6048 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
6049 Pascal Obry <obry@adacore.com>
6050
6051 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
6052 in 64-bit mode and 17 otherwise.
6053
6054 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6055
6056 PR debug/45939
6057 * var-tracking.c (emit_note_insn_var_location): Make sure that
6058 call related var location notes come before the normal ones.
6059
6060 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
6061
6062 PR target/46326
6063 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
6064 in the last change.
6065
6066 2010-11-05 Ian Lance Taylor <iant@google.com>
6067
6068 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
6069
6070 2010-11-05 Jakub Jelinek <jakub@redhat.com>
6071
6072 PR c/44772
6073 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
6074 pointer_set_contains if DECL_NAME is NULL.
6075
6076 2010-11-05 Ian Lance Taylor <iant@google.com>
6077
6078 PR target/46084
6079 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
6080 request enough additional space for alignment, and force alignment.
6081
6082 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
6083
6084 * config/i386/i386.c (legitimate_pic_address_disp_p):
6085 Handle UNSPEC_PCREL.
6086 (ix86_legitimate_address_p): Likewise.
6087 (legitimize_pic_address): Likewise.
6088 (output_pic_addr_const): Likewise.
6089 (ix86_delegitimize_address): Likewise.
6090 (ix86_find_base_term): Likewise.
6091 (memory_address_length): Likewise.
6092 (x86_output_mi_thunk): Handle special case x64
6093 for non local binding.
6094 * config/i386/i386.md (UNSPEC_PCREL): New.
6095 * config/i386/winnt.c (i386_pe_binds_local_p):
6096 Allow weak symbol for x64 windows with non-local binding.
6097
6098 2010-11-05 Jakub Jelinek <jakub@redhat.com>
6099
6100 PR target/45670
6101 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
6102 instead of EXPAND_NORMAL for base expansion.
6103
6104 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
6105
6106 * config.gcc: Support --with-fpmath=avx for x86.
6107 * config/i386/avxmath.h: New.
6108 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
6109
6110 2010-11-05 Ian Lance Taylor <iant@google.com>
6111
6112 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
6113 * gengtype.c (walk_type): Don't recognize descbits option.
6114
6115 2010-11-05 Joseph Myers <joseph@codesourcery.com>
6116
6117 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
6118 WORD_SWITCH_TAKES_ARG): Remove.
6119 * doc/options.texi (Args): Document.
6120 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
6121 * doc/tm.texi: Regenerate.
6122 * opt-functions.awk (switch_flags): Handle Args.
6123 * opts-common.c: Update comment on tm.h include.
6124 (decode_cmdline_option): Handle options with multiple arguments.
6125 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
6126 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
6127 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6128 CL_COMMON): Update values.
6129 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
6130 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
6131 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
6132 sectobjectsymbols, sectorder, segcreate, segprot): New.
6133
6134 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
6135 Uros Bizjak <ubizjak@gmail.com>
6136
6137 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
6138 256bit AVX register is used.
6139 (ix86_expand_vector_move_misalign): Likewise.
6140 (ix86_expand_vector_move): Replace use_avx256_p with
6141 VALID_AVX256_REG_MODE.
6142
6143 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
6144
6145 PR target/44750
6146 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
6147 change. Set $@-warn.o to -Wno-error.
6148
6149 PR bootstrap/44756
6150 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
6151 comparing it to a signed value.
6152
6153 PR middle-end/44766
6154 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
6155 PR bootstrap/44770
6156 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
6157 to i.
6158
6159 PR target/44754
6160 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
6161 (m32c_function_arg). Add comma between arguments two and three.
6162 (m32c_promote_prototypes): Remove declaration.
6163 (current_function_special_page_vector): Likewise.
6164 (m32c_regno_reg_class): Change return type to enum reg_class.
6165 (m32c_pushm_popm): Use add_reg_note.
6166 (m32c_push_rounding): Change return type to unsigned int.
6167 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
6168 enum reload_type.
6169 (m32c_insert_attributes): Constify variable name.
6170 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
6171 (m32c_prepare_shift): Remove variable lref.
6172 (m32c_expand_movcc): Remove variable cmp.
6173 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
6174 (m32c_compare_redundant): Remove variable op2.
6175 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
6176 (m32c_pragma_memregs): Assign the number to target_memregs.
6177 (m32c_pragma_address): Remove variable var_str.
6178 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
6179 enum reg_class.
6180 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
6181 * config/m32c/bitops.md (andsi3): Add default case to switch.
6182 (iorsi3, xorsi3): Likewise.
6183 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
6184 * config/m32c/jump.md (call, call_value): Likewise.
6185 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
6186 (m32c_regno_reg_class): Likewise.
6187 (current_function_special_page_vector): Declare.
6188
6189 2010-11-05 Jakub Jelinek <jakub@redhat.com>
6190
6191 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
6192
6193 PR tree-optimization/46099
6194 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
6195 if it is NULL and uid wasn't found in the hash table. Just fold the
6196 result if it is NULL otherwise. Insert other potentially needed
6197 stmts right before current stmt instead of on the entry edge.
6198 (struct elv_data): Add gsi and reset fields.
6199 (eliminate_local_variables_1): Adjust caller. If take_address_of
6200 failed for debug stmt, set dta->reset and return.
6201 (eliminate_local_variables_stmt): Change STMT argument for GSI,
6202 pass GSI through to the callback, handle resetting of debug stmts.
6203 (eliminate_local_variables): Adjust caller. Process debug stmts
6204 in second phase.
6205
6206 PR middle-end/43690
6207 * gimplify.c (gimplify_asm_expr): If a "m" input is a
6208 {pre,post}{in,de}crement, fail.
6209
6210 PR debug/46307
6211 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
6212 * tree-pretty-print.c (dump_generic_node): Likewise.
6213 (op_code_prio): Likewise.
6214 * cfgexpand.c (expand_debug_expr): Likewise.
6215
6216 2010-11-04 Paul Koning <ni1d@arrl.net>
6217
6218 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
6219 constraints.
6220
6221 2010-11-04 Chao-ying Fu <fu@mips.com>
6222
6223 * configure.ac: Test assembler support for DSP Rev1 mult.
6224 * configure: Regenerate.
6225 * config.in: Regenerate.
6226 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
6227 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
6228 (CODE_FOR_mips_multu): New define.
6229 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
6230 dspr2_32 to dsp_32.
6231 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
6232 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
6233 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
6234 New define_expand patterns.
6235 * config/mips/constraints.md (ka): Update the constraint to test
6236 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
6237 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
6238 mips_multu): Delete.
6239 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
6240 Change target constraint to "ka".
6241 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
6242 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
6243 Emit the accumulator destination when ISA_HAS_DSP_MULT.
6244 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
6245 Emit the accumulator destination when ISA_HAS_DSP_MULT.
6246 (<u>maddsidi4): Likewise.
6247 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
6248 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
6249
6250 2010-11-04 Paul Koning <ni1d@arrl.net>
6251
6252 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
6253
6254 2010-11-04 Paul Koning <ni1d@arrl.net>
6255
6256 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
6257
6258 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6259
6260 Fixed using the Objective-C 2.0 dot-syntax with class names.
6261 * c-parser.c (c_parser_next_token_starts_declspecs): In
6262 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
6263 (c_parser_next_token_starts_declaration): Same.
6264 (c_parser_postfix_expression): Parse the Objective-C 2.0
6265 dot-syntax with a class name.
6266
6267 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
6268
6269 * final.c (compute_alignments): Compute/free loop info all the time.
6270 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
6271 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
6272 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
6273 * config/rs6000/rs6000.c (cfgloop.h): Include.
6274 (can_override_loop_align): New.
6275 (rs6000_option_override_internal): Set it.
6276 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
6277 (rs6000_loop_align): New function.
6278 (rs6000_loop_align_max_skip): Likewise.
6279
6280 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6281
6282 PR driver/45703
6283 * collect2.c (main): Print --help output to stdout. Do not
6284 exit right away, so ld --help is appended. Add empty lines
6285 to separate output suitably.
6286
6287 2010-11-04 Jakub Jelinek <jakub@redhat.com>
6288
6289 PR tree-optimization/46233
6290 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
6291 after calling analyze_function, not before.
6292
6293 PR target/46234
6294 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
6295 instead of build_va_arg_indirect_ref.
6296 * config/spu/spu.c (spu_va_start): Likewise.
6297 * config/s390/s390.c (s390_va_start): Likewise.
6298
6299 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
6300
6301 PR middle-end/46292
6302 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
6303 if the innermode is not vector mode, determine the mode of a subreg
6304 by using mode_for_size of inner_size.
6305
6306 2010-11-04 Richard Guenther <rguenther@suse.de>
6307
6308 PR rtl-optimization/46183
6309 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
6310 (execute_rtl_pre): Likewise.
6311 (execute_rtl_hoist): Likewise.
6312
6313 2010-11-04 Richard Guenther <rguenther@suse.de>
6314
6315 PR tree-optimization/46068
6316 * ipa-split.c (consider_split): Remove gcc_unreachable.
6317
6318 2010-11-04 Richard Guenther <rguenther@suse.de>
6319
6320 * tree-nested.c (build_addr): Use build_fold_addr_expr.
6321
6322 2010-11-04 Richard Guenther <rguenther@suse.de>
6323
6324 PR tree-optimization/45991
6325 * gimplify.c (force_gimple_operand_1): Use the provded test
6326 function in the initial test.
6327
6328 2010-11-04 Jeff Law <law@redhat.com>
6329
6330 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
6331 of readonly memory equivalances for const/pure calls.
6332
6333 2010-11-04 Richard Guenther <rguenther@suse.de>
6334
6335 PR tree-optimization/45733
6336 * tree-vect-stmts.c (reverse_vec_elements): Honor the
6337 permute builtins function return type.
6338
6339 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
6340
6341 PR middle-end/44765
6342 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
6343 as an index, check it is not INVALID_REGNUM.
6344
6345 PR bootstrap/44756
6346 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
6347 unsignedp.
6348 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
6349
6350 PR bootstrap/44756
6351 * function.c (thread_prologue_and_epilogue_insns): Add
6352 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
6353
6354 PR bootstrap/44756
6355 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
6356
6357 PR target/44750
6358 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
6359 (pdp11_preferred_reload_class): Rename class to rclass.
6360 (pdp11_preferred_output_reload_class): Likewise.
6361 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
6362 ALL_COMPILERFLAGS .
6363 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
6364
6365 PR bootstrap/44756
6366 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
6367 iteration variables to enum machine_mode.
6368
6369 PR target/44751
6370 * config/h8300/h8300.c: Include df.h.
6371 (push, pop): Use add_reg_note.
6372 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
6373 (compute_a_shift_cc): Likewise.
6374 (expand_a_shift): Argument code has type enum rtx_code.
6375 (struct shift_insn): Member cc_valid has type enum attr_cc.
6376 (struct shift_info) <cc_inline, cc_special>: Likewise.
6377 enum attr_cc.
6378 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
6379 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
6380
6381 2010-11-04 Ira Rosen <irar@il.ibm.com>
6382
6383 PR tree-optimization/46213
6384 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
6385 MINUS_EXPR only if the first operand is reduction operand.
6386
6387 2010-11-04 Richard Guenther <rguenther@suse.de>
6388 Richard Henderson <rth@redhat.com>
6389
6390 * tree.def (FMA_EXPR): New tree code.
6391 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
6392 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
6393 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
6394 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
6395 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6396 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
6397 (execute_optimize_widening_mul): Call it. Reorganize to allow
6398 dead stmt removal. Move TODO flags ...
6399 (pass_optimize_widening_mul): ... here.
6400 * flag-types.h (enum fp_contract_mode): New enum.
6401 * common.opt (flag_fp_contract_mode): New variable.
6402 (-ffp-contract): New option.
6403 * opts.c (common_handle_option): Handle it.
6404 * doc/invoke.texi (-ffp-contract): Document.
6405 * tree.h (fold_fma): Declare.
6406 * builtins.c (fold_fma): New function.
6407 (fold_builtin_fma): Likewise.
6408 (fold_builtin_3): Call it for fma.
6409 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
6410 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
6411 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
6412 New expanders.
6413 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
6414 named patterns.
6415 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
6416 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
6417 (fms_optab, fnma_optab, fnms_optab): New defines.
6418 * gimplify.c (gimplify_expr): Handle binary truth expressions
6419 explicitly. Handle FMA_EXPR.
6420 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
6421 operations.
6422
6423 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6424 Richard Guenther <rguenther@suse.de>
6425
6426 * passes.c (init_optimization_passes): Move veclower after SSA.
6427 * tree-vect-generic.c (uniform_vector_p): New function.
6428 (expand_vector_operations_1): Handle conversion.
6429 (pass_lower_vector): Update SSA form.
6430
6431 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
6432
6433 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
6434 plugin capabilities.
6435 * configure: Regenerate.
6436
6437 2010-11-03 Xinliang David Li <davidxl@google.com>
6438
6439 PR target/46200
6440 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
6441 Adjust cbase if the use stmt is after iv update.
6442
6443 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
6444
6445 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
6446
6447 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
6448
6449 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
6450 comment. Pass true to the last argument of output_stack_adjust.
6451
6452 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
6453
6454 PR target/46295
6455 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
6456 if 256bit AVX register is used.
6457
6458 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6459
6460 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
6461 xsmindp/xsmaxdp on VSX for single precision min/max.
6462 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
6463 (vsx_sminsf3): Ditto.
6464
6465 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
6466
6467 * combine.c (try_combine): Fix formatting issues, improve comments and
6468 fix a pasto.
6469
6470 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
6471
6472 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
6473 of the result before building binary expressions.
6474
6475 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
6476
6477 PR rtl-optimization/45865
6478 * Makefile.in (df-problems.o): Revert revision 164552.
6479 * basic-block.h (enum bb_flags): Likewise.
6480 * cfgcleanup.c (block_was_dirty): Likewise.
6481 (try_forward_edges): Likewise.
6482 (try_crossjump_bb): Likewise.
6483 (try_head_merge_bb): Likewise.
6484 (try_optimize_cfg): Likewise.
6485 (cleanup_cfg): Likewise.
6486 * df-core.c (df_set_bb_dirty): Likewise.
6487 * df-problems.c: Likewise.
6488 (df_simulate_find_uses): Likewise.
6489 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
6490 (find_memory, find_memory_store): Likewise.
6491 (can_move_insns_across): Likewise.
6492 * df.h (can_move_insns_across): Likewise.
6493 * ifcvt.c (find_memory): Likewise.
6494 (dead_or_predicable): Likewise.
6495
6496 2010-11-03 Richard Guenther <rguenther@suse.de>
6497
6498 PR middle-end/46288
6499 * predict.c (strip_predict_hints): Simply DCE builtin expect if
6500 the result is unused.
6501
6502 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6503
6504 PR tree-optimization/46009
6505 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
6506 cond_if_else_store_replacement if bb1 and bb2 have the same
6507 single successor.
6508 (cond_store_replacement): Use gimple_assign_single_p, don't
6509 check if rhs is SSA_NAME or invariant. Call release_defs for
6510 assign.
6511 (cond_if_else_store_replacement): New function.
6512
6513 2010-11-03 Richard Guenther <rguenther@suse.de>
6514
6515 * opts.c (finish_options): Properly check for all WHOPR
6516 flags before complaining about -flto-partition.
6517
6518 2010-11-04 Alan Modra <amodra@gmail.com>
6519
6520 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
6521 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
6522 TARGET_SECURE_PLT.
6523 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
6524 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
6525 on input, "r" on output.
6526
6527 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6528
6529 Implemented -fobjc-std=objc1 flag.
6530 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
6531 option.
6532 * doc/standards.texi (Standards): Updated the section on
6533 Objective-C; mention support for Objective-C 2.0 features and the
6534 new -fstd-objc=objc1 flag to disable them.
6535
6536 2010-11-03 Richard Guenther <rguenther@suse.de>
6537
6538 PR middle-end/46241
6539 * dwarf2out.c (scope_die_for): Properly detect global scope.
6540
6541 2010-11-03 Richard Guenther <rguenther@suse.de>
6542
6543 PR tree-optimization/46190
6544 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6545 Properly compute peel iterations.
6546
6547 2010-11-03 Richard Guenther <rguenther@suse.de>
6548
6549 PR tree-optimization/46286
6550 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
6551 re-allocated vector data.
6552
6553 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
6554
6555 PR target/46285
6556 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
6557 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
6558 is completed.
6559
6560 2010-11-03 Richard Guenther <rguenther@suse.de>
6561
6562 PR tree-optimization/46217
6563 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
6564 flag matches.
6565 (execute_update_addresses_taken): Likewise.
6566
6567 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
6568
6569 PR bootstrap/44335
6570 * targhooks.c (targhook_words_big_endian): New function.
6571 (targhook_float_words_big_endian): Likewise.
6572 * targhooks.h (targhook_words_big_endian): Declare.
6573 (targhook_float_words_big_endian): Likewise.
6574 * target.def (words_big_endian, float_words_big_endian): New hooks.
6575
6576 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6577
6578 PR tree-optimization/46165
6579 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
6580 a normal call into noreturn call.
6581
6582 2010-11-03 Richard Guenther <rguenther@suse.de>
6583
6584 PR middle-end/46251
6585 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
6586 not INDIRECT_REFs.
6587
6588 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6589
6590 PR tree-optimization/46107
6591 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
6592 if cfg_hook_duplicate_loop_to_header_edge failed.
6593
6594 2010-11-03 Ian Lance Taylor <iant@google.com>
6595
6596 PR lto/46273
6597 * config.gcc: Don't set lto_binary_reader.
6598 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
6599 (Configuration): Mention --disable-lto. Remove --with-libelf
6600 paragraph.
6601
6602 2010-11-03 Jakub Jelinek <jakub@redhat.com>
6603
6604 PR debug/46252
6605 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
6606 prev_real_insn.
6607 * gcse.c (insert_insn_end_basic_block): Likewise.
6608
6609 PR rtl-optimization/46034
6610 PR rtl-optimization/46212
6611 PR rtl-optimization/46248
6612 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
6613 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
6614 before i0dest -> i0src substitution and pass 1 instead of 0 as last
6615 argument to subst on i2pat.
6616
6617 2010-11-02 Ian Lance Taylor <iant@google.com>
6618
6619 * configure.ac: Use AC_SYS_LARGEFILE.
6620 * configure: Rebuild.
6621 * config.in: Rebuild.
6622
6623 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
6624
6625 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
6626 fold_convert.
6627 * c-typeck.c (build_function_call_vec): Likewise.
6628 * cfgexpand.c (expand_debug_expr): Likewise.
6629 * cgraphunit.c (assemble_thunk): Likewise.
6630 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
6631 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
6632 (fold_binary_loc, fold_ternary_loc): Likewise.
6633 * gimple-fold.c (get_symbol_constant_value): Likewise.
6634 * gimple-low.c (lower_builtin_setjmp): Likewise.
6635 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
6636 * gimplify.c (gimplify_init_constructor): Likewise.
6637 * lambda.h (build_linear_expr): Likewise.
6638 * omp-low.c (omp_reduction_init): Likewise.
6639 * tree-inline.c (remap_ssa_name): Likewise.
6640 * tree-object-size.c (compute_object_sizes): Likewise.
6641 * tree-sra.c (init_subtree_with_zero): Likewise.
6642 (sra_ipa_modify_assign): Likewise.
6643 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
6644 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
6645 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
6646 (undistribute_ops_list): Likewise.
6647 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
6648 * tree-vect-stmts.c (vectorizable_call): Likewise.
6649 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
6650 (build_zero_cst): Handle more cases directly. Update comment.
6651
6652 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
6653
6654 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
6655 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
6656
6657 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
6658 and call ix86_split_call_vzeroupper instead of
6659 ix86_split_call_pop_vzeroupper.
6660 (*call_pop_1_vzeroupper): Likewise.
6661 (*sibcall_pop_1_vzeroupper): Likewise.
6662 (*call_value_pop_0_vzeroupper): Likewise.
6663 (*call_value_pop_1_vzeroupper): Likewise.
6664 (*sibcall_value_pop_1_vzeroupper): Likewise.
6665
6666 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
6667
6668 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
6669
6670 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
6671
6672 * basic-block.h (insert_insn_end_bb_new): Delete.
6673 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
6674
6675 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
6676 H.J. Lu <hongjiu.lu@intel.com>
6677
6678 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
6679 (ix86_split_call_pop_vzeroupper): Likewise.
6680
6681 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
6682 (ix86_expand_call): Conditionally decorate calls with
6683 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
6684 (ix86_split_call_vzeroupper): New.
6685 (ix86_split_call_pop_vzeroupper): Likewise.
6686
6687 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
6688 (*call_pop_0_vzeroupper): New insn_and_split pattern.
6689 (*call_pop_1_vzeroupper): Likewise.
6690 (*sibcall_pop_1_vzeroupper): Likewise.
6691 (*call_0_vzeroupper): Likewise.
6692 (*call_1_vzeroupper): Likewise.
6693 (*sibcall_1_vzeroupper): Likewise.
6694 (*call_1_rex64_vzeroupper): Likewise.
6695 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
6696 (*call_1_rex64_large_vzeroupper): Likewise.
6697 (*sibcall_1_rex64_vzeroupper): Likewise.
6698 (*call_value_pop_0_vzeroupper): Likewise.
6699 (*call_value_pop_1_vzeroupper): Likewise.
6700 (*sibcall_value_pop_1_vzeroupper): Likewise.
6701 (*call_value_0_vzeroupper): Likewise.
6702 (*call_value_0_rex64_vzeroupper): Likewise.
6703 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
6704 (*call_value_1_vzeroupper): Likewise.
6705 (*sibcall_value_1_vzeroupper): Likewise.
6706 (*call_value_1_rex64_vzeroupper): Likewise.
6707 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
6708 (*call_value_1_rex64_large_vzeroupper): Likewise.
6709 (*sibcall_value_1_rex64_vzeroupper): Likewise.
6710
6711 2010-11-02 Ian Lance Taylor <iant@google.com>
6712
6713 PR lto/46273
6714 * config.gcc: Revert last patch: set lto_binary_reader.
6715
6716 2010-11-02 Richard Guenther <rguenther@suse.de>
6717
6718 PR tree-optimization/46149
6719 * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
6720 non-indirect MEM_REF variants.
6721
6722 2010-11-02 Richard Guenther <rguenther@suse.de>
6723
6724 PR tree-optimization/46216
6725 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
6726 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
6727
6728 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6729
6730 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
6731 (*-*-osf*): Likewise.
6732 * configure: Regenerate.
6733
6734 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
6735
6736 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
6737 for Intel Core 2 and Core i7.
6738
6739 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
6740
6741 Model decoder of Core 2/i7 for multipass scheduling.
6742
6743 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
6744 New type to hold target-specific data for multipass scheduling.
6745 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
6746 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
6747 Core 2/i7.
6748 (core2i7_secondary_decoder_max_insn_size,)
6749 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
6750 New static variables.
6751 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
6752 ([_]ix86_first_cycle_multipass_data): New static variable.
6753 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
6754 Implement targetm.sched hooks.
6755 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
6756 of ...
6757 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
6758 Implement new targetm.sched hooks.
6759 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
6760 targetm.sched hook to install multipass scheduling hooks on demand.
6761
6762 * doc/tm.texi.in: Document new targetm.sched hooks.
6763 * doc/tm.texi: Regenerate.
6764
6765 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
6766 (first_cycle_multipass_data_t): New typedef.
6767 (struct choice_entry: target_data): New field.
6768 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
6769 to allow target model restrictions not represented in DFA.
6770 (choose_ready, schedule_block): Update.
6771 (sched_extend_ready_list, sched_finish_ready_list): Call new target
6772 hooks to initialize target-specific data for multipass scheduling.
6773 * sched-int.h (max_issue): Update declaration.
6774 * sel-sched.c (choose_best_insn): Update.
6775 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
6776 (first_cycle_multipass_{init, fini}): Define and document new
6777 targetm.sched hooks.
6778
6779 2010-11-02 Richard Guenther <rguenther@suse.de>
6780
6781 PR tree-optimization/46184
6782 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
6783 input vector type from the reduction operand as well.
6784
6785 2010-11-02 Richard Guenther <rguenther@suse.de>
6786
6787 PR tree-optimization/46177
6788 * tree-loop-distribution.c (prop_phis): Use
6789 mark_virtual_phi_result_for_renaming.
6790
6791 2010-11-02 Martin Jambor <mjambor@suse.cz>
6792
6793 PR middle-end/46120
6794 * tree.c (get_binfo_at_offset): Bail out on artificial
6795 fields. Identify primary bases according to their offsets.
6796
6797 2010-11-02 Martin Jambor <mjambor@suse.cz>
6798
6799 PR tree-optimization/45875
6800 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
6801 (gimple_get_relevant_ref_binfo): Detect primary bases according to
6802 their field offset.
6803
6804 2010-11-02 Ian Lance Taylor <iant@google.com>
6805
6806 * doc/install.texi (Configuration): Note in two places that Java
6807 is not enabled by default.
6808
6809 2010-11-02 Ian Lance Taylor <iant@google.com>
6810
6811 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
6812 (Configuration): Mention --disable-lto. Remove --with-libelf
6813 paragraph.
6814
6815 2010-11-02 Ian Lance Taylor <iant@google.com>
6816
6817 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
6818 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
6819 LIBELFINC. Remove HAVE_libelf.
6820 * config.gcc: Don't set lto_binary_reader.
6821 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
6822 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
6823 (LIBS): Remove $(LIBELFLIBS).
6824 (INCLUDES): Remove $(LIBELFINC).
6825 * configure: Rebuild.
6826 * config.in: Rebuild.
6827
6828 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
6829
6830 * config/microblaze/microblaze-protos.h (function_arg): Delete.
6831 (function_arg_advance): Delete.
6832 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
6833 (FUNCTION_ARG): Delete.
6834 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
6835 (microblaze_function_arg_advance): ...this. Make static. Take a
6836 const_tree and a bool.
6837 (function-arg): Rename to...
6838 (microblaze_function_arg): ...this. Make static. Take a const_tree
6839 and a bool.
6840 (microblaze_expand_prologue): Call targetm.calls.function_arg and
6841 targetm.calls.function_arg_advance.
6842 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6843
6844 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6845
6846 Merge from FSF "apple/trunk" branch.
6847
6848 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
6849 * config/darwin.opt: .. to here.
6850 (matt-stubs): New option.
6851 * config/i386/darwin.opt: Delete.
6852 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
6853 (MACHO_DYNAMIC_NO_PIC_P): New.
6854 (MACHOPIC_INDIRECT): New.
6855 (MACHOPIC_PURE): New.
6856 * config/i386/darwin.h (DARWIN_X86) Define to 1.
6857 (MACHOPIC_ATT_STUB): New.
6858 (CC1_SPEC): Do not remove mdynamic-no-pic.
6859 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6860 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6861 (FUNCTION_PROFILER): Correct over-length line.
6862 (SUBTARGET_OVERRIDE_OPTIONS): New.
6863 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6864 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
6865 (legitimate_constant_p): Handle mdynamic-no-pic.
6866 (ix86_legitimate_address_p): Likewise.
6867 (ix86_legitimize_address): Likewise.
6868 (ix86_expand_move): Likewise.
6869 (machopic_output_stub): Update for ATT-style stubs and
6870 mdynamic-no-pic.
6871 * config/darwin-protos.h (machopic_symbol_defined_p): New.
6872 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
6873 TARGET_DYNAMIC_NO_PIC: Remove.
6874 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6875 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6876 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
6877 Remove handling of mdynamic-no-pic.
6878 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
6879 Define if required.
6880 (machopic_symbol_defined_p): Do not try to use current_function_decl
6881 when generating _get_pc thunks within stubs.
6882 (machopic_indirect_data_reference): Rework for direct conditionals
6883 rather than #ifdefs, add x86 mdynamic-no-pic
6884 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
6885 defined value.
6886 (darwin_override_options): Handle mdynamic-no-pic here.
6887 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
6888 (machopic_lazy_symbol_ptr3_section): New.
6889 (machopic_picsymbol_stub2_section): New.
6890 (machopic_picsymbol_stub3_section): New.
6891 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
6892 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6893 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6894 Moved common definition from x86 and rs6000.
6895 (MACHO_DYNAMIC_NO_PIC_P): Override value.
6896 (MACHOPIC_INDIRECT): Likewise.
6897 (MACHOPIC_PURE): Likewise.
6898 * config.gcc (x86-darwin-*): Remove darwin.opt.
6899
6900 2010-11-02 Jakub Jelinek <jakub@redhat.com>
6901
6902 PR debug/46255
6903 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
6904 instead of gsi_last_bb.
6905
6906 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6907 Maxim Kuvyrkov <maxim@codesourcery.com>
6908
6909 * config/i386/i386.c (cpu_names): Add "corei7".
6910 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
6911
6912 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6913 Maxim Kuvyrkov <maxim@codesourcery.com>
6914
6915 Tune alignment for Intel Core i7
6916
6917 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
6918 (enum processor_type): Update comment. Add entries for Core i7.
6919 * config/i386-c.c (ix86_target_macros_internal): Update.
6920 * config/i386.c (m_COREI7{_32,_64}): New macros.
6921 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
6922 (processor_target_table): Tune alignment for Core i7.
6923 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
6924
6925 * doc/invoke.texi: Document "corei7" option value.
6926
6927 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6928 Maxim Kuvyrkov <maxim@codesourcery.com>
6929 H.J. Lu <hjl.tools@gmail.com>
6930
6931 Basic support for Intel Core i7
6932
6933 * i386.c (ix86_option_override_internal): Add entry for corei7, use
6934 generic tuning. Use generic32 when compiling for 32-bit ABI.
6935
6936 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6937
6938 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
6939 sections and call darwin_asm_dwarf_section() to handle them.
6940 (darwin_asm_dwarf_section): New.
6941 (darwin_file_start): Remove code emitting dwarf section symbols.
6942
6943 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
6944
6945 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
6946 explicitly disable stack protection when building libgcc.
6947 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
6948
6949 2010-11-01 Jason Merrill <jason@redhat.com>
6950
6951 * fold-const.c (fold_indirect_ref_1): Handle folding
6952 POINTER_PLUS_EXPR to ARRAY_REF.
6953
6954 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
6955
6956 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6957 (sh_delegitimize_address): New function.
6958
6959 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6960
6961 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
6962 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
6963 (CC1_SPEC): Don't handle -target.
6964 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
6965 options.
6966 * config/darwin.opt (Zallowable_client, Zbundle_loader,
6967 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
6968 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
6969 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
6970 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
6971 Zweak_reference_mismatches, client_name, compatibility_version,
6972 current_version, dylinker_install_name, pagezero_size,
6973 read_only_relocs, seg1addr, segs_read_only_addr,
6974 segs_read_write_addr, sub_library, sub_umbrella): New.
6975 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
6976 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
6977 * config/freebsd.opt: New.
6978 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
6979 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
6980 * config/rpath.opt: New.
6981 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
6982 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
6983 Use rpath.opt.
6984
6985 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6986
6987 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
6988 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
6989 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
6990 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
6991 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
6992 Document that options in .opt files do not need to be included.
6993 * doc/tm.texi: Regenerate.
6994 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
6995 * opts-common.c: Update comment on tm.h include.
6996 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
6997 * system.h (SWITCH_TAKES_ARG): Poison.
6998 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
6999 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
7000 in darwin.opt.
7001 (LINK_COMMAND_SPEC_A): Don't include %{x}.
7002 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7003 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
7004 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
7005 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7006 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
7007 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
7008 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
7009 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
7010 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7011 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
7012 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
7013 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
7014 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
7015 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
7016 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
7017 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
7018 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
7019 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
7020 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
7021 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
7022 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
7023 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
7024 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7025
7026 2010-11-01 Paul Koning <ni1d@arrl.net>
7027
7028 * config/pdp11/pdp11.md: Use iterators.
7029 (addqi3, subqi3, iorsi3, xorsi3): Delete.
7030
7031 2010-11-01 Steve Ellcey <sje@cup.hp.com>
7032
7033 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
7034 GCC_INSN_FLAGS_H.
7035 * libgcov.c (__gcov_indirect_call_profiler): Set
7036 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
7037 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
7038
7039 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
7040
7041 PR tree-optimization/46259
7042
7043 Revert:
7044 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
7045 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
7046 build_vector_from_val.
7047
7048 2010-11-01 DJ Delorie <dj@redhat.com>
7049
7050 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
7051 as well as an assertion.
7052
7053 2010-11-01 Paul Koning <ni1d@arrl.net>
7054
7055 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
7056 complex modes in memory.
7057
7058 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
7059
7060 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
7061
7062 2010-11-01 Jakub Jelinek <jakub@redhat.com>
7063
7064 PR target/45250
7065 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
7066 (cfa_base_offset): New variable.
7067 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
7068 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
7069 is NULL.
7070 (vt_init_cfa_base): Initialize cfa_base_offset.
7071
7072 2010-11-01 Alan Modra <amodra@gmail.com>
7073
7074 PR target/46030
7075 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
7076 and savres_strategy.
7077 (stack_info): New file scope var.
7078 (rs6000_init_machine_status): Init stack_info.
7079 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
7080 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
7081 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
7082 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
7083 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
7084 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
7085 (rs6000_savres_strategy): Rewrite.
7086 (rs6000_stack_info): Use "stack_info" in place of local "info".
7087 Return cached stack info when reload_completed unless ENABLE_CHECKING
7088 in which case confirm newly calculated stack info matches old info.
7089 Delay calculation of lr_save_p, set it for out of line gp save/restore
7090 as well as fp. Call rs6000_savres_strategy from here..
7091 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
7092 (rs6000_output_function_prologue): Use info->savres_strategy to
7093 determine whether fp save/restore externs need to be emitted.
7094
7095 2010-10-31 Jason Merrill <jason@redhat.com>
7096
7097 * tree.h (EXPR_LOC_OR_HERE): New macro.
7098 * builtins.c (c_strlen): Use it.
7099 * c-decl.c (build_enumerator): Likewise.
7100 * gimplify.c (internal_get_tmp_var): Likewise.
7101 (shortcut_cond_expr): Likewise.
7102 (gimplify_one_sizepos): Likewise.
7103
7104 2010-10-31 Richard Henderson <rth@redhat.com>
7105
7106 * config/i386/cygming.h (TARGET_SEH): New.
7107 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
7108 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
7109 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
7110 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
7111 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
7112 (ASM_DECLARE_FUNCTION_SIZE): New.
7113 * config/i386/i386-protos.h: Update.
7114 * config/i386/i386.c (ix86_option_override_internal): Enable
7115 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
7116 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
7117 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
7118 (ix86_compute_frame_layout): For SEH, disable
7119 use_fast_prologue_epilogue, move frame pointer to the end of
7120 the frame. Initialize hfp_save_offset.
7121 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
7122 at end of prologue for SEH.
7123 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
7124 emit blockage at beginning of epilogue.
7125 (ix86_expand_binary_operator): After reload, emit LEA if needed.
7126 (ix86_output_call_insn): New.
7127 * config/i386/i386.h (TARGET_SEH): New.
7128 (struct machine_function): Add member seh.
7129 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
7130 * config/i386/winnt.c (struct seh_frame_state): New.
7131 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
7132 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
7133 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
7134 i386_pe_start_function, i386_pe_end_function): New.
7135
7136 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
7137 as CFA_STORE in rules 12 and 13.
7138
7139 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
7140
7141 PR tree-optimization/46142
7142 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
7143 accommodate third function argument.
7144
7145 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
7146
7147 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
7148
7149 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
7150
7151 * fold-const.c (build_zero_vector): Use build_vector_from_val.
7152 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7153 (get_initial_def_for_reduction): Likewise.
7154 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7155 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
7156 * tree.c (build_one_cst): Likewise.
7157 (build_vector_from_val): Use types_compatible_p for assert.
7158
7159 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
7160
7161 * emit-rtl.c (mark_used_flags): New function.
7162 (set_used_flags, reset_used_flags): Call it.
7163
7164 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
7165
7166 PR middle-end/44569
7167 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
7168 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
7169
7170 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
7171
7172 PR target/46195
7173 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
7174 (ix86_compat_aligned_value_p): This.
7175 (ix86_old_function_arg_boundary): Renamed to ...
7176 (ix86_compat_function_arg_boundary): This. Updated.
7177 (ix86_contains_aligned_value_p): New.
7178 (ix86_function_arg_boundary): Align long double parameters on
7179 stack to 4byte in 32bit.
7180
7181 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
7182
7183 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7184 * c-parser.c (c_parser_objc_at_property_declaration): Removed
7185 parsing of RID_COPIES and RID_IVAR. Updated call to
7186 objc_add_property_declaration.
7187 * c-typecheck.c (build_component_ref): Call
7188 objc_maybe_build_component_ref instead of objc_build_setter_call.
7189 Use objc_is_property_ref to improve Objective-C checks.
7190 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
7191 of objc_build_getter_call.
7192
7193 2010-10-29 Paul Koning <ni1d@arrl.net>
7194
7195 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
7196 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
7197 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
7198 (REG_OK_STRICT): Move description.
7199
7200 2010-10-29 Paul Koning <ni1d@arrl.net>
7201
7202 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
7203
7204 2010-10-29 Paul Koning <ni1d@arrl.net>
7205
7206 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
7207
7208 2010-10-29 Paul Koning <ni1d@arrl.net>
7209
7210 PR/41822
7211 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
7212
7213 2010-10-29 Richard Henderson <rth@redhat.com>
7214
7215 PR rtl-opt/46226
7216 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
7217 for asm goto.
7218
7219 2010-10-29 Paul Koning <ni1d@arrl.net>
7220
7221 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
7222 register to register move.
7223
7224 2010-10-29 Paul Koning <ni1d@arrl.net>
7225
7226 * config/pdp11/pdp11.c (print_operand_address): Correct handling
7227 of integer constant addresses, delete vax-only logic.
7228
7229 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
7230
7231 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
7232 a conditional expression.
7233
7234 2010-10-29 Paul Koning <ni1d@arrl.net>
7235
7236 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
7237 instruction encoding.
7238
7239 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7240 Andrew Pinski <pinskia@gmail.com>
7241
7242 * tree.h (build_vector_from_val): Declare.
7243 * tree.c (build_vector_from_val): New function.
7244 * c-typeck.c (build_binary_op): Handle vector shifting.
7245 * doc/extend.texi: Description of the vector shifting operation.
7246
7247 2010-10-29 Paul Koning <pkoning@equallogic.com>
7248
7249 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
7250 pdp11_secondary_memory_needed): Declare.
7251 * config/pdp11/predicates.md (float_operand): New predicate.
7252 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
7253 (cbranchdf4, movdf): Change predicate.
7254 (movsf): Handle FPU register case.
7255 (truncdfsf2, extendsfdf2): Add FPU register case.
7256 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
7257 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
7258 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7259 (pdp11_register_move_cost): Update cost matrix.
7260 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
7261 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
7262 pdp11_secondary_memory_needed): New function.
7263 (pdp11_return_in_memory): Add other float types.
7264 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
7265 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
7266 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
7267 REGISTER_MOVE_COST): Delete.
7268 (BASE_RETURN_VALUE_REG): Add other float types.
7269
7270 2010-10-29 Nick Clifton <nickc@redhat.com>
7271
7272 * doc/invoke.texi: Document -mam34 and -mtune options.
7273 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
7274 (mn10300_tune_cpu): New variable.
7275 (mn10300_handle_option): Handle -mam34 and -mtune options.
7276 (mn10300_option_override): Convert tune string into tune cpu variable.
7277 (mn10300_legitimate_constant_p): Delete unused local variable.
7278 (is_load_insn): New function.
7279 (is_store_insn): New function.
7280 (mn10300_adjust_schedule_cost): New function.
7281 (TARGET_SCHED_ADJUST_COST): Define.
7282 * config/mn10300/mn10300.opt (mam34): New option.
7283 (mtune): New option.
7284 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
7285 (enum processor_type): Add AM34.
7286 (TARGET_AM34): Define.
7287 * config/mn10300/mn10300.md (attr cpu): Add am34.
7288 Add pipeline description.
7289 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
7290 Remove unneeded alternatives. Add timing attribute.
7291 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
7292 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
7293 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
7294 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
7295 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
7296 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
7297 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
7298 float_conditional_branch, jump, indirect_jump, tablejump,
7299 call_internal, call_value_internal, zero_extendqisi2_am33,
7300 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
7301 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
7302 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
7303 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
7304 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
7305 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
7306 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
7307 return_internal_regs, store_movm, return, call_next_insn):
7308 Add timing attribute.
7309 (am33_subsi3): Add missing clobber of CC_REG.
7310 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
7311 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
7312 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
7313 extendqisi2): Fix predicates.
7314 (call_internal, call_internal_value): Separate alternatives.
7315 * config/mn10300/t-mn10300: Add AM34 multilib.
7316
7317 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
7318
7319 * config/sh/sh.c (sh_promote_function_mode): Use
7320 default_promote_function_mode if !sh_promote_prototypes.
7321
7322 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
7323
7324 * recog.c (split_all_insns): Remove dead code.
7325
7326 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7327
7328 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7329
7330 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7331
7332 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
7333 (FUNCTION_ARG_ADVANCE): Delete.
7334 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
7335 functions.
7336 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
7337 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7338 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7339
7340 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7341
7342 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
7343 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7344 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
7345 Take a const_tree and a bool.
7346 (mcore_function_arg_advance): New function.
7347 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7348
7349 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7350
7351 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
7352 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7353 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
7354 Take a const_tree and a bool.
7355 (mcore_function_arg_advance): New function.
7356 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7357
7358 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7359
7360 * config/h8300/h8300-protos.h (function_arg): Delete.
7361 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7362 * config/h8300/h8300.c (function_arg): Rename to...
7363 (h8300_function_arg): ...this. Make static. Take a const_tree and
7364 a bool.
7365 (h8300_function_arg_advance): New function.
7366 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7367
7368 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7369
7370 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
7371 to...
7372 * config/arc/arc.c (arc_function_arg): ...here and...
7373 (arc_function_arg_advance): ...here. New functions.
7374 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7375
7376 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7377
7378 * config/crx/crx-protos.h (crx_function_arg): Delete.
7379 (crx_function_arg_advance): Delete.
7380 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7381 * config/crx/crx.c (crx_function_arg): Make static. Take a
7382 const_tree and a bool.
7383 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
7384 (enough_regs_for_param): Take a const_tree.
7385 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7386
7387 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7388
7389 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
7390 (m68hc11_function_arg_advance): Delete.
7391 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
7392 (FUNCTION_ARG_ADVANCE): Delete.
7393 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
7394 Take a const_tree and a bool.
7395 (m68hc11_function_arg_advance): Likewise.
7396 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7397
7398 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7399
7400 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
7401 (xstormy16_function_arg_advance): Delete.
7402 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
7403 (FUNCTION_ARG_ADVANCE): Delete.
7404 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
7405 Take a const_tree and a bool.
7406 (xstormy16_function_arg_advance): Likewise. Return void, updating
7407 the CUM parameter instead.
7408 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7409
7410 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7411
7412 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
7413 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7414 (MOXIE_FUNCTION_ARG_SIZE): Move to...
7415 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
7416 (moxie_function_arg): Make static. Take a const_tree and a bool.
7417 (moxie_function_arg_advance): New function.
7418 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7419
7420 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7421
7422 * config/mn10300/mn10300-protos.h (function_arg): Delete.
7423 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
7424 (FUNCTION_ARG_ADVANCE): Delete.
7425 * config/mn10300/mn10300.c (function_arg): Rename to...
7426 (mn10300_function_arg): ...this. Make static. Take a const_tree
7427 and a bool.
7428 (mn10300_function_arg_advance): New function.
7429 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7430
7431 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7432
7433 * config/iq2000/iq2000-protos.h (function_arg): Delete.
7434 (function_arg_advance): Delete.
7435 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7436 * config/iq2000/iq2000.c (function_arg): Rename to...
7437 (iq2000_function_arg): ...this. Make static. Take a const_tree and
7438 a bool.
7439 (function_arg_advance): Rename to...
7440 (iq2000_function_arg_advance): ...this. Make static. Take a
7441 const_tree and a bool.
7442 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
7443 iq2000_function_arg.
7444 (iq2000_pass_by_reference): Call iq2000_function_arg).
7445 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7446
7447 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7448
7449 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
7450 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7451 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
7452 const_tree.
7453 (fr30_function_arg): New function.
7454 (fr30_function_arg_advance): New function.
7455 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7456
7457 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
7458
7459 * config/frv/frv-protos.h (frv_function_arg): Delete.
7460 (frv_function_arg_advance): Delete.
7461 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7462 * config/frv/frv.c (frv_function_arg): Rename to...
7463 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
7464 (frv_function_arg, frv_function_incoming_arg): New functions.
7465 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
7466 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7467 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7468
7469 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
7470
7471 PR target/46153
7472 * config/i386/sse.md (sse_movhlps_exp): Use destination
7473 returned from ix86_fixup_binary_operands to expand insn.
7474 (sse_movlhps_exp): Ditto.
7475 (sse_loadhps_exp): Ditto.
7476 (sse_loadlps_exp): Ditto.
7477 (sse2_loadhpd_exp): Ditto.
7478 (sse2_loadlpd_exp): Ditto.
7479
7480 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
7481
7482 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
7483 constants in thumb2.
7484
7485 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
7486
7487 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
7488 arithmetics in masking operations.
7489 (contains_muldiv): Likewise.
7490 (try_combine): Likewise.
7491 (find_split_point): Likewise.
7492 (combine_simplify_rtx): Likewise.
7493 (simplify_if_then_else): Likewise.
7494 (simplify_set): Likewise.
7495 (expand_compound_operation): Likewise.
7496 (expand_field_assignment): Likewise.
7497 (make_extraction): Likewise.
7498 (extract_left_shift): Likewise.
7499 (make_compound_operation): Likewise.
7500 (force_to_mode): Likewise.
7501 (make_field_assignment): Likewise.
7502 (reg_nonzero_bits_for_combine): Likewise.
7503 (simplify_shift_const_1): Likewise.
7504 (simplify_comparison): Likewise.
7505
7506 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
7507
7508 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
7509 (ia64_function_arg_advance): Delete.
7510 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
7511 (FUNCTION_ARG_ADVANCE): Delete.
7512 * config/ia64/ia64.c (ia64_function_arg): Rename to...
7513 (ia64_function_arg_1): ...this. Make static. Take const_tree and
7514 bool arguments.
7515 (ia64_function_arg, ia64_function_incoming_arg): New functions.
7516 (ia64_function_arg_advance): Make static. Take a const_tree and
7517 a bool.
7518 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7519 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7520
7521 2010-10-27 Steve Ellcey <sje@cup.hp.com>
7522
7523 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
7524 (TARGET_GET_RAW_ARG_MODE): New.
7525 * doc/tm.texi: Regenerate.
7526 * target.def (get_raw_result_mode): New.
7527 (get_raw_arg_mode): New.
7528 * targhooks.c (default_get_reg_raw_mode): New.
7529 * targhooks.h (default_get_reg_raw_mode): New.
7530 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
7531 (apply_result_size): Ditto.
7532 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
7533 (TARGET_GET_RAW_RESULT_MODE): Define.
7534 (TARGET_GET_RAW_ARG_MODE): Ditto.
7535
7536 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
7537
7538 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
7539 for newer Solaris 10 release.
7540 (sparc_fallback_frame_state): Likewise.
7541
7542 2010-10-27 Jason Merrill <jason@redhat.com>
7543
7544 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
7545 variables sooner.
7546
7547 2010-10-27 Jie Zhang <jie@codesourcery.com>
7548 Maxim Kuvyrkov <maxim@codesourcery.com>
7549
7550 * haifa-sched.c (ISSUE_POINTS): Remove.
7551 (max_issue): Don't issue more than issue_rate instructions.
7552
7553 2010-10-27 Ian Lance Taylor <iant@google.com>
7554
7555 PR target/46197
7556 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
7557 (split_stack_return): Replace UNSPEC_STACK_CHECK with
7558 UNSPECV_SPLIT_STACK_RETURN.
7559
7560 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
7561
7562 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
7563
7564 * config/i386/i386.c (block_info): New.
7565 (BLOCK_INFO): Likewise.
7566 (call_avx256_state): Likewise.
7567 (check_avx256_stores): Likewise.
7568 (move_or_delete_vzeroupper_2): Likewise.
7569 (move_or_delete_vzeroupper_1): Likewise.
7570 (move_or_delete_vzeroupper): Likewise.
7571 (use_avx256_p): Likewise.
7572 (function_pass_avx256_p): Likewise.
7573 (flag_opts): Add -mvzeroupper.
7574 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
7575 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
7576 is disabled.
7577 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
7578 generate vzeroupper.
7579 (init_cumulative_args): Add an int to indicate caller. Set
7580 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
7581 based on return type.
7582 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
7583 caller_pass_avx256_p based on argument type.
7584 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
7585 is used, but not returned by caller.
7586 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
7587 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
7588 is used.
7589 (ix86_minimum_alignment): Likewise.
7590 (ix86_expand_special_args_builtin): Set target to
7591 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
7592 (ix86_reorg): Run the vzeroupper optimization if needed.
7593
7594 * config/i386/i386.h (ix86_args): Add caller.
7595 (INIT_CUMULATIVE_ARGS): Updated.
7596 (machine_function): Add use_vzeroupper_p, use_avx256_p,
7597 caller_pass_avx256_p, caller_return_avx256_p,
7598 callee_pass_avx256_p and callee_return_avx256_p.
7599
7600 * config/i386/i386.opt (-mvzeroupper): New.
7601
7602 * config/i386/predicates.md (vzeroupper_operation): Removed.
7603
7604 * config/i386/sse.md (avx_vzeroupper): Removed.
7605 (*avx_vzeroupper): Removed.
7606 (avx_vzeroupper): New.
7607
7608 * doc/invoke.texi: Document -mvzeroupper.
7609
7610 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
7611
7612 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
7613 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
7614 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
7615
7616 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
7617 Olivier Hainque <hainque@adacore.com>
7618
7619 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
7620 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
7621 fs->signal_frame instead.
7622
7623 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7624
7625 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
7626 parsing of RID_COPIES and RID_IVAR.
7627
7628 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7629
7630 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
7631 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
7632 Do not use objc_set_property_attr, but use local variables
7633 instead. Detect repeated usage of setter, getter and ivar
7634 attributes. Improved error processing when a setter name does not
7635 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
7636 that the token is a keyword. Updated call to
7637 objc_add_property_declaration.
7638
7639 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
7640
7641 * c-parser.c (c_parser_objc_at_property): Renamed to
7642 c_parser_objc_at_property_declaration. Updated calls to
7643 objc_add_property_variable, now objc_add_property_declaration.
7644 Code rewritten to be much more robust in recovering from syntax
7645 errors. Added comments.
7646 (c_parser_objc_property_attrlist): Removed.
7647 (c_parser_external_declaration): Updated calls to
7648 c_parser_objc_at_property, now
7649 c_parser_objc_at_property_declaration.
7650 (c_parser_objc_methodprotolist): Same change.
7651
7652 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
7653
7654 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
7655
7656 2010-10-26 Jan Hubicka <jh@suse.cz>
7657
7658 * ipa.c (process_references): Enqueue all referenced nodes;
7659 mark as reachable only non-external nodes.
7660 (cgraph_remove_unreachable_nodes): All referenced nodes should
7661 be enqueued; remove bogues node->needed check.
7662
7663 2010-10-26 Jan Hubicka <jh@suse.cz>
7664
7665 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
7666 to represent OMP.
7667
7668 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
7669
7670 * config/i386/i386.md (split_stack_return): Replace
7671 unspec_volatile with unspec.
7672
7673 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
7674
7675 * doc/install.texi: Fix typo in --with-sysroot description.
7676
7677 2010-10-26 Jan Hubicka <jh@suse.cz>
7678
7679 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7680 Use info provided by linker plugin.
7681
7682 2010-10-26 Jason Merrill <jason@redhat.com>
7683
7684 * varasm.c (constructor_static_from_elts_p): Don't require a
7685 CONSTRUCTOR to have elements to be suitable for static
7686 initialization. Allow ARRAY_TYPE as well.
7687
7688 2010-10-26 Jan Hubicka <jh@suse.cz>
7689
7690 PR middle-end/45736
7691 * cgraph.c (cgraph_set_readonly_flag): Rename to...
7692 (cgraph_set_const_flags) ... this one; get also looping argument;
7693 clear constructor/destructor flags.
7694 (cgraph_set_pure_flag): Likewise.
7695 (cgraph_set_looping_const_or_pure_flag): Remove.
7696 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
7697 to optimize away static ctors/dtors; it does not work on inline clones;
7698 external functions can always be rmeoved.
7699 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
7700 inline clones; in LTO external functions always can go.
7701 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
7702 (cgraph_mark_address_taken_node): Assert that we are not taking
7703 address of inline clone.
7704 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
7705 external functions.
7706 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
7707 address taken.
7708 (ipcp_initialize_node_lattices): Only local functions can be
7709 handled without cloning.
7710 * cgraph.h (cgraph_set_readonly_flag,
7711 cgraph_set_looping_const_or_pure_flag): Remove.
7712 (cgraph_set_const_flag): Declare.
7713 (cgraph_set_pure_flag): Update.
7714 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
7715 flags setting code.
7716 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
7717 look at inline clones; fix handling of external definitions.
7718 (cgraph_postorder): Do not look at inline clones in the first pass.
7719 (function_and_variable_visibility): Drop constructors/destructor
7720 flags at pure and const functions.
7721 * tree-profile.c (tree_profiling): Update.
7722 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
7723 address taken; external functions do not account to whole program size.
7724 (cgraph_decide_inlining): Likewise; do not try to inline
7725 functions already inlined.
7726
7727 2010-10-26 Jie Zhang <jie@codesourcery.com>
7728
7729 * doc/invoke.texi: Improve documentation of
7730 -fstrict-volatile-bitfields.
7731
7732 2010-10-26 Ira Rosen <irar@il.ibm.com>
7733
7734 PR tree-optimization/46167
7735 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
7736 is basic block for the statement.
7737
7738 2010-10-26 Paul Koning <ni1d@arrl.net>
7739
7740 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
7741 current definition of struct_real_format.
7742
7743 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
7744
7745 PR target/44948
7746 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
7747 (ix86_function_arg_boundary): Always align parameters on stack
7748 in 64bit and align parameters with alignment >= 16byte on stack
7749 in 32bit. Warn alignment change.
7750
7751 2010-10-26 Ian Lance Taylor <iant@google.com>
7752
7753 PR middle-end/45687
7754 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
7755 offset.
7756
7757 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
7758
7759 Implement opaque-enum-specifiesr for C++0x
7760 * tree.h (ENUM_IS_OPAQUE): New.
7761 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
7762
7763 2010-10-26 Jie Zhang <jie@codesourcery.com>
7764
7765 * stor-layout.c (layout_decl): Use the field's type to
7766 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
7767 * config/arm/arm.c (arm_override_options): Default to
7768 -fstrict-volatile-bitfields.
7769
7770 2010-10-25 Paul Koning <ni1d@arrl.net>
7771
7772 * config/pdp11/pdp11.md: Add define_constants for register
7773 numbers, branch offset limits.
7774 * config/pdp11/pdp11.c: Use named constants instead of numbers.
7775 * config/pdp11.pdp11.h: Ditto.
7776
7777 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
7778
7779 * configure.ac: Use $cpu_type instead of $target to define the nop.
7780 * configure: Regenerate.
7781
7782 2010-10-25 Jie Zhang <jie@codesourcery.com>
7783
7784 * combine.c (try_combine): If insns need to be kept around, check that
7785 they can be copied in the merged instruction.
7786
7787 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7788
7789 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
7790 has been modified.
7791 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
7792 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
7793 it has been modified.
7794
7795 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7796
7797 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
7798
7799 2010-10-24 Paul Koning <ni1d@arrl.net>
7800
7801 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
7802 * config/pdp11/pdp11.c (output_jump): Ditto.
7803
7804 2010-10-24 Ian Lance Taylor <iant@google.com>
7805
7806 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
7807
7808 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7809
7810 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
7811 least one insn with a locus corresponding to an edge's goto_locus,
7812 disregard non-fallthru edges to the exit block and merge the blocks
7813 created for the same goto_locus.
7814
7815 2010-10-23 Joseph Myers <joseph@codesourcery.com>
7816
7817 * gcc.c (n_switches_alloc_debug_check): New.
7818 (set_option_handlers): New.
7819 (process_command): Use set_option_handlers.
7820 (do_self_spec): Pass spec-generated options through option handlers.
7821 (main): Also save and restore n_switches_alloc when swapping
7822 switch arrays.
7823
7824 2010-10-23 Richard Henderson <rth@redhat.com>
7825
7826 PR target/46144
7827 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
7828 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
7829 Honor matching operands when splitting to XOR.
7830
7831 2010-10-23 Ian Lance Taylor <iant@google.com>
7832
7833 * tree-vrp.c (extract_range_from_binary_expr): If
7834 flag_non_call_exceptions don't eliminate division by zero.
7835 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7836
7837 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
7838
7839 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
7840 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
7841 __ORDER_PDP_ENDIAN__.
7842 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7843 (struct DWstruct): Define based on __BYTE_ORDER__.
7844 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7845 (struct INTstruct): Define based on __BYTE_ORDER__.
7846 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7847 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
7848 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
7849 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7850 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7851 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7852 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7853 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7854 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7855 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7856 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7857 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7858 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7859 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7860 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7861 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7862 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7863 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7864 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7865 * doc/tm.texi: Regenerate.
7866 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
7867 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
7868
7869 2010-10-23 Jie Zhang <jie@codesourcery.com>
7870
7871 PR rtl-optimization/37360
7872 * config/mips/mips.c (cached_can_issue_more): New local variable.
7873 (mips_sched_reorder_1): New.
7874 (mips_sched_reorder): Use mips_sched_reorder_1.
7875 (mips_sched_reorder2): New.
7876 (mips_variable_issue): Set cached_can_issue_more.
7877 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
7878 instead of mips_sched_reorder.
7879
7880 Revert:
7881 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
7882 PR rtl-optimization/37360
7883 * haifa-sched.c (max_issue): Do not assert that we never issue more
7884 insns than issue_rate. Add comment.
7885
7886 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
7887
7888 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
7889 location info of the expression.
7890
7891 2010-10-22 DJ Delorie <dj@redhat.com>
7892
7893 * doc/extend.texi (Named Address Spaces): Document the M32C named
7894 address space.
7895
7896 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
7897 __far address space.
7898 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
7899 "__far" address space for R8C and M16C processor variants.
7900 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
7901 (far_addr_space_p): New.
7902 (encode_pattern_1): Add sign and zero extend support.
7903 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
7904 (m32c_extra_constraint_p2): Add SF constraint.
7905 (m32c_legitimate_address_p): Support __far addresses.
7906 (m32c_addr_space_pointer_mode): New.
7907 (m32c_addr_space_address_mode): New.
7908 (m32c_addr_space_legitimate_address_p): New.
7909 (m32c_addr_space_legitimize_address): New.
7910 (m32c_addr_space_subset_p): New.
7911 (m32c_addr_space_convert): New.
7912 (conversions): Add __far operand patterns.
7913 (m32c_prepare_move): Force constants into registers for __far moves.
7914 (m32c_split_move): __far moves are always split.
7915 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
7916 * config/m32c/mov.md (mov<mode>_far_op1): New.
7917 (mov<mode>_far_op2): New.
7918 (movqi_op): Add __far (SF) support.
7919 (movhi_op): Likewise.
7920 (movsi_splittable): Split A1A0 also.
7921
7922 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7923 Andrew Pinski <pinskia@gmail.com>
7924
7925 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
7926 * doc/extend.texi: New paragraph
7927
7928 2010-10-22 Paul Koning <ni1d@arrl.net>
7929
7930 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
7931
7932 2010-10-22 DJ Delorie <dj@redhat.com>
7933
7934 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
7935
7936 2010-10-22 Paul Koning <ni1d@arrl.net>
7937
7938 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
7939
7940 2010-10-22 Richard Henderson <rth@redhat.com>
7941
7942 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
7943 cases for __builtin_fma and __builtin_fmaf.
7944
7945 2010-10-22 Richard Henderson <rth@redhat.com>
7946
7947 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
7948 NEG+USE for vectors as well.
7949 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
7950 and splitter.
7951
7952 2010-10-22 Joseph Myers <joseph@codesourcery.com>
7953
7954 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
7955 SWITCH_CURTAILS_COMPILATION): Remove.
7956 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
7957 * doc/tm.texi: Regenerate.
7958 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
7959
7960 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
7961
7962 * config/i386/bdver1.md: New file.
7963 * config/i386/i386.md (include "bdver1.md"): Invoke the
7964 pipeline description for bdver1.
7965 (x86_sahf_1): Add "bdver1_decode" attribute.
7966 (*cmpfp_i_mixed): Likewise.
7967 (*cmpfp_i_sse): Likewise.
7968 (*cmpfp_i_i387): Likewise.
7969 (*cmpfp_iu_mixed): Likewise.
7970 (*cmpfp_iu_sse): Likewise.
7971 (*cmpfp_iu_387): Likewise.
7972 (*swap<mode>,*swap<mode>_1): Likewise.
7973 (fixuns_trunc<mode>hi2): Likewise.
7974 (fix_trunc<mode>si_sse): Likewise.
7975 (x86_fnstcw_1): Likewise.
7976 (x86_fldcw_1): Likewise.
7977 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
7978 (*floatsi<mode>2_vector_mixed): Likewise.
7979 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
7980 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7981 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7982 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
7983 (*floatsi<mode>2_vector_sse): Likewise.
7984 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
7985 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7986 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7987 (*mul<mode>3_1): Likewise.
7988 (*mulsi3_1_zext): Likewise.
7989 (*mulhi3_1): Likewise.
7990 (*mulqi3_1): Likewise.
7991 (*<u>mul<mode><dwi>3_1): Likewise.
7992 (*<u>mulqihi3_1): Likewise.
7993 (*<s>muldi3_highpart_1): Likewise.
7994 (*<s>mulsi3_highpart_1): Likewise.
7995 (*<s>mulsi3_highpart_zext): Likewise.
7996 (x86_64_shld): Likewise.
7997 (x86_shld): Likewise.
7998 (x86_64_shrd): Likewise.
7999 (x86_shrd): Likewise.
8000 (sqrtxf2): Likewise.
8001 (sqrt_extend<mode>xf2_i387): Likewise.
8002 (*sqrt<mode>2_sse): Likewise.
8003 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
8004 (sse_cvtsi2ssq): Likewise.
8005 (sse_cvtss2si): Likewise.
8006 (sse_cvtss2si_2): Likewise.
8007 (sse_cvtss2siq): Likewise.
8008 (sse_cvtss2siq_2): Likewise.
8009 (sse_cvttss2si): Likewise.
8010 (sse_cvttss2siq): Likewise.
8011 (sse2_cvtpi2pd): Likewise.
8012 (sse2_cvttpd2pi): Likewise.
8013 (sse2_cvtsi2sd): Likewise.
8014 (sse2_cvtsi2sdq): Likewise.
8015 (sse2_cvtsd2si): Likewise.
8016 (sse2_cvtsd2si_2): Likewise.
8017 (sse2_cvtsd2siq): Likewise.
8018 (sse2_cvtsd2siq_2): Likewise.
8019 (sse2_cvttsd2si): Likewise.
8020 (sse2_cvttsd2siq): Likewise.
8021 (*sse2_cvtpd2dq): Likewise.
8022 (*sse2_cvttpd2dq): Likewise.
8023 (sse2_cvtsd2ss): Likewise.
8024 (sse2_cvtss2sd): Likewise.
8025 (*sse2_cvtpd2ps): Likewise.
8026 (sse2_cvtps2pd): Likewise.
8027
8028 2010-10-22 Richard Guenther <rguenther@suse.de>
8029
8030 PR middle-end/46137
8031 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
8032 remove the virtual operands if they are not needed.
8033
8034 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
8035
8036 * config/i386/i386.c (processor_costs bdver1_cost): Update
8037 insn costs and architectural parameters for bdver1.
8038
8039 2010-10-22 Richard Guenther <rguenther@suse.de>
8040
8041 * gimple.h (gimple_register_canonical_type): Declare.
8042 * gimple.c (gimple_canonical_types): New global hashtable.
8043 (struct gimple_type_leader_entry_s): New type.
8044 (gimple_type_leader): New global cache.
8045 (gimple_lookup_type_leader): New function.
8046 (gtc_visit): Query the proper cache.
8047 (gimple_types_compatible_p): Likewise.
8048 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
8049 (gimple_canonical_type_eq): New function.
8050 (gimple_register_canonical_type): Likewise.
8051 (print_gimple_types_stats): Adjust for gimple_canonical_types.
8052 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
8053 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
8054 gimple_types_compatible_p for LTO.
8055
8056 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
8057
8058 PR target/46098
8059 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
8060 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
8061 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
8062 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
8063 (<sse>_movu<ssemodesuffix>): New expander.
8064 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
8065 (avx_movdqu<avxmodesuffix>): New expander.
8066 (*sse2_movdqu): Rename from sse2_movdqu.
8067 (sse2_movdqu): New expander.
8068
8069 2010-10-22 Richard Guenther <rguenther@suse.de>
8070
8071 PR tree-optimization/45720
8072 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
8073 Handle negative step.
8074 (vect_enhance_data_refs_alignment): Likewise.
8075 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
8076 (vect_create_cond_for_align_checks): Likewise.
8077 (vect_create_cond_for_alias_checks): Likewise.
8078
8079 2010-10-22 Ira Rosen <irar@il.ibm.com>
8080
8081 PR tree-optimization/46126
8082 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
8083 vectorizable_shift in case of basic block vectorization.
8084
8085 2010-10-22 Joseph Myers <joseph@codesourcery.com>
8086
8087 * target.h (enum opt_levels, struct default_options): New.
8088 * target.def (handle_ofast): Remove hook.
8089 (target_option.optimization): Change to
8090 target_option.optimization_table.
8091 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
8092 TARGET_OPTION_OPTIMIZATION_TABLE.
8093 (CAN_DEBUG_WITHOUT_FP): Remove.
8094 * doc/tm.texi: Regenerate.
8095 * opts.c (maybe_default_option, maybe_default_options,
8096 default_options_table): New.
8097 (default_options_optimization): Take extra parameters. Don't
8098 assert that global_options and global_options_set are in use. Use
8099 maybe_default_options.
8100 (decode_options): Pass extra parameters to
8101 default_options_optimization.
8102 * common.opt (falign-loops): Use value 0 with Var.
8103 (frerun-cse-after-loop, ftree-ter): Remove Init.
8104 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
8105 TARGET_OPTION_OPTIMIZATION): Remove.
8106 * targhooks.c (empty_optimization_table): New.
8107 * targhooks.h (empty_optimization_table): Declare.
8108 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
8109 * config/alpha/alpha.c (alpha_option_optimization_table,
8110 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8111 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
8112 * config/arm/arm.c (arm_option_optimization: Change to
8113 arm_option_optimization_table.
8114 (TARGET_OPTION_OPTIMIZATION): Change to
8115 TARGET_OPTION_OPTIMIZATION_TABLE.
8116 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
8117 * config/avr/avr.c (avr_option_optimization_table,
8118 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8119 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
8120 * config/cris/cris.c (cris_option_optimization): Change to
8121 cris_option_optimization_table.
8122 (TARGET_OPTION_OPTIMIZATION): Change to
8123 TARGET_OPTION_OPTIMIZATION_TABLE.
8124 * config/crx/crx.c (crx_option_optimization): Change to
8125 crx_option_optimization_table.
8126 (TARGET_OPTION_OPTIMIZATION): Change to
8127 TARGET_OPTION_OPTIMIZATION_TABLE.
8128 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
8129 * config/fr30/fr30.c (fr30_option_optimization_table,
8130 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8131 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
8132 * config/frv/frv.c (frv_option_optimization_table,
8133 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8134 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
8135 * config/h8300/h8300.c (h8300_option_optimization): Change to
8136 h8300_option_optimization_table.
8137 (TARGET_OPTION_OPTIMIZATION): Change to
8138 TARGET_OPTION_OPTIMIZATION_TABLE.
8139 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
8140 * config/i386/i386.c (ix86_option_optimization): Change to
8141 ix86_option_optimization_table.
8142 (TARGET_OPTION_OPTIMIZATION): Change to
8143 TARGET_OPTION_OPTIMIZATION_TABLE.
8144 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
8145 as initializer.
8146 * config/ia64/ia64.c (ia64_option_optimization): Change to
8147 ia64_option_optimization_table.
8148 (TARGET_OPTION_OPTIMIZATION): Change to
8149 TARGET_OPTION_OPTIMIZATION_TABLE.
8150 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
8151 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
8152 initializer.
8153 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8154 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8155 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
8156 * config/lm32/lm32.c (lm32_option_optimization_table,
8157 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8158 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
8159 * config/m32r/m32r.c (m32r_option_optimization): Change to
8160 m32r_option_optimization_table.
8161 (TARGET_OPTION_OPTIMIZATION): Change to
8162 TARGET_OPTION_OPTIMIZATION_TABLE.
8163 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
8164 CAN_DEBUG_WITHOUT_FP): Remove.
8165 * config/mcore/mcore.c (mcore_option_optimization): Change to
8166 mcore_option_optimization_table.
8167 (TARGET_OPTION_OPTIMIZATION): Change to
8168 TARGET_OPTION_OPTIMIZATION_TABLE.
8169 * config/mep/mep.c (mep_option_optimization): Change to
8170 mep_option_optimization_table.
8171 (TARGET_OPTION_OPTIMIZATION): Change to
8172 TARGET_OPTION_OPTIMIZATION_TABLE.
8173 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
8174 * config/microblaze/microblaze.c
8175 (microblaze_option_optimization_table,
8176 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8177 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
8178 * config/mips/mips.c (mips_option_optimization_table,
8179 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8180 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
8181 * config/mmix/mmix.c (mmix_option_optimization): Change to
8182 mmix_option_optimization_table.
8183 (TARGET_OPTION_OPTIMIZATION): Change to
8184 TARGET_OPTION_OPTIMIZATION_TABLE.
8185 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
8186 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8187 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8188 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
8189 * config/pa/pa.c (pa_option_optimization_table,
8190 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8191 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
8192 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
8193 pdp11_option_optimization_table.
8194 (TARGET_OPTION_OPTIMIZATION): Change to
8195 TARGET_OPTION_OPTIMIZATION_TABLE.
8196 * config/picochip/picochip.c (picochip_option_optimization_table,
8197 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8198 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
8199 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
8200 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8201 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
8202 * config/rx/rx.c (rx_option_optimization_table,
8203 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8204 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
8205 * config/s390/s390.c (s390_option_optimization): Change to
8206 s390_option_optimization_table.
8207 (s390_option_override): Update comment.
8208 (TARGET_OPTION_OPTIMIZATION): Change to
8209 TARGET_OPTION_OPTIMIZATION_TABLE.
8210 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
8211 * config/score/score.c (score_option_optimization_table,
8212 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8213 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
8214 * config/sh/sh.c (sh_option_optimization): Change to
8215 sh_option_optimization_table.
8216 (TARGET_OPTION_OPTIMIZATION): Change to
8217 TARGET_OPTION_OPTIMIZATION_TABLE.
8218 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
8219 (sh_option_override, expand_block_move, multcosts, find_barrier,
8220 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
8221 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
8222 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
8223 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
8224 instead of TARGET_SMALLCODE.
8225 * config/sh/sh.opt (mspace): Make into an alias for -Os.
8226 * config/sparc/sparc.c (sparc_option_optimization_table,
8227 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8228 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
8229 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8230 TARGET_OPTION_OPTIMIZATION_TABLE): New.
8231 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
8232 * config/v850/v850.c (v850_option_optimization): Change to
8233 v850_option_optimization_table.
8234 (TARGET_OPTION_OPTIMIZATION): Change to
8235 TARGET_OPTION_OPTIMIZATION_TABLE.
8236 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
8237 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
8238 xtensa_option_optimization_table.
8239 (TARGET_OPTION_OPTIMIZATION): Change to
8240 TARGET_OPTION_OPTIMIZATION_TABLE.
8241 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
8242
8243 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
8244
8245 Based on the CFString implementation in FSF apple/trunk branch.
8246
8247 * target.def (objc_construct_string): New Hook.
8248 * doc/tm.texi (objc_construct_string): Document.
8249 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
8250 * config/t-darwin: Amend build rules for darwin.o.
8251 * config/darwin.opt: Add cfstrings flags.
8252 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
8253 (darwin_objc_construct_string): New.
8254 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
8255 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
8256 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
8257 (darwin_fold_builtin): Likewise.
8258 (darwin_build_constant_cfstring): Likewise.
8259 (darwin_objc_construct_string): Likewise.
8260 (darwin_cfstring_p): Likewise.
8261 (darwin_enter_string_into_cfstring_table): Likewise.
8262 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
8263 * config/darwin.c (darwin_running_cxx): New var.
8264 (machopic_select_section): Return cfstring_constant_object_section.
8265 (darwin_override_options): Set darwin_running_cxx.
8266 (add_builtin_field_decl): New.
8267 (darwin_init_cfstring_builtins): New.
8268 (darwin_build_constant_cfstring): New.
8269 (darwin_fold_builtin): New.
8270 (cfstring_hash): New.
8271 (cfstring_eq): New.
8272 (darwin_enter_string_into_cfstring_table): New.
8273 * config/darwin-sections.def (cfstring_constant_object_section): New.
8274 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
8275 (TARGET_OBJC_CONSTRUCT_STRING): Define.
8276
8277 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8278
8279 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
8280 TYPE_STUB_DECL instead of TREE_CHAIN.
8281 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
8282 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
8283 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
8284 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
8285 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
8286 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
8287 Likewise.
8288 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
8289
8290 2010-10-22 Jie Zhang <jie@codesourcery.com>
8291
8292 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
8293 (copy_blkmode_from_reg): Likewise.
8294 (read_complex_part): Likewise.
8295 (expand_expr_real_1): Calculate packedp and pass it to
8296 extract_bit_field.
8297 * expr.h (extract_bit_field): Update declaration.
8298 * calls.c (store_unaligned_arguments_into_pseudos): Update call
8299 to extract_bit_field.
8300 * expmed.c (extract_fixed_bit_field): Update calls to
8301 extract_fixed_bit_field.
8302 (store_split_bit_field): Likewise.
8303 (extract_bit_field_1): Add new argument packedp.
8304 (extract_bit_field): Add new argument packedp.
8305 (extract_fixed_bit_field): Add new argument packedp and let
8306 packed attribute override volatile.
8307 * stmt.c (expand_return): Update call to extract_bit_field.
8308
8309 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8310
8311 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
8312
8313 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8314
8315 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
8316 of gcc_checking_assert.
8317 * sel-sched.c (code_motion_process_successors): Likewise.
8318
8319 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
8320
8321 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
8322 when stopping because of a different locus on edge or insn.
8323 (try_optimize_cfg): Add comment.
8324 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
8325 block is a forwarder block, propagate locus on the edge.
8326 (cfg_layout_merge_blocks): Likewise.
8327
8328 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
8329
8330 PR target/45946
8331 * config/i386/i386.md (*pushti2): New insn pattern.
8332 (pushti2 splitter): New insn splitter.
8333 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
8334 DWI mode iterator.
8335
8336 2010-10-21 Paul Koning <ni1d@arrl.net>
8337
8338 * config/pdp11/pdp11-protos.md (arith_operand,
8339 const_immediate_operand, expand_shift_operand,
8340 immediate15_operand): Delete
8341 * config/pdp11/pdp11.c: Ditto.
8342 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
8343 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
8344 EXTRA_CONSTRAINT): Delete.
8345 * config/pdp11/pdp11.md (various): Use standard constraints
8346 instead of removed ones.
8347 * config/pdp11/constraints.md: New file.
8348 * config/pdp11/predicates.md: New file.
8349
8350 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
8351
8352 PR c/45834
8353 * alias.c (true_dependence_1): Remove obsolete check for QImode.
8354 (may_alias_p): Ditto.
8355
8356 2010-10-21 Martin Jambor <mjambor@suse.cz>
8357
8358 PR tree-optimization/45875
8359 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
8360
8361 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8362
8363 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
8364 variables.
8365 (create_new_def_for): Likewise.
8366
8367 2010-10-21 Nick Clifton <nickc@redhat.com>
8368
8369 * config/mn10300/mn10300.c: Fold code to 80-character width.
8370 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
8371 MEM, CONST_INT and CONST_DOUBLE.
8372 (targetm): Move initialization to end of file.
8373 (print_operand): Rename to mn10300_print_operand.
8374 (print_operand_address): Rename to mn10300_print_operand_address.
8375 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
8376 (expand_prologue): Rename to mn10300_expand_prologue.
8377 (expand_epilogue): Rename to mn10300_expand_epilogue.
8378 (initial_offset): Rename to mn10300_initial_offset.
8379 (function_arg): Rename to mn10300_function_arg.
8380 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
8381 (symbolic_operand): Rename to mn10300_symbolic_operand.
8382 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
8383 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
8384 * config/mn10300/mn10300-protos.h: Update prototypes.
8385 * config/mn10300/mn10300.h: Fold code to 80-character width.
8386 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
8387 MEM, CONST_INT and CONST_DOUBLE.
8388 (CPP_SPEC): Move to...
8389 (TARGET_CPU_CPP_BUILTINS): ... here.
8390 * config/mn10300/mn10300.md: Fold code to 80-character width.
8391 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
8392 MEM, CONST_INT and CONST_DOUBLE.
8393
8394 2010-10-21 Ira Rosen <irar@il.ibm.com>
8395
8396 PR tree-optimization/46049
8397 PR tree-optimization/46052
8398 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
8399 (vect_get_slp_defs): Add arguments.
8400 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
8401 operands to vect_get_slp_defs.
8402 (vectorizable_reduction): Fix comment, pass scalar operands to
8403 vect_get_slp_defs.
8404 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
8405 type to determine number of units in the created vector.
8406 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
8407 (vectorizable_conversion): Fix comment.
8408 (vectorizable_shift): New function.
8409 (vectorizable_operation): Move code that handles shifts to
8410 vectorizable_shift.
8411 (vectorizable_type_demotion): Fix comment, pass scalar operands to
8412 vect_get_slp_defs.
8413 (vectorizable_type_promotion, vectorizable_store): Likewise.
8414 (vectorizable_condition): Fix comment.
8415 (vect_analyze_stmt): Call vectorizable_shift.
8416 (vect_transform_stmt): Likewise.
8417 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
8418 Use it as the operand to create vectors for, except reduction
8419 initial definition and store. Use operands type.
8420 (vect_get_slp_defs): Add new arguments. Pass them to
8421 vect_get_constant_vectors.
8422
8423 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8424
8425 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
8426 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
8427 * cfghooks.c (fixup_reorder_chain): Likewise.
8428 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
8429 * cgraph.c (cgraph_add_thunk): Likewise.
8430 (cgraph_create_edge_1): Likewise.
8431 (cgraph_create_virtual_clone): Likewise.
8432 * ddg.c (add_cross_iteration_register_deps): Likewise.
8433 * dwarf2out.c (modified_type_die): Likewise.
8434 * emit-rtl.c (set_mem_alias_set): Likewise.
8435 * ggc-zone.c (zone_allocate_marks): Likewise.
8436 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
8437 * gimple.c (iterative_hash_gimple_type): Likewise.
8438 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
8439 (create_single_exit_edge): Likewise.
8440 * haifa-sched.c (choose_ready): Likewise.
8441 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8442 * passes.c (execute_todo): Likewise.
8443 * sched-ebb.c (begin_schedule_ready): Likewise.
8444 * sel-sched.c (code_motion_process_successors): Likewise.
8445 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
8446 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
8447 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
8448 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
8449 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
8450 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
8451 (ssa_conflicts_add): Likewise.
8452 * tree-ssa-copy.c (replace_exp): Likewise.
8453 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
8454 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
8455 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
8456 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
8457 (compute_antic): Likewise.
8458 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
8459 (add_dependence): Likewise.
8460 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
8461 * tree-vrp.c (supports_overflow_infinity): Likewise.
8462 (make_overflow_infinity, negative_overflow_infinity): Likewise.
8463 (avoid_overflow_infinity, register_new_assert_for): Likewise.
8464 (process_assert_insertions_for): Likewise.
8465 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
8466 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
8467 (intersect_loc_chains, variable_merge_over_cur): Likewise.
8468
8469 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
8470
8471 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
8472 * reload1.c (has_nonexceptional_receiver): Likewise.
8473 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
8474 (create_new_def_for): Likewise.
8475 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
8476 (merge_phi_nodes): Likewise.
8477 (has_abnormal_incoming_edge_p): Delete.
8478
8479 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
8480
8481 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
8482
8483 2010-10-21 Richard Guenther <rguenther@suse.de>
8484 Michael Matz <matz@suse.de>
8485
8486 PR tree-optimization/45764
8487 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8488 Adjust initial misalignment for negative DR_STEP.
8489 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
8490 do not have the same alignment over the whole iteration domain.
8491
8492 2010-10-21 Richard Guenther <rguenther@suse.de>
8493
8494 PR tree-optimization/46111
8495 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
8496
8497 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8498
8499 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
8500
8501 2010-10-21 Tristan Gingold <gingold@adacore.com>
8502
8503 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
8504 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
8505
8506 2010-10-21 Tristan Gingold <gingold@adacore.com>
8507
8508 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
8509 signal_frame.
8510 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
8511
8512 2010-10-21 Tristan Gingold <gingold@adacore.com>
8513
8514 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
8515 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
8516
8517 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
8518
8519 * basic-block.h (find_fallthru_edge): Define.
8520 * cfgcleanup.c (merge_blocks_move): Use it.
8521 (try_crossjump_bb): Likewise.
8522 * cfglayout.c (fixup_reorder_chains): Likewise.
8523 (fixup_fallthru_exit_predecessor): Likewise.
8524 * cfgrtl.c (rtl_split_edge): Likewise.
8525 (rtl_verify_flow_info): Likewise.
8526 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8527 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
8528 * ifcvt.c (block_fallthru): Likewise.
8529 * reload1.c (fixup_abnormal_edges): Likewise.
8530 * sched-ebb.c (being_schedule_ready): Likewise.
8531 (schedule_ebb): Likwise.
8532 * sched-rgn.c (find_single_block_region): Likewise.
8533 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
8534 * tree-complex.c (expand_complex_move): Likewise.
8535 * sched-int.h (find_fallthru_edge): Rename to...
8536 (find_fallthru_edge_from): ...this.
8537 * haifa-sched.c (find_fallthru_edge): Rename to...
8538 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
8539 (init_before_recovery): Call find_fallthru_edge_from.
8540 * sel-sched-ir.c (merge_fences): Likewise.
8541 * sel-sched.c (in_fallthru_bb_p): Likewise.
8542 (move_cond_jump): Likewise.
8543
8544 2010-10-20 Paul Koning <ni1d@arrl.net>
8545
8546 * config/pdp11/pdp11.md (various): Fix conditions on a number of
8547 insn to check for target 11/40 or higher.
8548
8549 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8550
8551 * parser.c (c_parser_objc_method_type): Mark inline. Return a
8552 bool instead of a tree.
8553 (c_parser_objc_method_decl): Added bool argument. Updated call to
8554 objc_build_method_signature.
8555 (c_parser_objc_method_definition): Do not call
8556 objc_set_method_type. Updated calls to c_parser_objc_method_type,
8557 c_parser_objc_method_decl and objc_start_method_definition.
8558 (c_parser_objc_methodproto): Do not call objc_set_method_type.
8559 Updated calls to c_parser_objc_method_type,
8560 c_parser_objc_method_decl and objc_add_method_declaration.
8561
8562 2010-10-20 Jakub Jelinek <jakub@redhat.com>
8563
8564 PR tree-optimization/45919
8565 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
8566 array members.
8567
8568 PR tree-optimization/46066
8569 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
8570 instead of gsi_last_bb.
8571
8572 2010-10-20 DJ Delorie <dj@redhat.com>
8573
8574 * config/m32c/m32c.c (m32c_option_override): Always disable
8575 function-cse in 16-bit mode. Indirect calls are always worse than
8576 direct calls as there is no 16-bit indirect call opcode.
8577 (m32c_override_options_after_change): New, likewise.
8578
8579 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
8580
8581 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
8582 emitting the conditional move in the inner mode of the SUBREG.
8583
8584 2010-10-20 Anatoly Sokolov <aesok@post.ru>
8585
8586 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
8587 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
8588 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8589 (ia64_preferred_reload_class): Make static. Change rclass argument
8590 and result types from enum reg_class to reg_class_t.
8591
8592 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
8593
8594 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
8595 call for single operand expression.
8596
8597 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
8598
8599 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
8600 if there is a call statement to pure or const function in the block.
8601
8602 2010-10-20 Paul Koning <pkoning@equallogic.com>
8603
8604 Fix several build errors for pdp11 target.
8605 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
8606 (cbranchdf4): Conditional on TARGET_FPU.
8607 (movdf): Ditto; correct alternatives check.
8608 (movmemhi): Fix predicate and constraint.
8609 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
8610
8611 2010-10-20 Richard Guenther <rguenther@suse.de>
8612
8613 PR lto/45667
8614 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
8615 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
8616 (verify_gimple_assign_single): Disable ADDR_EXPR type check
8617 when in LTO.
8618
8619 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
8620
8621 PR fortran/42169
8622 * ira-emit.c (store_can_be_removed_p): Return false instead of
8623 gcc_unreachable.
8624
8625 2010-10-20 Dmitry Melnik <dm@ispras.ru>
8626
8627 * fold-const.c (fold_binary_loc): New transformation.
8628
8629 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
8630
8631 PR target/46085
8632 * config/i386/sse.md (reduc_splus_v8sf): Updated.
8633 (reduc_splus_v4df): Likewise.
8634
8635 2010-10-20 Richard Guenther <rguenther@suse.de>
8636
8637 PR tree-optimization/45860
8638 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
8639 conditional store replacement for non-register type stores.
8640
8641 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
8642
8643 * stor-layout.c (skip_simple_constant_arithmetic): New function.
8644 (self_referential_size): Use it instead of skip_simple_arithmetic.
8645
8646 2010-10-20 Olivier Hainque <hainque@adacore.com>
8647
8648 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
8649 If the current function calls eh_return, claim live all registers
8650 that we need to check for liveness otherwise.
8651
8652 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8653
8654 * c-decl.c (c_write_global_declarations): Call
8655 objc_write_global_declarations when compiling Objective-C.
8656 * c-lang.c (finish_file): Removed.
8657
8658 2010-10-19 DJ Delorie <dj@redhat.com>
8659
8660 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
8661 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
8662 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
8663 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
8664 * doc/tm.texi: Regenerate.
8665 * targhooks.h (default_label_align_after_barrier_max_skip,
8666 default_loop_align_max_skip, default_label_align_max_skip,
8667 default_jump_align_max_skip): Declare.
8668 * target.def (label_align_after_barrier_max_skip): New.
8669 (loop_align_max_skip): New.
8670 (label_align_max_skip): New.
8671 (jump_align_max_skip): New.
8672 * system.h (poison): Add those macros to the list.
8673 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
8674 (LOOP_ALIGN_MAX_SKIP): Remove.
8675 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
8676 (JUMP_ALIGN_MAX_SKIP): Remove.
8677 (default_label_align_after_barrier_max_skip): New.
8678 (default_loop_align_max_skip): New.
8679 (default_label_align_max_skip): New.
8680 (default_jump_align_max_skip): New.
8681 (compute_alignments): Use the new hooks.
8682 (shorten_branches): Likewise.
8683
8684 2010-10-19 Richard Henderson <rth@redhat.com>
8685
8686 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
8687 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
8688 (fma4i_fmadd_<mode>): New.
8689 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
8690 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
8691 standard fma patterns.
8692 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
8693 enable for FMA.
8694 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
8695 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
8696 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
8697
8698 2010-10-19 Paul Koning <pkoning@equallogic.com>
8699
8700 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
8701 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
8702
8703 2010-10-19 Richard Henderson <rth@redhat.com>
8704
8705 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
8706 (fmadf4, *fmsdf4, *nfmadf4): New.
8707 (fmaxf4, *fmsxf4, *nfmaxf4): New.
8708
8709 2010-10-19 Michael Eager <eager@eagercon.com>
8710
8711 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
8712 Use sjlj unwind info for exceptions.
8713
8714 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
8715
8716 PR fortran/43414
8717 * dwarf2out.c (add_calling_convention_attribute): Flag main
8718 Fortran subroutine with DW_AT_main_subprogram.
8719
8720 2010-10-19 Nick Clifton <nickc@redhat.com>
8721
8722 * config/rx/rx.c (rx_function_value): Small integer types are
8723 promoted to SImode.
8724 (rx_promote_function_mode): New function.
8725 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8726
8727 2010-10-19 Nick Clifton <nickc@redhat.com>
8728
8729 * config/mep/mep.c (mep_print_operand): Use
8730 targetm.strip_name_encoding.
8731 (mep_output_aligned_common): Likewise.
8732
8733 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
8734
8735 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
8736
8737 2010-10-18 Richard Henderson <rth@redhat.com>
8738
8739 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
8740 (fma (neg a) (neg b) c) and (fma a (neg b) c).
8741
8742 2010-10-18 Richard Henderson <rth@redhat.com>
8743
8744 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
8745 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
8746 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
8747 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
8748 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
8749 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
8750 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
8751 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
8752 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
8753 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
8754 (bdesc_multi_arg): Remove the corresponding builtins.
8755 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
8756 (UNSPEC_FMA4_FMSUBADD): Remove.
8757 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
8758 * config/i386/sse.md (FMA4MODEF4): Remove.
8759 (FMAMODE): Add.
8760 (fma<mode>4): New expander.
8761 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
8762 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
8763 (*fma4i_fmsub_<mode>): Similarly.
8764 (*fma4i_fnmadd_<mode>): Similarly.
8765 (*fma4i_fnmsub_<mode>): Similarly.
8766 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
8767 with the first operand.
8768 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
8769 of explicit arithmetic. Macroize with AVXMODEF2P.
8770 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
8771 (xop_frcz<mode>2): Macroize with FMAMODE.
8772 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
8773 the first operand.
8774 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
8775 extra negations.
8776 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
8777 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
8778 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
8779 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
8780 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
8781 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
8782 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
8783 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
8784
8785 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
8786
8787 PR rtl-optimization/45966
8788 * combine.c (try_combine): If added_sets_2, deal with the case
8789 where i0 feeds i1 and i1 feeds i2.
8790
8791 2010-10-18 Jan Hubicka <jh@suse.cz>
8792
8793 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
8794 preserve flags before trying to guess on visibility.
8795 (varpool_externally_visible_p): New function.
8796 (function_and_variable_visibility): Use it.
8797
8798 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8799
8800 Implemented parsing @synthesize and @dynamic for Objective-C.
8801 * c-parser.c (c_parser_external_declaration): Recognize
8802 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8803 (c_parser_objc_at_synthesize_declaration): New.
8804 (c_parser_objc_at_dynamic_declaration): New.
8805
8806 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8807
8808 * c-parser.c (c_parser_objc_class_declaration): After finding an
8809 error, parse the whole declaration then reset parser->error.
8810
8811 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8812
8813 PR target/46041
8814 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
8815 * builtins.c (mode_has_fma): Ditto.
8816
8817 2010-10-18 Steve Ellcey <sje@cup.hp.com>
8818
8819 PR target/36898
8820 PR middle-end/43760
8821 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
8822
8823 2010-10-18 Joseph Myers <joseph@codesourcery.com>
8824
8825 * config/i386/i386.c (ix86_option_override_internal): Define and
8826 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
8827 default.
8828 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8829 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
8830
8831 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8832
8833 Merge from 'apple/trunk' branch on FSF servers.
8834 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
8835 following Objective-C change:
8836
8837 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
8838
8839 Radar 4301047
8840 * c-parse.in (objc_quals): Build objc qualifier list same way
8841 as gcc-3.3
8842
8843 2010-10-18 Jan Hubicka <jh@suse.cz>
8844
8845 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
8846 function_and_variable_visibility): Revert accidental commit.
8847
8848 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8849
8850 Merge from 'apple/trunk' branch on FSF servers.
8851 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
8852 the following Objective-C change:
8853
8854 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
8855
8856 Radar 4204796
8857 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
8858 'volatilized' type used in a typeof operator.
8859
8860 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
8861
8862 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
8863 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
8864 rewrite modelled on gimple_purge_dead_eh_edges.
8865 (gimple_purge_all_dead_abnormal_call_edges): New function.
8866 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
8867 directly instead of through gimple_purge_dead_abnormal_call_edges.
8868 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
8869 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
8870 removed AB side-effects from one of its statements.
8871 (init_pre): Initialize need_ab_cleanup.
8872 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
8873 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
8874
8875 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8876
8877 PR c/46015
8878 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
8879 on computed goto argument.
8880
8881 2010-10-18 Richard Guenther <rguenther@suse.de>
8882
8883 PR tree-optimization/45967
8884 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
8885 (could_have_pointers): Likewise.
8886 (handle_rhs_call, handle_const_call, handle_pure_call,
8887 find_func_aliases, intra_create_variable_infos): Remove calls to them.
8888 (struct fieldoff): Add must_have_pointers field.
8889 (type_must_have_pointers): New function.
8890 (field_must_have_pointers): Likewise.
8891 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
8892 Adjust field merging.
8893 (create_function_info_for): May-have-pointers of varinfo is
8894 almost always true.
8895 (create_variable_info_for_1): Likewise.
8896
8897 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
8898
8899 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
8900 of operands to vec_concat.
8901
8902 2010-10-18 Richard Guenther <rguenther@suse.de>
8903
8904 PR lto/44950
8905 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
8906 also clear references to entries of it.
8907
8908 2010-10-18 Andi Kleen <ak@linux.intel.com>
8909
8910 PR other/43448
8911 * gccbug.in: Remove.
8912 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
8913 (doc, distclean, install-common): Remove reference to gccbug.
8914 * configure: Regenerate.
8915 * configure.ac (all_outputs): Remove gccbug.
8916 * doc/configfiles.texi: Remove references to gccbug.
8917 * doc/sourcebuild.texi: Dito.
8918
8919 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8920
8921 PR middle-end/46019
8922 * fold-const.c (fold_binary_loc): If integer_pow2p has
8923 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
8924
8925 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8926 Jeremie Salvucci <jeremie.salvucci@free.fr>
8927
8928 * gengtype.c (verbosity_level): Add variable.
8929 (set_gc_used): Count variables for verbosity.
8930 (close_output_files): Backing up files, counting written ones
8931 verbosily.
8932 (write_types): Count emitted functions for verbosity. Added
8933 debug messages.
8934 (write_enum_defn): Count structures for verbosity. Added debug
8935 messages.
8936 (gengtype_long_options): Add "verbose" & "backupdir".
8937 (print_usage): Ditto.
8938 (main): Verbose display of parsed files.
8939
8940 * gengtype.h (verbosity_level): Add declaration.
8941
8942 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8943
8944 * gengtype.c (parse_program_options): Add allocation of
8945 plugin_files, and correct test on nb_plugin_files.
8946
8947 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8948
8949 Merge from 'apple/trunk' branch on FSF servers.
8950
8951 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8952
8953 Radar 4133425
8954 * c-decl.c (undeclared_variable): Issue diagnostic on
8955 private 'ivar' access.
8956
8957 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8958
8959 PR target/46051
8960 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
8961 generated sequence to match *avx_vperm2f128<mode>_nozero.
8962 (vec_interleave_lowv4df): Ditto.
8963 (vec_interleave_highv8sf): Ditto.
8964 (vec_interleave_lowv8sf): Ditto.
8965
8966 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
8967
8968 * libgcov.c (create_file_directory): Enable it for win32 case.
8969 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
8970 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
8971 (GCOV_PREFIX_SKIP): Likewise.
8972
8973 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8974
8975 * doc/objc.texi (GNU Objective-C runtime API): New section.
8976 (Modern GNU Objective-C runtime API): New section.
8977 (Traditional GNU Objective-C runtime API): New section.
8978 (Executing code before main): Mention that this section is
8979 specific to the GNU Objective-C runtime.
8980 (Garbage Collection): Same.
8981
8982 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8983
8984 * c-parser.c (c_parser_for_statement): Move initialization of
8985 cond and incr before if.
8986
8987 2010-10-17 Anatoly Sokolov <aesok@post.ru>
8988
8989 * target.def (preferred_output_reload_class): New hook.
8990 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
8991 * doc/tm.texi: Regenerate.
8992 * targhooks.c (default_preferred_output_reload_class): New function.
8993 * targhooks.h (default_preferred_output_reload_class): Declare.
8994 * reload.c (find_dummy_reload): Change rclass argument type from
8995 enum reg_class to reg_class_t. Change this_alternative array type
8996 from enum reg_class to reg_class_t.
8997 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8998 (push_reload): Change preferred_class variable type to reg_class_t.
8999 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
9000 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
9001 argument type from enum reg_class to reg_class_t. Use
9002 HARD_REGISTER_NUM_P predicate.
9003 * recog.h (reg_fits_class_p): Update prototype.
9004
9005 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9006 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
9007 Remove.
9008 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
9009 static. Change regclass argument and result types from enum reg_class
9010 to reg_class_t.
9011 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9012
9013 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
9014
9015 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
9016 visibility enum, and handle @package.
9017
9018 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
9019
9020 * doc/objc.texi (What you can and what you cannot do in +load):
9021 Document that sending messages to constant string objects in +load
9022 is not guaranteed to work.
9023
9024 2010-10-16 Jan Hubicka <jh@suse.cz>
9025
9026 PR middle-end/44206
9027 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
9028 existence of refrences before removing the function.
9029
9030 2010-10-16 Jan Hubicka <jh@suse.cz>
9031
9032 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
9033 only_called_at_startup and only_called_at_exit.
9034 (cgraph_propagate_frequency): Compute only_called_at_startup and
9035 only_called_at_exit.
9036 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
9037 only_called_at_exit.
9038 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
9039 flags.
9040 * predict.c (compute_function_frequency): Initialize the new flags.
9041
9042 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
9043
9044 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
9045 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
9046 on the bounds of its domain.
9047 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
9048
9049 2010-10-16 Anatoly Sokolov <aesok@post.ru>
9050
9051 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
9052 * config/avr/avr-protos.h (preferred_reload_class): Remove.
9053 * config/avr/avr.c (preferred_reload_class): Remove.
9054 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
9055 * config/pa/pa.c (emit_move_sequence): Update comment
9056 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
9057 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
9058 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
9059 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
9060 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
9061 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
9062 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
9063 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
9064 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
9065 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
9066 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
9067 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
9068 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
9069
9070 2010-10-16 Joseph Myers <joseph@codesourcery.com>
9071
9072 * opts.c (set_fast_math_flags,
9073 set_unsafe_math_optimizations_flags): Make static.
9074 * toplev.h (set_fast_math_flags,
9075 set_unsafe_math_optimizations_flags): Remove prototypes.
9076
9077 2010-10-16 Joseph Myers <joseph@codesourcery.com>
9078
9079 * config/arm/arm.c (arm_option_optimization): Set
9080 flag_section_anchors to 1 not 2.
9081 * config/i386/i386.c (ix86_option_override_internal): Check
9082 global_options_set.x_flag_zee and
9083 global_options_set.x_flag_omit_frame_pointer.
9084 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
9085 flag_zee to 2.
9086 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
9087 global_options_set.x_flag_omit_frame_pointer.
9088 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
9089 opts->x_flag_section_anchors to 1 not 2.
9090 * config/sh/sh.c (sh_option_optimization): Don't set
9091 flag_schedule_insns to 2.
9092 (sh_option_override): Check
9093 global_options_set.x_flag_schedule_insns.
9094 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
9095
9096 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
9097
9098 * configure.ac: Make sure inhibit_libc remains false for mingw targets
9099 as cross.
9100 * configure: Regenerated.
9101
9102 2010-10-15 Xinliang David Li <davidxl@google.com>
9103
9104 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
9105 function.
9106 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
9107 into a recursive function.
9108
9109 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
9110
9111 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
9112 (*movdfcc_1): ditto.
9113
9114 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9115
9116 * target.def (target_option.init_struct): New hook.
9117 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
9118 * doc/tm.texi: Regenerate.
9119 * hooks.c (hook_void_gcc_optionsp): New.
9120 * hooks.h (hook_void_gcc_optionsp): Declare.
9121 * langhooks-def.h (lhd_init_options_struct): Remove.
9122 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
9123 * langhooks.c (lhd_init_options_struct): Remove.
9124 * opts.c (init_options_struct): Also call
9125 targetm.target_option.init_struct.
9126 * config/i386/i386.c (ix86_option_init_struct,
9127 TARGET_OPTION_INIT_STRUCT): New.
9128 (ix86_option_optimization): Move some settings to
9129 ix86_option_init_struct.
9130 * config/pdp11/pdp11.c (pdp11_option_init_struct,
9131 TARGET_OPTION_INIT_STRUCT): New.
9132 (pdp11_option_optimization): Move some settings to
9133 pdp11_option_init_struct.
9134 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
9135 rs6000_option_init_struct. Use options structure pointer.
9136 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
9137 * config/s390/s390.c (s390_option_init_struct,
9138 TARGET_OPTION_INIT_STRUCT): New.
9139 (s390_option_optimization): Don't set
9140 flag_asynchronous_unwind_tables here.
9141 * config/sh/sh.c (sh_option_init_struct,
9142 TARGET_OPTION_INIT_STRUCT): New.
9143 (sh_option_optimization): Don't set flag_finite_math_only here.
9144 * config/spu/spu.c (spu_option_optimization): Replace by
9145 spu_option_optimization. Use options structure pointer.
9146 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
9147
9148 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9149
9150 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
9151
9152 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
9153 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
9154 (Standard names): Document fma.
9155
9156 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
9157 __FP_FAST_FMAF, __FP_FAST_FMAL.
9158
9159 * builitns.c (expand_builtin_mathfn_ternary): New function for
9160 expanding ternary math functions, like fma.
9161 (expand_builtin): Call it for the fma builtins.
9162
9163 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
9164 ops at present.
9165
9166 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
9167 vectorizable functions to support vectorizing fma.
9168
9169 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9170 Handle fma builtins.
9171
9172 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
9173 (UNSPEC_VSX_MSUB): Ditto.
9174 (UNSPEC_VSX_NMADD): Ditto.
9175 (UNSPEC_VSX_NMSUB): Ditto.
9176 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
9177 of UNSPEC. Renumber combiner patterns.
9178 (vsx_fmsub<mode>4*): Ditto.
9179 (vsx_fnmadd<mode>4*): Ditto.
9180 (vsx_fnmsub<mode>4*): Ditto.
9181
9182 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
9183 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
9184 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
9185 (altivec_vmaddfp_1): Ditto.
9186 (altivec_vmaddfp_2): Ditto.
9187 (atlivec_mulv4sf3): Ditto.
9188 (altivec_vnmsubfp): Ditto.
9189 (altivec_vnmsubfp_1): Ditto.
9190 (altivec_vnmsubfp_2): Ditto.
9191 (altivec_vnmsubfp_3): Delete.
9192
9193 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
9194 (fmasf4_fpr): Ditto.
9195 (fmssf4_fpr): Ditto.
9196 (fnmasf4_fpr): Ditto.
9197 (fnmssf4_fpr): Ditto.
9198 (fmadf4): Ditto.
9199 (fmadf4_fpr): Ditto.
9200 (fmsdf4_fpr): Ditto.
9201 (fnmadf4_fpr): Ditto.
9202 (fnmsdf4_fpr): Ditto.
9203
9204 * optabs.h (OTI_fma): Add fma optab.
9205 (fma_optab): Ditto.
9206
9207 * genopinit.c (optabs): Set fma optab.
9208
9209 * rtl.def (FMA): Add FMA rtl.
9210
9211 * tree.h (mode_has_fma): New function to return if MODE supports a
9212 fast multiply and add instruction.
9213 * builtins.c (mode_has_fma): Ditto.
9214
9215 2010-10-15 Jan Hubicka <jh@suse.cz>
9216
9217 * lto-streamer-out.c (write_symbol): Use pointer set of seen
9218 objects instead of bitmap.
9219 (produce_symtab): Likewise; output defined symbols first.
9220
9221 2010-10-15 Jie Zhang <jie@codesourcery.com>
9222
9223 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
9224 Option Summary and Index.
9225
9226 2010-10-15 Richard Guenther <rguenther@suse.de>
9227
9228 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
9229 for automatic variables again.
9230
9231 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9232
9233 * doc/extend.texi (Variable Length): Don't refer to VLAs not
9234 conforming to C99.
9235
9236 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9237
9238 * config/rx/rx.c (rx_option_optimization): Change to
9239 rx_override_options_after_change. Don't change
9240 flag_lto_compression_level. Don't check for changes to whether
9241 FPU instructions can be used. Check and set only
9242 flag_finite_math_only, not other fast-math flags.
9243 (rx_option_override): Call rx_override_options_after_change.
9244 (TARGET_OPTION_OPTIMIZATION): Remove.
9245 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
9246
9247 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9248
9249 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
9250 disable section anchors for lang_hooks.name[4] != 'O'.
9251
9252 2010-10-15 Joseph Myers <joseph@codesourcery.com>
9253
9254 * config/frv/frv.c (frv_option_optimization,
9255 TARGET_OPTION_OPTIMIZATION): Remove.
9256 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
9257
9258 2010-10-15 Michael Matz <matz@suse.de>
9259
9260 * cgraphunit.c (clone_of_p): Define unconditionally.
9261
9262 2010-10-15 Richard Guenther <rguenther@suse.de>
9263
9264 PR lto/45957
9265 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
9266
9267 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
9268
9269 * ifcvt.c (find_active_insn_before): New function.
9270 (find_active_insn_after): New function.
9271 (cond_exec_process_if_block): Use new functions to replace
9272 prev_active_insn() and next_active_insn().
9273
9274 2010-10-14 Yao Qi <yao@codesourcery.com>
9275
9276 PR target/45447
9277 * config/arm/arm.c (arm_build_builtin_va_list): Assign
9278 va_list_name to TYPE_STUB_DECL (va_list_type).
9279
9280 2010-10-14 Jan Hubicka <jh@suse.cz>
9281
9282 PR middle-end/45621
9283 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
9284 redirected to clone, be happy.
9285 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
9286 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
9287 former_clone_of unconditionally.
9288
9289 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
9290
9291 Merge from FSF apple 'trunk' branch.
9292 2006 Fariborz Jahanian <fjahanian@apple.com>
9293
9294 Radars 4436866, 4505126, 4506903, 4517826
9295 * c-parser.c (c_parser, objc_property_attr_context) New flag.
9296 (c_lex_one_token): Handle property attributes.
9297 (c_parser_external_declaration): Handle @property.
9298 (c_parser_declaration_or_fndef): Warn on invalid attributes before
9299 @alias, @class, @end and @property objc keywords.
9300 (c_parser_objc_methodprotolist): Handle @property.
9301 (c_parser_objc_property_attrlist): New.
9302 (c_parser_objc_at_property): New.
9303 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
9304 (build_modify_expr): Likewise.
9305
9306 2010-10-14 Jakub Jelinek <jakub@redhat.com>
9307
9308 PR tree-optimization/46008
9309 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
9310
9311 2010-10-14 Richard Guenther <rguenther@suse.de>
9312
9313 PR tree-optimization/44913
9314 * tree-data-ref.c (disjoint_objects_p): Remove.
9315 (dr_may_alias_p): Simplify. Only hand the base object to
9316 the alias-oracle.
9317 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9318 some more trees, bail out instead of asserting.
9319 (ptr_derefs_may_alias_p): Likewise. Export.
9320 (refs_may_alias_p_1): Handle STRING_CSTs.
9321 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
9322
9323 2010-10-14 Joseph Myers <joseph@codesourcery.com>
9324
9325 PR c/45969
9326 * c-typeck.c (build_binary_op): Don't try to compute a semantic
9327 type with excess precision for boolean operations.
9328
9329 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
9330 Basile Starynkevitch <basile@starynkevitch.net>
9331
9332 * gengtype.c: Include getopt.h and version.h.
9333
9334 (lang_bitmap, struct outf, outf_p)
9335 (get_output_file_with_visibility, oprintf): Definitions moved to
9336 gengtype.h
9337 (output_files, header_file, srcdir, srcdir_len, this_file)
9338 (do_dump): No more static variables.
9339 (do_debug): New.
9340 (dbgprint_count_type_at): Added new function.
9341 (gengtype_long_options): New.
9342 (print_usage, print_version, parse_program_options): New.
9343 (main): Call parse_program_options, and removed old option
9344 handling code. Added some debug output.
9345
9346 * gengtype.h: Updated copyright year.
9347 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
9348 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
9349 Moved from gengtype.c to here.
9350 (do_debug, read_state_filename, write_state_filename): New variables.
9351 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
9352
9353 * Makefile.in:
9354 (REVISION): Always defined.
9355 (version.o): Removed ifdef REVISION_c.
9356 (s-gtype): Pass arguments to build/gengtype program.
9357 (build/version.o): Added building rule.
9358 (build/gengtype$(build_exeext)): Added build/version.o.
9359
9360 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
9361
9362 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
9363 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
9364 __strong macros.
9365
9366 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
9367
9368 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
9369 may_trap_or_fault_p instead of may_trap_p predicate.
9370 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
9371 (substitute_placeholder_in_expr): Likewise.
9372 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
9373 flag on MEM_REF nodes.
9374 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
9375 flags on INDIRECT_REF nodes.
9376
9377 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
9378
9379 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
9380 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
9381 (arm*-*-eabi*) <tm_file>: Likewise.
9382 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
9383 (frv-*-*linux*) <tm_file>: Likewise.
9384 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
9385 and associated helper macros.
9386 * config/frv/frv-abi.h: Delete.
9387
9388 2010-10-14 Richard Guenther <rguenther@suse.de>
9389
9390 PR lto/44561
9391 * tree.def (NULLPTR_TYPE): New tree code.
9392 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
9393 * dwarf2out.c (is_base_type): Likewise.
9394 (gen_type_die_with_usage): Likewise.
9395 * sdbout.c (plain_type_1): Likewise.
9396 * tree.c (build_int_cst_wide): Likewise.
9397 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
9398
9399 2010-10-14 Joseph Myers <joseph@codesourcery.com>
9400
9401 * params.c (params_finished): New.
9402 (add_params): Assert !params_finished.
9403 (finish_params): New.
9404 (set_param_value_internal): Take params and params_set
9405 parameters. Assert params_finished.
9406 (set_param_value, maybe_set_param_value): Take params and
9407 params_set parameters. Update calls to set_param_value_internal.
9408 (set_default_param_value): Assert !params_finished. Don't use
9409 set_param_value_internal.
9410 (default_param_value, init_param_values): New.
9411 * params.h (struct param_info): Change value to default_value.
9412 Remove set.
9413 (set_param_value, maybe_set_param_value): Add params and
9414 params_set parameters.
9415 (PARAM_VALUE): Get parameters from global_options.
9416 (PARAM_SET_P): Remove.
9417 (finish_params, default_param_value, init_param_values): New.
9418 * common.opt (param_values): New Variable.
9419 * config/arm/arm.c (arm_option_override): Pass extra arguments to
9420 maybe_set_param_value.
9421 * config/i386/i386.c (ix86_option_override_internal): Pass extra
9422 arguments to maybe_set_param_value.
9423 * config/picochip/picochip.c (picochip_option_override): Pass
9424 extra arguments to maybe_set_param_value.
9425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
9426 extra arguments to maybe_set_param_value.
9427 * config/s390/s390.c (s390_option_override): Use
9428 maybe_set_param_value instead of set_param_value. Pass extra
9429 arguments to maybe_set_param_value.
9430 * config/sparc/sparc.c (sparc_option_override): Pass extra
9431 arguments to maybe_set_param_value.
9432 * config/spu/spu.c (spu_option_override): Pass extra arguments to
9433 maybe_set_param_value.
9434 * opts.c (handle_param): Take opts and opts_set parameters.
9435 Update call to set_param_value.
9436 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
9437 initial_loop_invariant_max_bbs_in_loop): Remove.
9438 (init_options_once): Don't set them.
9439 (init_options_struct): Initialize parameters structures.
9440 (default_options_optimization): Use default_param_value when
9441 restoring defaults. Update calls to maybe_set_param_value.
9442 (finish_options): Update calls to maybe_set_param_value.
9443 (common_handle_option): Update calls to handle_param and
9444 set_param_value.
9445 * toplev.c (DEFPARAM): Update definition for changes to param_info.
9446 (general_init): Call finish_params.
9447
9448 2010-10-14 Nick Clifton <nickc@redhat.com>
9449
9450 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
9451 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
9452 (FIRST_PSEUDO_REGISTER): Increase by one.
9453 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
9454 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
9455 (MODES_TIEABLE): Call mn10300_modes_tieable.
9456 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
9457 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
9458 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
9459 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
9460 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
9461 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
9462 (mn10300_cc_status_mdep): Delete.
9463 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
9464 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
9465 the combine-stack-adjust pass.
9466 (print_operand): Use the mode of the comparison operation to
9467 select the comparison suffix.
9468 (notice_update_cc): Delete.
9469 (mn10300_secondary_reload_class): Remove test for stack pointer
9470 based arithmetic.
9471 (output_tst): Rename to mn10300_output_cmp.
9472 (impossible_plus_operand): Move into predicates.md.
9473 (mn10300_legitimize_address): Make static.
9474 (mn10300_legitimate_address_p): Make static. Only allow SI sized
9475 constant pic operands.
9476 (mn10300_legitimate_constant_p): New function.
9477 (mn10300_case_values_threshold): Make static.
9478 (mn10300_hard_regno_mode_ok): New function.
9479 (mn10300_modes_tieable): New function.
9480 (mn10300_select_cc_mode): New function.
9481 * config/mn10300/predicates.md (impossible_plus_operand): Define.
9482 * config/mn10300/mn10300-protos.h: Tidy.
9483 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
9484 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
9485 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
9486 with clobbers or sets of CC_REG.
9487 (CC_REG): Define.
9488 (mov*): Remove use of CLR instruction.
9489 (cbranch_si4_<code>): New pattern/split.
9490 (integer_conditional_branch): New pattern.
9491 (cbranch_sf4_<code>): New pattern/split.
9492 (float_conditional_branch): New pattern.
9493 (casesi): Use addsi3 pattern instead of movsi pattern to add and
9494 move a value at the same time.
9495 (cc0 peepholes): Remove.
9496
9497 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
9498
9499 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
9500 on RTX_FRAME_RELATED_P insns and the insn to which
9501 NOTE_INSN_EPILOGUE_BEG is attached.
9502 * sched-vis.c (print_value): Allow NULL value.
9503
9504 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
9505
9506 PR rtl-optimization/45570
9507 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
9508 assert that we are pipelining outer loops. Allow returning
9509 zero predecessors.
9510
9511 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
9512
9513 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
9514 (tidy_control_flow): Tidy vertical space.
9515 (sel_remove_bb): New variable idx. Use it to remember the basic
9516 block index before deleting the block.
9517 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
9518 (sel_merge_blocks): ... here.
9519 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
9520
9521 2010-10-14 Jakub Jelinek <jakub@redhat.com>
9522
9523 * cse.c (is_dead_reg): Change into inline function that is not
9524 called through for_each_rtx.
9525 (set_live_p): Adjust caller.
9526 (insn_live_p): Don't reset DEBUG_INSNs here.
9527 (struct dead_debug_insn_data): New data.
9528 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
9529 (delete_trivially_dead_insns): If there is just one setter for the
9530 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
9531 and add DEBUG_INSN for it right before the removed setter and
9532 use the DEBUG_EXPR instead of the dead pseudo.
9533
9534 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
9535
9536 * et-forest.c (et_nca): Return NULL immediately when
9537 the dominance forest has disjoint components.
9538
9539 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
9540
9541 * ira.c (setup_class_hard_regs): Fix typo in indexing
9542 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
9543
9544 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
9545
9546 * graph.c (inbb): New variable.
9547 (start_bb): Set inbb to 1 if output is inside of a building block.
9548 (end_bb): Check if output is inside of a building block.
9549
9550 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
9551
9552 PR rtl-optimization/45912
9553 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
9554 regno of registers instead of their index to compute the alignment.
9555
9556 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
9557
9558 * config/i386/i386.c (ix86_build_const_vector): Check vector
9559 mode instead of scalar mode.
9560 (ix86_build_signbit_mask): Likewise.
9561 (ix86_expand_fp_absneg_operator): Updated.
9562 (ix86_expand_copysign): Likewise.
9563 (ix86_expand_int_vcond): Likewise.
9564 (ix86_emit_swdivsf): Likewise.
9565 (ix86_sse_copysign_to_positive): Likewise.
9566 (ix86_expand_sse_fabs): Likewise.
9567 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
9568 * config/i386/sse.md (copysign<mode>3): Likewise.
9569 (sse2_cvtudq2ps): Likewise.
9570 (vec_unpacku_float_hi_v4si): Likewise.
9571 (vec_unpacku_float_lo_v4si): Likewise.
9572
9573 * config/i386/i386.c (ix86_builtins): Add
9574 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
9575 (bdesc_args): Likewise.
9576 (ix86_builtin_vectorized_function): Support
9577 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
9578 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
9579 and IX86_BUILTIN_CVTPS2DQ256.
9580 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
9581
9582 * config/i386/sse.md (STORENT_MODE): New.
9583 (VEC_FLOAT_MODE): Likewise.
9584 (VEC_EXTRACT_MODE): Likewise.
9585 (*avx_cvtdq2pd256_2): Likewise.
9586 (vec_pack_trunc_v4df): Likewise.
9587 (vec_interleave_highv8sf): Likewise.
9588 (vec_interleave_lowv8sf): Likewise.
9589 (storent<mode>): Macroized.
9590 (<code><mode>2: absneg): Likewise.
9591 (copysign<mode>3): Likewise.
9592 (vec_extract<mode>): Likewise.
9593
9594 PR target/44180
9595 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
9596 for V8SFmode.
9597
9598 2010-10-13 Richard Guenther <rguenther@suse.de>
9599 H.J. Lu <hongjiu.lu@intel.com>
9600
9601 * config/i386/sse.md (reduc_splus_v8sf): Add.
9602 (reduc_splus_v4df): Likewise.
9603 (vec_unpacks_hi_v8sf): Likewise.
9604 (vec_unpacks_lo_v8sf): Likewise.
9605 (*avx_cvtps2pd256_2): Likewise.
9606 (vec_unpacks_float_hi_v8si): Likewise.
9607 (vec_unpacks_float_lo_v8si): Likewise.
9608 (vec_interleave_highv4df): Likewise.
9609 (vec_interleave_lowv4df): Likewise.
9610
9611 2010-10-13 Richard Guenther <rguenther@suse.de>
9612
9613 PR objc/45878
9614 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
9615 alone if there are no virtual methods.
9616
9617 2010-10-13 Richard Henderson <rth@redhat.com>
9618
9619 * expr.c (build_personality_function): Take parameter LANG instead
9620 of parameter NAME. Build the name based on the lang prefix and the
9621 unwind method in use.
9622 * tree.c (lhd_gcc_personality): Update call to
9623 build_personality_function.
9624
9625 2010-10-13 Richard Guenther <rguenther@suse.de>
9626
9627 PR objc/45878
9628 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
9629
9630 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
9631
9632 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
9633 Canonicalize input operands of ASM_OPERANDS insns.
9634
9635 2010-10-13 Richard Guenther <rguenther@suse.de>
9636
9637 PR tree-optimization/45788
9638 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
9639 EH update until fixup-cfg.
9640
9641 2010-10-13 Julian Brown <julian@codesourcery.com>
9642
9643 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
9644 from CORE_REGS and GENERAL_REGS classes.
9645 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
9646 final constraint for register preferencing.
9647
9648 2010-10-13 Richard Guenther <rguenther@suse.de>
9649
9650 PR tree-optimization/45970
9651 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
9652 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
9653 (stmt_kills_ref_p): Likewise.
9654 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
9655
9656 2010-10-13 Richard Guenther <rguenther@suse.de>
9657
9658 PR tree-optimization/45982
9659 * tree-ssa-structalias.c (make_constraints_to): New function.
9660 (make_constraint_to): Implement in terms of make_constraints_to.
9661 (find_func_aliases): Properly make return values of pure/const
9662 functions escape if they assign to sth that is not a pointer.
9663
9664 2010-10-13 Richard Guenther <rguenther@suse.de>
9665
9666 PR middle-end/45874
9667 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
9668 Fixup the CFG when EH was fixed up.
9669
9670 2010-10-13 Ira Rosen <irar@il.ibm.com>
9671
9672 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
9673 Use operand's type for POINTER_PLUS_EXPR.
9674
9675 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
9676
9677 * c-parser.c (c_parser_for_statement): Initialize incr.
9678
9679 2010-10-12 Xinliang David Li <davidxl@google.com>
9680
9681 PR tree-optimization/45972
9682 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
9683 with too many arguments.
9684
9685 2010-10-12 Jakub Jelinek <jakub@redhat.com>
9686
9687 PR fortran/45636
9688 * tree-ssa-forwprop.c: Include expr.h.
9689 (constant_pointer_difference, simplify_builtin_call): New functions.
9690 (tree_ssa_forward_propagate_single_use_vars): Call
9691 simplify_builtin_call on builtin calls.
9692
9693 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
9694
9695 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
9696 (*adddi3_extend_sp32): Likewise.
9697 (*subdi3_insn_sp32): Likewise.
9698 (*subdi3_extend_sp32): Likewise.
9699 (*negdi2_sp32): Use negative test for consistency.
9700
9701 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
9702
9703 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
9704 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9705 * config/fixed-bit.h: Likewise.
9706 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9707 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
9708 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
9709 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
9710 (DF_SIZE): Likewise.
9711 * doc/tm.texi: Regenerate.
9712
9713 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
9714
9715 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
9716 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
9717 (*isel_reversed_unsigned_<mode>): New.
9718 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
9719 as valid comparisons and adjust operands and output appropriately.
9720 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
9721
9722 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
9723
9724 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
9725 DATA_ALIGNMENT and add COND parameter. Update comments above.
9726 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
9727 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
9728
9729 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
9730
9731 PR bootstrap/45958
9732 * exec-tool.in: Support '-plugin' as the second option to the linker.
9733
9734 2010-10-12 Richard Henderson <rth@redhat.com>
9735
9736 PR middle-end/45962
9737 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
9738 (expand_stack_vars): Assert large base allocated when used.
9739
9740 2010-10-12 Richard Guenther <rguenther@suse.de>
9741
9742 * tree-ssa-structalias.c (get_constraint_for_1): Constants
9743 only point to nonlocal, not anything.
9744
9745 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
9746
9747 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
9748 unwind info for exceptions.
9749
9750 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9751
9752 PR testsuite/45851
9753 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
9754 Document optional target selector.
9755
9756 2010-10-12 Joseph Myers <joseph@codesourcery.com>
9757
9758 * flag-types.h: New.
9759 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
9760 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
9761 options.h.
9762 (OPTIONS_H): Define.
9763 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
9764 of options.h.
9765 * configure.ac (tm_include_list): Include options.h not flags.h.
9766 * configure: Regenerate.
9767 * flags.h: Include flag-types.h. Include options.h at top of file
9768 again.
9769 (enum debug_info_type, enum debug_info_level, enum
9770 debug_info_usage, enum symbol_visibility, struct visibility_flags,
9771 enum ira_algorithm, enum ira_region, enum excess_precision, enum
9772 graph_dump_types, enum stack_check_type,
9773 enum warn_strict_overflow_code): Move to flag-types.h
9774 * opth-gen.awk: Include flag-types.h in options.h.
9775
9776 2010-10-12 Jakub Jelinek <jakub@redhat.com>
9777
9778 * expr.c (store_expr): Share code for STRING_CST and
9779 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
9780 check if target is a MEM.
9781
9782 * rtl.h: Include hashtab.h.
9783 (iterative_hash_rtx): New prototype.
9784 * rtl.c (iterative_hash_rtx): New function.
9785 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
9786 (output_loc_list): Return immediately if emitted is set, set it.
9787 (hash_loc_operands, hash_locs, hash_loc_list,
9788 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
9789 optimize_location_lists_1, optimize_location_lists): New function.
9790 (dwarf2out_finish): Call optimize_location_lists.
9791 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
9792
9793 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9794
9795 PR testsuite/45974
9796 Revert:
9797 * Makefile.in ($(lang_checks_parallel))
9798 ($(lang_checks_parallelized)): Use single quotes for
9799 $(RUNTESTFLAGS), to allow passing quoted content.
9800
9801 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9802
9803 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
9804 actual_oldval. Use __builtin_expect.
9805 (SUBWORD_VAL_CAS): Likewise.
9806
9807 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
9808
9809 * recog.c (nonmemory_operand): Call immediate_operand for
9810 CONSTANT_P operands.
9811
9812 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
9813
9814 * config/i386/i386.md (movmem<mode>): Macroize expander from
9815 movmem{si,di} using SWI48 mode iterator.
9816 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
9817 *strmovsi_rex_1 using P mode iterator.
9818 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
9819 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
9820 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
9821 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
9822 (setmem<mode>): Macroize expander from setmem{si,di} using
9823 SWI48 mode iterator.
9824 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
9825 *strsetsi_rex_1 using P mode iterator.
9826 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
9827 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
9828 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
9829 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
9830 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
9831 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
9832 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
9833 mode iterator.
9834 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
9835 *strlenqi_rex_1 using P mode iterator.
9836
9837 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
9838
9839 PR bootstrap/45445
9840 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
9841 static functions.
9842 (mark_ref_live, mark_ref_dead): Use them.
9843 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
9844 Save the original reg, and use the new functions.
9845 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
9846 changed.
9847 (check_and_make_def_conflict): Save the original reg.
9848
9849 2010-10-11 Martin Jambor <mjambor@suse.cz>
9850
9851 PR middle-end/45699
9852 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
9853 thunks.
9854
9855 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9856
9857 * Makefile.in ($(lang_checks_parallel))
9858 ($(lang_checks_parallelized)): Use single quotes for
9859 $(RUNTESTFLAGS), to allow passing quoted content.
9860
9861 PR bootstrap/35855
9862 * opt-functions.awk (BEGIN): New section.
9863 (lower, upper, digit, alnum): New variables.
9864 (static_var, opt_sanitized_name): Use alnum instead of character
9865 classes, for non-C locale.
9866 * optc-gen.awk: Likewise.
9867 * opth-gen.awk: Likewise.
9868
9869 2010-10-11 Anatoly Sokolov <aesok@post.ru>
9870
9871 * target.def (preferred_reload_class): New hook.
9872 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
9873 * doc/tm.texi: Regenerate.
9874 * targhooks.c (default_preferred_reload_class): New function.
9875 * targhooks.h (default_preferred_reload_class): Declare.
9876 * reload.c (find_dummy_reload): Change preferred_class variable type
9877 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
9878 target hook.
9879 (find_reloads): Change goal_alternative array type from int to
9880 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
9881 (push_reload, find_reloads_address_part): Use
9882 TARGET_PREFERRED_RELOAD_CLASS target hook.
9883 * reload1.c (emit_input_reload_insns): Ditto.
9884 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
9885 hook. Change rclass argument and secondary_class variable types from
9886 'enum reg_class' to reg_class_t.
9887
9888 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
9889 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
9890 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
9891 Change regclass argument and result types from enum reg_class to
9892 reg_class_t.
9893 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9894
9895 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
9896
9897 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
9898 in masking operations.
9899 (simplify_const_unary_operation): Likewise.
9900 (simplify_binary_operation_1): Likewise.
9901 (simplify_const_binary_operation): Likewise.
9902 (simplify_const_relational_operation): Likewise.
9903 (simplify_ternary_operation): Likewise.
9904 (simplify_immed_subreg): Likewise.
9905
9906 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9907
9908 PR middle-end/45862
9909 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
9910 (TARGET_SUPPORTS_WEAK): New.
9911 * doc/tm.texi: Regenerate.
9912 * defaults.h (SUPPORTS_WEAK): Update comment.
9913 (TARGET_SUPPORTS_WEAK): New.
9914 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
9915 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
9916 SUPPORTS_WEAK.
9917 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
9918 make_decl_one_only): Likewise.
9919 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
9920 TARGET_SUPPORTS_WEAK.
9921 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
9922 instead of SUPPORTS_WEAK.
9923
9924 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9925
9926 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
9927
9928 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
9929
9930 * vec.h (VEC_qsort): Define.
9931 * dbxout.c (output_used_types): Use it.
9932 * df-scan.c (df_sort_and_compress_refs): Likewise.
9933 (df_sort_and_compress_mws): Likewise.
9934 * genautomata.c (uniq_sort_alt_states): Likewise.
9935 (evaluate_equiv_classes): Likewise.
9936 (output_trans_table): Likewise.
9937 (output_state): Likewise.
9938 * gimplify.c (compare_case_labels): Likewise.
9939 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
9940 * ipa.c (build_cdtor_fns): Likewise.
9941 * lto.c (lto_wpa_write_files): Likewise.
9942 * sel-sched.c (fill_vec_av_set): Likewise.
9943 * tree-predcom.c (determine_roots_comp): Likewise.
9944 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
9945 (splice_param_accesses): Likewise.
9946 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
9947 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
9948 (reassociate_bb): Likewise.
9949 * tree-ssa-sccvn.c (sort_scc): Likewise.
9950 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
9951
9952 2010-10-11 Ian Lance Taylor <iant@google.com>
9953
9954 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
9955 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
9956 TREE_THIS_NOTRAP when appropriate.
9957 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
9958 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
9959 newly created MEM_REF.
9960
9961 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
9962
9963 Nathan Froyds patch to hooks FUNCTION_ARG etc.
9964 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
9965 (picochip_incoming_function_arg): Delete.
9966 (picochip_arg_advance): Delete.
9967 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
9968 (FUNCTION_INCOMING_ARG): Delete.
9969 (FUNCTION_ARG_ADVANCE): Delete.
9970 * config/picochip/picochip.c (picochip_function_arg): Take a
9971 const_tree and a bool.
9972 (picochip_incoming_function_arg): Likewise.
9973 (picochip_arg_advance): Likewise.
9974 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9975 (TARGET_FUNCTION_ARG_ADVANCE): Define.
9976
9977 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9978
9979 PR middle-end/45955
9980 * ipa.c (build_cdtor): Delete endless loop.
9981
9982 2010-10-07 Andi Kleen <ak@linux.intel.com>
9983
9984 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
9985 checksum-options.
9986 (checksum-options): Add.
9987 (cc1-dummy): Remove.
9988 (cc1-checksum): Change to run checksum over object files
9989 and options only.
9990 * dummy-checksum.c: Remove.
9991 * genchecksum.c: Update copyright.
9992 (usage): Allow multiple arguments.
9993 (BLOCKSIZE): Add.
9994 (dosum): Change for incremental checksum. Remove C output.
9995 (main): Iterate over all argument files. Add C output.
9996
9997 2010-10-11 Joseph Myers <joseph@codesourcery.com>
9998
9999 * params.c (set_param_value_internal): New.
10000 (set_param_value): Use set_param_value_internal.
10001 (maybe_set_param_value, set_default_param_value): New.
10002 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
10003 (maybe_set_param_value, set_default_param_value): Declare.
10004 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
10005 * config/i386/i386.c (ix86_option_override_internal): Use
10006 maybe_set_param_value.
10007 * config/ia64/ia64.c (ia64_option_default_params,
10008 TARGET_OPTION_DEFAULT_PARAMS): New.
10009 (ia64_option_optimization): Move some code to
10010 ia64_option_default_params.
10011 * config/picochip/picochip.c (picochip_option_override): Use
10012 maybe_set_param_value.
10013 * config/rs6000/rs6000.c (rs6000_option_default_params,
10014 TARGET_OPTION_DEFAULT_PARAMS): New.
10015 (rs6000_option_override_internal): Use maybe_set_param_value.
10016 (rs6000_option_optimization): Move some code to
10017 rs6000_option_default_params.
10018 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
10019 * config/sh/sh.c (sh_option_default_params,
10020 TARGET_OPTION_DEFAULT_PARAMS): New.
10021 (sh_option_optimization): Move some code to sh_option_default_params.
10022 * config/sparc/sparc.c (sparc_option_override): Use
10023 maybe_set_param_value.
10024 * config/spu/spu.c (spu_option_default_params,
10025 TARGET_OPTION_DEFAULT_PARAMS): New.
10026 (spu_option_optimization): Move some code to spu_option_default_params.
10027 (spu_option_override): Use maybe_set_param_value.
10028 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
10029 * doc/tm.texi: Regenerate.
10030 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
10031 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
10032 compiler_params.
10033 (default_options_optimization): Use maybe_set_param_value.
10034 (finish_options): Use maybe_set_param_value.
10035 * target.def (target_option.default_params): New hook.
10036 * toplev.c (general_init): Call targetm.target_option.default_params.
10037
10038 2010-10-11 Ira Rosen <irar@il.ibm.com>
10039
10040 PR tree-optimization/45902
10041 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
10042 vector type for constants, unless it's a pointer.
10043
10044 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10045
10046 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
10047
10048 2010-10-11 Jakub Jelinek <jakub@redhat.com>
10049
10050 PR target/45870
10051 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
10052 (ix86_delegitimize_address): Use it.
10053
10054 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
10055
10056 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
10057
10058 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
10059
10060 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
10061 to cum struct in the call to function_arg_advance.
10062 (alpha_function_arg_advance): Mark named as unused.
10063
10064 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
10065
10066 * config/mips/mips.c (mips_handle_option): Make "value" with
10067 ATTRIBUTE_UNUSED.
10068
10069 2010-10-09 Richard Henderson <rth@redhat.com>
10070
10071 PR rtl-opt/33721
10072 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
10073 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
10074 required_align, tidy the code a bit. Emit split_stack code in the
10075 right place. Mark the return value with the alignment properly.
10076 * expr.h (allocate_dynamic_stack_space): Update decl.
10077 * builtins.c (expand_builtin_apply): Update call to
10078 allocate_dynamic_stack_space.
10079 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
10080 * calls.c (initialize_argument_information): Update call to
10081 allocate_dynamic_stack_space.
10082 (expand_call): Likewise.
10083
10084 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
10085 Don't update_stack_alignment here.
10086 (alloc_stack_frame_space): Make ALIGN unsigned.
10087 (stack_var_cmp): Sort by alignment too.
10088 (partition_stack_vars): Don't merge large and small alignment vars.
10089 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
10090 Take care when BASE is not virtual_stack_vars_rtx.
10091 (expand_stack_vars): Allocate dynamic stack space for large
10092 alignment variables.
10093 (expand_one_stack_var): Update all to expand_one_stack_var_at.
10094 (defer_stack_allocation): True for large alignment vars.
10095 (update_stack_alignment): Merge into ...
10096 (expand_one_var): ... here.
10097 (gimple_expand_cfg): Place code from expand_stack_vars.
10098
10099 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10100
10101 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10102 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
10103 (pdp11_function_arg_advance): New function.
10104 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10105
10106 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10107
10108 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
10109 * libgcc2.c: Likewise.
10110
10111 2010-10-09 Richard Guenther <rguenther@suse.de>
10112
10113 PR lto/45956
10114 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
10115 Properly check if a decl is an automatic var.
10116
10117 2010-10-09 Richard Guenther <rguenther@suse.de>
10118
10119 PR lto/45947
10120 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
10121
10122 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10123
10124 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
10125 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10126 * config/mmix/mmix.c (mmix_function_arg): Rename to...
10127 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
10128 bool arguments.
10129 (mmix_function_arg): New function.
10130 (mmix_function_incoming_arg): New function.
10131 (mmix_function_arg_advance): New function.
10132 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
10133 (TARGET_FUNCTION_ARG_ADVANCE): Define.
10134
10135 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10136
10137 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10138 * config/vax/vax.c (vax_function_arg): New function.
10139 (vax_function_arg_advance): New function.
10140 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10141
10142 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10143
10144 * config/pa/pa-protos.h (function_arg): Delete.
10145 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10146 * config/pa/pa.c (function_arg): Rename to...
10147 (pa_function_arg): ...this. Make static. Take a const_tree and
10148 a bool.
10149 (pa_function_arg_advance): New function.
10150 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10151
10152 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10153
10154 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10155 * config/m68k/m68k.c (m68k_function_arg): New function.
10156 (m68k_function_arg_advance): New function.
10157 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10158
10159 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10160
10161 * config/avr/avr-protos.h (function_arg): Delete.
10162 (function_arg_advance): Delete.
10163 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10164 * config/avr/avr.c (function_arg): Rename to...
10165 (avr_function_arg): ...this. Make static. Take a const_tree and
10166 a bool.
10167 (function_arg_advance): Rename to...
10168 (avr_function_arg_advance): ...this. Make static. Take a
10169 const_tree and a bool.
10170 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10171
10172 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10173
10174 * config/alpha/alpha-protos.h (function_arg): Delete.
10175 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10176 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
10177 * config/alpha/alpha.c (function_arg): Rename to...
10178 (alpha_function_arg): ...this. Make static. Take a const_tree and
10179 a bool. Delete TARGET_ABI_UNICOSMK code.
10180 (alpha_function_arg_advance): New function.
10181 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10182
10183 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10184
10185 * config/mep/mep-protos.h (mep_function_arg): Delete.
10186 (mep_function_arg_advance): Delete.
10187 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10188 * config/mep/mep.c (mep_function_arg): Make static. Take a
10189 const_tree and a bool.
10190 (mep_function_arg_advance): Likewise.
10191 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10192
10193 2010-10-09 Richard Guenther <rguenther@suse.de>
10194
10195 PR tree-optimization/45945
10196 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
10197
10198 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
10199
10200 PR tree-optimization/45612
10201 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
10202 Test LABEL_DECLs as well. Fix formatting issues.
10203 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
10204 whose label is present in NON_SSA_VARS.
10205 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
10206 as well. Fix formatting issues.
10207 (visit_bb): Fix typos and formatting issue.
10208
10209 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
10210
10211 PR tree-optimization/45950
10212 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
10213 before initializing vno->op.
10214
10215 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
10216
10217 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
10218 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
10219
10220 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
10221
10222 PR target/45913
10223 * config/i386/i386.c (ix86_binary_operator_ok): Support
10224 "andhi/andsi/anddi" as a zero-extending move.
10225
10226 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10227
10228 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
10229 into a temporary array.
10230
10231 2010-10-08 Jakub Jelinek <jakub@redhat.com>
10232
10233 PR tree-optimization/45903
10234 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
10235 of {A,L}SHIFTRT of MEM.
10236
10237 2010-10-08 Richard Guenther <rguenther@suse.de>
10238
10239 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10240 Re-construct BLOCK_VARS.
10241 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
10242 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10243 * tree.c (free_lang_data_in_block): Remove.
10244 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
10245 Do not touch the BLOCK tree.
10246 * expr.c (expand_expr_real_1): Allow externals.
10247
10248 2010-10-08 Richard Guenther <rguenther@suse.de>
10249
10250 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
10251 Do not output BLOCK_SUBBLOCKS.
10252 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
10253 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
10254 Re-construct BLOCK_SUBBLOCKS of parent block.
10255 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
10256 for BINFO_BASE_ACCESSES.
10257
10258 2010-10-08 Joseph Myers <joseph@codesourcery.com>
10259
10260 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
10261 (TREE_H): Include $(FLAGS_H) instead of options.h.
10262 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
10263 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
10264 * common.opt (flag_complex_method, flag_evaluation_order,
10265 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
10266 Variable declarations.
10267 * configure.ac (tm_include_list): Include flags.h instead of options.h.
10268 * configure: Regenerate.
10269 * flags.h: Condition out contents for target libraries. Include
10270 options.h at end of file.
10271 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
10272 flag_evaluation_order, flag_warn_unused_result): Remove.
10273 * gcc.c (main): Intialize global_options with global_options_init.
10274 * langhooks-def.h (lhd_init_options_struct): Declare.
10275 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
10276 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
10277 * langhooks.c (lhd_init_options_struct): New.
10278 * langhooks.h (struct lang_hooks): Add init_options_struct.
10279 Update comment on init_options.
10280 * optc-gen.awk: Generate initializer for global_options_init, not
10281 global_options.
10282 * opth-gen.awk: Condition out structure declarations for target
10283 libraries. Declare global_options_init.
10284 * opts-common.c: Include flags.h instead of options.h.
10285 * opts.c (flag_warn_unused_result): Remove.
10286 (read_cmdline_options): Take gcc_options parameters. Pass them to
10287 read_cmdline_option.
10288 (initial_lang_mask, initial_min_crossjump_insns,
10289 initial_max_fields_for_field_sensitive,
10290 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
10291 (init_options_once): New. Split out of decode_options.
10292 (init_options_struct): New. Split out of decode_options.
10293 (decode_cmdline_options_to_array_default_mask): New.
10294 (default_options_optimization): New. Split out of decode_options.
10295 (decode_options): Move most code to other functions. Update call
10296 to read_cmdline_options.
10297 (finish_options): New. Split out of decode_options.
10298 * opts.h (decode_options): Add gcc_options parameters.
10299 (init_options_once, init_options_struct,
10300 decode_cmdline_options_to_array_default_mask): New.
10301 * toplev.c (flag_complex_method, flag_ira_algorithm,
10302 flag_ira_region, flag_evaluation_order): Remove.
10303 (general_init): Use global_options_init for initial flag values
10304 for global_dc.
10305 (toplev_main): Call init_options_once, init_options_struct,
10306 lang_hooks.init_options_struct,
10307 decode_cmdline_options_to_array_default_mask and
10308 lang_hooks.init_option before decode_options. Update arguments to
10309 decode_options.
10310 * tree.h: Include flags.h instead of options.h.
10311
10312 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10313
10314 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10315
10316 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10317
10318 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
10319 Delete.
10320 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
10321 (FUNCTION_INCOMING_ARG): Delete.
10322 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
10323 (function_arg_slotno): Likewise. Take bool arguments.
10324 (sparc_arg_partial_bytes): Update call to it.
10325 (function_arg): Rename to...
10326 (sparc_function_arg_1): ...this. Take bool arguments.
10327 (sparc_function_arg, sparc_function_incoming_arg): New functions.
10328 (function_arg_advance): Rename to...
10329 (sparc_function_arg_advance): ...this. Take bool argument.
10330 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
10331 (TARGET_FUNCTION_INCOMING_ARG): Define.
10332
10333 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10334
10335 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
10336 Delete.
10337 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10338 * config/bfin/bfin.c (function_arg_advance): Rename to...
10339 (bfin_function_arg_advance): ...this. Make static. Take const_tree
10340 and bool arguments.
10341 (function_arg): Rename to...
10342 (bfin_function_arg): ...this. Make static. Take const_tree and bool
10343 arguments.
10344 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10345
10346 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10347
10348 * config/score/score-protos.h (score_function_arg): Delete.
10349 (score_function_arg_advance): Delete.
10350 * config/score/score3.h (score3_function_arg_advance): Take a
10351 const_tree and a bool.
10352 (score3_function_arg): Likewise.
10353 * config/score/score7.h (score7_function_arg_advance): Likewise.
10354 (score7_function_arg): Likewise.
10355 * config/score/score3.c (score3_classify_arg): Likewise.
10356 (score3_function_arg_advance, score3_function_arg): Likewise.
10357 * config/score/score7.c (score7_classify_arg): Likewise.
10358 (score7_function_arg_advance, score7_function_arg): Likewise.
10359 * config/score/score.c (score_function_arg_advance): Likewise.
10360 (score_function_arg): Likewise. De-const-ify `cum' argument.
10361 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10362
10363 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10364
10365 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
10366 (s390_function_arg): Delete.
10367 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10368 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
10369 (s390_function_arg_integer): Likewise.
10370 (s390_function_arg_advance): Make static. Take a const_tree and
10371 a bool.
10372 (s390_function_arg): Likewise.
10373 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10374
10375 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10376
10377 * config/spu/spu-protos.h (spu_function_arg): Delete.
10378 * config/spu/spu.h (FUNCTION_ARG): Delete.
10379 (FUNCTION_ARG_ADVANCE): Move code to ...
10380 * config/spu/spu.c (spu_function_arg_advance): New function.
10381 (spu_function_arg): Make static. Take a const_tree and a bool.
10382 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
10383 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10384
10385 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10386
10387 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10388
10389 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10390
10391 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
10392 (init_vn_nary_op_from_op): New function.
10393 (init_vn_nary_op_from_stmt): New function.
10394 (vn_nary_op_lookup_1): New function.
10395 (sizeof_vn_nary_op): New function.
10396 (alloc_vn_nary_op_noinit): New function.
10397 (alloc_vn_nary_op): New function.
10398 (vn_nary_op_insert_into): New function.
10399 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
10400 (vn_nary_op_lookup): Likewise.
10401 (vn_nary_op_lookup_stmt): Likewise.
10402 (vn_nary_op_insert_pieces): Likewise.
10403 (vn_nary_op_insert): Likewise.
10404 (vn_nary_op_insert_stmt): Likewise.
10405 (copy_nary): Likewise.
10406 (set_value_id_for_result): New function.
10407 (set_hashtable_value_ids): Call it.
10408
10409 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10410
10411 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10412 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
10413
10414 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
10415
10416 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
10417 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10418
10419 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
10420
10421 PR debug/45656
10422 * cse.c (cse_extended_basic_block): Preserve cc0 info across
10423 debug isnsn. Skip them when searching for cc0 setter.
10424 (set_live_p): Skip debug insns when searching for cc0 user.
10425
10426 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
10427
10428 PR debug/45673
10429 PR debug/45604
10430 PR debug/45419
10431 PR debug/45408
10432 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
10433 type of MEM_REFs to INTEGER_CSTs.
10434
10435 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
10436
10437 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
10438 m68hc11_print_operand_address.
10439
10440 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
10441
10442 * builtins.c (rewrite_call_expr): Move code to...
10443 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
10444 (rewrite_call_expr_array): New function.
10445 (fold_builtin_sprintf_chk_1): New function.
10446 (fold_builtin_sprintf_chk): Call it.
10447 (gimple_fold_builtin_sprintf_chk): Likewise.
10448 (fold_builtin_snprintf_chk_1): New function.
10449 (fold_builtin_snprintf_chk): Call it.
10450 (gimple_fold_builtin_snprintf_chk): Likewise.
10451 (gimple_rewrite_call_expr): Delete.
10452
10453 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
10454
10455 * config.host: Update copyright year.
10456
10457 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
10458
10459 * config.host (host_lto_plugin_soname): New shell variable.
10460 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
10461 * config.in: Regenerate.
10462 * configure: Regenerate.
10463 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
10464 LTO plugin shared library.
10465
10466 2010-10-07 Richard Henderson <rth@redhat.com>
10467
10468 * target.h (enum unwind_info_type): Move ...
10469 * coretypes.h: ... here.
10470
10471 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
10472
10473 * doc/objc.texi (Fast enumeration protocol): Mention that
10474 'unsigned int' can also be used instead of 'unsigned long' in
10475 countByEnumeratingWithState:objects:count:.
10476
10477 2010-10-07 Martin Jambor <mjambor@suse.cz>
10478
10479 * tree-sra.c (struct access): New field grp_assignment_write.
10480 (dump_access): Dump grp_assignment_write.
10481 (build_accesses_from_assign): Set grp_assignment_write.
10482 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
10483 (mark_read_status): Renamed to mark_rw_status, individual values
10484 renamed too.
10485 (analyze_access_subtree): Changed type of mark_write to
10486 mark_read_status. Fixed propagating of mark_read and
10487 mark_write. Changed benefit estimate. Updated comment.
10488
10489 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
10490
10491 PR Tree-Vect/45847
10492 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
10493 check for vectype_out returned by get_vectype_for_scalar_type().
10494
10495 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
10496
10497 PR target/45805
10498 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
10499 constraint, add register specifier in instruction template.
10500 (neon_vec_pack_trunc_<mode>): Likewise.
10501 (neon_vec_<US>mult_<mode>): Add register specifier to
10502 instruction template.
10503
10504 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
10505
10506 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
10507 cygwin2.o.
10508 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
10509 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
10510 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
10511 (cygwin2.o): Likewise.
10512 * config/i386/cygwin1.c: Delete file.
10513 * config/i386/cygwin2.c: Likewise.
10514 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
10515 make all {%!mno-cygwin} ones unconditional.
10516 (STARTFILE_SPEC): Likewise.
10517 (REAL_LIBGCC_SPEC): Likewise.
10518 (LIB_SPEC): Likewise.
10519 (CXX_WRAP_SPEC): Likewise.
10520 (LINK_SPEC): Likewise.
10521 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
10522 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
10523 (cygwin_gplusplus_include_dir): Delete now-unused array.
10524 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
10525 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
10526 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
10527 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
10528 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
10529 (cygwin_local_include_dir): Delete now-unused array.
10530 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
10531 (cygwin_cross_include_dir): Delete now-unused array.
10532 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
10533 (cygwin_tool_include_dir): Delete now-unused array.
10534 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
10535 (cygwin_standard_include_dir): Delete now-unused array.
10536 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
10537 (GEN_CVT_ARRAY): Delete now-unused macro definition.
10538 (cvt_to_mingw): Delete now-unused array.
10539 (mingw_scan): Remove prototype of deleted function.
10540 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
10541 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
10542 * doc/invoke.texi (-mcygwin): Don't document removed option.
10543 (-mno-cygwin): Likewise.
10544
10545 2010-10-07 Richard Guenther <rguenther@suse.de>
10546
10547 * machmode.h (mode_for_vector): Declare.
10548 * stor-layout.c (mode_for_vector): New function, split out from ...
10549 (layout_type): ... here.
10550 * tree-vectorizer.h (current_vector_size): Declare.
10551 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
10552 mask vector type is available.
10553 (get_vectype_for_scalar_type): Rename to ...
10554 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
10555 size argument.
10556 (get_vectype_for_scalar_type): New wrapper around
10557 get_vectype_for_scalar_type_and_size using current_vector_size.
10558 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
10559 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
10560 of vect_analyze_loop here.
10561 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
10562 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
10563 to autodetect.
10564 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
10565 V8SF to V8SI conversion builtin.
10566
10567 2010-10-07 Richard Guenther <rguenther@suse.de>
10568
10569 * target.def (autovectorize_vector_sizes): New target hook.
10570 * targhooks.c (default_autovectorize_vector_sizes): New function.
10571 * targhooks.h (default_autovectorize_vector_sizes): Declare.
10572 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
10573 Document.
10574 * doc/tm.texi: Update.
10575 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
10576 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10577
10578 2010-10-07 Richard Guenther <rguenther@suse.de>
10579
10580 * target.def (units_per_simd_word): Rename to ...
10581 (preferred_simd_mode): ... this. Return mode instead of size.
10582 * targhooks.c (default_units_per_simd_word): Rename to ...
10583 (default_preferred_simd_mode): ... this. Return word_mode.
10584 * targhooks.h (default_preferred_simd_mode): Declare.
10585 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
10586 (arm_preferred_simd_mode): ... this. Re-implement.
10587 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
10588 (ix86_preferred_simd_mode): ... this. Re-implement.
10589 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
10590 (sparc_preferred_simd_mode): ... this. Re-implement.
10591 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
10592 (mips_preferred_simd_mode): ... this. Re-implement.
10593 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
10594 (rs6000_preferred_simd_mode): ... this. Re-implement.
10595 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
10596 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
10597 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
10598 * doc/tm.texi: Update.
10599
10600 2010-10-07 Richard Guenther <rguenther@suse.de>
10601
10602 PR middle-end/45869
10603 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
10604 of pointers.
10605
10606 2010-10-07 Alan Modra <amodra@gmail.com>
10607
10608 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
10609 rather than sign extension by hand.
10610
10611 2010-10-07 Jan Hubicka <jh@suse.cz>
10612
10613 PR middle-end/45926
10614 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
10615
10616 2010-10-07 Richard Guenther <rguenther@suse.de>
10617
10618 PR bootstrap/45914
10619 * configure.ac: Fix typo.
10620 * configure: Regenerated.
10621
10622 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10623
10624 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
10625 define_builtin_std where it's unnecessary.
10626 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
10627
10628 2010-10-06 Anatoly Sokolov <aesok@post.ru>
10629
10630 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
10631 * doc/tm.texi.in: Regenerate.
10632 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
10633 * targhooks.c (default_class_likely_spilled_p): Don't use the
10634 CLASS_LIKELY_SPILLED_P macro.
10635
10636 * config/arm/arm.md: Update comment.
10637
10638 2010-10-06 Jan Hubicka <jh@suse.cz>
10639
10640 * ipa.c (cgraph_remove_unreachable_nodes): External references can
10641 always be removed.
10642 (cgraph_externally_visible_p): We can not bring local comdats that
10643 are known to linker; fix handling of internal visibility.
10644 (function_and_variable_visibility): Likewise.
10645
10646 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
10647
10648 PR rtl-optimization/45394
10649 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
10650 (struct rtx_subst_pair): Remove AFTER field.
10651 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
10652 (propagate_for_debug): Remove MOVE parameter and adjust.
10653 (try_combine): In the special case where I2 is a PARALLEL, combine only
10654 destinations of SETs and set I2SRC to the I2 source.
10655 Adjust calls to propagate_for_debug throughout.
10656 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
10657 insns.
10658
10659 2010-10-06 Olivier Hainque <hainque@adacore.com>
10660
10661 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
10662 switch on insn codes as sequence of ifs.
10663
10664 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
10665
10666 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
10667 be UI_NONE for picochip.
10668 (picochip_option_override): Do not disable exception flags.
10669 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
10670 Declare.
10671
10672 2010-10-06 Richard Guenther <rguenther@suse.de>
10673
10674 * Makefile.in (regmove.o): Depend on $(TARGET_H).
10675
10676 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
10677
10678 Implemented fast enumeration for Objective-C.
10679 * c-parser.c (objc_could_be_foreach_context): New.
10680 (c_lex_one_token): Recognize RID_IN keyword in a potential
10681 Objective-C foreach context.
10682 (c_parser_declaration_or_fndef): Added parameter. Accept
10683 Objective-C RID_IN keyword as terminating a declaration; in that
10684 case, return the declaration in the new parameter.
10685 (c_parser_extenral_declaration): Updated calls to
10686 c_parser_declaration_or_fndef.
10687 (c_parser_declaration_or_fndef): Same change.
10688 (c_parser_compound_statement_nostart): Same change.
10689 (c_parser_label): Same change.
10690 (c_parser_objc_methodprotolist): Same change.
10691 (c_parser_omp_for_loop): Same change.
10692 (c_parser_for_statement): Detect and parse Objective-C foreach
10693 statements.
10694 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
10695 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
10696 fast enumeration parsing code to turn off the c99 error but still
10697 perform checks on the loop declarations.
10698 * c-tree.h (check_for_loop_decls): Updated declaration.
10699 * doc/objc.texi: Document fast enumeration.
10700
10701 2010-10-06 Nick Clifton <nickc@redhat.com>
10702
10703 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
10704 (MDR_REGNUM): Define.
10705 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
10706 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
10707 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
10708 (REGISTER_NAMES): Add MDR.
10709 (DWARF2_DEBUGGING_INFO): Define to 1.
10710 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10711 (F): New function. Sets RTX_FRAME_RELATED_P.
10712 (mn10300_gen_multiple_store): Use F.
10713 (expand_prologue): Use F. Use gen_movsf() to push floating
10714 point registers.
10715 (expand_epilogue): Use gen_movsf() to pop floating point registers.
10716 (mn10300_option_override): Disable combine stack adjust pass.
10717
10718 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
10719
10720 PR target/45901
10721 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
10722 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
10723
10724 2010-10-06 Jakub Jelinek <jakub@redhat.com>
10725
10726 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
10727 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
10728 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
10729 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
10730 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
10731 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
10732 BUILT_IN_TOUPPER): Mark as leaf.
10733
10734 PR middle-end/45838
10735 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
10736 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
10737 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
10738 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
10739 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
10740 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
10741 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
10742
10743 2010-10-05 Anatoly Sokolov <aesok@post.ru>
10744
10745 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
10746 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10747 (m68hc11_class_likely_spilled_p): New function.
10748
10749 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
10750
10751 * c-parser.c (c_parser_objc_method_definition): Updated comment.
10752
10753 2010-10-05 Jan Hubicka <jh@suse.cz>
10754
10755 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
10756 Document.
10757 * opts.c (decode_options): Handle lto partitions.
10758 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
10759 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
10760
10761 2010-10-05 Jan Hubicka <jh@suse.cz>
10762
10763 * cgraphunit.c (assemble_function): Output thunks and aliases before
10764 the function itself.
10765
10766 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
10767
10768 * config/picochip/picochip.c (picochip_option_override): Disable
10769 exception flags for picochip.
10770
10771 2010-10-05 Joseph Myers <joseph@codesourcery.com>
10772
10773 * opts-common.c (handle_option, handle_generated_option,
10774 read_cmdline_option, set_option): Add diagnostic_context
10775 parameter. Update calls among these functions.
10776 (set_option): Don't use global_dc.
10777 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
10778 (decode_options): Pass global_dc to enable_warning_as_error.
10779 (common_handle_option): Pass global_dc to enable_warning_as_error.
10780 (enable_warning_as_error): Add diagnostic_context parameter.
10781 Document parameters. Don't use global_dc. Pass
10782 diagnostic_context parameter to handle_generated_option.
10783 * opts.h (set_option, handle_option, handle_generated_option,
10784 read_cmdline_option, enable_warning_as_error): Add
10785 diagnostic_context parameter.
10786 * Makefile.in (lto-opts.o): Update dependencies.
10787 * coretypes.h (struct diagnostic_context, diagnostic_context):
10788 Declare here.
10789 * diagnostic.h (diagnostic_context): Don't declare typedef here.
10790 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
10791 * langhooks-def.h (struct diagnostic_context): Don't declare here.
10792 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
10793 using diagnostic_context typedef.
10794 * langhooks.c (lhd_initialize_diagnostics): Declare using
10795 diagnostic_context typedef.
10796 * langhooks.h (struct diagnostic_context): Don't declare here.
10797 (initialize_diagnostics, print_error_function): Declare using
10798 diagnostic_context typedef.
10799 * lto-opts.c: Include diagnostic.h.
10800 (lto_reissue_options): Pass global_dc to set_option. Pass
10801 DK_UNSPECIFIED not 0.
10802 * plugin.c (plugins_internal_error_function): Declare using
10803 diagnostic_context typedef.
10804 * plugin.h (struct diagnostic_context): Don't declare here.
10805 (plugins_internal_error_function): Declare using
10806 diagnostic_context typedef.
10807
10808 2010-10-05 Olivier Hainque <hainque@adacore.com>
10809 Nicolas Roche <roche@adacore.com>
10810
10811 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
10812 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
10813
10814 2010-10-05 Ira Rosen <irar@il.ibm.com>
10815
10816 PR tree-optimization/45752
10817 * tree-vect-slp.c (vect_get_mask_element): Remove static
10818 variables, make them function arguments.
10819 (vect_transform_slp_perm_load): Pass new arguments to
10820 vect_get_mask_element.
10821
10822 2010-10-05 Richard Guenther <rguenther@suse.de>
10823
10824 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
10825 (gimple_mod_pow2): Likewise.
10826 (gimple_mod_subtract): Likewise.
10827 (gimple_ic): Likewise.
10828 (gimple_stringop_fixed_value): Likewise.
10829 * tree-profile.c (tree_init_edge_profiler): Mark profile
10830 functions nothrow and leaf.
10831 (add_abnormal_goto_call_edges): Remove.
10832 (tree_gen_edge_profiler): Work on SSA form.
10833 (tree_gen_ic_profiler): Likewise. Simplify.
10834 (do_tree_profiling): Update SSA form.
10835 (pass_tree_profile): Remove.
10836 (do_tree_profiling): Likewise.
10837 (gate_tree_profile_ipa): New function.
10838 (pass_ipa_tree_profile): New.
10839 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
10840 state of instrumented functions.
10841 * passes.c (init_optimization_passes): Remove early non-SSA
10842 inlining. Move profiling after early optimizations.
10843 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
10844 (pass_ipa_early_inline): Likewise.
10845 * tree-pass.h (pass_ipa_early_inline): Remove.
10846 (pass_tree_profile): Likewise.
10847 (pass_ipa_tree_profile): Declare.
10848
10849 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10850 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
10851
10852 * config/s390/s390.c (z196_cost): New.
10853 (s390_handle_arch_option): Add -march=z196.
10854 (s390_option_override): Use the new cost function and use the z10
10855 defaults also for z196.
10856 (legitimate_reload_constant_p): Adjust comment.
10857 (legitimate_reload_fp_constant_p): New function.
10858 (s390_preferred_reload_class): Distingiush between FP and Int constants.
10859 (preferred_la_operand_p): Avoid la with index on z196.
10860 (s390_adjust_priority): Trigger also for z196.
10861 (s390_issue_rate): Issue rate for z196 is 3.
10862 (s390_z10_fix_long_loop_prediction): Rename to ...
10863 (s390_fix_long_loop_prediction): ... this.
10864 (s390_reorg): Apply the z10 adjustments also for z196.
10865 (s390_loop_unroll_adjust): Do this also for z196.
10866 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
10867 (enum processor_flags): Add PF_Z196.
10868 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
10869 (TARGET_CPU_Z196, TARGET_Z196): New macros.
10870 * config.gcc: Enable z196 for --with-arch.
10871 * config/s390/2817.md: New file.
10872 * config/s390/2084.md: New type for multiply and add.
10873 * config/s390/2097.md: Likewise.
10874 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
10875 (UNSPECV_ATOMIC_OP): New constants.
10876 (fmadddf, fmaddsf): New values for type attribute.
10877 (z196prop): New insn attribute.
10878 (cpu, cpu_facility): Add z196.
10879 (ATOMIC_Z196): New code iterator.
10880 (noxa): New code attribute.
10881 (gk): New mode attribute.
10882 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
10883 Support load zero for fp constants.
10884 (fixuns_truncdddi2, fixuns_trunctddi2)
10885 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
10886 for z196.
10887 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
10888 (popcounthi2, popcountqi2): New expander.
10889 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
10890 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
10891 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
10892 insn definition.
10893 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
10894 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
10895 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
10896 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
10897 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
10898 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
10899 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
10900 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
10901 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
10902 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
10903 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
10904 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
10905 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
10906 Support new z196 instructions.
10907
10908 2010-10-05 Richard Guenther <rguenther@suse.de>
10909
10910 PR middle-end/45877
10911 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
10912 case where gimplification optimizes away the stmt.
10913
10914 2010-10-04 Jakub Jelinek <jakub@redhat.com>
10915
10916 PR debug/45849
10917 * var-tracking.c (strip_pointer_flags): New function.
10918 (emit_note_insn_var_location): If rtx_equal_p check failed,
10919 retry on locations simplified with simplify_replace_fn_rtx
10920 and strip_pointer_flags as its callback.
10921
10922 2010-10-04 Jan Hubicka <jh@suse.cz>
10923
10924 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
10925 (can_refer_decl_in_current_unit_p): ... this one; reverse return
10926 value; handle comdats too.
10927 (canonicalize_constructor_val): Use it; handle function_decls
10928 correctly.
10929 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10930 * gimple.c (get_base_address): Accept all kinds of decls.
10931
10932 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10933
10934 * flags.h (g_switch_value, g_switch_set): Remove.
10935 * opts.c (g_switch_value, g_switch_set): Remove.
10936 * config/g.opt (G): Add Var(g_switch_value).
10937 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
10938 (alpha_option_override): Check global_options_set.x_g_switch_value
10939 instead of g_switch_set.
10940 (alpha_in_small_data_p): Remove cast in comparison with
10941 g_switch_value.
10942 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
10943 g_switch_value to unsigned HOST_WIDE_INT.
10944 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
10945 with g_switch_value.
10946 (frv_handle_option): Don't handle -G here.
10947 (frv_option_override): Check global_options_set.x_g_switch_value
10948 instead of g_switch_set. Don't modify g_switch_set.
10949 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
10950 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
10951 g_switch_value to unsigned HOST_WIDE_INT.
10952 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
10953 (ia64_option_override): Check global_options_set.x_g_switch_value
10954 instead of g_switch_set.
10955 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
10956 Remove.
10957 (lm32_in_small_data_p): Remove cast in comparison with
10958 g_switch_value.
10959 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
10960 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
10961 HOST_WIDE_INT.
10962 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
10963 (m32r_init): Check global_options_set.x_g_switch_value instead of
10964 g_switch_set.
10965 (m32r_in_small_data_p): Remove cast in comparison with
10966 g_switch_value.
10967 (m32r_file_start): Format g_switch_value with %d.
10968 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
10969 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
10970 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
10971 handle -G here.
10972 (microblaze_option_override): Check
10973 global_options_set.x_g_switch_value instead of g_switch_set.
10974 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
10975 (mips_option_override): Check global_options_set.x_g_switch_value
10976 instead of g_switch_set.
10977 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
10978 (rs6000_file_start): Format g_switch_value with %d.
10979 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
10980 comparisons with g_switch_value.
10981 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
10982 global_options_set.x_g_switch_value instead of g_switch_set.
10983 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10984 global_options_set.x_g_switch_value instead of g_switch_set.
10985 * config/score/score.c (score_handle_option): Don't handle -G here.
10986 * config/score/score3.c (score3_option_override): Check
10987 global_options_set.x_g_switch_value instead of g_switch_set.
10988 * config/score/score7.c (score7_option_override): Check
10989 global_options_set.x_g_switch_value instead of g_switch_set.
10990
10991 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10992
10993 * common.opt (fira-coalesce): Remove.
10994
10995 * doc/invoke.texi (flag_ira_coalesce): Remove.
10996
10997 * ira-color.c (allocno_coalesced_p): Move before
10998 copy_freq_compare_func.
10999 processed_coalesced_allocno_bitmap): Ditto.
11000 (update_conflict_hard_regno_costs): Don't use
11001 ALLOCNO_FIRST_COALESCED_ALLOCNO.
11002 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
11003 (assign_hard_reg): Assume no coalesced allocnos.
11004 (get_coalesced_allocnos_attributes): Remove.
11005 (bucket_allocno_compare_func): Assume no coalesced allocnos.
11006 (push_allocno_to_stack): Ditto.
11007 (remove_allocno_from_bucket_and_push): Use
11008 ira_print_expanded_allocno instead of print_coalesced_allocno.
11009 (push_allocnos_to_stack): Assume uncoalesced allocnos.
11010 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
11011 all_conflicting_hard_regs.
11012 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
11013 (setup_allocno_left_conflicts_size): Ditto.
11014 (put_allocno_into_bucket): Ditto.
11015 (copy_freq_compare_func): Remove.
11016 (copy_freq_compare_func, merge_allocnos): Move before
11017 coalesced_pseudo_reg_freq_compare.
11018 coalesced_allocno_conflict_p): Ditto.
11019 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
11020 parameter. Assume it true.
11021 (color_allocnos): Assume uncoalesced allocnos. Use
11022 ira_print_expanded_allocno instead of print_coalesced_allocno.
11023 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
11024 parameter.
11025
11026 * ira.c: Remove comment about coalescing.
11027
11028 2010-10-04 Joseph Myers <joseph@codesourcery.com>
11029
11030 * config/mips/mips.h (target_flags_explicit): Declare for
11031 GENERATOR_FILE.
11032
11033 2010-10-04 Andi Kleen <ak@linux.intel.com>
11034
11035 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
11036 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
11037
11038 2010-10-04 Matthias Klose <doko@ubuntu.com>
11039
11040 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
11041 multilib osdirname if it exists.
11042 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
11043
11044 2010-10-04 Jakub Jelinek <jakub@redhat.com>
11045
11046 PR middle-end/45876
11047 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
11048 arg0's type or its unsigned counterpart as utype. Convert
11049 arg1 to utype unconditionally.
11050
11051 2010-10-04 Julian Brown <julian@codesourcery.com>
11052
11053 * expr.c (expand_assignment): Add assertion to prevent emitting
11054 null rtx for movmisalign pattern.
11055 (expand_expr_real_1): Likewise.
11056 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
11057 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
11058 (arm_vector_alignment_reachable): New.
11059 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
11060 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
11061 (arm_print_operand): Include alignment qualifier in %A.
11062 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
11063 (movmisalign<mode>): New expander.
11064 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
11065 insn patterns.
11066
11067 2010-10-04 Joseph Myers <joseph@codesourcery.com>
11068
11069 * optc-gen.awk: Define global_options_set. Don't define
11070 target_flags_explicit.
11071 * opth-gen.awk: Declare global_options_set. Define
11072 target_flags_explicit as macro.
11073 * opts-common.c (handle_option): Take opts_set and generated_p
11074 parameters.
11075 (handle_generated_option, read_cmdline_option, set_option): Take
11076 opts_set parameter.
11077 (set_option): Use opts_set instead of hardcoding target_flags and
11078 target_flags_explicit.
11079 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
11080 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
11081 flag_value_profile_transformations_set, flag_peel_loops_set,
11082 flag_branch_probabilities_set, flag_inline_functions_set,
11083 flag_ipa_cp_set, flag_ipa_cp_clone_set,
11084 flag_predictive_commoning_set, flag_unswitch_loops_set,
11085 flag_gcse_after_reload_set): Remove.
11086 (common_handle_option, lang_handle_option, target_handle_option):
11087 Take opts_set parameter. Assert that it is &global_options_set.
11088 (common_handle_option): Don't set _set variables. Check opts_set
11089 instead of such variables.
11090 (enable_warning_as_error): Pass &global_options_set to
11091 handle_generated_option.
11092 * opts.h (cl_option_handler_func.handler, set_option,
11093 handle_option, handle_generated_option, read_cmdline_option): Add
11094 opts_set parameters.
11095 (handle_option): Add generated_p parameter.
11096 * config/i386/i386.c (ix86_function_specific_save,
11097 ix86_function_specific_restore): Updat for renaming of
11098 target_flags_explicit field.
11099 * config/i386/i386.opt (target_flags_explicit): Rename to
11100 ix86_target_flags_explicit.
11101 * config/ia64/ia64.c (ia64_override_options_after_change): Check
11102 global_options_set.x_flag_selective_scheduling and
11103 global_options_set.x_flag_selective_scheduling2, not
11104 sel_sched_switch_set.
11105 * flags.h (sel_sched_switch_set,
11106 flag_speculative_prefetching_set): Remove.
11107 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
11108 that it is &global_options_set.
11109 (process_command): Pass &global_options_set to read_cmdline_option.
11110 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
11111 set_option.
11112 * toplev.c (target_flags_explicit): Remove.
11113
11114 2010-10-04 Jan Hubicka <jh@suse.cz>
11115
11116 PR middle-end/45871
11117 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
11118 use get_ref_base_and_offset to handle references.
11119 (fold_const_aggregate_ref): Update.
11120
11121 2010-10-04 Martin Jambor <mjambor@suse.cz>
11122
11123 PR tree-optimization/45572
11124 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
11125 ipa_check_create_node_params.
11126 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
11127
11128 2010-10-04 Yao Qi <yao@codesourcery.com>
11129
11130 * doc/passes.texi: Clean up.
11131
11132 2010-10-03 Ian Lance Taylor <iant@google.com>
11133
11134 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
11135 referring to a field using a typedef name.
11136 (find_anonymous_field_with_type): New static function.
11137 (convert_to_anonymous_field): New static function.
11138 (convert_for_assignment): If -fplan9-extensions, permit converting
11139 pointer to struct to pointer to anonymous field.
11140 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
11141 (is_duplicate_field): New static function.
11142 (detect_field_duplicates_hash): If -fplan9-extensions, check for
11143 typedef names duplicating field names.
11144 (detect_field_duplicates): Likewise.
11145 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
11146 (C Dialect Options): Document -fplan9-extensions.
11147 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
11148
11149 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
11150
11151 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
11152 revision 164914.
11153 (vect_create_data_ref_ptr): Likewise.
11154 * tree-vect-stmts.c (vectorizable_store): Likewise.
11155 (perm_mask_for_reverse): Likewise.
11156 (reverse_vec_elements): Likewise.
11157 (vectorizable_load): Likewise.
11158
11159 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11160
11161 * cppbuiltin.c: New file.
11162 * cppbuiltin.h: New file.
11163 * Makefile.in: Take into account cppbuiltin.{h,c}.
11164
11165 2010-10-03 Andi Kleen <ak@linux.intel.com>
11166
11167 * lto-cgraph.c (input_cgraph): Check for missing sections.
11168
11169 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
11170
11171 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
11172 to nonimmediate_operand. Force operand 2 to register when allowed.
11173 (*<shiftrt_insn><mode>3_mask): Ditto.
11174 (*<rotate_insn><mode>3_mask): Ditto.
11175
11176 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 PR tree-optimization/45720
11179 PR tree-optimization/45764
11180 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11181 Don't accept backwards consecutive accesses.
11182 (vect_create_data_ref_ptr): Disallow negative steps.
11183
11184 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
11185 (perm_mask_for_reverse): Removed.
11186 (reverse_vec_elements): Likewise.
11187 (vectorizable_load): Don't handle negative steps.
11188
11189 2010-10-02 Jan Hubicka <jh@suse.cz>
11190
11191 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
11192 call destination is known.
11193
11194 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11195
11196 PR target/45820
11197 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
11198 earlier.
11199
11200 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11201
11202 * doc/install.texi (Configuration): Document build_configargs,
11203 host_configargs, target_configargs.
11204
11205 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
11206
11207 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
11208 (*<shiftrt_insn><mode>3_mask): Ditto.
11209 (*<rotate_insn><mode>3_mask): Ditto.
11210
11211 2010-10-01 Steve Ellcey <sje@cup.hp.com>
11212
11213 PR tree-optimization/44716
11214 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
11215 (HOT_TEXT_SECTION_NAME): Define.
11216
11217 2010-10-01 Nick Clifton <nickc@redhat.com>
11218
11219 * common.opt: Add -fcombine-stack-adjustments.
11220 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
11221 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
11222 flag_combine_stack_adjustments.
11223 * doc/invoke.texi: Document the new option.
11224
11225 2010-10-01 Richard Guenther <rguenther@suse.de>
11226
11227 PR tree-optimization/45854
11228 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
11229
11230 2010-10-01 Anthony Green <green@moxielogic.com>
11231
11232 * config.gcc: Fix moxie-*-rtems* configuration.
11233
11234 2010-10-01 Richard Guenther <rguenther@suse.de>
11235
11236 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
11237 (gen_decl_die): Likewise.
11238
11239 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11240
11241 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
11242 to the function code for SPU MD builtins.
11243 (spu_expand_builtin): Update.
11244 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
11245
11246 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11247
11248 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
11249 sjlj_except_unwind_info.
11250
11251 2010-10-01 Tristan Gingold <gingold@adacore.com>
11252
11253 * configure.ac: Define the nop insn for avr*-*-*
11254 * configure: Regenerate.
11255
11256 2010-10-01 Alan Modra <amodra@gmail.com>
11257
11258 PR target/45807
11259 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
11260 extend toc_restore_insn.
11261
11262 2010-09-30 Richard Guenther <rguenther@suse.de>
11263
11264 PR tree-optimization/43959
11265 * function.c (gimplify_parameters): Use create_tmp_reg instead of
11266 create_tmp_var.
11267
11268 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
11269
11270 * config/sh/sh.c (sh_expand_prologue): Set
11271 current_function_static_stack_size.
11272
11273 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11274
11275 * configure.ac: Check for Solaris 8 ld with .hidden support.
11276 * configure: Regenerate.
11277
11278 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11279
11280 PR middle-end/45758
11281 * graphite.c (graphite_initialize): Call scev_reset.
11282
11283 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11284
11285 * sese.h (scev_analyzable_p): Return false for real or floating
11286 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
11287
11288 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11289
11290 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
11291 and ps.
11292 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
11293 domain.
11294 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
11295 Do not allocate ub_expr, it is passed in initialized.
11296
11297 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11298
11299 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
11300 (build_cloog_prog): Dump CLooG input file when
11301 flag_graphite_dump_cloog is set. This is disabled on trunk.
11302 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
11303
11304 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11305
11306 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
11307 verify_dominators for CDI_POST_DOMINATORS.
11308 * sese.h: Remove comment about CDI_POST_DOMINATORS.
11309 (recompute_all_dominators): Remove call to free_dominance_info
11310 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
11311 for CDI_POST_DOMINATORS.
11312
11313 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11314
11315 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
11316 over pbb_dim_iter_domain.
11317
11318 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11319
11320 * graphite-flattening.c: Fix comments.
11321
11322 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11323
11324 * Makefile.in (OBJS-common): Add graphite-flattening.o.
11325 (graphite-flattening.o): New rule.
11326 * common.opt (floop-flatten): New flag.
11327 * doc/invoke.texi (-floop-flatten): Documented.
11328 * graphite-flattening.c: New.
11329 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
11330 * graphite-poly.h (flatten_all_loops): Declared.
11331 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
11332 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
11333 is set, also set flag_graphite.
11334
11335 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11336
11337 * graphite-poly.c (cloog_checksum): New.
11338 * graphite-poly.h (cloog_checksum): Declared.
11339
11340 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11341
11342 * graphite-poly.c (pbb_number_of_iterations): Removed.
11343 (pbb_number_of_iterations_at_time): Correctly compute the number
11344 of iterations in the transformed loop.
11345 * graphite-poly.h (pbb_number_of_iterations): Removed.
11346
11347 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11348
11349 * graphite-poly.h (lst_update_scattering_seq): Removed.
11350 (lst_update_scattering): Correctly handle outermost loop dewey
11351 renumbering.
11352
11353 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11354
11355 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
11356 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
11357 * graphite-poly.h (lst_niter_for_loop): New.
11358
11359 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11360
11361 * graphite-poly.c (apply_poly_transforms): Do not abort when the
11362 transform read from disk is not legal. Call fatal_error instead.
11363
11364 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11365
11366 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
11367 (print_scop_header): Removed. Inlined in the only call place...
11368 (print_scop): ... here.
11369
11370 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11371
11372 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
11373
11374 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11375
11376 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
11377
11378 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11379
11380 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
11381 (dot_deps_stmt): Same.
11382 * graphite-poly.c (dot_lst): Same.
11383
11384 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11385
11386 * graphite-blocking.c (scop_do_strip_mine): Do not call
11387 graphite_legal_transform.
11388 (scop_do_block): Same.
11389
11390 2010-09-30 Vladimir Kargov <kargov@gmail.com>
11391
11392 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
11393 description.
11394
11395 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11396
11397 * tree-scalar-evolution.c (instantiate_array_ref): New.
11398 (instantiate_scev_r): Also handle ARRAY_REFs.
11399
11400 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11401
11402 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11403 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
11404 RESULT_DECL, and FIELD_DECL. Return false for an
11405 SSA_NAME_IS_DEFAULT_DEF.
11406 (compute_scalar_evolution_in_loop): Do not further analyze the
11407 scalar evolution when no_evolution_in_loop_p returns true.
11408
11409 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11410
11411 * tree-chrec.h (evolution_function_is_affine_p): Do not check
11412 whether CHREC_LEFT is invariant. A function is affine when
11413 CHREC_RIGHT is invariant.
11414
11415 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11416
11417 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
11418 is_gimple_reg.
11419 (rewrite_degenerate_phi): Same.
11420 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
11421
11422 2010-09-30 Vladimir Kargov <kargov@gmail.com>
11423
11424 * graphite-scop-detection.c (graphite_can_represent_scev,
11425 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
11426 graphite_can_represent_loop): Remove outermost_loop.
11427
11428 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11429
11430 PR middle-end/45229
11431 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
11432 handle GIMPLE_CALLs with no LHS.
11433
11434 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11435
11436 * graphite-poly.c (init_graphite_out_file): New.
11437 (init_graphite_in_file): New.
11438 (apply_poly_transforms): Updated to enable reading and writing of
11439 multiple scop files.
11440
11441 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
11442
11443 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
11444 redundant checks.
11445
11446 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11447
11448 * graphite-clast-to-gimple.c (precision_for_value): Adjust
11449 computation of precision by 1.
11450
11451 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11452
11453 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
11454 (openscop_read_polyhedron_matrix): New.
11455 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
11456 (openscop_read_N_int): Same.
11457 * graphite-poly.c (openscop_read_N_int): New.
11458 (openscop_read_one_int): New.
11459 (openscop_read_N_string): New.
11460 (openscop_read_one_string): New.
11461 (openscop_read_powerset_matrix): New.
11462 (graphite_read_transforms): Remove.
11463 (graphite_read_scatt): New.
11464 (graphite_read_scop_file): New.
11465 (apply_poly_transforms): Updated to call graphite_read_scop_file.
11466
11467 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11468
11469 * graphite-poly.c: Change include order.
11470
11471 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11472
11473 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
11474 (cloog_matrix_nrows): New.
11475
11476 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11477
11478 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
11479 from matrix lines.
11480 * graphite-poly.c (openscop_print_scattering_function_1): Same.
11481 (print_scattering_function_1): Same.
11482 (openscop_print_pbb_domain): Same.
11483 (openscop_print_scop_context): Same.
11484 (print_scop_context): Same.
11485
11486 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
11487
11488 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
11489 (openscop_print_pdr_polyhedron): Print pph.
11490
11491 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11492
11493 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
11494 priority signed types.
11495
11496 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
11497
11498 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
11499 the call to lang_hooks.types.type_for_size. Call
11500 build_nonstandard_integer_type.
11501
11502 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
11503
11504 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
11505 (openscop_print_polyhedron_matrix): New.
11506 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
11507 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
11508 (openscop_print_pdr_powerset): New.
11509 (openscop_print_powerset_matrix): New.
11510 (openscop_print_scattering_function_1): New.
11511 (print_scattering_function): Add support for scattering names and
11512 OpenScop format.
11513 (graphite_write_transforms): Remove.
11514 (print_pdr_access_layout): Updated to support OpenScop format.
11515 (print_pdr): Same.
11516 (openscop_print_pbb_domain): New.
11517 (print_pbb_body): Added a parameter to allow indicating that pbb_body
11518 is not provided.
11519 (print_pbb): Updated to call the new print_pbb_body.
11520 (openscop_print_scop_context): New.
11521 (print_scop_header): New.
11522 (print_scop): Updated to call print_scop_header.
11523 * graphite-poly.h: Document OpenScop format.
11524
11525 2010-09-30 Anatoly Sokolov <aesok@post.ru>
11526
11527 * config/cris/m32c.c (cris_memory_move_cost): New.
11528 (cris_register_move_cost): Make static. Change arguments type from
11529 enum reg_class to reg_class_t.
11530 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11531 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11532 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
11533
11534 2010-09-30 Jakub Jelinek <jakub@redhat.com>
11535
11536 PR target/45843
11537 * config/i386/i386.c (ix86_gimplify_va_arg): Use
11538 INTVAL (XEXP (slot, 1)) as prev_size.
11539
11540 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
11541
11542 PR target/45837
11543 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
11544 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
11545 defined.
11546 * config/rs6000/option-defaults.h (toplevel): Change #if
11547 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
11548 global option changes.
11549
11550 2010-09-30 Jakub Jelinek <jakub@redhat.com>
11551
11552 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
11553
11554 PR tree-optimization/31261
11555 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
11556 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
11557
11558 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11559
11560 PR bootstrap/45796
11561 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
11562 special-casing for generators and turn into ...
11563 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
11564 rule, for better error messages in case of toplevel dependency errors.
11565 (genprog): Add hooks, rename to ...
11566 (genprogerr): ... this, and let genprog also contain check,
11567 checksum, condmd.
11568 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
11569 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
11570 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
11571
11572 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
11573 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11574
11575 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
11576 for GMP, MPFR and MPC.
11577
11578 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11579
11580 * config/sparc/sparc.opt (mimpure-text): Move ...
11581 * config/sol2.opt: ... here. Correct description.
11582 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
11583 * doc/invoke.texi (Option Summary, SPARC Options): Move
11584 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
11585 (Option Summary, Solaris 2 Options): ... here.
11586 (Submodel Options, Solaris 2 Options): New menu entry.
11587 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
11588 (Solaris 2 Options): ... here.
11589
11590 2010-09-30 Michael Eager <eager@eagercon.com>
11591
11592 * extend.texi (interrupt_handler): Add MicroBlaze to list.
11593 (save_volatiles): Describe option for MicroBlaze.
11594 * invoke.texi: Add MicroBlaze Options.
11595 * contrib.texi: Add acknowledgment.
11596 * md.texi: Add MicroBlaze d and z constraints.
11597 * install.texi: Add microblaze-*-elf.
11598 * configure.ac: Add microblaze-*-* to target list.
11599 * configure: Regenerate.
11600 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
11601 * config/microblaze/microblaze-protos.h: New.
11602 * config/microblaze/crti.s: New.
11603 * config/microblaze/predicates.md: New.
11604 * config/microblaze/linux.h: New.
11605 * config/microblaze/microblaze.md: New.
11606 * config/microblaze/constraints.md: New.
11607 * config/microblaze/crtn.s: New.
11608 * config/microblaze/microblaze.opt: New.
11609 * config/microblaze/microblaze-c.c: New.
11610 * config/microblaze/t-microblaze: New.
11611 * config/microblaze/microblaze.c: New.
11612 * config/microblaze/microblaze.h: New.
11613
11614 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
11615
11616 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
11617 parse @optional/@required and set the flags as appropriate.
11618
11619 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
11620
11621 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
11622
11623 2010-09-30 Joseph Myers <joseph@codesourcery.com>
11624
11625 * opt-functions.awk (static_var): Update comment.
11626 (var_ref): Return offsetof expression or -1, not variable address.
11627 * optc-gen.awk: Generate structure field initializers instead of
11628 static variables. Expect -1 for missing variables instead of null
11629 pointer. Add gcc_options parameters to generated functions.
11630 * opth-gen.awk: Generate structure fields for static variables.
11631 Add gcc_options parameters to generated functions.
11632 * common.opt (optimize, optimize_size): Add variables.
11633 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
11634 &global_options to cl_target_option_restore.
11635 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
11636 &global_options to cl_optimization_restore, cl_target_option_save
11637 and cl_target_option_restore.
11638 (ix86_set_current_function): Pass &global_options to
11639 cl_target_option_restore.
11640 * config/pdp11/pdp11.h (optimize): Remove.
11641 * config/rs6000/rs6000.h (optimize): Remove.
11642 * config/sh/sh.h (optimize): Remove.
11643 * config/xtensa/xtensa.h (optimize): Remove.
11644 * coretypes.h (struct gcc_options): Declare.
11645 * diagnostic.c (diagnostic_initialize): Initialize
11646 context->option_state.
11647 (diagnostic_report_diagnostic): Pass option_state to
11648 option_enabled hook.
11649 * diagnostic.h (diagnostic_context.option_enabled): Add void *
11650 parameter.
11651 (diagnostic_context.option_state): New field.
11652 * final.c (final_start_function, final, final_scan_insn): Rename
11653 optimize parameter to optimize_p.
11654 * flags.h (optimize, optimize_size): Remove.
11655 * function.c (invoke_set_current_function_hook): Pass
11656 &global_options to cl_optimization_restore.
11657 * gcc.c (driver_handle_option): Take gcc_options parameter.
11658 Assert that it is &global_options.
11659 (process_command): Pass &global_options to read_cmdline_option.
11660 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
11661 option_enabled.
11662 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
11663 &global_options to set_option.
11664 * opts-common.c (handle_option, handle_generated_option,
11665 read_cmdline_option, set_option): Take explicit gcc_options
11666 parameters. Use option_flag_var.
11667 (option_flag_var): New.
11668 * opts.c (common_handle_option, lang_handle_option,
11669 target_handle_option): Take gcc_options parameter. Assert that it
11670 is &global_options.
11671 (read_cmdline_options): Pass &global_options to read_cmdline_option.
11672 (print_filtered_help): Use option_flag_var. Pass &global_options
11673 to option_enabled.
11674 (common_handle_option): Use option_flag_var.
11675 (option_enabled): Take opts parameter. Use option_flag_var.
11676 (get_option_state): Take gcc_options parameter. Use
11677 option_flag_var. Pass gcc_options parameter to option_enabled.
11678 (enable_warning_as_error): Pass &global_options to
11679 handle_generated_option.
11680 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
11681 (cl_option_handler_func.handler): Take gcc_options parameter.
11682 (option_enabled, get_option_state, set_option, handle_option,
11683 handle_generated_option, read_cmdline_option): Take gcc_options
11684 parameters.
11685 * toplev.c (optimize, optimize_size): Remove.
11686 (print_switch_values): Pass &global_options to option_enabled.
11687 (option_affects_pch_p): Use option_flag_var. Pass &global_options
11688 to get_option_state.
11689 (general_init): Initialize global_dc->option_state.
11690 * tree.c (build_optimization_node): Pass &global_options to
11691 cl_optimization_save.
11692 (build_target_option_node): Pass &global_options to
11693 cl_target_option_save.
11694
11695 2010-09-30 Martin Jambor <mjambor@suse.cz>
11696
11697 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
11698 zero sized bit-fields.
11699
11700 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
11701
11702 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
11703 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
11704 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
11705 (c_parser_objc_class_declaration): Same change.
11706 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
11707 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
11708 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
11709 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
11710 and RID_AT_PUBLIC instead of RID_PUBLIC.
11711 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
11712 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
11713
11714 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
11715
11716 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
11717 Add links to current providers of packages for Solaris and IRIX.
11718
11719 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11720
11721 Merge from 'apple/trunk' branch on FSF servers.
11722 * c-parser.c: Applied change originally in c-parse.in.
11723
11724 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
11725
11726 Radar 4281748
11727 * c-decl.c (start_decl): Check for redeclaration of class name.
11728 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
11729
11730 2010-09-29 Steve Ellcey <sje@cup.hp.com>
11731
11732 * config/ia64/ia64.c (ia64_builtin_decl): New.
11733 (TARGET_BUILTIN_DECL): Define.
11734 (ia64_builtins): New.
11735 (ia64_init_builtins): Save decls in ia64_builtins.
11736
11737 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
11738
11739 PR target/40457
11740 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
11741 (move2add_use_add3_insn): Likewise.
11742 (reload_cse_move2add): Likewise.
11743 * rtlanal.c (get_full_rtx_cost): New function.
11744 * rtl.h (struct full_rtx_costs): New.
11745 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
11746 costs_add_n_insns): New inline functions.
11747 (get_full_rtx_cost): Declare.
11748
11749 PR c/45054
11750 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
11751 invariants. Check for reg_equiv_invariant.
11752 (reload): Assert that spilled_pseudos is empty when returning.
11753
11754 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
11755
11756 * config/i386/mingw32.h (TARGET_64BIT): replaced by
11757 TARGET_64BIT_DEFAULT in #if check.
11758
11759 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
11760
11761 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
11762
11763 2010-09-29 Mike Stump <mikestump@comcast.net>
11764
11765 * config/darwin.h (flag_mkernel): Remove.
11766 (flag_apple_kext): Likewise.
11767
11768 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11769 Jack Howarth <howarth@bromo.med.uc.edu>
11770
11771 * config/darwin.opt (undefined): Add.
11772
11773 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
11774
11775 PR testsuite/45664
11776 * configure.ac: Add --enable-indirect-function option.
11777 * config.gcc: Add default_gnu_indirect_function.
11778 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
11779 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
11780 * varasm.c (do_assemble_alias): Adjust for macro name change.
11781 * configure: Rebuilt.
11782 * doc/install.texi: Document --enable-indirect-function.
11783
11784 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11785
11786 * doc/options.texi (Variable, Var, Init): Update documentation
11787 without reference to VarExists.
11788 (VarExists): Remove.
11789 * common.opt, config/i386/i386.opt, config/linux.opt,
11790 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
11791 Don't use VarExists.
11792
11793 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11794
11795 * optc-gen.awk: Generate global_options initializer instead of
11796 individual variables. Add x_ prefix to names of structure members.
11797 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
11798 names of structure members.
11799 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11800 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
11801 * doc/tm.texi: Regenerate.
11802 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11803 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11804 * c-parser.c (disable_extension_diagnostics,
11805 restore_extension_diagnostics): Update names of cpp_options members.
11806 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11807 * common.opt (fcompare-debug-second): Don't use Var.
11808 * config/alpha/alpha.h (target_flags): Remove.
11809 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11810 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11811 * config/bfin/bfin.h (target_flags): Remove.
11812 * config/cris/cris.h (target_flags): Remove.
11813 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
11814 cl_target_option members.
11815 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
11816 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
11817 ix86_can_inline_p): Update names of cl_target_option members.
11818 * config/i386/i386.h (ix86_isa_flags): Remove.
11819 * config/lm32/lm32.h (target_flags): Remove.
11820 * config/mcore/mcore.h (mcore_stack_increment): Remove.
11821 * config/mcore/mcore.md (addsi3): Remove extern declaration of
11822 flag_omit_frame_pointer.
11823 * config/mep/mep.h (target_flags): Remove.
11824 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11825 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11826 * config/mmix/mmix.h (target_flags): Remove.
11827 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
11828 flag_expensive_optimizations): Remove.
11829 * config/s390/s390.h (flag_pic): Remove.
11830 * config/score/score-conv.h (target_flags): Remove.
11831 * config/sh/sh.h (sh_fixed_range_str): Remove.
11832 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
11833 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11834 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11835 * diagnostic.c (diagnostic_initialize): Update names of
11836 diagnostic_context members.
11837 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
11838 warn_system_headers.
11839 (diagnostic_report_warnings_p): Update for new names.
11840 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11841 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
11842 HARD_FRAME_POINTER_IS_ARG_POINTER.
11843 * flags.h (flag_compare_debug): Declare.
11844 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11845 * opts.c (flag_compare_debug): Define.
11846 (common_handle_option): Update names of diagnostic_context
11847 members. Handle -fcompare-debug-second.
11848 (fast_math_flags_struct_set_p): Update names of cl_optimization
11849 members.
11850 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11851 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11852 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11853 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11854 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11855 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11856 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
11857 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11858 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11859
11860 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
11861
11862 * config/picochip/picochip.c (picochip_output_internal_label):
11863 This function can now be called for debug CFI labels, which can come
11864 in the middle of a vliw instruction. Postpone until end of vliw.
11865
11866 2010-09-29 Richard Guenther <rguenther@suse.de>
11867
11868 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
11869 (DECL_FILE_SCOPE_P): Use it.
11870 (TYPE_FILE_SCOPE_P): New macro.
11871
11872 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11873
11874 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
11875 a CPP_NAME which is a reserved word, clearly separate cases for
11876 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
11877
11878 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11879
11880 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
11881 token->value with the canonical spelling. Do exactly like C and
11882 C++ and leave it as it is.
11883
11884 2010-09-28 Richard Henderson <rth@redhat.com>
11885
11886 * config/alpha/alpha.c (alpha_builtins): New.
11887 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
11888 (alpha_builtin_function): New.
11889 (alpha_add_builtins, alpha_init_builtins): Use it.
11890
11891 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
11892
11893 * doc/standards.texi (Standards): Expanded the section on
11894 Objective-C and Objective-C++.
11895
11896 2010-09-28 DJ Delorie <dj@redhat.com>
11897
11898 PR target/45800
11899 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
11900 volatile MEMs.
11901
11902 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11903
11904 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
11905 attributes on methods.
11906 (c_parser_objc_method_definition): Handle attributes.
11907 (c_parser_objc_methodproto): Likewise.
11908 (c_parser_objc_maybe_method_attributes): New.
11909 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
11910 missing definition, similar to that in ObjC++.
11911
11912 2010-09-28 Richard Henderson <rth@redhat.com>
11913
11914 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
11915 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11916 (CONFIG_SJLJ_EXCEPTIONS): Remove.
11917 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
11918 (STACK_CHECK_PROTECT): Likewise.
11919 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
11920 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
11921 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
11922 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
11923 (dwarf2out_assembly_start): Likewise.
11924 * except.c (init_eh): Use targetm.except_unwind_info.
11925 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
11926 (output_one_function_exception_table): Likewise.
11927 * final.c: Unconditionally include dwarf2out.h.
11928 (final_start_function): Unconditionally call dwarf2out routines.
11929 (final_end_function, final_scan_insn): Likewise.
11930 * function.c (expand_function_end): Use targetm.except_unwind_info.
11931 * opts.c (decode_options): Use targetm.except_unwind_info.
11932 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
11933 * target.def (debug_unwind_info, except_unwind_info): New.
11934 * target.h (enum unwind_info_type): New.
11935 * targhooks.c (default_debug_unwind_info): New.
11936 (default_except_unwind_info): New.
11937 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
11938 * targhooks.h: Declare them.
11939 * tree-tailcall.c: Include "target.h"
11940 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
11941 * Makefile.in (tree-tailcall.o): Update.
11942 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
11943 (lhd_gcc_personality): Likewise.
11944
11945 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
11946 (TARGET_EXCEPT_UNWIND_INFO): New.
11947 (DWARF2_UNWIND_INFO): Update.
11948 (TARGET_DEBUG_UNWIND_INFO): New.
11949 * doc/tm.texi: Rebuild.
11950
11951 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
11952 targetm.except_unwind_info.
11953
11954 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
11955 (arm_except_unwind_info): New.
11956 (arm_compute_func_type): Use it.
11957 (arm_expand_prologue, thumb_pushpop): Likewise.
11958 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
11959 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
11960 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
11961 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
11962 (DWARF2_UNWIND_INFO): Remove.
11963 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11964 (ARM_EABI_UNWIND_TABLES): Remove.
11965
11966 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
11967 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
11968 (ia64_except_unwind_info): New.
11969 (ia64_output_function_prologue): Use it.
11970 (ia64_add_bundle_selector_before): Likewise.
11971 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
11972 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
11973 (TARGET_UNWIND_INFO): Remove.
11974
11975 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
11976
11977 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11978
11979 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
11980 (c_parser_objc_protocol_definition): Likewise.
11981 (c_parser_external_declaration): Provide dummy attribute arguments.
11982 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
11983 (c_parser_objc_class_definition): Handle attributes.
11984 (c_parser_objc_protocol_definition): Likewise.
11985
11986 2010-09-28 Tobias Burnus <burnus@net-b.de>
11987
11988 PR fortran/40569
11989 PR fortran/40568
11990 * toplev.h (save_decoded_options, save_decoded_options_count):
11991 New global variables.
11992 * toplev.c (save_decoded_options, save_decoded_options_count):
11993 Export variables.
11994
11995 2010-09-28 Ian Lance Taylor <iant@google.com>
11996
11997 * config/i386/i386.c (ix86_supports_split_stack): Test
11998 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
11999
12000 2010-09-28 Ian Lance Taylor <iant@google.com>
12001
12002 PR target/45815
12003 * opts.c (decode_options): Don't test whether the target supports
12004 split stack if flag_split_stack == 0.
12005
12006 2010-09-28 Jan Hubicka <jh@suse.cz>
12007
12008 * builtin-attrs.def (ATTR_LEAF): New attribute.
12009 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
12010 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
12011 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
12012 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
12013 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
12014 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
12015 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
12016 * sync-builtins.def: Annotate all builtins by leaf.
12017 * omp-builtins.def: Annotate all builtins by leaf.
12018 * builtins.def: Annotate relevant builtins with leaf attribute.
12019 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
12020 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
12021 leaf.
12022
12023 2010-09-28 Jan Hubicka <jh@suse.cz>
12024
12025 * tree-ssa-ccp.c (fold_ctor_reference): New function.
12026 (fold_const_aggregate_ref): Use it.
12027 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
12028 into external static.
12029
12030 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12031
12032 PR target/44452
12033 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
12034 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
12035 (ix86_solaris_return_in_memory): Remove.
12036 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
12037 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
12038 (TARGET_SUBTARGET_DEFAULT): Redefine.
12039 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
12040 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
12041 (TARGET_SUBTARGET_DEFAULT): Redefine.
12042 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
12043 -mvect8-ret-in-mem.
12044 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
12045
12046 2010-09-29 Alan Modra <amodra@gmail.com>
12047
12048 PR target/45807
12049 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
12050 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
12051 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
12052 Delete.
12053 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
12054 (rs6000_emit_prologue): Don't just create frame save info for r2,
12055 actually save r2.
12056
12057 2010-09-28 Richard Henderson <rth@redhat.com>
12058
12059 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
12060 when 8 bytes are requested.
12061
12062 2010-09-28 Tristan Gingold <gingold@adacore.com>
12063
12064 * config/avr/avr.c (expand_prologue): Set
12065 current_function_static_stack_size.
12066
12067 2010-09-28 Tristan Gingold <gingold@adacore.com>
12068
12069 * config/alpha/alpha.md: Change the initial condition of the
12070 probing loop.
12071
12072 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
12073
12074 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
12075 Split from *avx_<maxmin:code><mode>3.
12076 (*avx_<smaxmin:code><mode>3): Ditto.
12077 * config/i386/i386.md (maxmin): Remove code iterator.
12078
12079 2010-09-27 Ian Lance Taylor <iant@google.com>
12080
12081 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
12082 requires assembler support for CFI directives.
12083
12084 2010-09-27 Richard Henderson <rth@redhat.com>
12085
12086 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
12087
12088 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
12089
12090 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
12091 that AFTER is not in the range FROM..TO, inclusive.
12092
12093 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
12094 Bernd Schmidt <bernds@codesourcery.com>
12095
12096 PR rtl-optimization/45792
12097 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
12098 If not all insns are to be merged, for each edge, stash the
12099 next candidate after the to-be-merged insns before doing the
12100 merge, and use them for the retry at the new insertion point.
12101 Handle CC0 targets when retrying.
12102
12103 2010-09-27 Ian Lance Taylor <iant@google.com>
12104
12105 * common.opt (fsplit-stack): New option.
12106 * opts.c (decode_options): Set flag_split_stack to final value.
12107 * target.def (supports_split_stack): New hook.
12108 * gcc.c (STACK_SPLIT_SPEC): Define.
12109 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
12110 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
12111 (Code Gen Options): Document -fsplit-stack.
12112 * doc/extend.texi (Function Attributes): Mention no_split_stack.
12113 (Function Attributes): Document no_split_stack.
12114 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
12115 TARGET_SUPPORTS_SPLIT_STACK.
12116 * doc/tm.texi: Rebuild.
12117 * function.c (thread_prologue_and_epilogue_insns): If
12118 flag_split_stack, add split stack prologue.
12119 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
12120 * varasm.c (saw_no_split_stack): New static variable.
12121 (assemble_start_function): Set saw_no_split_stack if the function
12122 has the no_split_stack attribute.
12123 (file_end_indicate_split_stack): New function.
12124 * output.h (file_end_indicate_split_stack): Declare.
12125 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
12126 and function.
12127 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
12128 routines.
12129 * config/i386/i386.c (ix86_option_override_internal): Don't set
12130 expand_builtin_va_start to NULL if -fsplit-stack.
12131 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
12132 -fsplit-stack.
12133 (ix86_va_start): If -fsplit-stack, get overflow pointer from
12134 scratch register set by prologue.
12135 (ix86_code_end): If -fsplit-stack, call
12136 file_end_indicate_split_stack.
12137 (ix86_supports_split_stack): New static function.
12138 (SPLIT_STACK_AVAILABLE): Define.
12139 (split_stack_prologue_scratch_regno): New static function.
12140 (split_stack_fn): New static variable.
12141 (ix86_expand_split_stack_prologue): New function.
12142 (ix86_live_on_entry): New static function.
12143 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
12144 (output_pic_addr_const): Likewise.
12145 (i386_asm_output_addr_const_extra): Likewise.
12146 (ix86_expand_call): Change return type to rtx. Return the new
12147 call instruction.
12148 (TARGET_SUPPORTS_SPLIT_STACK): Define.
12149 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
12150 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
12151 (split_stack_prologue, split_stack_return): New insns.
12152 (split_stack_space_check): New insn.
12153 * config/i386/i386.h (struct machine_function): Add
12154 split_stack_varargs_pointer field.
12155 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
12156 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12157 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
12158 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12159 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
12160 Declare.
12161 (ix86_expand_call): Update declaration.
12162
12163 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
12164
12165 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
12166 code. Added byref, which was missing in the list of codes.
12167 Explain that enumeration values are encoded as the integer type
12168 that the compiler uses to store them. Explain and make examples
12169 of how 'const' interacts with pointers, and the complication of
12170 the encoding of 'const char *'.
12171 (Legacy type encoding): New subsection, explaining that GCC emits
12172 incorrect type encodings for the NeXT runtime for compatibility
12173 reasons.
12174 (@@encode): New subsection, explaining @encode and particularly
12175 that protocol qualifiers are not recognized inside an @encode()
12176 expression.
12177 (Method signatures): New subsection, explaining how method
12178 signatures are encoded.
12179
12180 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
12181
12182 Merge from 'apple/trunk' branch on FSF servers. Removed small
12183 change in build_conditional_expr that had been added when fixing
12184 PR objc/27377 and which did the same check in a less complete way.
12185
12186 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
12187
12188 Radar 4229905
12189 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
12190 looking for objective-c common pointer types.
12191
12192 2005-06-22 Ziemowit Laski <zlaski@apple.com>
12193
12194 Radar 4154928
12195 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
12196 use their ObjC common type.
12197
12198 2010-09-27 Richard Guenther <rguenther@suse.de>
12199
12200 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
12201
12202 2010-09-27 Jie Zhang <jie@codesourcery.com>
12203
12204 * print-tree.c (print_node): Print in-constant-pool.
12205
12206 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
12207
12208 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
12209 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
12210 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
12211 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
12212
12213 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
12214
12215 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
12216 from pro_epilogue_adjust_stack_<mode>_{1,2}.
12217 (pro_epilogue_adjust_stack_<mode>_add): Rename from
12218 pro_epilogue_adjust_stack_<mode>_3.
12219 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
12220 renamed pro_epilogue_adjust_stack_{si,di}_add.
12221 (ix86_expand_prologue): Use indirect functions. Update for renamed
12222 pro_epilogue_adjust_stack_{si,di}_sub.
12223
12224 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
12225
12226 * config/i386/i386.md (movmsk_df): New insn.
12227 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
12228 sequence for TARGET_SSE_MATH.
12229
12230 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
12231
12232 * config/mips/mips.c (mips_builtin_decls): Declare.
12233 (mips_init_builtins): Store function declarations in
12234 mips_builtin_decls.
12235 (mips_builtin_decl): New function.
12236 (TARGET_BUILTIN_DECL): Define.
12237
12238 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
12239 Richard Henderson <rth@redhat.com>
12240
12241 * config/i386/cygwin.asm: Include auto-host.h.
12242 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
12243 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
12244 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
12245 alignment code from the 64-bit path. Use gas local labels.
12246 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
12247 from _di_2. Remove the useless constant integer argument.
12248 (pro_epilogue_adjust_stack_<mode>_3): New.
12249 (allocate_stack_worker_probe_<mode>): Macroize from
12250 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
12251 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
12252 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
12253 (__chkstk_ms): New function.
12254 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
12255 * config/i386/t-interix: Likewise.
12256 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
12257 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
12258 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
12259 * configure, config.in: Rebuild.
12260
12261 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
12262
12263 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
12264 statements because of the return slot optimization.
12265
12266 2010-09-25 Anatoly Sokolov <aesok@post.ru>
12267
12268 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
12269 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
12270 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12271 (class_likely_spilled_p): Rename to...
12272 (avr_class_likely_spilled_p): ...this. Make static. Change argument
12273 type to reg_class_t.
12274
12275 2010-09-24 Jan Hubicka <jh@suse.cz>
12276
12277 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
12278 (lto_symtab_resolve_symbols): Set it.
12279 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
12280 store resolution field in cgraph/varpool.
12281 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
12282 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
12283 (cgraph_dump_node): Drop used_from_object_file.
12284 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
12285 (cgraph_function_body_availability): Use decl_replaceable_p.
12286 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
12287 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
12288 cgraph_used_from_object_file_p.
12289 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
12290 cgraph_used_from_object_file_p.
12291 (resolution_used_from_other_file_p): New functoin.
12292 (cgraph_used_from_object_file_p): New predicate.
12293 * cgraph.h: Include plugin-api.h
12294 (struct cgraph_local_info): Remove used_from_object_file.
12295 (struct cgraph_node): Add resolution field.
12296 (struct varpool_node): Likewise; remove used_from_object_file;
12297 reove const_value_known.
12298 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
12299 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
12300 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12301 varpool_used_from_object_file_p): Declare.
12302 (varpool_get_node, varpool_extra_name_alias): Update prototype.
12303 * tree.h (DECL_REPLACEABLE_P): Remove.
12304 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
12305 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
12306 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12307 input_overwrite_node, input_node, input_varpool_node): Stream
12308 resolution.
12309 * expr.c (expand_expr_real_1): Use const_value_known_p
12310 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
12311 const_value_known.
12312 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
12313 (function_and_variable_visibility): Set resolution for local vars
12314 and functions; use varpool_used_from_object_file_p.
12315 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
12316 static functions.
12317 (default_binds_local_p_1): Use resolutoin info.
12318 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
12319 * varpool.c (varpool_get_node): Constify.
12320 (const_value_known_p): Do not use vnode->const_value_known;
12321 use decl_replaceable_p.
12322 (varpool_finalize_decl): Do not set const_value_known.
12323 (cgraph_variable_initializer_availability): Use decl_replaceable_p
12324 (varpool_extra_name_alias): Return new node.
12325 (varpool_used_from_object_file_p): New function.
12326
12327 2010-09-24 Richard Henderson <rth@redhat.com>
12328
12329 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
12330 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
12331 (do_spill): Use REG_CFA_OFFSET.
12332 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
12333 as appropriate.
12334 (ia64_expand_epilogue): Likewise.
12335 (process_set): Split into ...
12336 (process_cfa_adjust_cfa): this,
12337 (process_cfa_register): this,
12338 (process_cfa_offset): and this new function.
12339 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
12340 instead of REG_FRAME_RELATED_EXPR.
12341
12342 2010-09-24 Olivier Hainque <hainque@adacore.com>
12343
12344 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
12345
12346 2010-09-24 Jan Hubicka <jh@suse.cz>
12347
12348 * doc/extend.texi: (attribute leaf): Document.
12349 * tree.c (local_define_builtin): Handle ECF_LEAF.
12350 (build_common_builtin_nodes): Set ECF_LEAF where needed.
12351 * tree.h (ECF_LEAF): New.
12352 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
12353 overwrittable and unavailable functions.
12354 (ipa_init): Put all_module_statics into optimization_summary_obstack.
12355 (copy_global_bitmap): Do not copy all_module_statics.
12356 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
12357 (propagate): Handle overwritable and unavailable leaf functions;
12358 initialize global info for overwritable and unavailable leaf functions;
12359 do not free all module statics.
12360 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
12361 local statics.
12362 * calls.c (flags_from_decl_or_type): Handle leaf.
12363 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
12364 abnormal gotos.
12365
12366 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
12367
12368 * gengtype.c: Reindented.
12369 * gengtype.h: Reindented.
12370 * gengtype-parse.c: Reindented.
12371
12372 2010-09-24 Jan Hubicka <jh@suse.cz>
12373
12374 PR tree-optimization/45738
12375 PR tree-optimization/45741
12376 * expr.c (string_constant): Allow CONST_DECL too;
12377 check that DECL_INITIAL is set.
12378 * varpool.c (const_value_known_p): Only look into VAR_DECL
12379 and CONST_DECL.
12380
12381 2010-09-24 Joseph Myers <joseph@codesourcery.com>
12382
12383 * common.opt (undef): New.
12384
12385 2010-09-24 Jakub Jelinek <jakub@redhat.com>
12386
12387 PR middle-end/45234
12388 * rtl.h (enum global_rtl_index): Add
12389 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
12390 (LAST_VIRTUAL_POINTER_REGISTER): Define.
12391 (virtual_preferred_stack_boundary_rtx,
12392 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
12393 (LAST_VIRTUAL_REGISTER): Increase by one.
12394 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
12395 instead of LAST_VIRTUAL_REGISTER.
12396 * function.c (instantiate_new_reg): Handle
12397 virtual_preferred_stack_boundary_rtx.
12398 * emit-rtl.c (init_virtual_regs): Handle
12399 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
12400 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
12401 * explow.c (round_push): If crtl->preferred_stack_boundary
12402 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
12403 virtual_preferred_stack_boundary_rtx alignment instead of
12404 crtl->preferred_stack_boundary alignment.
12405 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
12406 macros. Never decrease crtl->preferred_stack_boundary,
12407 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
12408 instead of PREFERRED_STACK_BOUNDARY. Don't modify
12409 stack_pointer_delta in dynamic allocation, even when size
12410 is constant.
12411 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
12412 macro.
12413 * print-rtl.c (print_rtx): Handle
12414 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
12415 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
12416 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
12417 * config/frv/frv.c (frv_emit_movsi): Likewise.
12418 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
12419 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
12420 Likewise.
12421
12422 Revert:
12423 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12424
12425 PR middle-end/45234
12426 * calls.c (expand_call): Make sure that all variable sized
12427 adjustments are multiple of preferred stack boundary after
12428 stack alignment.
12429
12430 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
12431 Dominique Dhumieres <dominiq@lps.ens.fr>
12432
12433 PR bootstrap/45751
12434 * config/darwin-driver.c (darwin_default_min_version):
12435 Adjust size passed to memcpy in two places.
12436
12437 2010-09-24 Richard Guenther <rguenther@suse.de>
12438
12439 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
12440 Make sure to not call set_type_context with error_mark_node.
12441 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
12442
12443 2010-09-24 Richard Guenther <rguenther@suse.de>
12444
12445 * Makefile.in (OBJS-onestep): Remove.
12446 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
12447 (libbackend.a): Remove onestep support.
12448 (libbackend.o): Remove.
12449 * configure.ac (--enable-intermodule): Remove.
12450 * configure: Regenerate.
12451
12452 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
12453
12454 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
12455 reaching the end of a block if it occurs at a DEBUG_INSN.
12456
12457 2010-09-09 Tristan Gingold <gingold@adacore.com>
12458
12459 PR target/44242
12460 * config/vms/vms-crt0-64.c: Removed.
12461 * config/vms/vms-crt0.c: Removed.
12462 * config/vms/vms-psxcrt0-64.c: Removed.
12463 * config/vms/vms-psxcrt0.c: Removed.
12464 * config/vms/vms-ucrt0.c: New file.
12465 * config/vms/t-vms64: Removed.
12466 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
12467 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
12468 * config.gcc (alpha-dec-vms): Use t-vms.
12469
12470 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
12471
12472 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
12473 underfull hbox in DVI output.
12474 (-fobjc-class-cxx-cdtors): Same change.
12475 (-fobjc-exceptions): Tidied up documentation. Explain what the
12476 option does, but moved the (lenghty) description of the exception
12477 syntax into objc.texi.
12478 (-fobjc-gc): Explain that the option is not useful with the GNU
12479 runtime.
12480 (-fzero-link): Explain that the GNU runtime always works in
12481 "zero-link" mode.
12482 * doc/objc.texi: All sections: simplified @node declarations
12483 removing specification of next, previous, up node.
12484 (Objective-C): Updated introduction.
12485 (Garbage Collection): Updated. The bohem-gc library is now
12486 included in gcc itself. Mention that this section only applies to
12487 the GNU Objective-C runtime.
12488 (compatibility_alias): Small tidy up.
12489 (Exceptions): New section mostly containing text previously in the
12490 description of the -fobjc-exception command-line option.
12491 (Synchronization): Same.
12492
12493 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
12494
12495 * config/i386/i386.md (ix86_code_end): Move the initialization of
12496 xops array near the consumer. Use AX_REG and SP_REG instead of
12497 numerical constants.
12498
12499 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
12500
12501 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
12502 method [methodname]' for an Objective-C method instead of the less
12503 satisfactory 'too many arguments to function' (with no method name).
12504
12505 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
12506
12507 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
12508 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
12509 (execute_update_addresses_taken): Remove parameter. Execute the
12510 optimization unconditionally.
12511 * passes.c (execute_function_todo): Call execute_update_addresses_taken
12512 unconditionally if TODO_rebuild_alias is set, else only when optimizing
12513 if TODO_update_address_taken is set.
12514
12515 2010-09-23 Anatoly Sokolov <aesok@post.ru>
12516
12517 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12518 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
12519 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12520 (arm_output_addr_const_extra): Make static.
12521
12522 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
12523
12524 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
12525 define as unspec_volatile.
12526 ("nops"): Define as unspec_volatile. Use fputs to write to
12527 asm_out_file directly. Output NOPs on separate lines using while loop.
12528 * config/i386/i386.c (ix86_code_end): Use fputs to write to
12529 asm_out_file directly. Output NOPs on separate lines using while loop.
12530
12531 2010-09-23 Richard Guenther <rguenther@suse.de>
12532
12533 PR tree-optimization/45565
12534 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
12535 Make sure to adjust the fndecl before replacing the stmt.
12536
12537 2010-09-23 Richard Guenther <rguenther@suse.de>
12538
12539 PR middle-end/45750
12540 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
12541 gimplifying MEM_REF.
12542
12543 2010-09-23 Alan Modra <amodra@gmail.com>
12544
12545 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
12546 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
12547
12548 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
12549
12550 PR rtl-optimization/44374
12551 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
12552 * df-core.c (df_set_bb_dirty): Set it.
12553 * ifcvt.c (find_memory): Remove function.
12554 (dead_or_predicable): Use can_move_insns_across.
12555 * df.h (can_move_insns_across): Declare function.
12556 * cfgcleanup.c (block_was_dirty): New static variable.
12557 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
12558 than df_get_bb_dirty.
12559 (try_head_merge_bb): New static function.
12560 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
12561 is set.
12562 * df-problems.c: Include "target.h"
12563 (df_simulate_find_uses): New static function.
12564 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
12565 (find_memory, find_memory_store): New static functions.
12566 (can_move_insns_across): New function.
12567 * Makefile.in (df-problems.o): Update dependencies.
12568
12569 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
12570
12571 PR java/44095
12572 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
12573 is specified and the suffix of the file isn't ".c".
12574 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12575
12576 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12577
12578 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
12579 * doc/cppopts.texi: Fix markup of index entry.
12580 * doc/extend.texi (Constructing Calls): Fix markup of
12581 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
12582 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
12583 (Vague Linkage, C++ Attributes): Fix markup of index entries and
12584 keywords.
12585 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
12586 avoid long lines.
12587 (C Dialect Options, C++ Dialect Options, Warning Options)
12588 (Debugging Options, Spec Files, Darwin Options)
12589 (i386 and x86-64 Options, MIPS Options)
12590 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
12591 index entries, avoid abbreviations, allow URLs to wrap, avoid
12592 long lines, avoid overlong pages from long @itemx lists.
12593 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
12594 * doc/standards.texi (Standards): Likewise.
12595 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
12596
12597 2010-09-22 Joseph Myers <joseph@codesourcery.com>
12598
12599 * opts-common.c (prune_options): Make static. Work with decoded
12600 options.
12601 (decode_cmdline_options_to_array): Call prune_options. Don't
12602 resize option array here.
12603 * opts.h (prune_options): Remove prototype.
12604 * gcc.c (process_command): Take decoded options; don't call
12605 decode_cmdline_options_to_array here. Use decoded options for argv[0].
12606 (main): Call decode_cmdline_options_to_array here instead of
12607 prune_options. Update call to process_command.
12608 * config/darwin-driver.c: Include opts.h.
12609 (darwin_default_min_version): Work with decoded options. Don't
12610 handle -b or -V here.
12611 * config/darwin.h (darwin_default_min_version): Update prototype.
12612 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
12613 darwin_default_min_version.
12614 * config/i386/cygwin.h (mingw_scan): Update prototype.
12615 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
12616 * config/i386/cygwin1.c: Include opts.h.
12617 (mingw_scan): Work with decoded options.
12618 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
12619 * config/t-darwin (darwin-driver.o): Update dependencies.
12620
12621 2010-09-22 Joseph Myers <joseph@codesourcery.com>
12622
12623 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
12624 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
12625 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
12626 -force-link, -force-link=, -language, -language=,
12627 -library-directory, -library-directory=, -no-canonical-prefixes,
12628 -no-standard-libraries, -no-warnings, -optimize, -output,
12629 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
12630 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
12631 -print-file-name=, -print-libgcc-file-name,
12632 -print-multi-directory, -print-multi-lib,
12633 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
12634 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
12635 -profile, -save-temps, -shared, -specs, -specs=, -static,
12636 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
12637 symbolic): New.
12638 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
12639 * gcc.c (A Short Introduction to Adding a Command-Line Option):
12640 Remove comment.
12641 (cc1_options): Correct specs for passing down --help,
12642 --target-help and --help=*. Add spec for passing down --version.
12643 (struct option_map, option_map, target_option_translations,
12644 translate_options): Remove.
12645 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
12646 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
12647 OPT_fhelp_ and OPT_ftarget_help.
12648 (process_command): Don't call translate_options. Call
12649 decode_cmdline_options_to_array before checking for
12650 -no-canonical-prefixes using decoded options.
12651 * opts-common.c (tm.h): Update comment on #include.
12652 (find_opt): Allow abbreviations of long options.
12653 (struct option_map, option_map): New.
12654 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
12655 and -mno handling.
12656 (target_option_translations): New.
12657 (decode_cmdline_options_to_array): Handle
12658 TARGET_OPTION_TRANSLATE_TABLE in driver.
12659 * opts.c (common_handle_option): Don't handle OPT_fhelp,
12660 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
12661
12662 2010-09-22 Richard Guenther <rguenther@suse.de>
12663
12664 * tree-inline.c (optimize_inline_calls): Schedule cleanups
12665 only if we inlined something. Block compaction and conditional
12666 folding are done by cfg cleanup. Schedule update-address-taken.
12667 (tree_function_versioning): Remove redundant call to number_blocks.
12668 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
12669 folding is done by cfg cleanup.
12670 * passes.c (init_optimization_passes): Remove update-address-taken
12671 pass after IPA inlining.
12672
12673 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12674
12675 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
12676 to update conditions. Fix reg_mode[] check.
12677
12678 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
12679
12680 * config/picochip/picochip.md (movhicc): Use expand to check whether
12681 movhicc is available and split it after reload.
12682
12683 2010-09-22 Richard Guenther <rguenther@suse.de>
12684
12685 * tree-ssanames.c (release_dead_ssa_names): Do not remove
12686 callee edges here.
12687 * passes.c (init_optimization_passes): Remove early CFG cleanup.
12688 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
12689 (pass_cleanup_cfg): Likewise.
12690 (execute_fixup_cfg): Cleanup.
12691 * tree-pass.h (pass_cleanup_cfg): Remove.
12692
12693 2010-09-22 Martin Jambor <mjambor@suse.cz>
12694
12695 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
12696 builtins if it is true.
12697 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
12698 parameter.
12699
12700 2010-09-22 Martin Jambor <mjambor@suse.cz>
12701
12702 * tree-sra.c (struct access): New field grp_no_warning.
12703 (create_access_replacement): Set TREE_NO_WARNING according to
12704 grp_no_warning.
12705 (create_artificial_child_access): Use build_ref_for_model and set
12706 grp_no_warning if build_user_friendly_ref_for_offset fails.
12707 (propagate_subaccesses_across_link): Likewise.
12708
12709 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
12710
12711 PR target/35664
12712 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
12713 ('f'): Likewise.
12714
12715 2010-09-22 Tristan Gingold <gingold@adacore.com>
12716
12717 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
12718
12719 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
12720
12721 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
12722 * config/i386/i386.c (decide_alg): Update for rename.
12723
12724 2010-09-22 Jakub Jelinek <jakub@redhat.com>
12725
12726 PR rtl-optimization/45739
12727 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
12728 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
12729
12730 2010-09-21 Anatoly Sokolov <aesok@post.ru>
12731
12732 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
12733 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
12734 Remove.
12735 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
12736 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12737
12738 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12739
12740 PR objc/23710
12741 * c-parser.c (c_parser_objc_method_definition): Check the return
12742 value of objc_start_method_definition and if false is returned,
12743 parse the method definition but emit no code.
12744
12745 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
12746
12747 PR objc/25965
12748 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
12749 call objc_get_interface_ivars ().
12750
12751 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
12752
12753 PR target/45694
12754 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
12755 static chain-register is used for 64-bit.
12756
12757 2010-09-21 Richard Guenther <rguenther@suse.de>
12758
12759 * dwarf2out.c (is_cu_die): New function.
12760 (add_pubtype): Use it.
12761 (gen_subprogram_die): Likewise.
12762 (gen_struct_or_union_type_die): Likewise.
12763 (dwarf2out_finish): Likewise.
12764 (comp_unit_die): Rename to ...
12765 (single_comp_unit_die): ... this.
12766 (comp_unit_die): New function lazily constructing and
12767 returning single_comp_unit_die.
12768 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
12769 base_type_die, subrange_type_die, modified_type_die,
12770 lower_bound_default, add_bound_info, add_prototyped_attribute,
12771 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
12772 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
12773 force_decl_die, gen_namespace_die, dwarf2out_decl,
12774 dwarf2out_start_source_file, dwarf2out_end_source_file,
12775 prune_unused_types, dwarf2out_finish): Use it.
12776 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
12777 the global list of translation-unit decls.
12778 (dwarf2out_init): Do not create single_comp_unit_die here.
12779 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
12780
12781 2010-09-21 Richard Guenther <rguenther@suse.de>
12782
12783 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
12784 for bool for C++.
12785
12786 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
12787
12788 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
12789 (qhs_extenddi_cstr): Likewise.
12790 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
12791 them for the source operand.
12792
12793 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
12794
12795 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
12796 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
12797 (ix86_split_ashr): Ditto.
12798 (ix86_split_lshr): Ditto.
12799
12800 2010-09-21 Richard Guenther <rguenther@suse.de>
12801
12802 PR tree-optimization/45580
12803 * tree-ssa-propagate.c (substitute_and_fold): Always replace
12804 regular uses.
12805 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
12806 virtuals fold the call into a regular indirect one.
12807
12808 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
12809
12810 PR rtl-optimization/42775
12811 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
12812 scheduling is enabled.
12813
12814 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12815
12816 PR rtl-optimization/45728
12817 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
12818 gen_lowpart_common first and if that fails, force_reg first
12819 before calling gen_lowpart.
12820
12821 PR middle-end/45678
12822 * cfgexpand.c (expand_one_stack_var_at): Use
12823 crtl->max_used_stack_slot_alignment as max_align, instead
12824 of maximum of that and PREFERRED_STACK_BOUNDARY.
12825 Don't call update_stack_alignment.
12826
12827 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
12828
12829 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
12830 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
12831 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
12832 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
12833 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
12834 (build_nonstandard_integer_type): Likewise.
12835 (build_range_type_1): New function, built from...
12836 (build_range_type): ...this. Call build_range_type_1.
12837 (build_nonshared_range_type): New function.
12838 (build_array_type_1): New function, built from...
12839 (build_array_type: ...this. Call build_array_type_1.
12840 (build_nonshared_array_type): New function.
12841 * tree.h (build_nonshared_range_type): Declare.
12842 (build_nonshared_array_type): Likewise.
12843
12844 2010-09-20 Anatoly Sokolov <aesok@post.ru>
12845
12846 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
12847 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12848 (arm_class_likely_spilled_p): New function.
12849
12850 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
12851
12852 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
12853 indirect functions.
12854 (ix86_split_ashl): Ditto.
12855 (ix86_split_ashr): Ditto.
12856 (ix86_split_lshr): Ditto.
12857 (ix86_adjust_counter): Ditto.
12858
12859 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
12860
12861 * c-family/c-common.h (constant_string_class): Documented with
12862 comment identical to the one already in c-common.c.
12863
12864 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12865
12866 * dwarf2out.c (any_cfis_emitted): New static variable.
12867 (add_fde_cfi): Set it.
12868 (dwarf2out_frame_debug): Clear it before processing,
12869 if it is set afterwards, flush any queued reg saves.
12870
12871 PR debug/45124
12872 * dwarf2out.c (add_accessibility_attribute): Assume
12873 DW_ACCESS_private as the default for dwarf_version > 2
12874 and DW_TAG_class_type parent.
12875 (gen_inheritance_die): Assume DW_ACCESS_public as the default
12876 for dwarf_version > 2 and parent other than DW_TAG_class_type.
12877
12878 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12879
12880 PR target/45726
12881 * arm.md (arm_movt): Only enable on machines with MOVT.
12882
12883 2010-09-20 Jie Zhang <jie@codesourcery.com>
12884
12885 * config/arm/arm.c (arm_address_offset_is_imm): New.
12886 (arm_early_store_addr_dep): New.
12887 (arm_early_load_addr_dep): New.
12888 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
12889 (arm_early_load_addr_dep): Declare.
12890 (arm_address_offset_is_imm): Declare.
12891 * config/arm/cortex-m4.md: New file.
12892 * config/arm/cortex-m4-fpu.md: New file.
12893 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
12894 (attr generic_sched): Exclude cortexm4.
12895 (attr generic_vfp): Exclude cortexm4.
12896
12897 2010-09-20 Richard Guenther <rguenther@suse.de>
12898
12899 PR middle-end/45704
12900 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
12901
12902 2010-09-20 Jan Hubicka <jh@suse.cz>
12903
12904 PR tree-optimize/45605
12905 * cgraph.h (const_value_known_p): Declare.
12906 (varpool_decide_const_value_known): Remove.
12907 * tree-ssa-ccp.c (get_base_constructor): Use it.
12908 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
12909 * expr.c (string_constant): Likewise.
12910 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
12911 * ipa.c (ipa_discover_readonly_nonaddressable_var,
12912 function_and_variable_visibility): Likewise.
12913 * gimplify.c (gimplify_call_expr): Likewise.
12914 * gimple-fold.c (get_symbol_constant_value): Likewise.
12915 * varpool.c (varpool_decide_const_value_known): Replace by...
12916 (const_value_known_p): ... this one; handle other kinds of DECLs
12917 too and work for automatic vars.
12918 (varpool_finalize_decl): Use const_value_known_p.
12919
12920 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12921
12922 PR target/45726
12923 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
12924
12925 2010-09-20 Richard Guenther <rguenther@suse.de>
12926
12927 PR tree-optimization/45705
12928 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
12929
12930 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12931
12932 PR rtl-optimization/45695
12933 * combine.c (try_combine): When splitting a two set pattern,
12934 make sure the pattern which will be put into i2 doesn't use REGs
12935 or MEMs set by insns in between i2 and i3.
12936
12937 2010-09-19 Jan Hubicka <jh@suse.cz>
12938
12939 PR lto/44246
12940 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
12941 processing same node twice.
12942
12943 2010-09-19 Anatoly Sokolov <aesok@post.ru>
12944
12945 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
12946 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12947 (bfin_class_likely_spilled_p): New function
12948
12949 2010-09-19 Ira Rosen <irar@il.ibm.com>
12950
12951 PR tree-optimization/45714
12952 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
12953 created in vectorizable_call instead of the original statement in
12954 def stmt updates.
12955
12956 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
12957
12958 * config/i386/i386-protos.h (split_double_mode): New prototype.
12959 (split_di, split_ti): Remove prototypes.
12960 * config/i386/i386.c (split_double_mode): New function.
12961 (split_di, split_ti): Remove.
12962 (ix86_expand_branch): Use split_double_mode.
12963 (ix86_split_to_parts): Ditto.
12964 (ix86_split_ashl): Ditto.
12965 (ix86_split_ashr): Ditto.
12966 (ix86_split_lshr): Ditto.
12967 (ix86_force_to_memory): Ditto.
12968 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
12969
12970 2010-09-18 Jan Hubicka <jh@suse.cz>
12971
12972 PR tree-optimization/45453
12973 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
12974 virtual functions are reachable.
12975 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
12976 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
12977 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
12978 when modifying function.
12979
12980 2010-09-18 Jan Hubicka <jh@suse.cz>
12981
12982 PR tree-optimization/45605
12983 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
12984 * gimple-fold.c (static_object_in_other_unit_p): New function.
12985 (canonicalize_constructor_val): Use it.
12986 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
12987 returning NULL.
12988 (gimple_fold_obj_type_ref_known_binfo): Use
12989 static_object_in_other_unit_p.
12990
12991 2010-09-18 Richard Guenther <rguenther@suse.de>
12992
12993 PR tree-optimization/45709
12994 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
12995 insertions until after all PHI nodes of the block are processed.
12996
12997 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
12998
12999 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
13000
13001 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
13002
13003 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
13004
13005 2010-09-18 Richard Guenther <rguenther@suse.de>
13006
13007 PR tree-optimization/45709
13008 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
13009
13010 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
13011
13012 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
13013 (dot_deps_stmt): Same.
13014 * graphite-poly.c (dot_lst): Same.
13015 * graphite-scop-detection.c (dot_all_scops): Same.
13016 (dot_scop): Same.
13017
13018 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
13019
13020 Revert:
13021 2009-12-16 Ben Elliston <bje@au.ibm.com>
13022
13023 * tree-data-ref.c (dot_rdg_1): Added back.
13024 (dot_rdg): Same. Added "#if 0" around system call.
13025
13026 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
13027 Richard Henderson <rth@redhat.com>
13028
13029 * config/i386/i386.c (initial_ix86_tune_features): Add
13030 X86_TUNE_PAD_SHORT_FUNCTION.
13031 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
13032 (ix86_count_insn): New.
13033 (ix86_pad_short_function): Likewise.
13034 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
13035
13036 * config/i386/i386.h (ix86_tune_indices): Add
13037 X86_TUNE_PAD_SHORT_FUNCTION.
13038 (TARGET_PAD_SHORT_FUNCTION): New.
13039
13040 * config/i386/i386.md (UNSPEC_NOPS): New.
13041 (nops): Likewise.
13042
13043 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
13044
13045 PR middle-end/45234
13046 * calls.c (expand_call): Make sure that all variable sized
13047 adjustments are multiple of preferred stack boundary after
13048 stack alignment.
13049
13050 2010-09-17 DJ Delorie <dj@redhat.com>
13051
13052 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
13053 passed an invalid value, print an error instead of ICEing.
13054 (valid_psw_flag): New.
13055 (rx_expand_builtin): Call it for setpsw/clrpsw.
13056 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
13057
13058 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
13059 (bitclr_in_memory): Likewise.
13060 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
13061
13062 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
13063
13064 PR middle-end/45678
13065 * cfgexpand.c (update_stack_alignment): New.
13066 (get_decl_align_unit): Use it.
13067 (expand_one_stack_var_at): Call update_stack_alignment.
13068
13069 2010-09-17 Richard Guenther <rguenther@suse.de>
13070
13071 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
13072 Properly copy the read string.
13073
13074 2010-09-17 Joseph Myers <joseph@codesourcery.com>
13075
13076 * doc/options.texi (Variable): Document.
13077 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
13078 generate target_flags declarations explicitly. Don't define
13079 VarExists variables for the driver.
13080 * common.opt (target_flags): New Variable record.
13081 (flag_dump_unnumbered, flag_dump_unnumbered_links,
13082 flag_var_tracking, flag_var_tracking_assignments,
13083 flag_var_tracking_assignments_toggle): Don't mark variables with
13084 VarExists.
13085 * config/i386/i386.c (ix86_isa_flags): Don't define here.
13086 * config/i386/i386.opt (ix86_isa_flags): Define here.
13087 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
13088 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
13089 VarExists.
13090 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
13091 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
13092 Only define for generator programs.
13093 * rtlanal.c (target_flags): Remove.
13094 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
13095 flag_var_tracking_assignments_toggle): Remove.
13096
13097 2010-09-17 Michael Matz <matz@suse.de>
13098
13099 PR tree-optimization/43432
13100 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
13101 Accept backwards consecutive accesses.
13102 (vect_create_data_ref_ptr): If step is negative generate
13103 decreasing IVs.
13104 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
13105 (perm_mask_for_reverse, reverse_vec_elements): New functions.
13106 (vectorizable_load): Handle loads with negative steps when easily
13107 possible.
13108
13109 2010-09-03 Jan Hubicka <jh@suse.cz>
13110
13111 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
13112
13113 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
13114
13115 * config/v850/v850.c (v850_function_value_regno_p): Make static.
13116 Adjust comments. Declare.
13117 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13118 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
13119
13120 2010-09-17 Richard Guenther <rguenther@suse.de>
13121
13122 * common.opt (combine): Remove.
13123 * gcc.c (default_compilers): Remove specs testing combine.
13124 The C compilers no longer can combine.
13125 (option_map): Remove -combine.
13126 (display_help): Remove -combine.
13127 (driver_handle_option): Remove OPT_combine handling.
13128 (compile_input_file_p): Remove.
13129 (do_spec): Remove code concerning combine.
13130 (main): Likewise.
13131 * doc/invoke.texi: Remove traces of -combine.
13132 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
13133
13134 2010-09-17 Richard Guenther <rguenther@suse.de>
13135
13136 PR middle-end/45678
13137 * builtins.c (fold_builtin_memory_op): Always properly adjust
13138 alignment of memory accesses.
13139
13140 2010-09-16 Jan Hubicka <jh@suse.cz>
13141
13142 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
13143 processing clone.
13144
13145 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
13146
13147 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
13148
13149 * config/i386/i386.c (predict_jump): Add prototype.
13150 (flag_opts): Add -m8bit-idiv.
13151 (ix86_split_idivmod): New.
13152
13153 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
13154 Add 2 splitters for SI/DI mode divide.
13155 (divmod<mode>4_1): New pattern.
13156 (udivmod<mode>4_1): Likewise.
13157 (testdi_ccno_1): Likewise.
13158
13159 * config/i386/i386.opt (m8bit-idiv): New.
13160
13161 * doc/invoke.texi: Document -m8bit-idiv.
13162
13163 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
13164
13165 PR bootstrap/45680
13166 * config/i386/i386.c (min_insn_size): Moved out of the
13167 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
13168
13169 2010-09-16 Jan Hubicka <jh@suse.cz>
13170
13171 * lto-cgraph.c (lto_output_node): Fix handling of clones.
13172 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
13173 unreachable clones with reachable clones.
13174 * tree-inline.c (copy_bb): Fix sanity checking when producing
13175 unreachable clone.
13176
13177 2010-09-16 Anatoly Sokolov <aesok@post.ru>
13178
13179 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
13180 (TARGET_MEMORY_MOVE_COST): Define.
13181 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
13182
13183 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
13184
13185 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
13186 maybe_tidy_empty_bb.
13187
13188 Revert:
13189 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
13190 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13191
13192 2010-09-16 Joseph Myers <joseph@codesourcery.com>
13193
13194 * target.def (target_option.optimization): New hook.
13195 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
13196 TARGET_OPTION_OPTIMIZATION hook.
13197 * doc/tm.texi: Regenerate.
13198 * hooks.c (hook_void_int_int): New.
13199 * hooks.h (hook_void_int_int): Declare.
13200 * opts.c: Don't include tm_p.h.
13201 (decode_options): Use targetm.target_option.optimization instead
13202 of OPTIMIZATION_OPTIONS.
13203 * system.h (OPTIMIZATION_OPTIONS): Poison.
13204 * config/arm/arm-protos.h (arm_optimization_options): Remove.
13205 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
13206 (arm_optimization_options): Rename to arm_option_optimization.
13207 Make static.
13208 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
13209 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
13210 (cris_option_optimization): New.
13211 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
13212 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
13213 (crx_option_optimization): New.
13214 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
13215 * config/frv/frv-protos.h (frv_optimization_options): Remove.
13216 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
13217 (frv_optimization_options): Rename to frv_option_optimization.
13218 Make static.
13219 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
13220 * config/h8300/h8300.c (h8300_option_optimization): New.
13221 (TARGET_OPTION_OPTIMIZATION): Define.
13222 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
13223 * config/i386/i386-protos.h (optimization_options): Remove.
13224 * config/i386/i386.c (optimization_options): Rename to
13225 ix86_option_optimization. Make static.
13226 (TARGET_OPTION_OPTIMIZATION): Define.
13227 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
13228 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
13229 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
13230 (ia64_optimization_options): Rename to ia64_option_optimization.
13231 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
13232 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
13233 commented-out definition.
13234 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
13235 instead of OPTIMIZATION_OPTIONS.
13236 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
13237 (m32r_option_optimization): New.
13238 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
13239 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
13240 Remove.
13241 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
13242 (mcore_option_optimization): New.
13243 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
13244 * config/mep/mep-protos.h (mep_optimization_options): Remove.
13245 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
13246 (mep_optimization_options): Rename to mep_option_optimization.
13247 Make static. Take unused level and size parameters.
13248 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
13249 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
13250 (mmix_option_optimization): New.
13251 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
13252 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
13253 (pdp11_option_optimization): New.
13254 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
13255 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
13256 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
13257 (optimization_options): Rename to rs6000_option_optimization.
13258 Make static.
13259 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
13260 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
13261 * config/rx/rx.c (rx_set_optimization_options): Rename to
13262 rx_option_optimization. Make static. Take unused level and size
13263 parameters.
13264 (TARGET_OPTION_OPTIMIZATION): Define.
13265 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
13266 * config/s390/s390-protos.h (optimization_options): Remove.
13267 * config/s390/s390.c (optimization_options): Rename to
13268 s390_option_optimization. Make static. Don't mark size parameter
13269 unused.
13270 (TARGET_OPTION_OPTIMIZATION): Define.
13271 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
13272 * config/sh/sh-protos.h (sh_optimization_options): Remove.
13273 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
13274 (sh_optimization_options): Rename to sh_option_optimization. Make
13275 static. Don't mark parameters unused.
13276 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
13277 * config/spu/spu-protos.h (spu_optimization_options): Remove.
13278 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
13279 (spu_optimization_options): Rename to spu_option_optimization.
13280 Make static.
13281 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
13282 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
13283 (v850_option_optimization): New.
13284 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
13285 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
13286 (xtensa_option_optimization): New.
13287 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
13288
13289 2010-09-16 Joseph Myers <joseph@codesourcery.com>
13290
13291 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
13292 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
13293 * doc/tm.texi: Regenerate.
13294 * system.h (OVERRIDE_OPTIONS): Poison.
13295 * target.def (override): Default to hook_void_void.
13296 * targhooks.c (default_target_option_override): Remove.
13297 * genmodes.c, machmode.def: Update comments mentioning
13298 OVERRIDE_OPTIONS.
13299 * config/alpha/alpha-modes.def: Update comment mentioning
13300 alpha_override_options.
13301 * config/alpha/alpha-protos.h (override_options): Remove.
13302 * config/alpha/alpha.c (override_options): Rename to
13303 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
13304 (TARGET_OPTION_OVERRIDE): Define.
13305 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
13306 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
13307 of OVERRIDE_OPTIONS.
13308 * config/arc/arc-protos.h (arc_init): Remove.
13309 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
13310 (arc_init): Rename to arc_option_override. Make static.
13311 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
13312 (OVERRIDE_OPTIONS): Remove.
13313 * config/arm/arm-protos.h (arm_override_options): Remove.
13314 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
13315 (arm_override_options): Rename to arm_option_override. Make
13316 static. Call SUBTARGET_OVERRIDE_OPTIONS.
13317 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
13318 * config/arm/arm.md: Update comment referring to arm_override_options.
13319 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
13320 instead of OVERRIDE_OPTIONS.
13321 * config/avr/avr-protos.h (avr_override_options): Remove.
13322 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
13323 (avr_override_options): Rename to avr_option_override. Make static.
13324 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
13325 * config/bfin/bfin-protos.h (override_options): Remove (twice).
13326 * config/bfin/bfin.c (override_options): Rename to
13327 bfin_option_override. Make static.
13328 (TARGET_OPTION_OVERRIDE): Define.
13329 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
13330 * config/cris/cris-protos.h (cris_override_options): Remove.
13331 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
13332 (cris_override_options): Rename to cris_option_override. Make static.
13333 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
13334 * config/frv/frv-protos.h (frv_override_options): Remove.
13335 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
13336 (frv_override_options): Rename to frv_option_override. Make static.
13337 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
13338 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
13339 * config/h8300/h8300.c (h8300_init_once): Rename to
13340 h8300_option_override. Make static.
13341 (TARGET_OPTION_OVERRIDE): Define.
13342 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
13343 * config/i386/i386-protos.h (override_options): Remove.
13344 * config/i386/i386.c (override_options): Rename to
13345 ix86_option_override_internal. Make static. Comments referring
13346 to this function and callers changed.
13347 (ix86_option_override): New.
13348 (TARGET_OPTION_OVERRIDE): Define.
13349 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
13350 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
13351 * config/ia64/ia64.c (ia64_file_start): Update comment referring
13352 to ia64_override_options.
13353 * config/iq2000/iq2000-protos.h (override_options): Remove.
13354 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
13355 (override_options): Rename to iq2000_option_override. Make static.
13356 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
13357 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
13358 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
13359 (lm32_override_options): Rename to lm32_option_override. Make static.
13360 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
13361 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
13362 (m32r_option_override): New.
13363 (m32r_init): Update comment.
13364 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
13365 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
13366 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
13367 (m68hc11_override_options): Rename to m68hc11_option_override.
13368 Make static. Return void.
13369 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
13370 * config/m68k/m68k-protos.h (override_options): Remove.
13371 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
13372 (override_options): Rename to m68k_option_override. Make static.
13373 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
13374 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
13375 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
13376 (mcore_override_options): Rename to mcore_option_override. Make
13377 static.
13378 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
13379 * config/mep/mep-protos.h (mep_override_options): Remove.
13380 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
13381 (mep_override_options): Rename to mep_option_override. Make static.
13382 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
13383 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
13384 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
13385 (mmix_override_options): Rename to mmix_option_override. Make static.
13386 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
13387 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
13388 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
13389 (mn10300_override_options): Rename to mn10300_option_override.
13390 Make static.
13391 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
13392 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
13393 * config/moxie/moxie.c (moxie_override_options): Rename to
13394 moxie_option_override. Make static.
13395 (TARGET_OPTION_OVERRIDE): Define.
13396 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
13397 * config/picochip/picochip-protos.h (picochip_override_options):
13398 Remove. Update comment referring to picochip_override_options.
13399 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
13400 (picochip_override_options): Rename to picochip_option_override.
13401 Make static. Update comment and definition of
13402 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
13403 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
13404 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13405 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13406 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13407 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13408 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13409 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
13410 instead of OVERRIDE_OPTIONS.
13411 * config/rs6000/rs6000-modes.def: Update comment referring to
13412 rs6000_override_options.
13413 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
13414 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
13415 (rs6000_override_options): Rename to
13416 rs6000_option_override_internal. Make static. Commented
13417 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
13418 (rs6000_option_override): New.
13419 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
13420 instead of OVERRIDE_OPTIONS.
13421 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13422 * config/s390/s390-protos.h (override_options): Remove.
13423 * config/s390/s390.c (override_options): Rename to
13424 s390_option_override. Make static.
13425 (TARGET_OPTION_OVERRIDE): Define.
13426 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
13427 * config/score/score-protos.h (score_override_options): Remove.
13428 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
13429 (score_override_options): Rename to score_option_override. Make
13430 static.
13431 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
13432 Update comment referring to override_options.
13433 * config/score/score3.c (score3_override_options): Rename to
13434 score3_option_override.
13435 * config/score/score3.h (score3_override_options): Rename to
13436 score3_option_override.
13437 * config/score/score7.c (score7_override_options): Rename to
13438 score7_option_override.
13439 * config/score/score7.h (score7_override_options): Rename to
13440 score7_option_override.
13441 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
13442 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
13443 (sparc_override_options): Rename to sparc_option_override. Make
13444 static. Call SUBTARGET_OVERRIDE_OPTIONS.
13445 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
13446 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
13447 instead of OVERRIDE_OPTIONS.
13448 * config/spu/spu-protos.h (spu_override_options): Remove.
13449 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
13450 (spu_override_options): Rename to spu_option_override. Make
13451 static.
13452 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
13453 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
13454 OVERRIDE_OPTIONS.
13455 * config/vax/vax-protos.h (override_options): Remove.
13456 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
13457 (override_options): Rename to vax_option_override. Make static.
13458 Call SUBTARGET_OVERRIDE_OPTIONS.
13459 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
13460 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
13461 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
13462 * config/xtensa/xtensa-protos.h (override_options): Remove.
13463 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
13464 (override_options): Rename to xtensa_option_override. Make static.
13465 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
13466
13467 2010-09-16 Richard Guenther <rguenther@suse.de>
13468
13469 PR tree-optimization/45623
13470 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
13471 (get_constraint_for_component_ref): If computing a constraint
13472 for the rhs handle type punning through unions.
13473 (get_constraint_for_address_of): Adjust.
13474 (get_constraint_for_1): Likewise.
13475 (get_constraint_for): Likewise.
13476 (get_constraint_for_rhs): New function.
13477 (do_structure_copy): Adjust.
13478 (make_constraint_to): Likewise.
13479 (handle_const_call): Likewise.
13480 (find_func_aliases): Likewise.
13481 (process_ipa_clobber): Likewise.
13482 (create_variable_info_for): Likewise.
13483
13484 2010-09-16 Ira Rosen <irar@il.ibm.com>
13485
13486 * tree-vectorizer.c: Fix documentation.
13487 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
13488 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
13489 is_pattern_stmt_p, is_loop_header_bb_p,
13490 stmt_vinfo_set_inside_of_loop_cost,
13491 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
13492 known_alignment_for_access_p): Likewise.
13493 * tree-vect-loop.c: Fix documentation.
13494 (vect_get_cost): Start function name from new line.
13495 * tree-vect-data-refs.c: Fix documentation.
13496 * tree-vect_stmts.c: Likewise.
13497 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
13498 (vectorizable_store): Free vec_oprnds if allocated.
13499 (vectorizable_condition): Initialize several variables to avoid
13500 warnings.
13501 * tree-vect-slp.c: Fix documentation.
13502
13503 2010-09-16 Richard Guenther <rguenther@suse.de>
13504
13505 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
13506 is TS_TRANSLATION_UNIT_DECL.
13507 (initialize_tree_contains_struct): Adjust.
13508 (all_translation_units): New global vector.
13509 (build_translation_unit_decl): New function.
13510 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
13511 (struct tree_translation_unit_decl): New.
13512 (all_translation_units): Declare.
13513 (union tree_node): Add translation_unit_decl member.
13514 (build_translation_unit_decl): Declare.
13515 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
13516 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
13517 New function.
13518 (pack_value_fields): Call it.
13519 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
13520 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
13521 (lto_output_tree_pointers): Call it.
13522 * lto-streamer-in.c (lto_input_tree_ref): Handle references
13523 to TRANSLATION_UNIT_DECL.
13524 (unpack_ts_translation_unit_decl_value_fields): New function.
13525 (unpack_value_fields): Call it.
13526 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
13527 (lto_input_tree_pointers): Call it.
13528 * lto-streamer.c (check_handled_ts_structures): Adjust.
13529 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
13530 * c-decl.c (all_translation_units): Remove.
13531 (pop_scope): Use build_translation_unit_decl.
13532 (collect_all_refs): Adjust.
13533 (for_each_global_decl): Likewise.
13534 (c_write_global_declarations): Likewise.
13535
13536 2010-09-16 Jakub Jelinek <jakub@redhat.com>
13537
13538 PR bootstrap/45686
13539 * fold-const.c (fold_checksum_tree): Change slot from const void **
13540 to void **, use CONST_CAST_TREE to store into *slot.
13541
13542 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
13543
13544 * config/i386/i386.md: Remove unneeded empty conditions and
13545 preparation statements from expanders.
13546 * config/i386/mmx.md: Ditto.
13547 * config/i386/sse.md: Ditto.
13548
13549 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
13550
13551 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
13552
13553 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
13554
13555 PR rtl-optimization/45593
13556 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
13557 insns that were in delay slots as stand-alone insns.
13558
13559 2010-09-15 Ian Lance Taylor <iant@google.com>
13560
13561 * incpath.c (remove_duplicates): If name is not a directory, issue
13562 a warning rather than an error.
13563
13564 2010-09-15 Martin Jambor <mjambor@suse.cz>
13565
13566 PR middle-end/45644
13567 * tree-sra.c (create_access): Check for bit-fields directly.
13568
13569 2010-09-15 Jakub Jelinek <jakub@redhat.com>
13570
13571 PR tree-optimization/45633
13572 * tree-cfg.c (verify_gimple_assign_binary): Allow
13573 MINUS_EXPR with lhs and rhs1 pointer vector and
13574 rhs2 sizetype vector.
13575 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
13576 or vector pointer use TER to optimize pointer subtraction.
13577
13578 2010-09-15 Jie Zhang <jie@codesourcery.com>
13579
13580 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
13581 fcmpd to fcmps.
13582
13583 2010-09-15 Ian Lance Taylor <iant@google.com>
13584
13585 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
13586
13587 2010-09-15 Ian Lance Taylor <iant@google.com>
13588
13589 * function.c (get_arg_pointer_save_area): Set
13590 arg_pointer_save_area_init to true.
13591
13592 2010-09-15 Martin Jambor <mjambor@suse.cz>
13593
13594 * tree-sra.c (generate_subtree_copies): Updated comment.
13595 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
13596 obtained from the statement iterator instead.
13597 (load_assign_lhs_subreplacements): Removed parameters lhs and
13598 right_offset, which is obtained from top_racc instead. Parameter lacc
13599 is now expected to be the root of the processed tree rather than root's
13600 first child. Updated all callers.
13601
13602 2010-09-15 Joseph Myers <joseph@codesourcery.com>
13603
13604 * config/pdp11/pdp11.c (register_move_cost): Rename to
13605 pdp11_register_move_cost.
13606 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
13607 pdp11_register_move_cost.
13608 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
13609 pdp11_register_move_cost instead of register_move_cost.
13610
13611 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
13612
13613 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
13614 pattern for vmovn. Expansion in case of non
13615 -mvectorize-with-neon-quad.
13616 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
13617 non- -mvectorize-with-neon-quad case.
13618 (move_lo_quad_<mode>): New expansion to vmov into low part.
13619 (move_hi_quad_<mode>): New expansion to vmov into high part.
13620 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
13621 (move_lo_quad_v4sf): Likewise.
13622 (move_lo_quad_v8hi): Likewise.
13623 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
13624 low part.
13625 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
13626 high part.
13627 * config/arm/iterators.md (ANY128): New mode iterator.
13628 (V_narrow_pack): New mode attribute.
13629 (V_HALF): Add attribute.
13630 (V_DOUBLE): Add attribute.
13631 (V_mode_nunits): Add attribute.
13632
13633 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
13634
13635 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
13636 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
13637
13638 2010-09-15 Olivier Hainque <hainque@adacore.com>
13639 Jose Ruiz <ruiz@adacore.com>
13640
13641 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
13642 * config/alpha/osf5-unwind.h: New file.
13643
13644 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13645
13646 PR bootstrap/45672
13647 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
13648 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
13649 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
13650
13651 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13652
13653 * c-lang.h (struct lang_type): Add variable_size GTY option.
13654
13655 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13656
13657 PR bootstrap/45672
13658 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
13659
13660 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13661
13662 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
13663 result isn't used in memory address.
13664
13665 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13666
13667 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
13668 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
13669 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
13670 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
13671 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
13672 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
13673
13674 * target.def: Add units_per_simd_word to vectorize.
13675
13676 * targhooks.c (default_units_per_simd_word): New.
13677 * targhooks.h (default_units_per_simd_word): Likewise.
13678 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
13679 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13680 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
13681 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13682 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
13683 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13684 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
13685 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
13686
13687 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
13688 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
13689
13690 * tree-vect-stmts.c: Don't include "tm_p.h".
13691 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
13692 with targetm.vectorize.units_per_simd_word.
13693
13694 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
13695
13696 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
13697
13698 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
13699 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
13700
13701 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
13702 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
13703
13704 * doc/tm.texi: Regenerated.
13705
13706 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
13707
13708 * tree-vect-stmts.c: Include "tm_p.h".
13709
13710 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
13711 out of RTX_CODE.
13712
13713 2010-09-14 Martin Jambor <mjambor@suse.cz>
13714
13715 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
13716 location of generated statement. Changed all callers.
13717 (build_ref_for_model): New parameter loc which used to set location of
13718 all generated expressions. Changed all callers.
13719 (generate_subtree_copies): Likewise.
13720 (init_subtree_with_zero): Likewise.
13721 (sra_modify_expr): Set locations of all generated statements and
13722 expressions to the location the original statement.
13723 (handle_unscalarized_data_in_subtree): Likewise.
13724 (load_assign_lhs_subreplacements): Likewise.
13725 (sra_modify_constructor_assign): Likewise.
13726 (sra_modify_assign): Likewise.
13727
13728 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
13729
13730 PR target/45277
13731 PR target/45363
13732 PR target/45407
13733 * doc/install.texi (sparc*-*-*): New section.
13734 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
13735
13736 2010-09-14 Jakub Jelinek <jakub@redhat.com>
13737
13738 PR middle-end/45567
13739 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
13740 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
13741 (expand_builtin): Adjust caller.
13742 (expand_builtin_unop): Only use subtarget if it has the right mode.
13743
13744 2010-09-14 Tristan Gingold <gingold@adacore.com>
13745
13746 * configure.ac (plugins): Fix typos.
13747 * configure: Regenerate.
13748
13749 2010-09-14 Jakub Jelinek <jakub@redhat.com>
13750
13751 PR debug/45660
13752 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
13753 gen_type_die for function/method return type.
13754
13755 2010-09-14 Ira Rosen <irar@il.ibm.com>
13756
13757 PR tree-optimization/45470
13758 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13759 can throw an exception.
13760 * tree-vect-stmts.c (vectorizable_call): Likewise.
13761
13762 2010-09-14 DJ Delorie <dj@redhat.com>
13763
13764 PR target/44749
13765 * config/mep/mep-protos.h (mep_save_register_info,
13766 mep_reinit_regs, mep_init_regs): Declare.
13767
13768 * config/mep/mep.c: Move all target definitions to the end of the
13769 file to avoid the need for duplicate declarations.
13770 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
13771 (mep_reorg_erepeat): Remove unused variables.
13772 (mep_expand_builtin): Likewise.
13773
13774 * config/mep/mep-pragma.c: Don't include rtl.h.
13775 (INVALID_REGNUM): New.
13776 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
13777 functions.
13778 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
13779 Avoid enum/integer math.
13780
13781 2010-09-13 Joseph Myers <joseph@codesourcery.com>
13782
13783 PR target/44749
13784 * config/mep/t-mep (GTM_H): Add insn-constants.h.
13785 * config/mep/mep.c (mep_conditional_register_usage): Take no
13786 parameters.
13787 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
13788 prototype.
13789 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
13790 call to mep_conditional_register_usage.
13791
13792 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
13793
13794 PR debug/43937
13795 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
13796 the DECL as well.
13797
13798 2010-09-13 Jakub Jelinek <jakub@redhat.com>
13799
13800 PR rtl-optimization/45617
13801 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
13802 even if low N bits of X aren't known to be zero.
13803
13804 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
13805
13806 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
13807
13808 * config/i386/i386.c (initial_ix86_tune_features): Add
13809 X86_TUNE_VECTORIZE_DOUBLE.
13810 (ix86_units_per_simd_word): New.
13811
13812 * config/i386/i386.h (ix86_tune_indices): Add
13813 X86_TUNE_VECTORIZE_DOUBLE.
13814 (TARGET_VECTORIZE_DOUBLE): New.
13815 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
13816
13817 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
13818
13819 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
13820 (new_temp_expr_table): Allocate call_cnt vector.
13821 (free_temp_expr_table): Free it.
13822 (process_replaceable): Add call_cnt parm and set in vector.
13823 (find_replaceable_in_bb): Skip replacement if def/use span a call.
13824 (debug_ter): Dump call_cnt value, remove stderr uses.
13825
13826 2010-09-13 Jan Hubicka <jh@suse.cz>
13827
13828 * tree.c (build_zero_cst): New.
13829 * tree.h (build_zero_cst): Declare.
13830 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
13831 (get_base_constructor): Break out from ...
13832 (fold_const_aggregate_ref): Here; handle empty constructors.
13833
13834 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
13835
13836 * config/arm/arm.md: (define_attr "conds"): Update comment.
13837 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
13838 conds attribute to clob.
13839 (arm_sync_compare_and_swapsi): Likewise.
13840 (arm_sync_compare_and_swap<mode>): Likewise.
13841 (arm_sync_lock_test_and_setsi): Likewise.
13842 (arm_sync_lock_test_and_set<mode>): Likewise.
13843 (arm_sync_new_<sync_optab>si): Likewise.
13844 (arm_sync_new_nandsi): Likewise.
13845 (arm_sync_new_<sync_optab><mode>): Likewise.
13846 (arm_sync_new_nand<mode>): Likewise.
13847 (arm_sync_old_<sync_optab>si): Likewise.
13848 (arm_sync_old_nandsi): Likewise.
13849 (arm_sync_old_<sync_optab><mode>): Likewise.
13850 (arm_sync_old_nand<mode>): Likewise.
13851
13852 2010-09-13 Olivier Hainque <hainque@adacore.com>
13853
13854 * fwprop.c (forward_propagate_and_simplify): Only attach a
13855 REG_EQUAL note to an insn if the destination is a register.
13856 * gcse.c (try_replace_reg): Likewise.
13857
13858 2010-09-13 Richard Guenther <rguenther@suse.de>
13859
13860 PR tree-optimization/45611
13861 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
13862 (copy_ref_info): Likewise.
13863
13864 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
13865
13866 PR debug/45604
13867 PR debug/45419
13868 PR debug/45408
13869 * tree-pretty-print.c (dump_generic_node): Disregard top-level
13870 types of MEM_REF pointer types to the same type.
13871
13872 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
13873
13874 PR rtl-optimization/41087
13875 * ifcvt.c (noce_get_condition): Don't allow conditions with
13876 side-effects.
13877
13878 2010-09-12 Anatoly Sokolov <aesok@post.ru>
13879
13880 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13881 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
13882 * config/frv/frv.c (frv_register_move_cost): Make static. Change
13883 arguments type to reg_class_t. Add mode argument.
13884 (frv_memory_move_cost): New.
13885 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
13886
13887 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
13888
13889 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
13890 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
13891
13892 2010-09-10 Jan Hubicka <jh@suse.cz>
13893
13894 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
13895
13896 2010-09-10 Richard Guenther <rguenther@suse.de>
13897
13898 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
13899 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
13900 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
13901 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
13902 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
13903
13904 2010-09-10 Richard Guenther <rguenther@suse.de>
13905
13906 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
13907 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
13908 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
13909 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
13910
13911 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
13912
13913 PR middle-end/45634
13914 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
13915 of string folding is of integral type.
13916
13917 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
13918
13919 * doc/invoke.texi (-x): Fix typo.
13920
13921 2010-09-10 Richard Guenther <rguenther@suse.de>
13922
13923 PR debug/44115
13924 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
13925 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13926 Output DECL_DEBUG_EXPR.
13927 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13928 Input DECL_DEBUG_EXPR.
13929
13930 2010-09-10 Richard Guenther <rguenther@suse.de>
13931
13932 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
13933 (build_index_type): Implement in terms of build_range_type.
13934 (build_range_type): Do not allow NULL_TREE type, improve
13935 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
13936 if we didn't hash.
13937 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
13938 create a distinct copy of the type.
13939
13940 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
13941
13942 * configure: Regenerated.
13943 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
13944
13945 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13946
13947 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
13948 * config/arm/cortex-a9-neon.md: New and partially generated.
13949 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
13950
13951 2010-09-10 Richard Guenther <rguenther@suse.de>
13952
13953 * tree.h (build_index_2_type): Remove.
13954 * tree.c (build_index_2_type): Remove.
13955
13956 2010-09-10 Jakub Jelinek <jakub@redhat.com>
13957
13958 PR bootstrap/45630
13959 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
13960 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
13961 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
13962
13963 2010-09-10 Martin Jambor <mjambor@suse.cz>
13964
13965 PR tree-optimization/44972
13966 * tree-sra.c: Include toplev.h.
13967 (build_ref_for_offset): Entirely reimplemented.
13968 (build_ref_for_model): New function.
13969 (build_user_friendly_ref_for_offset): New function.
13970 (analyze_access_subtree): Removed build_ref_for_offset check.
13971 (propagate_subaccesses_across_link): Likewise.
13972 (create_artificial_child_access): Use
13973 build_user_friendly_ref_for_offset.
13974 (propagate_subaccesses_across_link): Likewise.
13975 (ref_expr_for_all_replacements_p): Removed.
13976 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
13977 (sra_modify_expr): Use build_ref_for_model.
13978 (load_assign_lhs_subreplacements): Likewise.
13979 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
13980 checks for return values of build_ref_for_offset.
13981 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
13982 build_ref_for_offset.
13983 * ipa-prop.h: Include gimple.h
13984 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
13985 (ipa_analyze_indirect_call_uses): Update comment.
13986 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
13987 (IPA_PROP_H): Likewise.
13988
13989 2010-09-10 Martin Jambor <mjambor@suse.cz>
13990
13991 PR tree-optimization/44972
13992 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
13993 calling build_ref_for_offset.
13994
13995 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13996
13997 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
13998 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
13999 * config/arm/arm-tune.md: Regenerate.
14000 * doc/invoke.texi (ARM Options): Document it.
14001
14002 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
14003
14004 * config/i386/i386.c: Include sched-int.h.
14005 (TARGET_SCHED_DISPATCH): Defined.
14006 (TARGET_SCHED_DISPATCH_DO): Defined.
14007 (DISPATCH_WINDOW_SIZE): Defined.
14008 (MAX_DISPATCH_WINDOWS): Defined.
14009 (MAX_INSN): Defined.
14010 (MAX_IMM): Defined.
14011 (MAX_IMM_SIZE): Defined.
14012 (MAX_IMM_32): Defined.
14013 (MAX_IMM_64): Defined.
14014 (MAX_LOAD): Defined.
14015 (MAX_STORE): Defined.
14016 (BIG): Defined.
14017 (dispatch_group): New.
14018 (num_allowable_groups): New.
14019 (group_name): New.
14020 (sched_insn_info_s): New.
14021 (dispatch_windows_s): New.
14022 (imm_info_s): New.
14023 (dispatch_window_list): New.
14024 (dispatch_window_list1): New.
14025 (get_mem_group): New.
14026 (is_cmp): New.
14027 (dispatch_violation): New.
14028 (is_branch): New.
14029 (is_prefetch): New.
14030 (init_window): New.
14031 (allocate_window): New.
14032 (init_dispatch_sched): New.
14033 (is_end_basic_block): New.
14034 (process_end_window): New.
14035 (allocate_next_window): New.
14036 (find_constant_1): New.
14037 (find_constant): New.
14038 (get_num_immediates): New.
14039 (has_immediate): New.
14040 (get_insn_path): New.
14041 (get_insn_group): New.
14042 (count_num_restricted): New.
14043 (fits_dispatch_window): New.
14044 (add_insn_window): New.
14045 (add_to_dispatch_window): New.
14046 (debug_dispatch_window_file): New.
14047 (debug_dispatch_window): New.
14048 (debug_insn_dispatch_info_file): New.
14049 (debug_ready_dispatch): New.
14050 (do_dispatch): New.
14051 (has_dispatch): New.
14052 * config/i386/i386.h (debug_ready_dispatch): Declared.
14053 (debug_dispatch_window): Declared.
14054 * config/i386/i386.opt (mdispatch-scheduler): New flag.
14055 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
14056 (TARGET_SCHED_DISPATCH_DO): New.
14057 * doc/tm.texi: Regererated.
14058 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
14059 ready_remove_first_dispatch
14060 (schedule_block): Call targetm.sched.dispatch and
14061 targetm.sched.dispatch_do.
14062 (sched_init): Call targetm.sched.dispatch and
14063 targetm.sched.dispatch_do.
14064 (ready_remove_first_dispatch): New.
14065 (number_in_ready): New.
14066 (get_ready_element): New.
14067 * hooks.c (hook_bool_rtx_int_false): New.
14068 (hook_void_rtx_int): New.
14069 * hooks.h (hook_bool_rtx_int_false): Declared.
14070 (hook_void_rtx_int): Declared.
14071 * sched-int.h (IS_DISPATCH_ON): Defined.
14072 (IS_CMP): Defined.
14073 (DISPATCH_VIOLATION): Defined.
14074 (FITS_DISPATCH_WINDOW): Defined.
14075 (DISPATCH_INIT): Defined.
14076 (ADD_TO_DISPATCH_WINDOW): Defined.
14077 (get_ready_element): Declared.
14078 (number_in_ready): Declared.
14079 * target.def (dispatch): Defined.
14080 (dispatch_do): Defined.
14081
14082 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
14083
14084 PR middle-end/45312
14085 * reload1.c (merge_assigned_reloads): Remove.
14086 (reload_as_needed): Don't call it.
14087
14088 2010-09-09 Anatoly Sokolov <aesok@post.ru>
14089
14090 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
14091 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14092 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14093
14094 2010-09-09 Matthias Klose <doko@ubuntu.com>
14095
14096 PR bootstrap/43847
14097 * configure.ac (--enable-plugin): Enhance for cross builds.
14098 * configure: Regenerate.
14099
14100 2010-09-09 Jan Hubicka <jh@suse.cz>
14101
14102 PR tree-optimization/45598
14103 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
14104 string folding is of integral type.
14105
14106 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14107
14108 * configure.ac (gnu_indirect_function): New test.
14109 * configure: Rebuilt.
14110 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
14111 * defaults.h (IFUNC_ASM_TYPE): Provide default.
14112
14113 * doc/extend.texi (Function Attributes): Document ifunc.
14114 * varasm.c (do_assemble_alias): Deal with ifuncs too.
14115
14116 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14117
14118 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
14119 epilogue instruction move.
14120
14121 2010-09-09 Jan Hubicka <jh@suse.cz>
14122
14123 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
14124 command line to allow more partitions than input files.
14125
14126 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
14127
14128 PR middle-end/44554
14129 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
14130
14131 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
14132
14133 PR middle-end/40386
14134 * ira.c (pseudo_for_reload_consideration_p): Don't use
14135 flag_ira_share_spill_slots.
14136
14137 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14138
14139 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
14140 point zero operands that fit into a single GPR.
14141 (s390_preferred_reload_class): Ensure we only return general-purpose
14142 register classes.
14143 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
14144 floating-point zero operands into GPRs.
14145 ("*mov<mode>_64"): Likewise.
14146 ("mov<mode>"): Likewise using lhi.
14147
14148 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14149
14150 * config/s390/s390.c (s390_symref_operand_p): Return false for
14151 literal pool references.
14152 (s390_check_qrst_address): Update caller.
14153
14154 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
14155
14156 * config/i386/predicates.md (ext_register_operand): Check that
14157 SUBREG_REG is really a register before looking for REGNO.
14158 (reg_not_xmm0_operand): Handle SUBREGs correctly.
14159 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
14160
14161 2010-09-09 Jakub Jelinek <jakub@redhat.com>
14162
14163 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
14164 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
14165 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
14166 * print-rtl.c (print_rtx): Likewise.
14167 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14168 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
14169 for ADDR_EXPR with non-addressable object.
14170 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
14171 (struct dw_val_struct): Add v.val_decl_ref.
14172 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
14173 Handle DW_OP_GNU_implicit_pointer.
14174 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
14175 (get_ref_die_offset_label): New function.
14176 (implicit_ptr_descriptor): New function.
14177 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
14178 (loc_descriptor): Likewise.
14179 (gen_variable_die): Put even definitions into decl_die_table.
14180 (resolve_addr_in_expr): Resolve still unresolved
14181 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
14182 return false.
14183 (dwarf2out_finish): Call output_location_lists after outputting
14184 .debug_info and .debug_abbrev instead of before.
14185
14186 2010-09-09 Roland McGrath <roland@redhat.com>
14187
14188 * dwarf2out.c (DWARF_REF_SIZE): Define.
14189 (size_of_loc_descr): Use it for DW_OP_call_ref.
14190
14191 2010-09-09 Alan Modra <amodra@gmail.com>
14192
14193 * doc/invoke.text: Reinstate mcmodel=medium.
14194 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
14195 CMODEL_MEDIUM as default.
14196 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
14197 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
14198 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
14199 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
14200
14201 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14202
14203 PR target/45250
14204 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
14205 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
14206 (builtin_longjmp): Likewise.
14207 (allocate_stack): Use hard_frame_pointer_rtx instead of
14208 frame_pointer_rtx.
14209 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
14210 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
14211 (pa_can_eliminate): Likewise.
14212 (TARGET_INTERNAL_ARG_POINTER): Define.
14213 (TARGET_CAN_ELIMINATE): Define.
14214 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
14215 pointer.
14216 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
14217 (pa_internal_arg_pointer, pa_can_eliminate,
14218 pa_initial_elimination_offset): New.
14219 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
14220 (HARD_FRAME_POINTER_REGNUM): Set to register three.
14221 (INITIAL_FRAME_POINTER_OFFSET): Delete.
14222 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
14223 Define.
14224 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
14225 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
14226 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
14227 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
14228 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
14229 new soft frame pointer.
14230 * config/pa/pa64-regs.h: Likewise.
14231
14232 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
14233
14234 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
14235 numerical constant.
14236 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
14237
14238 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
14239
14240 PR debug/45531
14241 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
14242
14243 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
14244
14245 PR debug/45419
14246 PR debug/45408
14247 * tree-pretty-print.c (dump_generic_node): Disregard top-level
14248 qualifiers in otherwise equal MEM_REF pointer types.
14249 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
14250 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
14251
14252 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14253
14254 PR target/44392
14255 * config/arm/arm.md (bswapsi2): Handle condition correctly
14256 for armv6 and optimize_size.
14257
14258 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14259
14260 PR other/18555
14261 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
14262
14263 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
14264
14265 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
14266 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
14267 ix86_expand_strlen, legitimate_pic_address_disp_p,
14268 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
14269 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
14270 ix86_check_movabs, ix86_secondary_memory_needed): Change function
14271 prototype to bool.
14272 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
14273 return_in_memory_ms_64, ix86_check_movabs,
14274 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
14275 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
14276 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
14277 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
14278 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
14279 ix86_secondary_memory_needed): Change to bool. Return
14280 "true" and "false" values.
14281 * config/i386/i386.md: Return "true" and "false" values.
14282
14283 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14284
14285 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14286 run_expensive_tests.
14287
14288 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14289
14290 * toplev.c (output_stack_usage): Use lbasename instead of basename.
14291
14292 2010-09-08 Martin Jambor <mjambor@suse.cz>
14293
14294 PR other/45443
14295 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
14296 at -O3.
14297
14298 2010-09-08 Richard Guenther <rguenther@suse.de>
14299
14300 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
14301 (visit): Adjust.
14302 (iterative_hash_gimple_type): Likewise.
14303 (gimple_type_hash): Likewise.
14304 (gimple_register_type): Likewise.
14305 (print_gimple_types_stats): Likewise.
14306 (free_gimple_type_tables): Likewise.
14307
14308 2010-09-08 Michael Matz <matz@suse.de>
14309
14310 PR tree-optimization/43430
14311 * tree-vect-stmts.c (vectorizable_condition): Support multiple
14312 copies for conditional statements if it's not part of a reduction.
14313
14314 2010-09-08 Michael Matz <matz@suse.de>
14315
14316 PR tree-optimization/33244
14317 * tree-ssa-sink.c (statement_sink_location): Don't sink into
14318 empty loop latches.
14319
14320 2010-09-08 Richard Guenther <rguenther@suse.de>
14321
14322 PR tree-optimization/45578
14323 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
14324 Be more careful when transfering alignment information to
14325 the new induction variable.
14326 (copy_ref_info): Likewise.
14327
14328 2010-09-08 Richard Guenther <rguenther@suse.de>
14329
14330 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
14331 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
14332
14333 2010-09-08 Arnaud Charlet <charlet@adacore.com>
14334
14335 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
14336 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
14337
14338 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
14339
14340 PR doc/45587
14341 * doc/md.texi: Fixed modes on several standard pattern names.
14342
14343 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
14344
14345 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
14346 (ashl<mode>3): ...this.
14347 (loongson_psra<V_suffix>): Rename to...
14348 (ashr<mode>3): ...this.
14349 (loongson_psrl<V_suffix>): Rename to...
14350 (lshr<mode>3): ...this.
14351 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
14352 (CODE_FOR_loongson_psllw): Define.
14353 (CODE_FOR_loongson_psrlh): Define.
14354 (CODE_FOR_loongson_psrlw): Define.
14355 (CODE_FOR_loongson_psrah): Define.
14356 (CODE_FOR_loongson_psraw): Define.
14357
14358 2010-09-07 Richard Henderson <rth@redhat.com>
14359
14360 * tree-vect-data-refs.c: Include tm_p.h.
14361 * Makefile.in (tree-vect-data-refs.o): Update deps.
14362 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
14363 Move delarations outside #ifdef RTX_CODE.
14364
14365 2010-09-07 Richard Henderson <rth@redhat.com>
14366
14367 * final.c (rest_of_handle_final): Unconditionally do
14368 output_function_exception_table before assemble_end_function.
14369
14370 2010-09-07 Jan Hubicka <jh@suse.cz>
14371
14372 * tree-inline.c (tree_inlinable_function_p): Do not test
14373 DECL_REPLACEABLE_P.
14374 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
14375 update_callee_keys, cgraph_decide_inlining): Test function availability.
14376 * cif-code.def (OVERWRITABLE): New code.
14377
14378 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
14379 Jack Howarth <howarth@bromo.med.uc.edu>
14380
14381 PR target/36502
14382 PR target/42313
14383 PR target/44651
14384 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
14385 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
14386 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
14387 MAX macro.
14388
14389 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
14390
14391 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
14392 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
14393
14394 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
14395
14396 * config.gcc: Don't append t-android for Android targets.
14397
14398 * config/t-android: Removed.
14399
14400 2010-09-07 Richard Henderson <rth@redhat.com>
14401
14402 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
14403 * doc/tm.texi.in: Add doc marker.
14404 * doc/tm.texi: Rebuild.
14405 * except.c (switch_to_exception_section): Always build.
14406 (output_one_function_exception_table): Move section switch,
14407 personality output, and label output ...
14408 (output_function_exception_table): ... here. Use the new
14409 personality hook.
14410
14411 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
14412 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
14413 TARGET_ASM_INIT_SECTIONS): New.
14414 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
14415 make static.
14416 (TARGET_ASM_UNWIND_EMIT): Update to match.
14417 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
14418
14419 * config/arm/arm.c (arm_asm_emit_except_personality): New.
14420 (arm_asm_init_sections): New.
14421 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
14422
14423 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14424
14425 * config/arm/arm.md: Remove unused variable.
14426
14427 2010-09-07 Anatoly Sokolov <aesok@post.ru>
14428
14429 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14430 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
14431 (m32r_memory_move_cost): New function.
14432
14433 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
14434
14435 * config.gcc: Append t-android for Android targets.
14436
14437 * config/t-android: New.
14438
14439 2010-09-07 Richard Henderson <rth@redhat.com>
14440
14441 * target.def (unwind_emit_before_insn): New hook.
14442 * doc/tm.texi.in: Add @hook marker for it.
14443 * doc/tm.texi: Rebuild.
14444 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
14445
14446 2010-09-07 Martin Jambor <mjambor@suse.cz>
14447
14448 PR fortran/43665
14449 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
14450 are any type attributes.
14451
14452 2010-09-07 Jan Hubicka <jh@suse.cz>
14453
14454 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
14455 array_ref_low_bound in string access folding.
14456
14457 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
14458
14459 PR target/45206
14460 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
14461 eh_return fixup sequence.
14462
14463 2010-09-07 Jan Hubicka <jh@suse.cz>
14464
14465 * gimple-fold.c (maybe_fold_reference): Verify that operand is
14466 gimple_min_invariant.
14467
14468 2010-09-07 Richard Guenther <rguenther@suse.de>
14469
14470 PR middle-end/45569
14471 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
14472 nor CONSTRUCTOR can trap.
14473 * tree-complex.c (update_complex_assignment): Update EH info.
14474
14475 2010-09-07 Richard Guenther <rguenther@suse.de>
14476
14477 PR middle-end/45569
14478 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
14479 * passes.c (execute_function_todo): Do not verify anything if
14480 we saw errors.
14481
14482 2010-09-07 Richard Guenther <rguenther@suse.de>
14483
14484 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
14485
14486 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
14487
14488 PR target/43137
14489 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
14490 New define_mode_attrs.
14491 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
14492 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
14493 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
14494 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
14495 Remove pool_range attribute.
14496 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
14497 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
14498 pool_range and neg_pool_range attributes.
14499 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
14500 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
14501 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
14502
14503 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
14504
14505 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
14506 check glibc.
14507
14508 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
14509
14510 PR target/22152
14511 * config/i386/mmx.md (*mov<mode>_internal_rex64,
14512 *mov<mode>_internal_avx, *mov<mode>_internal,
14513 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
14514 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
14515
14516 2010-09-06 Mark Mitchell <mark@codesourcery.com>
14517
14518 * c-typeck.c (do_warn_double_promotion): Remove.
14519 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
14520 Objective-C++ too.
14521
14522 2010-09-06 Anatoly Sokolov <aesok@post.ru>
14523
14524 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
14525 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
14526 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
14527 argument type to reg_class_t. Change result type to bool.
14528 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14529
14530 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
14531
14532 PR libobjc/19850
14533 * gthr-posix.h (__gthread_objc_thread_detach): Use
14534 _objc_thread_attribs when detaching a thread.
14535 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
14536
14537 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
14538
14539 PR target/45524
14540 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
14541 * configure: Regenerated.
14542
14543 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14544
14545 * combine.c (try_combine): Set subst_low_luid to i0.
14546
14547 2010-09-06 Richard Guenther <rguenther@suse.de>
14548
14549 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
14550 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
14551 (build_aligned_type): Declare.
14552 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
14553 (check_aligned_type): New function.
14554 (build_aligned_type): Likewise.
14555 * expr.c (expand_assignment): Handle misaligned stores via
14556 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
14557 (expand_expr_real_1): Likewise.
14558 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
14559 * tree-vect-stmts.c (vectorizable_store): Do not build
14560 MISALIGNED_INDIRECT_REF but initialize alignment information.
14561 (vectorizable_load): Likewise.
14562 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
14563 handling.
14564 * cfgexpand.c (expand_debug_expr): Likewise.
14565 * dwarf2out.c (loc_list_from_tree): Likewise.
14566 * fold-const.c (maybe_lvalue_p): Likewise.
14567 (operand_equal_p): Likewise.
14568 (build_fold_addr_expr_with_type_loc): Likewise.
14569 * gimplify.c (gimplify_addr_expr): Likewise.
14570 (gimplify_expr): Likewise.
14571 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
14572 (verify_gimple_assign_single): Likewise.
14573 * tree-dump.c (dequeue_and_dump): Likewise.
14574 (tree_could_trap_p): Likewise.
14575 * tree-predcom.c (ref_at_iteration): Likewise.
14576 * tree-pretty-print.c (dump_generic_node): Likewise.
14577 (op_code_prio): Likewise.
14578 (op_symbol_code): Likewise.
14579 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
14580 * tree-ssa-loop-im.c (for_each_index): Likewise.
14581 (gen_lsm_tmp_name): Likewise.
14582 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
14583 (find_interesting_uses_address): Likewise.
14584 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
14585 * tree-ssa-operands.c (get_expr_operands): Likewise.
14586 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14587 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14588 (ao_ref_init_from_vn_reference): Likewise.
14589 * tree.c (staticp): Likewise.
14590 (build1_stat): Likewise.
14591 (reference_alias_ptr_type): Likewise.
14592 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14593 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
14594 MISALIGNED_INDIRECT_REF handling.
14595
14596 2010-09-06 Richard Guenther <rguenther@suse.de>
14597
14598 PR tree-optimization/45534
14599 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
14600 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
14601 on the target.
14602 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
14603 valid on the target.
14604
14605 2010-09-06 Andreas Schwab <schwab@redhat.com>
14606
14607 * configure.ac: Quote argument of AC_MSG_WARN.
14608 * configure: Regenerate.
14609
14610 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
14611
14612 * sel-sched.c (move_cond_jump): Correct arguments to
14613 maybe_tidy_empty_bb.
14614 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
14615
14616 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
14617
14618 PR rtl-optimization/44919
14619 * sel-sched.c (move_cond_jump): Remove assert, check that
14620 the several blocks case can only happen with mutually exclusive
14621 insns instead. Rewrite the movement code to support moving through
14622 several basic blocks.
14623
14624 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
14625
14626 * config/i386/i386.md (iptrsize): New mode attribute.
14627 (tp_seg): Ditto.
14628 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
14629 mode iterator.
14630 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
14631 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
14632 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
14633 (stack_tls_protect_set_<mode>): Ditto from
14634 stack_tls_protect_set_{si,di}. Use %@ to output segment register
14635 of thread base pointer load.
14636 (stack_tls_protect_test_<mode>): Ditto from
14637 stack_tls_protect_test_{si,di}. Use %@ to output segment register
14638 of thread base pointer load.
14639 (stack_protect_set): Rewrite using indirect functions.
14640 (stack_protect_test): Ditto.
14641 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
14642 (ix86_print_operand): Handle '@'.
14643
14644 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
14645
14646 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
14647 MINUS_EXPR.
14648
14649 2010-09-05 Mark Mitchell <mark@codesourcery.com>
14650
14651 * doc/invoke.texi: Document -Wdouble-promotion.
14652 * c-typeck.c (convert_arguments): Check for implicit conversions
14653 from float to double.
14654 (do_warn_double_promotion): New function.
14655 (build_conditional_expr): Use it.
14656 (build_binary_op): Likewise.
14657
14658 2010-09-05 Richard Guenther <rguenther@suse.de>
14659
14660 PR tree-optimization/45535
14661 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
14662 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
14663 dereferencing it.
14664 (indirect_refs_may_alias_p): Likewise.
14665
14666 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
14667
14668 * config/sh/sh.c (sh_option_override): Make static.
14669 Adjust comments. Declare.
14670 (sh_function_value_regno_p): Likewise.
14671 (sh_register_move_cost): Modify the arguments, make static.
14672 Adjust comments. Declare.
14673 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
14674 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14675 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
14676 REGISTER_MOVE_COST): Delete.
14677 * config/sh/sh-protos.h (sh_override_options): Delete.
14678 (sh_register_move_cost): Delete.
14679 (sh_function_value_regno_p): Delete.
14680
14681 2010-09-04 Anatoly Sokolov <aesok@post.ru>
14682
14683 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
14684 m32r_function_value_regno_p): New functions.
14685 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14686 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
14687 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
14688 FUNCTION_VALUE_REGNO_P): Remove.
14689
14690 2010-09-04 Jan Hubicka <jh@suse.cz>
14691
14692 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
14693 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
14694 fold_read_from_constant_string.
14695
14696 * gimple.h (canonicalize_constructor_val): Declare.
14697 * gimple-fold.c (canonicalize_constructor_val): New function.
14698 (get_symbol_constant_value):Use it.
14699 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
14700
14701 2010-09-04 Jan Hubicka <jh@suse.cz>
14702
14703 * tree-switch-conversion.c (build_one_array): Set constructor to be
14704 static.
14705 * varpool.c (varpool_finalize_decl): Compute const_value_known.
14706
14707 2010-09-04 Richard Guenther <rguenther@suse.de>
14708
14709 PR bootstrap/45519
14710 * tree-flow.h (force_gimple_operand_1): Declare.
14711 (force_gimple_operand_gsi_1): Likewise.
14712 * gimplify.c (force_gimple_operand_1): New worker taking a
14713 gimple predicate for ...
14714 (force_gimple_operand): ... which now wraps it.
14715 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
14716 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
14717 last change.
14718 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
14719 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
14720 (create_mem_ref): Likewise.
14721
14722 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
14723
14724 * config/i386/predicates.md (sse_reg_operand): New predicate.
14725 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
14726 predicate for operand 1.
14727 (XFmode push splitter): Use fp_register_operand predicate
14728 for operand 1.
14729 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
14730 (SF-DF float_extend push splitter): Add reload_completed insn
14731 predicate.
14732 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
14733 MODEF mode macro. Add reload_completed insn predicate.
14734
14735 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
14736
14737 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
14738 (struct df_extract_ref): Remove.
14739 (union df_ref_d): Remove extract_ref member.
14740 (df_ref_create): Remove last three arguments.
14741 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
14742 * df-scan.c (df_ref_record): Remove last three arguments, do not
14743 pass them to df_ref_create_structure.
14744 (df_uses_record): Remove first and last three arguments. Replace
14745 first argument with DF_REF_REGULAR, adjust calls to remove the
14746 width, offset and mode. Always call recursively on the second
14747 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
14748 (df_ref_create_structure): Remove first argument.
14749 (struct df_scan_problem_data): Remove ref_extract_pool.
14750 (df_scan_free_internal): Do not free it.
14751 (df_scan_alloc): Do not allocate it.
14752 (df_ref_create): Remove last three arguments, do not pass them to
14753 df_ref_create_structure.
14754 (df_free_ref): Remove DF_REF_EXTRACT case.
14755 (df_notes_rescan): Adjust call to df_uses_record.
14756 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
14757 Remove DF_REF_EXTRACT case.
14758 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
14759 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
14760 and SUBREG definitions.
14761 (df_get_conditional_uses): Remove references to width/offset/mode,
14762 adjust call to df_ref_create_structure.
14763 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
14764 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
14765 calls to df_uses_record and df_ref_record.
14766 * fwprop.c (update_df): Remove references to width/offset/mode,
14767 adjust call to df_ref_create.
14768
14769 2010-09-03 Jan Hubicka <jh@suse.cz>
14770
14771 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
14772 (build_cdtor_fns): Update use of build_cdtor.
14773
14774 2010-09-03 Joseph Myers <joseph@codesourcery.com>
14775
14776 * doc/options.texi (SeparateAlias): Document.
14777 * opt-functions.awk (switch_flags): Handle SeparateAlias.
14778 * opth-gen.awk: Generate enumeration names for options marked
14779 SeparateAlias, but not for those marked Ignore.
14780 * opts-common.c (generate_canonical_option): Don't output separate
14781 argument for options marked CL_SEPARATE_ALIAS.
14782 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
14783 * opts.h (CL_SEPARATE_ALIAS): New.
14784 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
14785 CL_COMMON): Adjust definitions.
14786 * config/i386/darwin.opt, config/mips/sde.opt: New.
14787 * common.opt (fdump-final-insns): New.
14788 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14789 i386/darwin.opt.
14790 (mips*-sde-elf*): Add mips/sde.opt.
14791 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
14792 -mno-data-in-code and -mcode-xonly here.
14793 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
14794 * gcc.c (option_map): Add "j" to --dump entry.
14795 (translate_options): Don't translate -d to -foutput-class-dir= here.
14796
14797 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
14798
14799 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
14800 DR_IS_WRITE.
14801 (compute_all_dependences): Same.
14802 (create_rdg_edge_for_ddr): Same.
14803 * tree-data-ref.h (DR_IS_WRITE): New.
14804 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
14805 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
14806 (write_memrefs_written_at_least_once): Same.
14807 * tree-predcom.c (suitable_component_p): Same.
14808 (determine_roots_comp): Same.
14809 (execute_load_motion): Same.
14810 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
14811 (vect_enhance_data_refs_alignment): Same.
14812 (vect_analyze_group_access): Same.
14813
14814 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
14815
14816 PR testsuite/42843
14817 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
14818 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
14819
14820 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
14821
14822 * dwarf2out.c (file scope): Remove #if0'd code.
14823 (gen_subprogram_die): Same.
14824
14825 2010-09-03 Jakub Jelinek <jakub@redhat.com>
14826
14827 PR middle-end/45484
14828 * dwarf2out.c (flush_queued_reg_saves): Rename to...
14829 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
14830 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
14831 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
14832 * config/i386/i386.c (output_set_got): Call it.
14833
14834 2010-09-03 Michael Matz <matz@suse.de>
14835
14836 PR middle-end/45415
14837 * tree-sra.c (sra_modify_assign): If we modify the statement,
14838 say so.
14839
14840 * tree-ssa.c (verify_ssa): Check number of operands and links
14841 per statement to agree.
14842
14843 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14844 Iain Sandoe <iains@gcc.gnu.org>
14845
14846 PR target/45476
14847 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
14848 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
14849 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14850
14851 2010-09-03 Richard Guenther <rguenther@suse.de>
14852
14853 * lto-streamer-out.c (output_function): Output function
14854 start and end loci.
14855 * lto-streamer-in.c (input_function): Input function start
14856 and end loci.
14857
14858 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14859
14860 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
14861 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
14862 * configure: Regenerate.
14863 * aclocal.m4: Regenerate.
14864
14865 2010-09-03 Jan Hubicka <jh@suse.cz>
14866
14867 PR lto/44812
14868 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
14869 on functions/variables in other partition.
14870
14871 2010-09-03 Jan Hubicka <jh@suse.cz>
14872
14873 * cgraph.h (struct varpool_node): Add const_value_known.
14874 (varpool_decide_const_value_known): Declare.
14875 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
14876 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
14877 (input_varpool_node): Restore const_value_known.
14878 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
14879 initializer folding.
14880 * ipa.c (ipa_discover_readonly_nonaddressable_var,
14881 function_and_variable_visibility): Compute const_value_known.
14882 * gimple-fold.c (get_symbol_constant_value): Use varpool for
14883 initializer folding.
14884 * varpool.c (varpool_decide_const_value_known): New function.
14885
14886 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14887
14888 * config/i386/i386.md: Remove empty preparation statements
14889 from splitters.
14890
14891 2010-09-03 Jan Hubicka <jh@suse.cz>
14892
14893 * passes.c (rest_of_decl_compilation): Do not add local vars into
14894 varpool.
14895 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
14896 static or extern vars are in varpool.
14897 (varpool_finalize_decl): Sanity check that only static vars are
14898 finalized.
14899
14900 2010-09-03 Jakub Jelinek <jakub@redhat.com>
14901
14902 PR debug/45500
14903 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
14904 not just generic vectors with BLKmode.
14905
14906 2010-09-03 Richard Guenther <rguenther@suse.de>
14907
14908 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
14909 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
14910 * tree.h (TMR_SYMBOL): Remove.
14911 (TMR_BASE, TMR_OFFSET): Adjust.
14912 (TMR_INDEX2): New.
14913 * alias.c (ao_ref_from_mem): Use TMR_BASE.
14914 * builtins.c (get_object_alignment): Merge TMR_BASE and
14915 TMR_SYMBOL handling.
14916 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
14917 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
14918 handling. Also allow TARGET_MEM_REF as base address.
14919 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
14920 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
14921 base. Gimplify TMR_INDEX2.
14922 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
14923 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14924 (get_addr_base_and_unit_offset): Likewise.
14925 * tree-eh.c (tree_could_trap_p): Likewise.
14926 * tree-pretty-print.c (dump_generic_node): Likewise.
14927 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
14928 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
14929 base to index2.
14930 (get_address_description): Reconstruct addres description
14931 from merged TMR_BASE and TMR_INDEX2.
14932 (maybe_fold_tmr): Fold propagated addresses.
14933 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
14934 MEM_REF and TARGET_MEM_REF paths.
14935 (indirect_refs_may_alias_p): Likewise.
14936 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
14937 instead of TMR_SYMBOL.
14938 * tree-ssa-operands.c (get_tmr_operands): Simplify.
14939 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
14940 according to changes ...
14941 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
14942 Split TARGET_MEM_REF into two fields plus the base.
14943 * tree.c (mem_ref_offset): Simplify.
14944 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
14945 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
14946 Strip NOPs when folding MEM_REF addresses.
14947 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
14948 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
14949 (fold_gimple_assign): ... not here.
14950
14951 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
14952
14953 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
14954 * config/mips/mips.c (mips_shift_truncation_mask): New function.
14955 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14956
14957 2010-09-02 Richard Henderson <rth@redhat.com>
14958
14959 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
14960 instead of readelf in the test.
14961 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
14962 in the .debug_frame section for coff targets.
14963 * configure: Rebuild.
14964
14965 2010-09-02 Anatoly Sokolov <aesok@post.ru>
14966
14967 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
14968 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
14969 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14970 (m32c_class_likely_spilled_p): Make static. Change argument type to
14971 reg_class_t. Change result type to bool.
14972
14973 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14974
14975 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
14976 to convert (double)(long) into a single FRIZ instruction or not
14977 when -ffast-math is used.
14978
14979 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
14980 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
14981 or FRIZ instruction if -ffast-math.
14982 * config/rs6000/rs6000.md (friz): Ditto.
14983
14984 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
14985
14986 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14987
14988 * opth-gen.awk (quote, comma): Remove unused variables.
14989
14990 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
14991
14992 * arm.c (arm_override_options): Correct fall-back code to use
14993 SUBTARGET_CPU_DEFAULT.
14994
14995 2010-09-02 Julian Brown <julian@codesourcery.com>
14996
14997 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
14998 unspecs.
14999 (vcond<mode>, vcondu<mode>): New expanders.
15000 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
15001 comparisons with zero.
15002 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
15003 * config/arm/constraints.md (Dz): New constraint.
15004
15005 2010-09-02 Anatoly Sokolov <aesok@post.ru>
15006
15007 * target.def (class_likely_spilled_p): New hook.
15008 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
15009 * doc/tm.texi: Regenerate.
15010 * targhooks.c (default_class_likely_spilled_p): New function.
15011 * targhooks.h (default_class_likely_spilled_p): Declare.
15012 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
15013 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
15014 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
15015 Use fixed_reg_set instead of fixed_regs.
15016 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
15017 * calls.c (avoid_likely_spilled_reg): Ditto.
15018 * ira-conflicts.c (ira_build_conflicts): Ditto.
15019 * ira.c (update_equiv_regs): Ditto.
15020 * mode-switching.c (create_pre_exit): Ditto.
15021 * regmove.c (find_matches): Ditto.
15022 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
15023 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
15024 (small_register_class_p): New inline function.
15025 (push_secondary_reload, find_reusable_reload, find_reloads): Use
15026 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
15027
15028 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
15029 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
15030 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
15031
15032 2010-09-02 Richard Guenther <rguenther@suse.de>
15033
15034 PR tree-optimization/44937
15035 PR tree-optimization/45412
15036 * ipa-split.c (split_function): Properly remove PHI nodes.
15037
15038 2010-09-02 Joseph Myers <joseph@codesourcery.com>
15039
15040 * opts.h (struct cl_option): Add warn_message field.
15041 (struct cl_decoded_option): Add warn_message field.
15042 * doc/options.texi (Ignore, Warn): Document.
15043 * opt-functions.awk (needs_state_p): Don't consider aliases or
15044 ignored options to need state saved.
15045 * optc-gen.awk: Handle Warn and Ignore.
15046 * opth-gen.awk: Output OPT_SPECIAL_ignore.
15047 * opts-common.c (decode_cmdline_option): Set warn_message field.
15048 Handle ignored options.
15049 (decode_cmdline_options_to_array, generate_option,
15050 generate_option_input_file): Set warn_message field.
15051 (read_cmdline_option): Generate warnings from warn_message field.
15052 Handle ignored options.
15053 * common.opt (Wunreachable-code, fargument-alias,
15054 fargument-noalias, fargument-noalias-global,
15055 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
15056 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
15057 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
15058 ftree-salias): Mark Ignore.
15059 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
15060 -mintel-syntax and -mno-intel-syntax here.
15061 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
15062 using Warn.
15063 * opts.c (common_handle_option): Don't handle options marked as
15064 ignored.
15065 (enable_warning_as_error): Handle ignored options.
15066
15067 2010-09-02 Joseph Myers <joseph@codesourcery.com>
15068
15069 PR driver/44076
15070 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
15071 alias_target fields.
15072 * opt-functions.awk (opt_sanitized_name): Don't handle
15073 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
15074 * optc-gen.awk: Generate alias fields.
15075 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
15076 Don't generate such constants for aliases.
15077 * opts-common.c (generate_canonical_option): New.
15078 (decode_cmdline_option): Handle aliases. Use
15079 generate_canonical_option for known options instead of copying the
15080 input option text.
15081 * doc/options.texi (Alias): Document.
15082 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
15083 fstack-check, specs): Mark as aliases.
15084 * gcc.c (driver_handle_option): Canonicalize -L options to joined
15085 arguments.
15086 (driver_handle_option): Don't handle OPT_specs.
15087 * opts.c (common_handle_option): Don't handle options marked as
15088 aliases.
15089 (enable_warning_as_error): Handle aliases.
15090 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
15091 OPT_Wlarger_than_eq.
15092 * tree-optimize.c (tree_rest_of_compilation): Use
15093 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
15094
15095 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
15096
15097 * config/i386/i386.md (nonmemory_operand): New mode attribute.
15098 (push memory peephole2): Macroize peepholes using SWI mode iterator.
15099 (move immediate to memory peephole2): Macroize peepholes using
15100 SWI124 mode iterator.
15101 (non-pairable NOT peephole2): Macroize peepholes using SWI124
15102 mode iterator.
15103 (simple lea add peephole2): Macroize peepholes using SWI48
15104 mode iterator.
15105 (simple lea mult peephole2): Ditto.
15106 (imul by 3,5,9 to lea peephole2): Ditto.
15107 (mov $-1, reg peephole2): Macroize peepholes using SWI248
15108 mode iterator.
15109 (imul $32bit_imm,mem,reg peephole2): Ditto.
15110 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
15111
15112 2010-09-02 Ian Bolton <ian.bolton@arm.com>
15113
15114 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
15115
15116 2010-09-02 Olivier Hainque <hainque@adacore.com>
15117
15118 PR middle-end/44763
15119 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
15120 (allocno_priority_compare_func): Use it instead of a straight
15121 difference computation over priorities.
15122
15123 2010-09-02 Andi Kleen <ak@linux.intel.com>
15124
15125 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
15126
15127 2010-09-02 Ira Rosen <irar@il.ibm.com>
15128
15129 * tree-vectorizer.h (get_later_stmt): New function.
15130 (vect_analyze_data_ref_dependences): Add argument.
15131 * tree-vect-loop.c (vect_analyze_loop): Update call to
15132 vect_analyze_data_ref_dependences.
15133 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
15134 New function.
15135 (vect_analyze_data_ref_dependence): Add argument for basic block
15136 dependencies. Check dependencies in basic block vectorization.
15137 (vect_analyze_data_ref_dependences): Add argument and update call to
15138 vect_analyze_data_ref_dependences.
15139 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
15140 (vect_bb_vectorizable_with_dependencies): New.
15141 (vect_slp_analyze_bb): Check dependencies in basic block.
15142 (vect_schedule_slp_instance): Insert stores before the last store in
15143 SLP instance.
15144
15145 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
15146
15147 PR target/45476
15148 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
15149 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
15150
15151 2010-09-01 Jakub Jelinek <jakub@redhat.com>
15152
15153 PR middle-end/45458
15154 * bb-reorder.c (add_labels_and_missing_jumps): Treat
15155 bbs ending with throwing insns like blocks ending with a call.
15156 (fix_up_fall_thru_edges): Likewise.
15157
15158 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
15159
15160 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
15161 (m32c_function_arg_advance): Delete.
15162 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15163 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
15164 comments. Take a const_tree and a bool. Declare.
15165 (m32c_function_arg_advance): Likewise.
15166 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15167
15168 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
15169
15170 PR target/45476
15171 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
15172 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
15173 * config/i386/mingw32.h: ... here.
15174
15175 2010-09-01 Andi Kleen <ak@linux.intel.com>
15176
15177 PR lto/45475
15178 * lto-streamer-in.c (lto_input_ts_target_option): Add.
15179 (lto_input_tree_pointers): Call lto_input_ts_target_option.
15180 * lto-streamer-out (lto_output_ts_target_option): Add.
15181 (lto_output_tree_pointers): Call lto_output_ts_target_option.
15182
15183 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
15184
15185 PR/target 45452
15186 * config/i386/cygwin.h: Change order of specified import libraries.
15187 * config/i386/mingw32.h: Likewise.
15188 * config/i386/t-cygwin: Likewise.
15189 * config/i386/t-mingw32: Likewise.
15190 * config/i386/t-mingw-w32: Likewise.
15191 * config/i386/t-mingw-w64: Likewise.
15192
15193 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15194
15195 * config/arm/neon-schedgen.ml (core): New type.
15196 (allCores): List of supported cores.
15197 (availability_table): Add supported cores.
15198 (collate_bypasses): Accept core as a parameter.
15199 (worst_case_latencies_and_bypasses): Accept core as a parameter.
15200 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
15201 and coreStr to get tune attribute and prefix for functional units.
15202 (emit_bypasses): Accept core name and use it.
15203 (calculate_per_core_availability_table): New.
15204 (filter_core): New.
15205 (calculate_core_availability_table): New.
15206 (main): Use calculate_core_availablity_table.
15207 * config/arm/cortex-a8-neon.md: Update copyright year.
15208 Regenerated from ml file and merged in.
15209 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
15210 cortex_a8_neon_mrc.
15211
15212 2010-09-01 Ian Bolton <ian.bolton@arm.com>
15213
15214 * Makefile.in (tree-switch-conversion.o): Update dependencies.
15215
15216 2010-09-01 Richard Guenther <rguenther@suse.de>
15217
15218 * alias.c (ao_ref_from_mem): Adjust.
15219 * builtins.c (get_object_alignment): Likewise.
15220 * cfgexpand.c (expand_debug_expr): Likewise.
15221 * gimple.c (get_base_address): Likewise.
15222 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15223 (get_addr_base_and_unit_offset): Likewise. Fix for
15224 both TMR_SYMBOL and TMR_BASE being set.
15225 * tree-eh.c (tree_could_trap_p): Likewise.
15226 * gimplify.c (gimplify_expr): Do not attempt to gimplify
15227 TMR_SYMBOL. Always gimplify TMR_BASE.
15228 * tree-cfg.c (verify_types_in_gimple_reference): Verify
15229 TMR_BASE if there is a TMR_SYMBOL.
15230 * tree-pretty-print.c (dump_generic_node): Adjust.
15231 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
15232 (tree_mem_ref_addr): Likewise.
15233 (create_mem_ref_raw): Likewise.
15234 (move_fixed_address_to_symbol): Likewise.
15235 (create_mem_ref): Likewise.
15236 (dump_mem_address): Likewise.
15237 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
15238 Fix for both TMR_SYMBOL and TMR_BASE being set.
15239 (indirect_refs_may_alias_p): Likewise.
15240 * tree-ssa-operands.c (get_tmr_operands): Adjust.
15241 * tree.def (TARGET_MEM_REF): Adjust documentation.
15242
15243 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
15244
15245 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
15246 Rename from X86_TUNE_ADD_ESP_4.
15247 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
15248 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
15249 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
15250 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
15251 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
15252 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
15253 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
15254 * config/i386/i386.c (initial_ix86_tune_features)
15255 <X86_TUNE_SINGLE_POP>: Invert members.
15256 <X86_TUNE_DOUBLE_POP>: Ditto.
15257 <X86_TUNE_SINGLE_PUSH>: Ditto.
15258 <X86_TUNE_DOUBLE_PUSH>: Ditto.
15259 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
15260 No longer exported.
15261 (push peephole2 patterns): Macroize peepholes using P mode iterator.
15262 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
15263 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
15264 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
15265
15266 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
15267
15268 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
15269 a volatile LHS if the constructor has only one element.
15270
15271 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
15272
15273 PR bootstrap/45321
15274 * tree.c (stdarg_p): Make fntype parameter const.
15275 * tree.h (stdarg_p): Likewise.
15276 (function_args_iterator): Remove unused fntype field.
15277 (function_args_iter_init): Do not initialize fntype
15278 field. Make fntype parameter const.
15279
15280 2010-09-01 Richard Guenther <rguenther@suse.de>
15281
15282 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
15283 estimate.
15284 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
15285 (execute_vrp): Compute number of iteration estimates.
15286 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
15287 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
15288 * tree-data-ref.c (estimated_loop_iterations): Adjust.
15289 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15290 Infer loop bounds from undefined behavior based on a new parameter.
15291 (estimate_numbers_of_iterations): Likewise.
15292 (scev_probably_wraps_p): Adjust.
15293 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
15294
15295 2010-09-01 Nick Clifton <nickc@redhat.com>
15296
15297 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
15298 where appropriate.
15299 (xstormy16_legitimate_address_p): Use true and false instead of 1
15300 and 0.
15301 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
15302 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
15303 magic constant 2.
15304 (xstormy16_expand_call): Fix comment at start of function.
15305
15306 2010-09-01 Nick Clifton <nickc@redhat.com>
15307
15308 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
15309 when pushing accumulator register.
15310 (rx_get_stack_layout): Always save call clobbered registers inside
15311 interrupt handlers.
15312 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
15313
15314 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
15315
15316 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
15317 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
15318
15319 * libgcc-std.ver (GCC_4.6.0): Define version.
15320
15321 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
15322
15323 * tree-nested.c (convert_all_function_calls): Iterate until after the
15324 sum of static chains in the nest doesn't change.
15325
15326 2010-08-31 Anatoly Sokolov <aesok@post.ru>
15327
15328 * config/m32c/m32c.c (classes_intersect): Remove.
15329 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
15330 reg_classes_intersect_p instead of classes_intersect.
15331 (class_can_hold_mode): Change arguments type from enum reg_class to
15332 reg_class_t. Use reg_class_contents instead of class_contents.
15333 (m32c_register_move_cost): Make static. Change arguments type from
15334 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
15335 classes_intersect. Use reg_class_contents instead of class_contents.
15336 (m32c_memory_move_cost): Make static. Change arguments type from
15337 enum reg_class to reg_class_t.
15338 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15339 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15340 * config/m32c/m32c-protos.h (m32c_register_move_cost,
15341 m32c_memory_move_cost): Remove.
15342
15343 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15344
15345 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
15346 (arm_function_arg): Delete.
15347 (arm_needs_doubleword_align): Take a const_tree.
15348 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15349 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
15350 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
15351 (arm_function_arg): Make static. Take a const_tree and a bool.
15352 (arm_function_arg_advance): Likewise.
15353 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15354
15355 2010-08-31 Andi Kleen <ak@linux.intel.com>
15356
15357 * common.opt (fwhopr=): Update for -fwhopr=jobserver
15358 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
15359 * lto-wrapper.c (run_gcc): Add jobserver mode.
15360 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
15361 argument.
15362
15363 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
15364
15365 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
15366 (popsi1): Ditto.
15367 (*popdi1_epilogue): Ditto.
15368 (*popsi1_epilogue): Ditto.
15369 (popsi, popdi peephole2 patterns): Update peepholes for changed
15370 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
15371
15372 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
15373 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
15374
15375 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
15376 (override_options): Do not initialize removed ix86_gen_pop1.
15377 (gen_pop): New static function.
15378 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
15379 (release_scratch_register_on_entry): Ditto.
15380 (ix86_restore_reg_using_pop): Ditto.
15381 (ix86_expand_epilogue): Ditto.
15382
15383 2010-08-31 Jakub Jelinek <jakub@redhat.com>
15384
15385 PR middle-end/45461
15386 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
15387
15388 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15389
15390 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
15391 semicolons.
15392
15393 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15394
15395 * doc/extend.texi: Fix documentation of the return value of
15396 __builtin_choose_expr.
15397
15398 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15399
15400 * config/v850/v850-protos.h (function_arg): Delete.
15401 * config/v850/v850.h (FUNCTION_ARG): Delete.
15402 (FUNCTION_ARG_ADVANCE): Move code to...
15403 * config/v850/v850.c (v850_function_arg_advance): ...here.
15404 (v850_function_arg): Make static. Take a const_tree and a bool.
15405 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15406
15407 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15408
15409 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
15410 these...
15411 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
15412 ...and these...
15413 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
15414 ..to here..
15415 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
15416 ...and here.
15417 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15418
15419 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
15420
15421 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
15422 Delete.
15423 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15424 * config/rx/rx.c (rx_function_arg_size): Make static.
15425 (rx_function_arg): Likewise.
15426 (rx_function_arg_advance): New function.
15427 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15428
15429 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
15430
15431 * config/arm/arm.c (arm_override_options): Remove superfluous test.
15432 Fix indentation.
15433
15434 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
15435
15436 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
15437 (dwarf2out_decl) <CONST_DECL>: Likewise.
15438
15439 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
15440
15441 Stack usage support
15442 * common.opt (-fstack-usage): New option.
15443 * doc/invoke.texi (Debugging options): Document it.
15444 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
15445 allocate_dynamic_stack_space.
15446 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
15447 and propagate it to allocate_dynamic_stack_space.
15448 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
15449 * calls.c (initialize_argument_information): Pass TRUE as 4th
15450 argument to allocate_dynamic_stack_space.
15451 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
15452 to 1 when pushing a variable-sized argument onto the stack. Pass
15453 TRUE as 4th argument to allocate_dynamic_stack_space.
15454 Update current_function_pushed_stack_size.
15455 (emit_library_call_value_1): Likewise.
15456 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
15457 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
15458 attempt to find an upper bound. Remove redundant code for the
15459 SETJMP_VIA_SAVE_AREA case.
15460 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
15461 * function.h (struct stack_usage): New structure.
15462 (current_function_static_stack_size): New macro.
15463 (current_function_dynamic_stack_size): Likewise.
15464 (current_function_pushed_stack_size): Likewise.
15465 (current_function_dynamic_alloc_count): Likewise.
15466 (current_function_has_unbounded_dynamic_stack_size): Likewise.
15467 (current_function_allocates_dynamic_stack_space): Likewise.
15468 (struct function): Add new field 'su'.
15469 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
15470 add the value of the dynamic offset to the dynamic stack usage.
15471 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
15472 for variable-sized objects.
15473 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
15474 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
15475 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
15476 BUILT_IN_ALLOCA for variable-sized objects.
15477 * output.h (output_stack_usage): Declare.
15478 * toplev.c (stack_usage_file): New file pointer.
15479 (output_stack_usage): New function.
15480 (open_auxiliary_file): Likewise.
15481 (lang_dependent_init): Open file if flag_stack_usage is set.
15482 (finalize): Close file if stack_usage_file is not null.
15483 * tree.h (ALLOCA_FOR_VAR_P): New macro.
15484 * config/alpha/alpha.c (compute_frame_size): New function.
15485 (alpha_expand_prologue): Use it.
15486 (alpha_start_function): Likewise.
15487 (alpha_expand_epilogue): Likewise. Set stack usage info.
15488 * config/i386/i386.c (ix86_expand_prologue): Likewise.
15489 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15490 * config/mips/mips.c (mips_expand_prologue): Likewise.
15491 * config/pa/pa.c (hppa_expand_prologue): Likewise.
15492 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15493 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15494
15495 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
15496
15497 PR tree-optimization/45427
15498 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
15499 Handle the case that the exit is never taken correctly.
15500 (number_of_iterations_ne): Pass exit_must_be_taken to
15501 number_of_iterations_ne_max.
15502
15503 2010-08-30 Catherine Moore <clm@codesourcery.com>
15504
15505 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
15506 Infer -mdspr2 for the the 74K.
15507
15508 2010-08-30 Jakub Jelinek <jakub@redhat.com>
15509
15510 PR debug/45419
15511 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
15512
15513 PR middle-end/45423
15514 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
15515 and TRUTH_{AND,OR,XOR}_EXPR.
15516 * c-parser.c (c_parser_omp_atomic): Handle boolean
15517 {PRE,POST}_{INC,DEC}REMENT.
15518
15519 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
15520
15521 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
15522 (function_arg): Delete.
15523 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15524 (FUNCTION_INCOMING_ARG): Delete.
15525 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
15526 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
15527 and a bool.
15528 (function_arg): Rename to...
15529 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
15530 a bool.
15531 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
15532 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15533 (TARGET_FUNCTION_INCOMING_ARG): Define.
15534
15535 2010-08-30 Richard Guenther <rguenther@suse.de>
15536
15537 PR tree-optimization/21602
15538 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
15539 using points-to information.
15540
15541 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
15542
15543 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
15544
15545 2010-08-30 Richard Guenther <rguenther@suse.de>
15546
15547 PR tree-optimization/45449
15548 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
15549 variables.
15550
15551 2010-08-30 Joseph Myers <joseph@codesourcery.com>
15552
15553 * opts.h (CL_ERR_NEGATIVE): Define.
15554 * opts.c (unknown_option_callback): Don't postpone warnings for
15555 options marked with CL_ERR_NEGATIVE.
15556 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
15557 for negative versions of CL_REJECT_NEGATIVE options.
15558
15559 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
15560
15561 * config/i386/i386.md (zero_extendsidi2_1): Rename from
15562 zero_extendsidi2_32.
15563 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
15564 using SWI12 mode iterator.
15565 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
15566 to define_insn_and_split pattern.
15567 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
15568 using SWI24 mode iterator.
15569 (*zero_extendqi<mode>2_and): Macroize insn from
15570 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
15571 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
15572 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
15573 SWI24 mode iterator.
15574 (*zero_extendqi<mode>2_movzbl): Ditto from
15575 *zero_extendqi{hi,si}2_movzbl.
15576 (extendsidi2_1): Rename from extendsidi2_32.
15577 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
15578 SWI12 mode iterator.
15579
15580 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
15581
15582 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
15583 general purpose registers.
15584 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
15585 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
15586 with general purpose registers and memory operands. Add associated
15587 CCImode post-reload splitter.
15588 * config/ia64/div.md: Change BImode to CCImode throughout.
15589
15590 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
15591
15592 * config/ia64/ia64.md (cstorebi4): Fix thinko.
15593
15594 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
15595
15596 * config/picochip/picochip.c (reorder_var_tracking_notes): This
15597 function was dropping debug insns which caused PR45299.
15598
15599 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
15600
15601 * config/i386/sse.md (extsuffix): New code attribute.
15602 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
15603 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
15604 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
15605 and sse4_1_zero_extendv4qiv4si2.
15606 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
15607 and sse4_1_zero_extendv2qiv2di2.
15608 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
15609 and sse4_1_zero_extendv4hiv4si2.
15610 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
15611 and sse4_1_zero_extendv2hiv2di2.
15612 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
15613 and sse4_1_zero_extendv2siv2di2
15614
15615 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
15616 using any_extend code iterator.
15617 (*avx_<s>mulv8hi3_highpart): Macroize insn from
15618 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
15619 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
15620
15621 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
15622 gen_sse4_1_sign_extend* functions.
15623 (struct builtin_description bdesc_args): Ditto.
15624
15625 2010-08-27 Xinliang David Li <davidxl@google.com>
15626
15627 PR/45422
15628 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
15629 (iv_ca_set_no_cp): Update used inv expr count.
15630 (iv_ca_set_cp): Ditto.
15631 (iv_ca_new): Initialize new member.
15632 (iv_ca_free): Free memory.
15633
15634 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15635
15636 * config/sh/sh-protos.h (sh_function_arg): Delete.
15637 (sh_function_arg_advance): Delete.
15638 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15639 (PASS_IN_REG_P): Eliminate cast.
15640 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
15641 const_tree and a bool.
15642 (sh_function_arg): Likewise.
15643 (sh_output_mi_thunk): Call sh_function_arg_advance) and
15644 sh_function_arg.
15645 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15646
15647 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
15648 Kaz Kojima <kkojima@gcc.gnu.org>
15649
15650 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
15651 when possible.
15652 (sh_expand_epilogue): Likewise.
15653 * config/sh/sh.md (movml_push_banked): New insn.
15654 (movml_pop_banked): Likewise.
15655
15656 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
15657
15658 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
15659 gen_regexp_oneof, gen_regexp_sequence): Use the string found
15660 in vector element 0 rather than the original string when there's
15661 only one element.
15662 (gen_regexp): Remove extra semicolon.
15663
15664 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
15665 thumb2_movsf_vfp): Set attribute "insn".
15666 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
15667 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
15668 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
15669 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
15670 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
15671 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
15672 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
15673 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
15674 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
15675 if_not_arith, if_arith_not, cond_move_not): Likewise.
15676
15677 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15678
15679 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
15680 New declaration.
15681 (rs6000_allocate_stack_temp): Ditto.
15682 (rs6000_expand_convert_si_to_sfdf): Ditto.
15683
15684 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
15685 line. Update the options set if power6 or power7 server/embedded
15686 type options are used. If we give a warning for no vsx under
15687 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
15688 (rs6000_allocate_stack_temp): New function to allocate a stack
15689 tempoary and adjust the address so it meets either REG+OFFSET or
15690 REG+REG addressing requirements.
15691 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
15692 that they can be used with the LFIWAX/LFIWZX instrucitons.
15693 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
15694 converting signed/unsigned SImode to either SFmode/DFmode.
15695
15696 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
15697 whether certain instructions can be generated.
15698 (TARGET_FCTIDZ): Ditto.
15699 (TARGET_STFIWX): Ditto.
15700 (TARGET_LFIWAX): Ditto.
15701 (TARGET_LFIWZX): Ditto.
15702 (TARGET_FCFIDS): Ditto.
15703 (TARGET_FCFIDU): Ditto.
15704 (TARGET_FCFIDUS): Ditto.
15705 (TARGET_FCTIDUZ): Ditto.
15706 (TARGET_FCTIWUZ): Ditto.
15707
15708 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
15709 (UNSPEC_FCTID): Ditto.
15710 (UNSPEC_LFIWAX): Ditto.
15711 (UNSPEC_LFIWZX): Ditto.
15712 (UNSPEC_FCTIWUZ): Ditto.
15713 (rreg): Use correct constraints.
15714 (SI_CONVERT_FP): New mode attribute for floating point conversion
15715 tests.
15716 (E500_CONVERT): Ditto.
15717 (lfiwax): New insns for converting from integer to floating point
15718 utilizing newer instructions. Attempt to optimize conversions
15719 that come from memory so that we don't load the value into a GPR,
15720 spill it to the stack and reload it into a FPR.
15721 (floatsi<mode>2_lfiwax): Ditto.
15722 (floatsi<mode>2_lfiwax_mem): Ditto.
15723 (floatsi<mode>2_lfiwax_mem2): Ditto.
15724 (lfiwzx): Ditto.
15725 (floatunssi<mode>2_lfiwzx): Ditto.
15726 (floatunssi<mode>2_lfiwzx_mem): Ditto.
15727 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
15728 (floatdidf2_mem): Ditto.
15729 (floatunsdidf2_fcfidu): Ditto.
15730 (floatunsdidf2_mem): Ditto.
15731 (floatunsdisf2): Ditto.
15732 (floatunsdisf2_fcfidus): Ditto.
15733 (floatunsdisf2_mem): Ditto.
15734 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
15735 Use FCFID on 32-bit hosts that support it.
15736 (floatsidf2_internal): Ditto.
15737 (floatunssisf2): Ditto.
15738 (floatunssidf2): Ditto.
15739 (floatunssidf2_internal): Ditto.
15740 (floatsisf2): Ditto.
15741 (floatdidf2): Ditto.
15742 (floatdidf2_fpr): Ditto.
15743 (floatunsdidf2): Ditto.
15744 (floatdisf2): Ditto.
15745 (floatdisf2_fcfids): Ditto.
15746 (floatdisf2_internal1): Ditto.
15747 (fixuns_truncsfsi2): Delete, merge into common pattern for both
15748 SF/DF. Add power7 support.
15749 (fix_truncsfsi2): Ditto.
15750 (fixuns_truncdfsi2): Ditto.
15751 (fixuns_truncdfdi2): Ditto.
15752 (fix_truncdfsi2): Ditto.
15753 (fix_truncdfsi2_internal): Ditto.
15754 (fix_truncdfsi2_internal_gfxopt): Ditto.
15755 (fix_truncdfsi2_mfpgpr): Ditto.
15756 (fctiwz): Ditto.
15757 (btruncdf2): Ditto.
15758 (btruncdf2_fpr): Ditto.
15759 (btructsf2): Ditto.
15760 (ceildf2): Ditto.
15761 (ceildf2_fpr): Ditto.
15762 (ceilsf2): Ditto.
15763 (floordf2): Ditto.
15764 (floordf2_fpr): Ditto.
15765 (floorsf2): Ditto.
15766 (rounddf2): Ditto.
15767 (rounddf2_fpr): Ditto.
15768 (roundsf2): Ditto.
15769 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
15770 (fix_trunc<mode>di2): Ditto.
15771 (fixuns_trunc<mode>si2): Ditto.
15772 (fixuns_trunc<mode>di2): Ditto.
15773 (fctiwz_<mode>): Ditto.
15774 (btrunc<mode>2): Ditto.
15775 (btrunc<mode>2_fpr): Ditto.
15776 (ceil<mode>2): Ditto.
15777 (ceil<mode>2_fpr): Ditto.
15778 (floor<mode>2): Ditto.
15779 (float<mode>2_fpr): Ditto.
15780 (round<mode>2): Ditto.
15781 (round<mode>2_fpr): Ditto.
15782 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
15783 (fixuns_trunc<mode>si2_stfiwx): Ditto.
15784 (fix_truncdfsi2_internal): Ditto.
15785 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
15786 converted value on stack, loaded into GPR, and then stored into
15787 the final destination.
15788 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
15789 FCTIDZ.
15790 (lrint<mode>di2): New insn, provide the lrint builtin functions.
15791 (ftruncdf2): Delete, unused.
15792 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
15793
15794 * config/rs6000/vsx.md (toplevel): Update copyright year.
15795 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
15796 (VSr3): Ditto.
15797
15798 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
15799 Jeremie Salvucci <jeremie.salvucci@free.fr>
15800
15801 * gengtype.c (output_type_enum): Test the right union member.
15802
15803 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
15804
15805 PR target/41484
15806 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
15807 operands for operand 1.
15808 (sse4_1_extendv4qiv4si2): Ditto.
15809 (sse4_1_extendv2qiv2di2): Ditto.
15810 (sse4_1_extendv4hiv4si2): Ditto.
15811 (sse4_1_extendv2hiv2di2): Ditto.
15812 (sse4_1_extendv2siv2di2): Ditto.
15813 (sse4_1_zero_extendv8qiv8hi2): Ditto.
15814 (sse4_1_zero_extendv4qiv4si2): Ditto.
15815 (sse4_1_zero_extendv2qiv2di2): Ditto.
15816 (sse4_1_zero_extendv4hiv4si2): Ditto.
15817 (sse4_1_zero_extendv2hiv2di2): Ditto.
15818 (sse4_1_zero_extendv2siv2di2): Ditto.
15819 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
15820 (*sse4_1_extendv4qiv4si2): Ditto.
15821 (*sse4_1_extendv2qiv2di2): Ditto.
15822 (*sse4_1_extendv4hiv4si2): Ditto.
15823 (*sse4_1_extendv2hiv2di2): Ditto.
15824 (*sse4_1_extendv2siv2di2): Ditto.
15825 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
15826 (*sse4_1_zero_extendv4qiv4si2): Ditto.
15827 (*sse4_1_zero_extendv2qiv2di2): Ditto.
15828 (*sse4_1_zero_extendv4hiv4si2): Ditto.
15829 (*sse4_1_zero_extendv2hiv2di2): Ditto.
15830 (*sse4_1_zero_extendv2siv2di2): Ditto.
15831
15832 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15833
15834 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
15835 (mips_function_arg): Delete.
15836 (mips_function_arg_boundary): Take a const_tree.
15837 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
15838 (mips_arg_info): Likewise.
15839 (mips_setup_incoming_varargs): Call mips_function_arg_advance
15840 instead of FUNCTION_ARG_ADVANCE.
15841 (mips_function_arg_advance): Adjust prototype. Make static.
15842 (mips_function_arg): Likewise.
15843 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15844 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
15845
15846 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15847
15848 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15849 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
15850 (function_arg): Delete.
15851 (function_arg_boundary): Take a const_tree.
15852 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
15853 (rs6000_spe_function_arg): Likewise.
15854 (rs6000_parm_start): Likewise.
15855 (rs6000_arg_size): Likewise.
15856 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
15857 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
15858 (rs6000_mixed_function_arg): Likewise.
15859 (function_arg): Rename to...
15860 (rs6000_function_arg): ...this.
15861 (function_arg_advance): Rename to...
15862 (rs6000_function_arg_advance_1): ...this
15863 (rs6000_function_arg_advance): New function. Call it.
15864 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
15865 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
15866 (rs6000_function_value): Likewise.
15867 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15868
15869 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15870
15871 * config/arm/arm.md (enabled): Test the value of arch_enabled
15872 rather than just using it.
15873
15874 2010-08-27 Olivier Hainque <hainque@adacore.com>
15875 Eric Botcazou <ebotcazou@adacore.com>
15876
15877 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
15878 cover all the possible offsets from this base.
15879 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
15880
15881 2010-08-26 Jakub Jelinek <jakub@redhat.com>
15882
15883 PR tree-optimization/44485
15884 * calls.c (flags_from_decl_or_type): For const or pure
15885 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
15886 together with ECF_CONST resp. ECF_PURE.
15887 * builtins.c (expand_builtin): Use flags_from_decl_or_type
15888 instead of querying flags directly.
15889 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
15890 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
15891
15892 2010-08-26 Richard Guenther <rguenther@suse.de>
15893
15894 PR tree-optimization/45255
15895 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
15896 and externals are also invariant.
15897
15898 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15899
15900 PR rtl-optimization/44858
15901 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
15902 newi2pat, make sure they don't affect newpat.
15903
15904 PR rtl-optimization/45400
15905 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
15906 SUBREG_REG if both modes are of MODE_INT class.
15907
15908 2010-08-25 Julian Brown <julian@codesourcery.com>
15909
15910 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
15911 * config/arm/arm.md (generic_sched): No for Cortex-A5.
15912 (generic_vfp): Likewise.
15913 (cortex-a5.md): Include.
15914 * config/arm/cortex-a5.md: New.
15915
15916 2010-08-25 Richard Guenther <rguenther@suse.de>
15917
15918 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
15919 * gimple.c (gimple_get_alias_set): Remove special handling
15920 for pointers.
15921
15922 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
15923
15924 PR middle-end/45355
15925 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
15926 dead_or_set_p when computing i0_feeds_i2_n.
15927
15928 * combine.c (find_split_point): Undo canonicalization of multiply-add
15929 to (minus x (mult)) when it seems likely that this will increase the
15930 chances of a split.
15931
15932 2010-08-25 Richard Guenther <rguenther@suse.de>
15933
15934 PR lto/44562
15935 * lto-streamer.c (lto_record_common_node): Do not mess with
15936 TYPE_CANONICAL when not in lto.
15937 * gimple.c (gimple_register_type): Likewise.
15938
15939 2010-08-25 Richard Guenther <rguenther@suse.de>
15940
15941 PR tree-optimization/45316
15942 * tree-ssa-pre.c (eliminate): Properly clean EH info.
15943
15944 2010-08-25 Richard Guenther <rguenther@suse.de>
15945
15946 PR tree-optimization/45393
15947 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
15948 and clean EH info. Avoid SSA update.
15949 (execute_cse_sincos): Cleanup the CFG if it has changed.
15950
15951 2010-08-25 Richard Guenther <rguenther@suse.de>
15952
15953 PR middle-end/45379
15954 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
15955 TARGET_MEM_REF in alignment computation.
15956
15957 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15958
15959 PR tree-optimization/45059
15960 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
15961 type conversions from newop{1,2}. Assert t is a comparison and
15962 newop{1,2} after the stripping are gimple vals.
15963
15964 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
15965
15966 * config/arm/iterators.md (VU, SE, V_widen_l): New.
15967 (V_unpack, US): New.
15968 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
15969 (vec_unpack<US>_lo_<mode>): Likewise.
15970 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
15971 (neon_vec_unpack<US>_lo_<mode>): Likewise.
15972 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
15973 (vec_widen_<US>mult_hi_<mode>): Likewise.
15974 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
15975 (neon_vec_<US>mult_hi_<mode>"): Likewise.
15976 (neon_unpack<US>_<mode>): Widening move intermediate step for
15977 vectorizing without -mvectorize-with-neon-quad.
15978 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
15979 for vectorizing without -mvectorize-with-neon-quad.
15980 * config/arm/predicates.md (vect_par_constant_high): Check for
15981 high-half lanes of a vector.
15982 (vect_par_constant_low): Check for low-half lanes of a vector.
15983
15984 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15985
15986 * tree-if-conv.c (struct ifc_dr): New.
15987 (IFC_DR): New.
15988 (DR_WRITTEN_AT_LEAST_ONCE): New.
15989 (DR_RW_UNCONDITIONALLY): New.
15990 (memref_read_or_written_unconditionally): Use the cached values
15991 when possible.
15992 (write_memref_written_at_least_once): Same.
15993 (if_convertible_loop_p): Initialize and free DR->aux fields.
15994
15995 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15996
15997 * gimple.c (gimple_could_trap_p_1): Not static anymore.
15998 Pass an extra bool parameter include_mem.
15999 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
16000 (gimple_assign_rhs_could_trap_p): Same.
16001 * gimple.h (gimple_could_trap_p_1): Declared.
16002 * tree-data-ref.h (same_data_refs_base_objects): New.
16003 (same_data_refs): New.
16004 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
16005 (write_memrefs_written_at_least_once): New.
16006 (ifcvt_memrefs_wont_trap): New.
16007 (operations_could_trap): New.
16008 (ifcvt_could_trap_p): New.
16009 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
16010 Gets a vector of data refs.
16011 (if_convertible_stmt_p): Same.
16012 (if_convertible_loop_p_1): New.
16013 (if_convertible_loop_p): Call if_convertible_loop_p_1.
16014
16015 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
16016
16017 * common.opt (ftree-loop-if-convert-stores): New flag.
16018 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
16019 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
16020 the created statement before GSI.
16021 (if_convertible_phi_p): Allow virtual phi nodes when
16022 flag_loop_if_convert_stores is set.
16023 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
16024 Do not handle types that do not match is_gimple_reg_type.
16025 Remove loop and bb parameters. Call gimple_could_trap_p instead of
16026 when flag_loop_if_convert_stores is set, as LHS can contain
16027 memory refs.
16028 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
16029 to if_convertible_gimple_assign_stmt_p.
16030 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
16031 (replace_phi_with_cond_gimple_assign_stmt): Renamed
16032 predicate_scalar_phi. Do not handle virtual phi nodes.
16033 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
16034 Call predicate_scalar_phi.
16035 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
16036 just after the labels for flag_loop_if_convert_stores, otherwise
16037 insert the predicate in the end of the BB.
16038 (predicate_mem_writes): New.
16039 (combine_blocks): Call predicate_all_scalar_phis. When
16040 flag_loop_if_convert_stores is set, call predicate_mem_writes.
16041 (tree_if_conversion): Call mark_sym_for_renaming when
16042 flag_loop_if_convert_stores is set.
16043 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
16044 flag_loop_if_convert_stores is set.
16045
16046 2010-08-24 Anatoly Sokolov <aesok@post.ru>
16047
16048 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
16049 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
16050 (pa_function_value): Make static.
16051 (override_options): Rename to...
16052 (pa_option_override): ...this. Make static.
16053 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
16054 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
16055 TARGET_OPTION_OVERRIDE): Define.
16056 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
16057 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
16058 Remove.
16059 * config/pa/pa-protos.h (override_options): Remove.
16060
16061 2010-08-24 Richard Guenther <rguenther@suse.de>
16062
16063 PR middle-end/45379
16064 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
16065 if addr->index is NULL or zero.
16066 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
16067 TARGET_MEM_REF more properly.
16068 (indirect_ref_may_alias_decl_p): Likewise.
16069 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
16070 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
16071
16072 2010-08-23 Anatoly Sokolov <aesok@post.ru>
16073
16074 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
16075 (m32c_override_options): Rename to...
16076 (m32c_option_override): ...this. Make static.
16077 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
16078 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
16079 Remove.
16080 * config/m32c/m32c-protos.h (m32c_override_options,
16081 m32c_function_value_regno_p): Remove.
16082
16083 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
16084
16085 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
16086 Fix a typo in a previous commit.
16087
16088 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
16089
16090 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
16091 Pre-initialize innerloop_iters to one.
16092
16093 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
16094
16095 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
16096 existing static function global.
16097
16098 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
16099 is changed to global.
16100
16101 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
16102 may_be_nonaddressable_p on base, and don't collect this reference
16103 if the address of the base could not be taken.
16104
16105 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16106
16107 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
16108 enable the compiler to autovectorize mathmetical functions for
16109 power7 using the Mathematical Acceleration Subsystem library.
16110
16111 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
16112 handle which vector math library we have.
16113 (rs6000_override_options): Add -mveclibabi=mass support.
16114 (rs6000_builtin_vectorized_libmass): New function to handle auto
16115 vectorizing math functions that are in the MASS library.
16116 (rs6000_builtin_vectorized_function): Call it.
16117
16118 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16119 -mveclibabi=mass.
16120
16121 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16122
16123 PR boehm-gc/34544
16124 * gthr-posix.h (__gthread_active_init): Delete.
16125 (__gthread_active_p): Do activity check here.
16126 Don't include errno.h on hppa-hpux. Update comment.
16127 * gthr-posix95.h (__gthread_active_init): Delete.
16128 (__gthread_active_p): Do activity check here.
16129 Don't include errno.h on hppa-hpux. Update comment.
16130 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
16131 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
16132 add -lpthread when -mt or -pthread is specified.
16133 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
16134 (LINK_GCC_C_SEQUENCE_SPEC): Define.
16135 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
16136 (stublib.c, pthread_default_stacksize_np-stub.o,
16137 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
16138 $(T)libgcc_stub.a): Add methods.
16139 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
16140 (stublib.c, pthread_default_stacksize_np-stub.o,
16141 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
16142 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16143 pthread_mutex_unlock): New stubs.
16144
16145 2010-08-22 Joseph Myers <joseph@codesourcery.com>
16146
16147 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
16148 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
16149 options.
16150 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
16151 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
16152 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
16153 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
16154 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
16155 "-l".
16156 * cppspec.c: Include opts.h.
16157 (lang_specific_driver): Use cl_decoded_option structures.
16158 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
16159 * doc/tm.texi: Regenerate.
16160 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
16161 (driver_handle_option): Allow driver options needing no special
16162 processing.
16163 (process_command): Decode options before call to
16164 lang_specific_driver. Pass decoded options to
16165 lang_specific_driver.
16166 * gcc.h (lang_specific_driver): Update prototype.
16167 * gccspec.c: Include opts.h.
16168 (lang_specific_driver): Use cl_decoded_option structures.
16169 * opts-common.c (option_ok_for_language, generate_option,
16170 generate_option_input_file): New.
16171 (decode_cmdline_option): Use option_ok_for_language.
16172 (decode_cmdline_options_to_array): Use generate_option_input_file.
16173 (handle_generated_option): Use generate_option.
16174 * opts.h (generate_option, generate_option_input_file): Declare.
16175
16176 2010-08-22 Anatoly Sokolov <aesok@post.ru>
16177
16178 * config/mips/mips.c (mips_override_options): Rename to...
16179 (mips_option_override): ...this. Make static.
16180 (TARGET_OPTION_OVERRIDE): Define.
16181 (mips_in_small_data_p): Update comment.
16182 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
16183 (FIXED_REGISTERS): Update comment.
16184 * config/mips/mips-protos.h (mips_override_options): Remove.
16185
16186 2010-08-21 Olivier Hainque <hainque@adacore.com>
16187
16188 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
16189
16190 2010-08-21 Olivier Hainque <hainque@adacore.com>
16191
16192 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
16193 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
16194
16195 2010-08-20 Jan Hubicka <jh@suse.cz>
16196
16197 * tree-pass.h (pass_ipa_cdtor_merge): New function.
16198 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
16199 heap allocated.
16200 (record_cdtor_fn): Move to ipa.c; do not test for
16201 have_ctors_dtors.
16202 (build_cdtor): Move to ipa.c; add code avoiding construction
16203 when target have ctors/dtors and there is only one ctor/dtor at given
16204 priority.
16205 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
16206 sort; reverse order of constructors.
16207 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
16208 (cgraph_finalize_function): Do not call record_cdtor_fn.
16209 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
16210 (cgraph_build_static_cdtor): Move to ipa.c.
16211 * ipa.c: Include target.h and tree-iterator.h.
16212 (cgraph_build_static_cdtor, static_ctors, static_dtors,
16213 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
16214 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
16215 pass_ipa_cdtor_merge): New.
16216 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
16217 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
16218 bounds access.
16219
16220 2010-08-20 Jan Hubicka <jh@suse.cz>
16221
16222 PR c++/45307
16223 PR c++/17736
16224 * cgraph.h (cgraph_only_called_directly_p,
16225 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
16226 static cdtors.
16227 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
16228 are not needed.
16229 (cgraph_finalize_function): Static cdtors are reachable.
16230 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
16231
16232 2010-08-20 Jan Hubicka <jh@suse.cz>
16233
16234 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
16235 flag_wpa.
16236 * lto-streamer-out.c (lto_output): Likewise.
16237 * passes.c (ipa_write_optimization_summaries): Initialize statement
16238 uids.
16239
16240 2010-08-20 Olivier Hainque <hainque@adacore.com>
16241
16242 * tree.h (alias_diag_flags): New enum.
16243 (alias_pair): Add an 'emitted_diags' field.
16244 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
16245 (assemble_alias): Initialize emitted_diags of new pairs.
16246
16247 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
16248
16249 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16250 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16251 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16252 (STACK_CHECK_PROTECT): Define.
16253 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
16254 (output_probe_stack_range): Likewise.
16255 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
16256 builtin stack checking is enabled.
16257 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
16258 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16259 (probe_stack_range): New insn.
16260
16261 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
16262
16263 PR target/45336
16264 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
16265 short first.
16266
16267 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
16268 char first.
16269
16270 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16271
16272 PR target/45336
16273 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
16274 to cover zero extension into 64-bit register.
16275 (*sse2_pextrw): Likewise.
16276 (*sse4_1_pextrd_zext): New insn.
16277
16278 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
16279
16280 revert r163410, partially revert r163267.
16281 * config/rs6000/darwin.h (LIB_SPEC): Remove.
16282 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
16283 Darwin versions.
16284
16285 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16286
16287 PR middle-end/44974
16288 * builtins.c (expand_builtin): Don't optimize away
16289 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
16290
16291 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
16292
16293 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
16294 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
16295 alternative 1 of operand 2.
16296
16297 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16298 Paolo Bonzini <bonzini@gnu.org>
16299
16300 * simplify-rtx.c (simplify_unary_operation_1): Optimize
16301 (sign_extend (zero_extend (...)) and
16302 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
16303
16304 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16305
16306 PR rtl-optimization/45353
16307 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
16308 after bb_note is a BARRIER.
16309
16310 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
16311
16312 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
16313 linking libgcc.a.
16314
16315 2010-08-20 Jakub Jelinek <jakub@redhat.com>
16316 Michael Matz <matz@suse.de>
16317
16318 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
16319
16320 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
16321
16322 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
16323 (ggc_mark_roots): ...here.
16324
16325 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
16326
16327 * vec.h (FOR_EACH_VEC_ELT): Define.
16328 * c-decl.c: Use it.
16329 * cfgloop.c: Likewise.
16330 * cfgloopmanip.c: Likewise.
16331 * cgraph.c: Likewise.
16332 * cgraphunit.c: Likewise.
16333 * combine.c: Likewise.
16334 * config/bfin/bfin.c: Likewise.
16335 * config/mips/mips.c: Likewise.
16336 * config/rs6000/rs6000.c: Likewise.
16337 * dbxout.c: Likewise.
16338 * df-scan.c: Likewise.
16339 * dominance.c: Likewise.
16340 * dse.c: Likewise.
16341 * dwarf2out.c: Likewise.
16342 * except.c: Likewise.
16343 * expr.c: Likewise.
16344 * function.c: Likewise.
16345 * gcse.c: Likewise.
16346 * genattr.c: Likewise.
16347 * ggc-common.c: Likewise.
16348 * gimplify.c: Likewise.
16349 * graphite-blocking.c: Likewise.
16350 * graphite-clast-to-gimple.c: Likewise.
16351 * graphite-dependences.c: Likewise.
16352 * graphite-interchange.c: Likewise.
16353 * graphite-poly.c: Likewise.
16354 * graphite-scop-detection.c: Likewise.
16355 * graphite-sese-to-poly.c: Likewise.
16356 * graphite.c: Likewise.
16357 * haifa-sched.c: Likewise.
16358 * ifcvt.c: Likewise.
16359 * implicit-zee.c: Likewise.
16360 * ipa-prop.c: Likewise.
16361 * ipa-struct-reorg.c: Likewise.
16362 * ipa.c: Likewise.
16363 * ira-build.c: Likewise.
16364 * ira-color.c: Likewise.
16365 * ira-emit.c: Likewise.
16366 * lambda-code.c: Likewise.
16367 * loop-invariant.c: Likewise.
16368 * loop-unroll.c: Likewise.
16369 * lower-subreg.c: Likewise.
16370 * lto-cgraph.c: Likewise.
16371 * lto-opts.c: Likewise.
16372 * lto-streamer-in.c: Likewise.
16373 * lto-streamer-out.c: Likewise.
16374 * lto-streamer.c: Likewise.
16375 * lto-symtab.c: Likewise.
16376 * matrix-reorg.c: Likewise.
16377 * opts.c: Likewise.
16378 * predict.c: Likewise.
16379 * print-tree.c: Likewise.
16380 * sdbout.c: Likewise.
16381 * sel-sched-dump.c: Likewise.
16382 * sel-sched-ir.c: Likewise.
16383 * sel-sched.c: Likewise.
16384 * sese.c: Likewise.
16385 * stor-layout.c: Likewise.
16386 * tree-cfg.c: Likewise.
16387 * tree-cfgcleanup.c: Likewise.
16388 * tree-chrec.c: Likewise.
16389 * tree-data-ref.c: Likewise.
16390 * tree-emutls.c: Likewise.
16391 * tree-inline.c: Likewise.
16392 * tree-into-ssa.c: Likewise.
16393 * tree-loop-distribution.c: Likewise.
16394 * tree-loop-linear.c: Likewise.
16395 * tree-mudflap.c: Likewise.
16396 * tree-outof-ssa.c: Likewise.
16397 * tree-parloops.c: Likewise.
16398 * tree-predcom.c: Likewise.
16399 * tree-pretty-print.c: Likewise.
16400 * tree-scalar-evolution.c: Likewise.
16401 * tree-ssa-live.c: Likewise.
16402 * tree-ssa-loop-im.c: Likewise.
16403 * tree-ssa-loop-ivcanon.c: Likewise.
16404 * tree-ssa-loop-ivopts.c: Likewise.
16405 * tree-ssa-loop-manip.c: Likewise.
16406 * tree-ssa-loop-niter.c: Likewise.
16407 * tree-ssa-loop-prefetch.c: Likewise.
16408 * tree-ssa-phiprop.c: Likewise.
16409 * tree-ssa-pre.c: Likewise.
16410 * tree-ssa-reassoc.c: Likewise.
16411 * tree-ssa-sccvn.c: Likewise.
16412 * tree-ssa-structalias.c: Likewise.
16413 * tree-ssa.c: Likewise.
16414 * tree-vect-data-refs.c: Likewise.
16415 * tree-vect-loop-manip.c: Likewise.
16416 * tree-vect-loop.c: Likewise.
16417 * tree-vect-patterns.c: Likewise.
16418 * tree-vect-slp.c: Likewise.
16419 * tree-vect-stmts.c: Likewise.
16420 * tree-vrp.c: Likewise.
16421 * tree.c: Likewise.
16422 * value-prof.c: Likewise.
16423 * var-tracking.c: Likewise.
16424 * varasm.c: Likewise.
16425 * vmsdbgout.c: Likewise.
16426
16427 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
16428 Richard Guenther <richard.guenther@gmail.com>
16429
16430 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
16431 copy the src value and return a copy.
16432 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
16433 (C++ Volatiles): Adjust to describe C++ semantics only.
16434
16435 2010-08-20 Joseph Myers <joseph@codesourcery.com>
16436
16437 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
16438 be zero or nonzero.
16439 * doc/tm.texi: Regenerate.
16440 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
16441 * df-scan.c (df_get_exit_block_use_set), reginfo.c
16442 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
16443 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
16444 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
16445 to 1.
16446
16447 2010-08-20 Olivier Hainque <hainque@adacore.com>
16448
16449 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
16450 an extra nop past a sibling call at the very end.
16451
16452 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
16453
16454 PR bootstrap/45350
16455 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
16456 a comment.
16457
16458 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
16459
16460 * target.def (function_arg, function_incoming_arg): Remove const
16461 qualifier on CUMULATIVE_ARGS parameter.
16462 * targhooks.h (default_function_arg, default_function_incoming_arg):
16463 Likewise.
16464 * targhooks.c (default_function_arg, default_function_incoming_arg):
16465 Likewise.
16466 * config/i386/i386.c (ix86_function_arg): Likewise.
16467
16468 2010-08-19 Jakub Jelinek <jakub@redhat.com>
16469
16470 PR target/45336
16471 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
16472 SIGN_EXTENDs or ZERO_EXTENDs.
16473
16474 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
16475
16476 PR target/42172
16477 * combine.c (combine_validate_cost): New arg I0. All callers changed.
16478 Take its cost into account if nonnull.
16479 (insn_a_feeds_b): New static function.
16480 (combine_instructions): Look for four-insn combinations.
16481 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
16482 them into account when computing all_adjacent and looking for other
16483 uses.
16484 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
16485 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
16486 (try_combine): New arg I0. Handle four-insn combinations.
16487 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
16488 like ELIM_I1.
16489
16490 2010-08-19 Jason Merrill <jason@redhat.com>
16491
16492 PR c++/45307
16493 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
16494 if ctor is empty.
16495 (gimplify_modify_expr_rhs): Adjust.
16496
16497 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
16498
16499 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
16500 bitmap_bit_p.
16501 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
16502 * dominance.c (iterate_fix_dominators): Likewise.
16503 * dse.c (set_usage_bits): Likewise.
16504 (set_position_unneeded, record_store): Likewise.
16505 * gimple-fold.c (get_maxval_strlen): Likewise.
16506 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
16507 * ipa-inline.c (update_caller_keys): Likewise.
16508 * ipa-split.c (verify_non_ssa_vars): Likewise.
16509 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
16510 (close_type_exposed_parameter, close_type_full_escape): Likewise.
16511 (close_addressof_down): Likewise.
16512 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
16513 (setup_allocno_left_conflicts_size): Likewise.
16514 (ira_reassign_conflict_allocnos): Likewise.
16515 (ira_reassign_pseudos): Likewise.
16516 * ira-emit.c (change_loop): Likewise.
16517 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
16518 * lto-streamer-out.c (write_symbol): Likewise.
16519 * predict.c (expr_expected_value_1): Likewise.
16520 * regstat.c (regstat_bb_compute_ri): Likewise.
16521 * sel-sched.c (create_block_for_bookkeeping): Likewise.
16522 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
16523 * stmt.c (expand_case): Likewise.
16524 * tree-eh.c (emit_eh_dispatch): Likewise.
16525 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
16526 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
16527 Likewise.
16528 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
16529 (rdg_build_components): Likewise.
16530 * tree-object-size.c (collect_object_sizes_for): Likewise.
16531 * tree-sra.c (convert_callers): Likewise.
16532 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
16533 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
16534 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
16535
16536 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
16537
16538 * config/i386/i386.md (*lea_1): Use P mode iterator.
16539 (lea add splitter): Also handle DImode operands.
16540 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
16541 predicate. Do not use ix86_lea_for_add_ok.
16542 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
16543 (lea ashift splitter): Also handle DImode operands.
16544 (DImode lea ashift splitter): Remove splitter.
16545
16546 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
16547
16548 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
16549 ix86_binary_operator_ok.
16550
16551 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
16552
16553 PR rtl-optimization/44691
16554 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
16555 is not a register.
16556
16557 2010-08-19 Ian Bolton <ian.bolton@arm.com>
16558
16559 PR target/45070
16560 * config/arm/arm.c (arm_output_epilogue): Ensure that return
16561 value of size 1-3 is handled correctly.
16562
16563 2010-08-19 Ian Bolton <ian.bolton@arm.com>
16564
16565 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
16566 type for the conditional has wide enough range.
16567
16568 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
16569
16570 PR target/45327
16571 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
16572 ix86_binary_operator_ok.
16573
16574 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
16575
16576 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
16577 <default>: Swap operands 1 and 2 for alternative 2 to use existing
16578 code to output insn mnemonic. Fix comment.
16579 (*addsi_1_zext): Add r-r-0 alternative 1.
16580 <TYPE_LEA>: Split insn to lea.
16581 <default>: Handle alternative 1.
16582 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
16583 multi-level if_then_else RTX to set "type" attribute.
16584 <default>: Handle alternative 2.
16585 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
16586 Use cond RTX instead of multi-level if_then_else RTX to set
16587 "type" attribute.
16588 <default>: Handle alternatives 2 and 4.
16589 (lea splitters): Update calls to ix86_lea_for_add_ok.
16590
16591 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
16592 argument.
16593 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
16594
16595 2010-08-18 Richard Guenther <rguenther@suse.de>
16596
16597 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
16598 use operand helpers.
16599
16600 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
16601
16602 PR middle-end/45292
16603 * optabs.c (expand_bool_compare_and_swap): Expand pending
16604 pops before trying the optab.
16605
16606 2010-08-18 Yao Qi <yao@codesourcery.com>
16607
16608 PR target/45094
16609 * config/arm/arm.c (output_move_double): Fix typo generating
16610 instructions ('ldr'->'str').
16611
16612 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16613
16614 PR rtl-optimization/42575
16615 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
16616 live ranges.
16617
16618 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
16619
16620 * config/arm/arm-protos.h (arm_expand_sync): New.
16621 (arm_output_memory_barrier, arm_output_sync_insn): New.
16622 (arm_sync_loop_insns): New.
16623 * config/arm/arm.c (FL_ARCH7): New.
16624 (FL_FOR_ARCH7): Include FL_ARCH7.
16625 (arm_arch7): New.
16626 (arm_print_operand): Support %C markup.
16627 (arm_legitimize_sync_memory): New.
16628 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
16629 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
16630 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
16631 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
16632 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
16633 (arm_process_output_sync_insn, arm_output_sync_insn): New.
16634 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
16635 * config/arm/arm.h (struct arm_sync_generator): New.
16636 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
16637 (TARGET_HAVE_MEMORY_BARRIER): New.
16638 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
16639 * config/arm/arm.md: Include sync.md.
16640 (UNSPEC_MEMORY_BARRIER): New.
16641 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
16642 (VUNSPEC_SYNC_OP):New.
16643 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
16644 (sync_result, sync_memory, sync_required_value): New attributes.
16645 (sync_new_value, sync_t1, sync_t2): Likewise.
16646 (sync_release_barrier, sync_op): Likewise.
16647 (length): Add logic to length attribute defintion to call
16648 arm_sync_loop_insns when appropriate.
16649 * config/arm/sync.md: New file.
16650
16651 2010-08-17 Jakub Jelinek <jakub@redhat.com>
16652
16653 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
16654 ENABLE_TREE_CHECKING.
16655 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
16656 and GCC >= 4.3.
16657
16658 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
16659
16660 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
16661 or optimizing for size, always avoid lea if possible.
16662
16663 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
16664
16665 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
16666
16667 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
16668 Dunmmy function with NULL return unless the target is
16669 OSX >= 10.6 (Darwin10).
16670
16671 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
16672
16673 * gcc.c (spec_function): Add remove-outfile.
16674 (remove_outfile_spec_function): New function.
16675 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
16676 * invoke.texi (replace-outfile): Document.
16677
16678 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
16679
16680 PR target/45296
16681 * reginfo.c (globalize_reg): Reject stack registers.
16682
16683 2010-08-17 Richard Guenther <rguenther@suse.de>
16684
16685 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
16686 list of conditional equivalences.
16687 (free_all_edge_infos): Adjust.
16688 (record_equivalences_from_incoming_edge): Likewise.
16689 (record_cond): Likewise.
16690 (build_and_record_new_cond): Likewise.
16691 (record_conditions): Likewise.
16692 (dom_opt_leave_block): Likewise.
16693
16694 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
16695
16696 * doc/invoke.texi (ms-extension): Add documentation.
16697
16698 2010-08-17 Richard Guenther <rguenther@suse.de>
16699
16700 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
16701
16702 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
16703
16704 PR c/40563
16705 * c-decl.c (diagnose_uninitialized_cst_member): New function.
16706 (finish_decl): Use it to issue a -Wc++-compat warning about
16707 uninitialized const field in struct or union.
16708
16709 (finish_struct): Use strip_array_types.
16710
16711 2010-08-17 Jakub Jelinek <jakub@redhat.com>
16712
16713 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
16714 functions.
16715 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
16716 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
16717 call block_nreverse here.
16718 (blocks_nreverse): Rename decl temporary to block.
16719
16720 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
16721
16722 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
16723 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
16724 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
16725 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
16726 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
16727 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
16728 thumb2_iorsi3): Delete.
16729 (orsi_notsi_si): No longer a named pattern.
16730 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
16731 * config/arm/predicates.md (shift_amount_operand): New.
16732 (mult_operator): New.
16733 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
16734 attr enabled): New.
16735 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
16736 arch matches t2.
16737 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
16738 (not_shiftsi_compare0): Likewise, renamed from
16739 arm_notsi_shiftsi_compare0.
16740 (not_shiftsi_compare0_scratch): Likweise, renamed from
16741 arm_notsi_shiftsi_compare0_scratch.
16742 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
16743 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
16744 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
16745 so that the register alternative is disabled when the shift_operator
16746 is MULT. Use "M" as the constraint for constants.
16747 (arith_shiftsi splitter): Enable for TARGET_32BIT.
16748 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
16749 constraint for constants.
16750 (arith_shiftsi_compare0_scratch): Likewise.
16751 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
16752 Handle Thumb2 alternative.
16753
16754 2010-08-16 Joseph Myers <joseph@codesourcery.com>
16755
16756 * doc/options.texi (NoDriverArg): Document.
16757 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
16758 -MDX and -MMDX.
16759 * opt-functions.awk (switch_flags): Handle NoDriverArg.
16760 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
16761 marking for CL_NO_DRIVER_ARG options when in the driver.
16762 * opts.h (CL_NO_DRIVER_ARG): Define.
16763 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
16764 CL_COMMON): Update values.
16765
16766 2010-08-16 Joseph Myers <joseph@codesourcery.com>
16767
16768 * common.opt: Add driver options.
16769 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
16770 * doc/options.texi (Driver, RejectDriver): Document.
16771 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
16772 print_prog_name, print_multi_directory, print_sysroot,
16773 print_multi_os_directory, print_multi_lib,
16774 print_sysroot_headers_suffix, report_times, combine_flag,
16775 use_pipes, wrapper_string): Remove.
16776 (save_switch, driver_unknown_option_callback,
16777 driver_wrong_lang_callback, driver_post_handling_callback,
16778 driver_handle_option): New.
16779 (spec_lang, last_language_n_infiles): Make file-scope static
16780 instead of local to process_command.
16781 (process_command): Use decode_cmdline_options_to_array and
16782 read_cmdline_option for option processing. Compute have_c in
16783 prescan of decoded options.
16784 * opt-functions.awk (switch_flags): Handle Driver and
16785 RejectDriver.
16786 (var_type, var_type_struct): Handle Separate options as generating
16787 const char * variables.
16788 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
16789 CL_TARGET to be passed by caller if required.
16790 (decode_cmdline_options_to_array): Update comment.
16791 * opts.c (complain_wrong_lang): Handle options only valid for the
16792 driver.
16793 (decode_options): Update call to decode_cmdline_options_to_array.
16794 (print_filtered_help): Ignore driver-only options.
16795 (print_specific_help): Ignore CL_DRIVER.
16796 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
16797 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
16798 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
16799 Update values.
16800
16801 2010-08-16 Richard Guenther <rguenther@suse.de>
16802
16803 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16804 TARGET_MEM_REF a bit.
16805 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
16806 (create_mem_ref_raw): Always create TMR_OFFSET, store the
16807 alias pointer type via it.
16808 (copy_mem_ref_info): Adjust.
16809 (maybe_fold_tmr): Likewise.
16810 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
16811 (reference_alias_ptr_type): Likewise.
16812 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
16813 adjust documentation of TMR_OFFSET operand.
16814 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
16815 use the alias pointer type.
16816 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
16817 initialize mem attrs but the TMR itself.
16818 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
16819 similar to MEM_REF.
16820 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
16821 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
16822 (unshare_and_remove_ssa_names): Likewise.
16823 (copy_ref_info): Adjust.
16824 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
16825 TARGET_MEM_REF case.
16826 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
16827 at TMR_ORIGINAL.
16828 * tree.h (TMR_ORIGINAL): Remove.
16829 * gimple.c (get_base_address): For TARGET_MEM_REF with a
16830 symbol return that.
16831 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
16832 with a symbol.
16833 (get_addr_base_and_unit_offset): Likewise.
16834 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
16835 TARGET_MEM_REFs.
16836 (indirect_ref_may_alias_decl_p): Likewise.
16837 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
16838
16839 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
16840
16841 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
16842 with GCC version 4.6, the default setting (when not optimizing
16843 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
16844 been changed to -fomit-frame-pointer.
16845
16846 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
16847
16848 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
16849 Darwin10. Do not link libgcc.a for Darwin >= 9.
16850
16851 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
16852
16853 * doc/invoke.texi (Warning Options): Fix terminology and markup
16854 in the description of how unknown warning options are handled.
16855
16856 2010-08-15 Ira Rosen <irar@il.ibm.com>
16857
16858 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
16859 in basic blocks.
16860 (vect_supportable_dr_alignment): Check alignment for basic blocks.
16861 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
16862 data references.
16863 (vect_bb_vectorization_profitable_p): New function.
16864 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
16865 check if it's worthwhile to vectorize the basic block.
16866
16867 2010-08-14 Anatoly Sokolov <aesok@post.ru>
16868
16869 * reload.h (register_move_cost, memory_move_secondary_cost,
16870 secondary_reload_class): Adjust prototype.
16871 * rtl.h (reg_class_subset_p): Adjust prototype.
16872 * reload.c (secondary_reload_class): Change arguments type from
16873 enum reg_class to reg_class_t. Change result type to reg_class_t.
16874 * reginfo.c (register_move_cost, reg_class_subset_p): Change
16875 arguments type from enum reg_class to reg_class_t.
16876 (memory_move_secondary_cost): Change arguments type from
16877 enum reg_class to reg_class_t. Change type of saved_flags to
16878 reg_class_t.
16879
16880 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16881 Remove macros.
16882 (mips_cost): Remove.
16883 (struct mips_rtx_cost_data): Moved to mips.c.
16884 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
16885 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
16886 (mips_cost): Make static.
16887 (mips_canonicalize_move_class): Change argument type to reg_class_t.
16888 Change result type to reg_class_t.
16889 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
16890 type from enum reg_class to reg_class_t.
16891 (mips_register_move_cost): Make static. Change arguments
16892 type from enum reg_class to reg_class_t.
16893 (mips_memory_move_cost): New function.
16894 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16895
16896 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
16897
16898 PR rtl-optimization/43358
16899 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
16900 of a single hard register, using simplify_subreg_regno to decide
16901 what that register should be.
16902
16903 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
16904
16905 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
16906 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
16907 (loongson_pmull<V_suffix>): Rename to...
16908 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
16909
16910 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
16911
16912 * configure.ac: Enable -fomit-frame-pointer on darwin
16913 which support dwarf2.
16914 * config/i386/i386.c (override_options): Same.
16915
16916 2010-08-13 Jie Zhang <jie@codesourcery.com>
16917
16918 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
16919
16920 2010-08-12 Joseph Myers <joseph@codesourcery.com>
16921
16922 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
16923 -MMD.
16924
16925 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
16926
16927 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
16928 up dot_prod pattern searching if a stmt is outside the loop.
16929
16930 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
16931 Uros Bizjak <ubizjak@gmail.com>
16932
16933 * config.gcc: Handle --enable-frame-pointer.
16934
16935 * configure.ac: Add --enable-frame-pointer.
16936 * configure: Regenerated.
16937
16938 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
16939 (override_options): If not configured with --enable-frame-pointer,
16940 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
16941 optimizing for size), -fasynchronous-unwind-tables and
16942 -maccumulate-outgoing-args by default.
16943
16944 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16945
16946 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
16947
16948 PR middle-end/45262
16949 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
16950 -a overflows. Normalize the range.
16951
16952 2010-08-12 Richard Guenther <rguenther@suse.de>
16953
16954 PR tree-optimization/45232
16955 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
16956 for types with undefined overflow.
16957 (reassociate_bb): Allow re-associating of bit and min/max
16958 operations for types with undefined overflow.
16959 * tree-ssa-forwprop.c (associate_plusminus): New function.
16960 (tree_ssa_forward_propagate_single_use_vars): Call it.
16961
16962 2010-08-12 Richard Guenther <rguenther@suse.de>
16963
16964 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
16965 * tree-ssa-alias.c (get_ptr_info): Move ...
16966 * tree-ssanames.c (get_ptr_info): ... here. Initialize
16967 align and misalign fields conservatively.
16968 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
16969 derive alignment information.
16970 (evaluate_stmt): Derive alignment information from memory
16971 allocation functions.
16972 * tree.h (get_pointer_alignment): Make unsigned.
16973 * builtins.c (get_object_alignment): Use alignment information we
16974 have computed for pointers.
16975 (get_pointer_alignment): Likewise. Make conservative, return
16976 and unsigned value.
16977 (expand_builtin_strlen): Adjust.
16978 (expand_builtin_memcmp): Likewise.
16979 (expand_builtin_strcmp): Likewise.
16980 (expand_builtin_strncmp): Likewise.
16981 (get_builtin_sync_mem): Use at least mode alignment.
16982 (fold_builtin_memset): Adjust.
16983 (fold_builtin_memory_op): Likewise.
16984 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
16985 information also dump pointer alignment knowledge.
16986 (dump_gimple_stmt): Likewise.
16987
16988 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
16989
16990 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
16991 (EMPTY_FIELD_BOUNDARY): Remove.
16992 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
16993
16994 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16995
16996 PR debug/45259
16997 * caller-save.c (save_call_clobbered_regs): Only swap notes with
16998 DEBUG_INSNs if n_regs_saved.
16999
17000 2010-08-12 Wei Guozhi <carrot@google.com>
17001
17002 PR target/44999
17003 * config/arm/arm.md (andsi3): Change to zero extension if possible.
17004 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
17005
17006 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
17007
17008 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
17009
17010 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
17011
17012 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17013
17014 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
17015 the case removed in the previous patch, when the only phi argument
17016 is defined in the same loop as the phi node itself. Handle it
17017 separately from the invariant case by both propagating it outside
17018 the region and replacing the phi node with an assign.
17019
17020 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17021
17022 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
17023 constant phi nodes with one argument are is_gimple_min_invariant
17024 and SSA_NAME_IS_DEFAULT_DEF.
17025
17026 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17027
17028 * graphite-cloog-util.c (oppose_constraint):
17029 Extend loop counter's value range (CLOOG_ORG).
17030 (cloog_matrix_to_ppl_constraint): Same.
17031 (new_Constraint_System_from_Cloog_matrix): Same.
17032 * graphite-cloog-compat.h (matrix_num_type): New.
17033
17034 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17035
17036 * graphite.c (graphite_initialize): Do not initialize
17037 CLooG and initialize the Parma Polyhedra Library
17038 manually when using CLOOG_ORG.
17039 (graphite_finalize): Do not finalize CLooG and finalize
17040 the Parma Polyhedra Library manually when using CLOOG_ORG.
17041 * graphite-cloog-compat.h (cloog_initialize): Hide function
17042 when using CLOOG_ORG.
17043 (cloog_finalize): Same.
17044
17045 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17046
17047 * graphite-clast-to-gimple.c (free_scattering): Change
17048 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
17049 (CLOOG_ORG).
17050 (build_cloog_prog): Same.
17051 * graphite-cloog-compat.h (cloog_domain): Removed.
17052 (cloog_scattering): New.
17053 (cloog_set_domain): Removed.
17054 (cloog_set_scattering): New.
17055 (cloog_next_domain): Removed.
17056 (cloog_next_scattering): New.
17057 (cloog_set_next_domain): Removed.
17058 (cloog_set_next_scattering): New.
17059 (CloogScatteringList): New.
17060 (CloogScattering): New.
17061 (cloog_scattering_free): New.
17062 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
17063 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
17064 New.
17065
17066 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17067
17068 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
17069 CloogState.
17070 (set_cloog_options): Same.
17071 (print_clast_stmt): Same.
17072 (scop_to_clast): Same.
17073 (print_generated_program): Same.
17074 (gloog): Same.
17075 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
17076 (scop_to_clast): Extend with CloogState.
17077 * graphite-cloog-util.c: Include graphite-cloog-compat.h
17078 (new_Cloog_Domain_from_ppl_Polyhedron):
17079 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
17080 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
17081 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17082 * graphite-cloog-util.h (build_cloog_prog): Same.
17083 * graphite-cloog-copat.h (build_cloog_prog): New.
17084 (CloogState): New.
17085 (cloog_state_malloc): New.
17086 (cloog_state_free): New.
17087 (cloog_loop_malloc): New.
17088 (cloog_options_malloc): New.
17089 (cloog_statement_alloc): New.
17090 (cloog_domain_from_cloog_matrix): New.
17091 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
17092 (new_Cloog_Domain_from_ppl_Polyhedron): New.
17093
17094 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17095
17096 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
17097 type of NAME now depends on used CLooG version.
17098 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
17099 (gcc_type_for_clast_expr): Same.
17100 (print_clast_stmt): Replace pprint with clast_pprint.
17101 * graphite-cloog-compat.h: Provide compatibility macros for
17102 CLooG Legacy.
17103 (clast_name_p): New.
17104 (clast_expr_term): New.
17105 (clast_expr_red): New.
17106 (clast_expr_bin): New.
17107 (clast_pprint): New.
17108
17109 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17110
17111 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
17112 compatible to newer CLooG releases (CLOOG_ORG).
17113 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
17114 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
17115 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
17116 (build_cloog_prog) : New.
17117 (cloog_program_extract_scalars): New.
17118 (cloog_program_scatter): New.
17119
17120 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17121
17122 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
17123 conditionally (CLOOG_ORG).
17124 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
17125 (cloog_statement_usr): New.
17126 (cloog_domain): Same.
17127 (cloog_set_domain): Same.
17128 (cloog_next_domain): Same.
17129 (cloog_set_next_domain): Same.
17130 (cloog_program_nb_scattdims): Same.
17131 (cloog_program_set_nb_scattdims): Same.
17132 (cloog_program_names): Same.
17133 (cloog_program_set_names): Same.
17134 (cloog_program_set_context): Same.
17135 (cloog_program_set_loop): Same.
17136 (cloog_program_blocklist): Same.
17137 (cloog_program_set_blocklist): Same.
17138 (cloog_program_scaldims): Same.
17139 (cloog_program_set_scaldims): Same.
17140 (cloog_names_nb_parameters): Same.
17141 (cloog_names_set_nb_parameters): Same.
17142 (cloog_names_parameters): Same.
17143 (cloog_names_set_parameters): Same.
17144 (cloog_names_set_nb_iterators): Same.
17145 (cloog_names_set_iterators): Same.
17146 (cloog_names_set_nb_scattering): Same.
17147 (cloog_names_set_scattering): Same.
17148 (cloog_statement_set_usr): Same.
17149 (cloog_loop_set_next): Same.
17150 (cloog_loop_set_domain): Same.
17151 (cloog_loop_set_block): Same.
17152 (cloog_block_list_next): Same.
17153 (cloog_block_list_set_next):
17154 (cloog_block_list_set_block): Same.
17155
17156 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17157
17158 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
17159 a bool.
17160 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
17161 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
17162 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
17163 when something has been changed.
17164 (rewrite_commutative_reductions_out_of_ssa): Same.
17165
17166 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17167
17168 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
17169 handle the case when def is in the sese region.
17170 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
17171 for invariant expressions.
17172 (rewrite_cross_bb_phi_deps): Removed.
17173 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
17174 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
17175 rewrite_cross_bb_phi_deps.
17176
17177 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17178
17179 * graphite-sese-to-poly.c
17180 (rewrite_commutative_reductions_out_of_ssa_loop): Call
17181 scev_analyzable_p only on is_gimple_reg
17182
17183 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17184
17185 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
17186 (rewrite_close_phi_out_of_ssa): Propagate constant values or
17187 parametric expressions outside the scop region.
17188 (rewrite_cross_bb_scalar_deps): Same.
17189 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
17190
17191 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17192
17193 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
17194 SSA_NAME_DEF_STMT only on SSA_NAMEs.
17195
17196 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17197
17198 * tree-scalar-evolution.c (instantiate_scev_name): Do not
17199 instantiate default definitions.
17200
17201 2010-08-11 Vladimir Kargov <kargov@gmail.com>
17202 Sebastian Pop <sebastian.pop@amd.com>
17203
17204 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
17205 (loop_exits_from_bb_p): New.
17206 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
17207 (loop_exits_from_bb_p): Declared.
17208 * graphite-scop-detection.c (scopdet_basic_block_info): Call
17209 loop_exits_to_bb_p.
17210
17211 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17212
17213 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
17214 extra parameter for the region. Call scev_analyzable_p.
17215 (rewrite_reductions_out_of_ssa): Update call to
17216 rewrite_close_phi_out_of_ssa.
17217 (rewrite_cross_bb_phi_deps): Same.
17218 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
17219 parameter for the region. Call scev_analyzable_p.
17220 (rewrite_commutative_reductions_out_of_ssa): Update call to
17221 rewrite_commutative_reductions_out_of_ssa_loop.
17222
17223 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17224
17225 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
17226
17227 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17228
17229 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
17230 SSA scalar phi nodes that can be scev_analyzable_p.
17231
17232 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17233
17234 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
17235 handle SSA_NAME_IS_DEFAULT_DEF.
17236
17237 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17238
17239 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
17240
17241 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17242
17243 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
17244 case non close-phi nodes with one argument.
17245
17246 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17247
17248 * sese.h (scev_analyzable_p): Scevs could be expressions without
17249 chrecs and still be scev_analyzable_p.
17250
17251 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17252
17253 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17254
17255 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17256
17257 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
17258 * cfgloop.h (struct loop): Remove single_iv field.
17259 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
17260 (scop_canonicalize_loops): Removed.
17261 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
17262 over all the loop phi nodes in loop->header.
17263 (build_poly_scop): Remove use of scop_canonicalize_loops.
17264
17265 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17266
17267 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
17268 handle GIMPLE_CALL.
17269
17270 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17271
17272 * tree-chrec.c (chrec_apply): Should only apply to the specified
17273 variable. Also handle multivariate chains of recurrences that
17274 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
17275
17276 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17277
17278 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
17279 (debug_clast_name_indexes_1): Removed.
17280 (debug_clast_name_indexes): Removed.
17281 (pbb_to_depth_to_oldiv): Removed.
17282 (build_iv_mapping): Replace the use of rename_map with iv_map.
17283 (translate_clast_user): Remove uses of rename_map. Allocate and
17284 free iv_map.
17285 (translate_clast_for_loop): Remove uses of rename_map.
17286 (translate_clast_for): Same.
17287 (translate_clast_guard): Same.
17288 (translate_clast): Same.
17289 (gloog): Same.
17290 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
17291 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
17292 * sese.c (set_rename): Now static.
17293 (rename_variables_in_stmt): Removed.
17294 (rename_uses): New.
17295 (is_parameter): Removed.
17296 (is_iv): Removed.
17297 (expand_scalar_variables_call): Removed.
17298 (expand_scalar_variables_ssa_name): Removed.
17299 (expand_scalar_variables_expr): Removed.
17300 (expand_scalar_variables_stmt): Removed.
17301 (expand_scalar_variables): Removed.
17302 (rename_variables): Removed.
17303 (remove_condition): Removed.
17304 (get_true_edge_from_guard_bb): Removed.
17305 (get_false_edge_from_guard_bb): Removed.
17306 (struct igp): Removed.
17307 (default_before_guard): Removed.
17308 (convert_for_phi_arg): Removed.
17309 (add_guard_exit_phis): Removed.
17310 (insert_guard_phis): Removed.
17311 (graphite_copy_stmts_from_block): Now also uses iv_map and a
17312 region. Do not copy conditions. Do not copy induction variables.
17313 Call rename_uses.
17314 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
17315 the translated statement. Use the iv_map for the induction
17316 variable renaming.
17317 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
17318 (set_rename): Removed declaration.
17319 (scev_analyzable_p): ...here.
17320 * tree-chrec.c (chrec_apply_map): New.
17321 * tree-chrec.h (chrec_apply_map): Declared.
17322
17323 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17324
17325 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
17326 insert_loop_close_phis.
17327 * sese.c (name_defined_in_loop_p): Removed.
17328 (expr_defined_in_loop_p): Removed.
17329 (alive_after_loop): Removed.
17330 (close_phi_not_yet_inserted_p): Removed.
17331 (struct alep): Removed.
17332 (add_loop_exit_phis): Removed.
17333 (insert_loop_close_phis): Removed.
17334
17335 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17336
17337 * graphite-cloog-util.c
17338 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
17339 * graphite-poly.c
17340 (psct_scattering_dim_for_loop_depth): Same.
17341
17342 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17343
17344 * graphite-cloog-util.h: Added cloog.h.
17345 * graphite-blocking.c: Removed cloog.h.
17346 * graphite-dependences.c: Same.
17347 * graphite-interchange.c: Same.
17348 * graphite-poly.c: Same.
17349 * graphite-ppl.c: Same.
17350 * graphite-scop-detection.c: Same.
17351 * graphite-sese-to-poly.c:
17352 Removed cloog.h.
17353 Removed graphite-clast-to-gimple.h.
17354 (check_poly_representation): Removed (unused).
17355 * graphite-sese-to-poly.h
17356 (check_poly_representation): Removed (unused).
17357
17358 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17359
17360 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
17361 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
17362 (graphite-cloog-util.o): New.
17363 (graphite-ppl.o): Added graphite-cloog-util.h.
17364 * graphite-clast-to-gimple.c:
17365 Added graphite-cloog-util.h to include statements.
17366 * graphite-cloog-util.c: New.
17367 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
17368 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17369 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17370 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17371 (insert_constraint_into_matrix): Same.
17372 (ppl_Constrain_System_number_of_constraints): Same.
17373 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
17374 (oppose_constraint): Same.
17375 (cloog_matrix_to_ppl_constraint): Same.
17376 (new_Constraint_System_from_Cloog_Matrix): Same.
17377 * graphite-cloog-util.h: New.
17378 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
17379 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17380 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17381 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17382 (insert_constraint_into_matrix): Same.
17383 * graphite-ppl.c:
17384 Added graphite-cloog-util.h to include statements.
17385 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
17386 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17387 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17388 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17389 (insert_constraint_into_matrix): Same.
17390 (ppl_Constrain_System_number_of_constraints): Same.
17391 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
17392 (oppose_constraint): Same.
17393 (cloog_matrix_to_ppl_constraint): Same.
17394 (new_Constraint_System_from_Cloog_Matrix): Same.
17395 * graphite-ppl.h:
17396 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
17397 graphite-cloog-util.h.
17398 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17399 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17400 (new_C_Polyhedron_from_Cloog_Matrix): Same.
17401 (insert_constraint_into_matrix): Same.
17402
17403 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
17404
17405 * graphite-clast-to-gimple.c
17406 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
17407 (precision_for_interval): Same.
17408 (gcc_type_for_interval): Same.
17409 (compute_type_for_level): Same.
17410 * graphite-interchange.c
17411 (lst_interchange_profitable_p): Same.
17412 * graphite-poly.c
17413 (psct_scattering_dim_for_loop_depth): Same.
17414 * graphite-ppl.c
17415 (ppl_max_for_le_pointset): Same.
17416 (ppl_min_for_le_pointset): Same.
17417
17418 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17419
17420 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
17421 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
17422
17423 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17424
17425 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
17426 rewrite_close_phi_out_of_ssa.
17427
17428 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17429
17430 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
17431
17432 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17433
17434 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
17435 rename_map.
17436 * sese.c (debug_rename_map): Same.
17437 (get_rename): Same.
17438 (set_rename): Same.
17439 (rename_variables_in_stmt): Same.
17440 (expand_scalar_variables_call): Same.
17441 (expand_scalar_variables_ssa_name): Same.
17442 (expand_scalar_variables_expr): Same.
17443 (expand_scalar_variables_stmt): Same.
17444 (expand_scalar_variables): Same.
17445 (rename_variables): Same.
17446 (graphite_copy_stmts_from_block): Same.
17447 (copy_bb_and_scalar_dependences): Same.
17448
17449 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17450
17451 * graphite-clast-to-gimple.c (copy_renames): Removed.
17452 (translate_clast_for): Do not call copy_renames.
17453 (translate_clast_guard): Same.
17454
17455 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17456
17457 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
17458 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
17459 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
17460 before rewrite_cross_bb_scalar_deps.
17461
17462 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17463
17464 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
17465 Early return in when flag_associative_math is not set.
17466
17467 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17468
17469 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
17470 of SSA copies on edges except for loop->latch.
17471
17472 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17473
17474 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
17475 Split out of rewrite_reductions_out_of_ssa.
17476 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
17477 Declared.
17478 * graphite.c (graphite_transform_loops): Call it.
17479
17480 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17481
17482 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
17483
17484 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
17485
17486 * dbgcnt.def (graphite_scop): New counter.
17487 * graphite.c: Include dbgcnt.h.
17488 (graphite_transform_loops): Use new counter to limit transformations.
17489 * Makefile.in (graphite.o): Depend on DBGCNT_H.
17490
17491 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17492
17493 * passes.c (init_optimization_passes): Add pass_graphite.
17494 Schedule a pass_copy_prop before pass_graphite_transforms.
17495 * timevar.def (TV_GRAPHITE): Declared.
17496 * tree-pass.h (pass_graphite): Declared.
17497 * tree-ssa-loop.c (pass_graphite): New.
17498
17499 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17500
17501 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
17502 Remove calls to rename_nb_iterations and rename_sese_parameters.
17503 * graphite-clast-to-gimple.h (gloog): Update declaration.
17504 * graphite.c (graphite_transform_loops): Update call to gloog.
17505 * sese.c (rename_variables_in_expr): Removed.
17506 (rename_nb_iterations): Removed.
17507 (rename_sese_parameters): Removed.
17508 * sese.h (rename_nb_iterations): Removed.
17509 (rename_sese_parameters): Removed.
17510
17511 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17512
17513 * graphite-clast-to-gimple.c (gloog): Remove call to
17514 sese_adjust_liveout_phis.
17515 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
17516 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
17517 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
17518 rewrite_phi_out_of_ssa.
17519 * sese.c (get_vdef_before_sese): Removed.
17520 (sese_adjust_vphi): Removed.
17521 (sese_adjust_liveout_phis): Removed.
17522 * sese.h (sese_adjust_liveout_phis): Removed.
17523
17524 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17525
17526 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
17527 argument for the place after which to insert the out of SSA copy.
17528 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
17529 (rewrite_phi_out_of_ssa): Same.
17530 (rewrite_cross_bb_scalar_deps): Same.
17531 (insert_copyout): Removed.
17532 (insert_copyin): Removed.
17533 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
17534 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
17535 insert_copyin.
17536
17537 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17538
17539 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
17540 (rewrite_reductions_out_of_ssa): Same.
17541 (rewrite_commutative_reductions_out_of_ssa): Same.
17542 (build_poly_scop): Do not call these functions.
17543 * graphite-sese-to-poly.h (build_poly_scop): Declared.
17544 (rewrite_reductions_out_of_ssa): Declared.
17545 (rewrite_commutative_reductions_out_of_ssa): Declared.
17546 * graphite.c (graphite_transform_loops): Call on every scop
17547 rewrite_commutative_reductions_out_of_ssa before calling
17548 rewrite_reductions_out_of_ssa and build_scop_bbs.
17549
17550 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17551
17552 * graphite-dependences.c (dot_deps): Make system call to dotty run
17553 in background.
17554 (dot_deps_stmt): Same.
17555 * graphite-poly.c (dot_lst): Same.
17556
17557 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
17558
17559 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
17560 phi_arg_in_outermost_loop.
17561 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
17562 (remove_invariant_phi): Same.
17563
17564 2010-08-11 Anatoly Sokolov <aesok@post.ru>
17565
17566 * target.def (output_addr_const_extra): New hook.
17567 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
17568 * doc/tm.texi: Regenerate.
17569 * targhooks.c (default_asm_output_addr_const_extra): New function.
17570 * targhooks.h (default_asm_output_addr_const_extra): Declare.
17571 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
17572 target hook.
17573
17574 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17575 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
17576 * config/i386/i386.h (output_addr_const_extra): Rename to...
17577 (i386_asm_output_addr_const_extra): ...this. Make static.
17578 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17579
17580 2010-08-11 Richard Henderson <rth@redhat.com>
17581
17582 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
17583
17584 2010-08-11 Nick Clifton <nickc@redhat.com>
17585
17586 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
17587 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
17588 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17589 stormy16-lib2-cmpsi.c.
17590
17591 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
17592 -O2.
17593
17594 2010-08-11 Joseph Myers <joseph@codesourcery.com>
17595
17596 * opts.h (struct cl_option_handler_func): Make handler take
17597 cl_decoded_option structure as parameter, not individual elements.
17598 (struct cl_option_handlers): Make callbacks take cl_decoded_option
17599 structure as parameter, not individual elements.
17600 (handle_option): Take cl_decoded_option structure as parameter,
17601 not individual elements.
17602 (handle_generated_option): Declare.
17603 * opts-common.c (handle_option): Take cl_decoded_option structure
17604 as parameter, not individual elements. Update calls to callback
17605 and handler functions.
17606 (handle_generated_option): New.
17607 (read_cmdline_option): Update calls to callback functions and
17608 handle_option.
17609 * opts.c (common_handle_option, complain_wrong_lang,
17610 unknown_option_callback, post_handling_callback,
17611 lang_handle_option, target_handle_option): Take cl_decoded_option
17612 structure as parameter, not individual elements.
17613 (lang_handle_option, target_handle_option, common_handle_option):
17614 Assert option has at most one argument.
17615 (enable_warning_as_error): Call handle_generated_option instead of
17616 handle_option. Do not pass -Werror argument as argument of
17617 generated option.
17618
17619 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17620
17621 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
17622 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
17623 (SUBWORD_BOOL_CAS): Likewise.
17624 (SUBWORD_SYNC_OP): Likewise.
17625 (SUBWORD_TEST_AND_SET): Likewise.
17626 (FETCH_AND_OP_WORD): Parenthesise INF_OP
17627 (SUBWORD_SYNC_OP): Likewise.
17628 (OP_AND_FETCH_WORD): Likewise.
17629
17630 2010-08-10 Xinliang David Li <davidxl@google.com>
17631
17632 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
17633 compute max/min offset in address.
17634
17635 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
17636
17637 * ira-live.c: Include sbitmap.h.
17638 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
17639 Compress live ranges even more.
17640
17641 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17642
17643 * coverage.c (ctr_labels): Delete.
17644
17645 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
17646
17647 PR bootstrap/45177
17648 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
17649 test here from arm_gen_load_multiple_1.
17650 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
17651 multiple_operation_profitable_p.
17652
17653 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17654
17655 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
17656 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
17657
17658 2010-08-10 Richard Henderson <rth@redhat.com>
17659
17660 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
17661 after saving registers. Assert that SSE registers are only saved
17662 with a sufficiently aligned frame.
17663 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
17664 remove stack_realign_fp handling.
17665 (ix86_expand_prologue): Save int registers before stack_realign_fp,
17666 and do not mark the stack alignment as frame related.
17667 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
17668
17669 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
17670 saves when re-aligning the stack.
17671
17672 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17673
17674 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
17675 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
17676 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
17677
17678 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
17679
17680 * dwarf2out.c (struct die_struct): Move die_tag to the end.
17681
17682 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
17683
17684 * config/arm/iterators.md: New file.
17685 * config/arm/arm.md: Include iterators.md.
17686 (QHSI): Move to new file.
17687 (LTUGEU, cnb, optab, ior_xor): Likewise.
17688 * config/arm/iwmmxt.md (VMMX): Move to new file.
17689 (VSHFT, MMX_char): Likewise.
17690 * config/arm/neon.md (VD): Move to new file.
17691 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
17692 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
17693 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
17694 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
17695 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
17696 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
17697 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
17698 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
17699 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
17700 (Is_d_reg, V_mode_nunits): Likewise.
17701 * config/arm/vec-common.md (VALL): Move to new file.
17702 (VALLW, VINT, VINTW): Likewise.
17703
17704 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
17705
17706 PR middle-end/45182
17707 * combine.c (make_compound_operation): Don't try to convert
17708 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
17709
17710 2010-08-10 Richard Guenther <rguenther@suse.de>
17711
17712 * tree.h (get_object_alignment): Adjust prototype.
17713 * builtins.c (get_object_alignment): Return unsigned int,
17714 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
17715 and TARGET_MEM_REF properly.
17716 (get_pointer_alignment): Adjust.
17717 * emit-rtl.c (get_mem_align_offset): Adjust comment.
17718 (set_mem_attributes_minus_bitpos): Adjust.
17719 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
17720
17721 2010-08-10 Richard Guenther <rguenther@suse.de>
17722
17723 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
17724 (copy_prop_visit_assignment): Simplify.
17725 (copy_prop_visit_stmt): Also visit assignments from
17726 constants.
17727 (copy_prop_visit_phi_node): Use operand_equal_p.
17728
17729 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17730
17731 * ipa-split.c (find_split_points): Free stack.
17732
17733 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17734
17735 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
17736 * tree.c (tree_node_kind): Delete corresponding entries.
17737
17738 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
17739
17740 * alias.c (may_alias_p): Remove unused ret.
17741
17742 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
17743
17744 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
17745 alias_sets_conflict_p.
17746 (walk_mems_1): Moved from alias.c.
17747 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
17748 in alias.c.
17749 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
17750 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
17751 * alias.c (walk_mems_2): Moved to ddg.c.
17752 (walk_mems_1): Ditto.
17753 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
17754 to ddg.c.
17755 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
17756 disambiguation.
17757 *(may_alias_p): New function to check whether two memory expression
17758 may alias or not. Currently used in buidling inter-iteration memory
17759 dependence.
17760 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
17761 (insn_alias_sets_conflict_p): Removed
17762 *rtl.h (may_alias_p): New function prototype.
17763
17764 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17765
17766 * tree.c (nreverse): Assert that we don't have a BLOCK.
17767
17768 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
17769
17770 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
17771 * config/arm/arm.c (arm_get_pcs_model): Likewise.
17772 * config/avr/avr.c (init_cumulative_args): Likewise.
17773 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
17774 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
17775 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
17776 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
17777 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
17778 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17779 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
17780 * dwarf2out.c (gen_subprogram_die): Likewise.
17781 * function.c (allocate_struct_function): Likewise.
17782 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
17783 (deserves_ellipsis): Delete.
17784
17785 2010-08-09 Richard Guenther <rguenther@suse.de>
17786
17787 * tree-ssa-copy.c (cached_last_copy_of): Remove.
17788 (valueize_val): New function.
17789 (get_last_copy_of): Remove.
17790 (set_copy_of_val): Simplify.
17791 (dump_copy_of): Likewise.
17792 (copy_prop_visit_cond_stmt): Use valueize_val.
17793 (copy_prop_visit_phi_node): Properly handle unvisited names.
17794 Drop code managing copy-of chains.
17795 (init_copy_prop): Adjust.
17796 (fini_copy_prop): Likewise.
17797 (execute_copy_prop): Remove obsolete comment.
17798
17799 2010-08-09 Richard Guenther <rguenther@suse.de>
17800
17801 PR middle-end/44632
17802 * function.c (gimplify_parameters): Do not clear addressable
17803 bit of the original parameter.
17804
17805 2010-08-09 Richard Guenther <rguenther@suse.de>
17806
17807 PR middle-end/45212
17808 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
17809 alignment from MEM_REF offset only if we took it from the
17810 base object.
17811
17812 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
17813
17814 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
17815
17816 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17817
17818 * c-tree.h (build_arg_info): Declare.
17819 * c-decl.c (build_arg_info): Define.
17820 (get_parm_info): Call it. Delete initialization code.
17821 * c-parser.c (c_parser_parms_declarator): Likewise.
17822 (c_parser_parms_list_declaractor): Likewise.
17823
17824 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17825
17826 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
17827 (struct c_arg_info): Change type of tags field.
17828 * c-decl.c (grokdeclarator): Update for changed type of tags field.
17829 (get_parm_info): Likewise.
17830 (store_parm_decls_newstyle): Likewise.
17831
17832 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17833
17834 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
17835 (branch_island_list): Delete.
17836 (branch_islands): Declare.
17837 (add_compiler_branch_island): Adjust for branch_islands instead of
17838 branch_island_list.
17839 (macho_branch_islands): Likewise.
17840 (no_previous_def): Likewise.
17841 (get_prev_label): Likewise.
17842
17843 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17844
17845 PR boehm-gc/34544
17846 * gthr-posix.h (__gthread_start): Delete.
17847 (__gthread_active_init): Use pthread_default_stacksize_np instead of
17848 pthread_create to determine if hpux pthreads are active.
17849 * gthr-posix95.h (__gthread_start): Delete.
17850 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
17851
17852 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
17853
17854 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
17855 _WIN64 not expanded.
17856
17857 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
17858 H.J. Lu <hongjiu.lu@intel.com>
17859
17860 PR target/45213
17861 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
17862 to output 32bit SFmode immediate as 8 byte sign extended value.
17863
17864 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
17865
17866 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
17867 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
17868 (SUBWORD_BOOL_CAS): Likewise.
17869 (SUBWORD_SYNC_OP): Likewise.
17870 (SUBWORD_TEST_AND_SET): Likewise.
17871 (FETCH_AND_OP_WORD): Parenthesise INF_OP
17872 (SUBWORD_SYNC_OP): Likewise.
17873 (OP_AND_FETCH_WORD): Likewise.
17874
17875 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17876
17877 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
17878 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
17879 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
17880 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
17881 generic part.
17882 (cortex_a9_sched_adjust_cost): New function.
17883 (xscale_sched_adjust_cost): New function.
17884 * config/arm/arm-protos.h (struct tune_params): New field
17885 sched_adjust_cost.
17886 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
17887
17888 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
17889
17890 PR target/44942
17891 * config/sparc/sparc.c (function_arg_advance): Always take into account
17892 the padding, if any.
17893
17894 2010-08-06 Richard Guenther <rguenther@suse.de>
17895
17896 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
17897 (dump_lattice_value): Dump it.
17898 (get_default_value): Adjust.
17899 (get_constant_value): Likewise.
17900 (set_value_varying): Likewise.
17901 (set_lattice_value): Make sure to not go up the lattice
17902 with bitwise constant values.
17903 (get_value_for_expr): Handle ADDR_EXPRs.
17904 (value_to_double_int): New function.
17905 (get_value_from_alignment): Likewise.
17906 (do_dbg_cnt): Adjust.
17907 (ccp_lattice_meet): Handle partially constant values.
17908 (bit_value_unop_1): New function.
17909 (bit_value_binop_1): Likewise.
17910 (bit_value_unop): Likewise.
17911 (bit_value_binop): Likewise.
17912 (evaluate_stmt): Track partially constant values if
17913 flag_tree_bit_ccp is set.
17914 (ccp_fold_stmt): Dump if we folded a predicate.
17915 (ccp_visit_stmt): Adjust.
17916 * common.opt (ftree-bit-ccp): New flag.
17917 * doc/invoke.texi (ftree-bit-ccp): Document.
17918 * opts.c (decode_options): Enable bit-CCP at -O1.
17919
17920 2010-08-06 Alan Modra <amodra@gmail.com>
17921
17922 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
17923 and -mrelocatable-lib description.
17924
17925 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
17926
17927 From Martin Thuresson <martint@google.com>
17928 * postreload.c (reload_cse_simplify_operands): Use
17929 SET_REGNO_RAW instead of SET_REGNO.
17930 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
17931 SET_REGNO.
17932 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
17933 instead of SET_REGNO.
17934 * rtl.h (SET_REGNO_RAW): New macro.
17935
17936 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
17937
17938 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
17939 computations. Fix formatting issues.
17940 (num_sign_bit_copies1): Likewise.
17941 (canonicalize_condition): Likewise.
17942
17943 2010-08-05 Richard Henderson <rth@redhat.com>
17944
17945 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
17946 (floor_log2): Use clz_hwi.
17947 (exact_log2): Use ctz_hwi.
17948 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
17949 * builtins.c (fold_builtin_bitop): Use them.
17950 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17951 * combine.c (get_pos_from_mask): Use ctz_hwi.
17952 * double-int.c (double_int_ctz): Likewise.
17953 * explow.c (force_reg): Likewise.
17954 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
17955
17956 2010-08-05 Richard Henderson <rth@redhat.com>
17957
17958 PR target/45189
17959 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
17960 the alignment constant is properly sign-extended.
17961
17962 2010-08-05 Richard Guenther <rguenther@suse.de>
17963
17964 * expr.c (store_expr): Use emit_block_move only if both
17965 source and target are MEMs. Use store_bit_field if only
17966 the target is a MEM.
17967
17968 2010-08-05 Richard Henderson <rth@redhat.com>
17969
17970 PR debug/45188
17971 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
17972 (INCOMING_RETURN_ADDR_RTX): Likewise.
17973 (dwarf2out_do_frame): Remove conditional compilation.
17974 (dwarf2out_frame_init): Likewise.
17975
17976 2010-08-05 Nicolas Setton <setton@adacore.com>
17977
17978 * gcov.c (flag_display_progress): New static variable.
17979 (main): Display progress info on standard output if requested.
17980 (options): Add -d/--display-progress.
17981 (print_usage): Print them.
17982 (process_args): Handle them.
17983 * doc/gcov.texi: Document them.
17984
17985 2010-08-05 Martin Jambor <mjambor@suse.cz>
17986
17987 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
17988 (ipcp_insert_stage): Redirect only edges not flagged with
17989 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
17990 discovered constants.
17991
17992 2010-08-05 Martin Jambor <mjambor@suse.cz>
17993
17994 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
17995 (struct ipa_param_descriptor): New fields types and
17996 cannot_devirtualize.
17997 (ipa_param_cannot_devirtualize_p): New function.
17998 (ipa_param_types_vec_empty): Likewise.
17999 (ipa_make_edge_direct_to_target): Declare.
18000 * ipa-cp.c: Fixed first stage driver name in initial comment,
18001 described devirtualization there too.
18002 (ipcp_analyze_node): Call ipa_analyze_params_uses.
18003 (ipcp_print_all_lattices): Print devirtualization info.
18004 (ipa_set_param_cannot_devirtualize): New function.
18005 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
18006 lattice to BOTTOM.
18007 (ipcp_init_stage): Merged into...
18008 (ipcp_generate_summary): ...its caller.
18009 (ipcp_change_tops_to_bottom): Also process type lists.
18010 (ipcp_add_param_type): New function.
18011 (ipcp_copy_types): Likewise.
18012 (ipcp_propagate_types): Likewise.
18013 (ipcp_propagate_stage): Also propagate types.
18014 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
18015 Also return true if propagated types require it.
18016 (ipcp_update_callgraph): Dump redirection info.
18017 (ipcp_process_devirtualization_opportunities): New function.
18018 (ipcp_const_param_count): Include known type information.
18019 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
18020 on new node. Fixed formatting.
18021 * ipa-prop.c (make_edge_direct_to_target): Renamed to
18022 ipa_make_edge_direct_to_target and changed all callers. Made
18023 externally visible.
18024 (ipa_node_duplication_hook): Duplicate types vector.
18025 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
18026 redirect outgoing calls for which we can't get a decl from the
18027 statement. Check that we can get a decl from the call statement.
18028 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
18029 ipa_analyze_params_uses only when ipa-cp is disabled.
18030 * tree-inline.c (get_indirect_callee_fndecl): Removed.
18031 (expand_call_inline): Do not call get_indirect_callee_fndecl.
18032 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
18033 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
18034
18035 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
18036
18037 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
18038 temporary. Emit move from temporary to accum, so REG_EQUAL note will
18039 be attached to this insn in correct mode.
18040
18041 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
18042
18043 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
18044 using REGNO of base_reg directly.
18045
18046 2010-08-05 Jie Zhang <jie@codesourcery.com>
18047
18048 PR tree-optimization/45144
18049 * tree-sra.c (type_consists_of_records_p): Return false
18050 if the record contains bit-field.
18051
18052 2010-08-04 Richard Henderson <rth@redhat.com>
18053
18054 * config/i386/i386.c (struct ix86_frame): Remove padding and
18055 to_allocate members.
18056 (ix86_compute_frame_layout): Don't store them.
18057 (ix86_can_use_return_insn_p): Use a more direct and more obviously
18058 correct condition for the position of the stack pointer.
18059 (ix86_expand_prologue): Compute remaining stack allocation based
18060 on the ultimate stack pointer offset.
18061 (ix86_expand_epilogue): Use more obvious expressions testing for
18062 the stack pointer already pointing to the saved registers.
18063
18064 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
18065 duplication deconstructing the frame pointer. Simplify
18066 deallocation of the local stack frame.
18067
18068 * reg-notes.def (CFA_EXPRESSION): New.
18069 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
18070 (dwarf2out_frame_debug_cfa_expression): New.
18071 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
18072
18073 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
18074 * config/i386/i386.c (ix86_expand_prologue): Set it.
18075 (ix86_expand_epilogue): Clear it.
18076 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
18077 context, add REG_CFA_EXPRESSION notes.
18078
18079 * config/i386/i386.h (struct machine_frame_state): Rename from
18080 machine_cfa_state. Add members tracking SP and FP regardless
18081 of the current CFA register.
18082 (ix86_cfa_state): Remove.
18083 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
18084 and sse_reg_save_offset members.
18085 (ix86_compute_frame_layout): Set them.
18086 (gen_push): Increment sp_offset too.
18087 (choose_baseaddr_len, choose_baseaddr): New.
18088 (ix86_emit_save_reg_using_mov): New.
18089 (ix86_emit_save_regs_using_mov): Use it.
18090 (ix86_emit_save_sse_regs_using_mov): Likewise.
18091 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
18092 compare vs the saved red_zone_offset.
18093 (pro_epilogue_adjust_stack): Adjust sp_offset.
18094 (ix86_adjust_stack_and_probe): Likewise.
18095 (ix86_expand_prologue): Set up, use, and validate the new
18096 frame_state_info members. Use gen_frame_mem.
18097 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
18098 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
18099 new frame_state_info members.
18100 (ix86_emit_leave): Likewise.
18101 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
18102 out-of-range stack pointer offsets here.
18103 (ix86_emit_restore_sse_regs_using_mov): Likewise.
18104 (ix86_expand_epilogue): Use and validate the new frame_state_info
18105 members. Break up and simplify the logic selecting the
18106 restore_regs_via_mov code path. Ensure that there will be no
18107 out-of-range stack pointer offsets.
18108
18109 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
18110
18111 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
18112 argument name to reflect the expected tree; fix indentation.
18113 (ix86_asm_output_function_label): Output the entire 32-bit
18114 ms_hook here as bytes ...
18115 (ix86_expand_prologue): ... not here as insns. Attach the
18116 unwind info for the ms_hook to a blockage insn.
18117 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
18118 (ix86_ms_bitfield_layout_p): Fix indentation.
18119 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
18120
18121 * config/i386/i386.c (ix86_using_red_zone): New.
18122 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
18123 ix86_expand_prologue, ix86_force_to_memory): Use it.
18124
18125 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
18126 saving the int registers.
18127
18128 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
18129 and DWARF2_UNWIND_INFO conditional compilation.
18130
18131 2010-08-04 Richard Henderson <rth@redhat.com>
18132
18133 PR debug/45171
18134 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
18135 an is_naming_typedef_decl.
18136
18137 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
18138
18139 PR rtl-optimization/45162
18140 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
18141 * dce.c (word_dce_process_block): Likewise.
18142
18143 2010-08-04 Steve Ellcey <sje@cup.hp.com>
18144
18145 PR target/44583
18146 * config/ia64/constraints.md (Z): New.
18147 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
18148 (xfreg_or_signed_fp01_operand): New.
18149 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
18150 with fr_reg_or_signed_fp01_operand and constraint G with Z.
18151 (subsf3): Ditto.
18152 (*maddsf4): Ditto.
18153 (*msubsf4): Ditto.
18154 (adddf3): Ditto.
18155 (adddf3_trunc): Ditto.
18156 (subdf3): Ditto.
18157 (*subdf3_trunc): Ditto.
18158 (*madddf4): Ditto.
18159 (*madddf4_trunc): Ditto.
18160 (*msubdf4): Ditto.
18161 (*msubdf4_trunc): Ditto.
18162 (addxf3): Replace xfreg_or_fp01_operand with
18163 xfreg_or_signed_fp01_operand and constraint G with Z.
18164 (*addxf3_truncsf): Ditto.
18165 (*addxf3_truncdf): Ditto.
18166 (subxf3): Ditto.
18167 (*subxf3_truncsf): Ditto.
18168 (*subxf3_truncdf): Ditto.
18169 (*maddxf4): Ditto.
18170 (*maddxf4_truncsf): Ditto.
18171 (*maddxf4_truncdf): Ditto.
18172 (*msubxf4): Ditto.
18173 (*msubxf4_truncsf): Ditto.
18174 (*msubxf4_truncdf): Ditto.
18175
18176 2010-08-04 Richard Guenther <rguenther@suse.de>
18177
18178 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
18179 if either alias-set is zero.
18180
18181 2010-08-04 Richard Guenther <rguenther@suse.de>
18182
18183 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
18184 * tree-ssa-ccp.c: ... here.
18185 * tree-ssa-copy.c: ... and here.
18186 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
18187 value_range_t): Move ...
18188 * tree-vrp.c: ... here.
18189 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
18190 (substitute_and_fold): Adjust prototype.
18191 * tree-ssa-propagate.c (replace_uses_in): Adjust.
18192 (replace_phi_args_in): Likewise.
18193 (substitute_and_fold): Take callback to query lattice instead
18194 of pointer to lattice. Replace SSA name defs with lattice
18195 values first.
18196 * tree-ssa-ccp.c (ccp_finalize): Adjust.
18197 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
18198 (get_value): New function.
18199 (fini_copy_prop): Adjust.
18200 * tree-vrp.c (vrp_finalize): Adjust.
18201
18202 2010-08-04 Richard Guenther <rguenther@suse.de>
18203
18204 PR middle-end/45176
18205 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
18206 points-to set for original MEM_REF.
18207
18208 2010-08-04 Richard Guenther <rguenther@suse.de>
18209
18210 * tree-ssa-ccp.c (get_constant_value): New function.
18211 (get_rhs_assign_op_for_ccp): Remove.
18212 (valueize_op): New function.
18213 (ccp_fold): Use get_constant_value and valueize_op.
18214 (fold_const_aggregate_ref): Likewise.
18215 (ccp_fold_stmt): Likewise.
18216 (visit_assignment): Simplify.
18217
18218 2010-08-04 Richard Guenther <rguenther@suse.de>
18219
18220 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
18221 * double-int.h (double_int_ctz): Declare.
18222 * double-int.c (double_int_ctz): New function.
18223
18224 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
18225
18226 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
18227 Define.
18228 picochip_expand_movmemhi : Expand movmem pattern.
18229 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
18230 Declare.
18231 * config/picochip/picochip.md (movmemhi) : New pattern.
18232
18233 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
18234
18235 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
18236
18237 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
18238
18239 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
18240 NEG as operand of a MULT by merging it with the other operand.
18241 * combine.c (make_compound_operation): Use trunc_int_for_mode when
18242 generating a MULT with constant. Canonicalize PLUS and MINUS involving
18243 MULT.
18244 * config/arm/constraints.md (M): Examine only 32 bits of a
18245 HOST_WIDE_INT.
18246 * config/arm/predicates.md (power_of_two_operand): Likewise.
18247
18248 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18249
18250 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
18251 non-NOTE insns.
18252
18253 2010-08-03 Jan Hubicka <jh@suse.cz>
18254
18255 * ipa-split.c (struct split_point): Add split_part_set_retval.
18256 (find_retval): Forward declare.
18257 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
18258 (consider_split): Compute current->split_part_set_retval.
18259 (visit_bb): Do not look into return value.
18260 (split_function): Handle !split_part_set_retval
18261
18262 2010-08-03 Martin Jambor <mjambor@suse.cz>
18263
18264 * tree-sra.c (completely_scalarize_record): New parameter REF, create
18265 its own access->expr intead of using build_ref_for_offset.
18266
18267 2010-08-03 Joseph Myers <joseph@codesourcery.com>
18268
18269 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
18270 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
18271 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
18272 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
18273 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
18274 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
18275 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
18276 DEFAULT_SWITCH_TAKES_ARG.
18277 * config/rx/rx.opt (-patch=): Remove option.
18278 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
18279 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
18280 * doc/invoke.texi (RX Options): Remove -patch=.
18281 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
18282 (option_map): Remove --profile-blocks, --quiet and --silent.
18283
18284 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
18285
18286 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
18287 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
18288 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
18289 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
18290 Update calls to ix86_expand_compare and ix86_expand_branch.
18291 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
18292 ix86_expand_compare.
18293 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
18294 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
18295 Make static.
18296 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
18297 and ix86_compare_op1. Update calls to ix86_expand_compare.
18298 (ix86_expand_int_movcc): Ditto.
18299 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
18300 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
18301 (ix86_expand_setcc): Ditto.
18302 (ix86_expand_compare): Remove prototype.
18303 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
18304 ix86_compare_op0 and ix86_compare_op1. Update calls
18305 to ix86_expand_branch to directly pass operands[1] and operands[2].
18306 (cbranchxf4): Ditto.
18307 (cbranch<MODEF:mode>4): Ditto.
18308 (cbranchcc4): Ditto.
18309 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
18310 Update calls to ix86_expand_setcc to directly pass operands[2] and
18311 operands[3].
18312 (cstorexf4): Ditto.
18313 (cstore<MODEF:mode>4): Ditto.
18314 (cstorecc4): Ditto.
18315
18316 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
18317
18318 PR target/45063
18319 * caller-save.c (save_call_clobbered_regs): Remove regs from
18320 hard_regs_saved when they are set.
18321
18322 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
18323
18324 PR target/41089
18325 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18326 as volatile.
18327
18328 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
18329
18330 * common.opt (ftree-loop-distribute-patterns): New.
18331 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
18332 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
18333 at -O3.
18334 * tree-data-ref.c (stores_zero_from_loop): New.
18335 * tree-data-ref.h (stores_zero_from_loop): Declared.
18336 * tree-loop-distribution.c (tree_loop_distribution): Call
18337 stores_zero_from_loop.
18338 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
18339
18340 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
18341
18342 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
18343 into account.
18344
18345 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
18346 * config/arm/arm.c (thumb1_code): New variable.
18347 (arm_override_options): Set it.
18348 (thumb1_final_prescan_insn): Keep track of condition code status.
18349 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
18350 jumps that depend on them.
18351 * config/arm/arm.h (thumb1_code): Declare variable.
18352 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
18353 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
18354 thumb1_cc_mode.
18355 (CC_STATUS_INIT): New macro.
18356 * config/arm/constraints.md (Pd): New constraint.
18357 * config/arm/predicates.md (noov_comparison_operator): New predicate.
18358 * config/arm/arm.md (is_thumb1): New define_attr.
18359 (conds): Set default to "clob" when generating Thumb1 code.
18360 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
18361 code are set. Use two-operand assembly syntax.
18362 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
18363 pattern.
18364 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
18365 codes are set. Use two-operand assembly syntax.
18366 (zero_extendhisi splitter): Remove constraints.
18367 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
18368 thumb1_movsf_insn): Set conds attribute as appropriate.
18369 (cbranchsi4_insn): Use condition code status from struct
18370 machine_function to determine whether the comparison can be eliminated.
18371 Discourage the alternative using high registers.
18372 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
18373 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
18374 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
18375 subsi3_cbranch): Delete.
18376 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
18377 one subtract and one cbranch insn.
18378
18379 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
18380 thumb2_movdf_soft_insn): Delete patterns.
18381 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
18382 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
18383 (pool_range, neg_pool_range): Use them to define defaults.
18384 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
18385 and allow for TARGET_32BIT.
18386
18387 PR target/40457
18388 * config/arm/arm.h (arm_regs_in_sequence): Declare.
18389 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
18390 load_multiple_sequence, store_multiple_sequence): Delete
18391 declarations.
18392 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
18393 declarations.
18394 * config/arm/ldmstm.md: New file.
18395 * config/arm/arm.c (arm_regs_in_sequence): New array.
18396 (load_multiple_sequence): Now static. New args SAVED_ORDER,
18397 CHECK_REGS. All callers changed.
18398 If SAVED_ORDER is nonnull, copy the computed order into it.
18399 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
18400 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
18401 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
18402 If SAVED_ORDER is nonnull, copy the computed order into it.
18403 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
18404 like REGS. Handle Thumb mode.
18405 (arm_gen_load_multiple_1): New function, broken out of
18406 arm_gen_load_multiple.
18407 (arm_gen_store_multiple_1): New function, broken out of
18408 arm_gen_store_multiple.
18409 (arm_gen_multiple_op): New function, with code from
18410 arm_gen_load_multiple and arm_gen_store_multiple moved here.
18411 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
18412 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
18413 changed.
18414 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
18415 * config/arm/predicates.md (commutative_binary_operator): New.
18416 (load_multiple_operation, store_multiple_operation): Handle more
18417 variants of these patterns with different starting offsets. Handle
18418 Thumb-1.
18419 * config/arm/arm.md: Include "ldmstm.md".
18420 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
18421 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
18422 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
18423 peepholes): Delete.
18424 * config/arm/ldmstm.md: New file.
18425 * config/arm/arm-ldmstm.ml: New file.
18426
18427 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
18428 if statement which adds extra costs to frame-related expressions.
18429
18430 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18431
18432 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
18433
18434 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
18435
18436 PR target/45142
18437 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
18438 alternative 2.
18439 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
18440 split V4SI operands.
18441
18442 2010-08-01 Anatoly Sokolov <aesok@post.ru>
18443
18444 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18445 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
18446 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
18447 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
18448
18449 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
18450
18451 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
18452 LOCAL_INCLUDE_DIR.
18453
18454 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
18455
18456 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
18457 used in the call to optab_for_tree_code. Fix the second
18458 is_widening_mult_p call. Check that both unwidened operands
18459 have the same sign.
18460
18461 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
18462
18463 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
18464
18465 2010-07-31 Anatoly Sokolov <aesok@post.ru>
18466
18467 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18468
18469 2010-07-30 DJ Delorie <dj@redhat.com>
18470
18471 * config/rx/predicates.md (rx_constshift_operand): New.
18472 * config/rx/rx.md (zs_cond): New.
18473 (cbranchsi4): Remove mode.
18474 (*cbranchsi4_<code>): Likewise.
18475 (*tstbranchsi4_<code>): New.
18476 (*tstbranchsi4r_<code>): New.
18477 (*tstbranchsi4m_eq): New.
18478 (*tstbranchsi4m_ne): New.
18479 (cbranchsf4): Remove mode.
18480 (*cbranchsf4_<code>): Likewise.
18481
18482 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
18483
18484 * rtlanal.c (simplify_subreg_regno): Don't treat
18485 HARD_FRAME_POINTER_REGNUM specially.
18486
18487 2010-07-30 Joseph Myers <joseph@codesourcery.com>
18488
18489 * common.opt (-G): Don't define option here.
18490 * config/g.opt: New.
18491 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
18492 rs6000/powerpc and score targets.
18493 * opts.c (common_handle_option): Don't handle -G here.
18494 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
18495 * config/frv/frv.c (frv_handle_option): Handle -G.
18496 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
18497 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
18498 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
18499 * config/mips/mips.c (mips_handle_option): Handle -G.
18500 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
18501 * config/score/score.c (score_handle_option): Handle -G.
18502
18503 2010-07-30 Anatoly Sokolov <aesok@post.ru>
18504
18505 * config/mmix/mmix.c: Include basic-block.h.
18506
18507 2010-07-30 Jakub Jelinek <jakub@redhat.com>
18508
18509 PR debug/45055
18510 PR rtl-optimization/45137
18511 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
18512 prototypes.
18513 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
18514 New functions.
18515 * combine.c (next_nonnote_nondebug_insn): Removed.
18516 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
18517 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
18518 * sched-deps.c (sched_analyze_insn): Likewise.
18519 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
18520 * rtlanal.c (canonicalize_condition): Likewise.
18521 * postreload.c (reload_combine_recognize_pattern): Likewise.
18522 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
18523
18524 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
18525
18526 * config/i386/i386.md (int_cond): Remove code iterator.
18527 (fp_cond): Ditto.
18528 (cbranch<mode>4): Use ordered_comparison_operator predicate
18529 for operator0.
18530 (cstore<mode>4): Ditto for operator1.
18531 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
18532 (add<mode>cc): ditto.
18533
18534 2010-07-30 Richard Guenther <rguenther@suse.de>
18535
18536 PR middle-end/45141
18537 * expr.c (expand_expr_real_1): Check for not handled base address.
18538
18539 2010-07-30 Richard Guenther <rguenther@suse.de>
18540
18541 * ipa-prop.c (ipa_modify_formal_parameters): Use
18542 build_distinct_type_copy.
18543
18544 2010-07-30 Anthony Green <green@moxielogic.com>
18545
18546 * config/moxie/rtems.h: New file.
18547 * config.gcc: Add moxie-rtems support.
18548
18549 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
18550
18551 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
18552 df flags as in run_fast_df_dce.
18553
18554 2010-07-29 Jakub Jelinek <jakub@redhat.com>
18555
18556 Revert:
18557 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18558
18559 * rtl.def (NOTE): Swap operands 4 and 5.
18560 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
18561 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
18562 Adjust accordingly.
18563 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
18564
18565 2010-07-29 Jakub Jelinek <jakub@redhat.com>
18566
18567 PR debug/45110
18568 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
18569 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
18570 (gen_subprogram_die): Likewise. Remove it when removing declaration's
18571 formal parameters.
18572 (gen_decl_die): Change return type to dw_die_ref, return what
18573 gen_formal_parameter_die returned.
18574
18575 2010-07-29 Martin Jambor <mjambor@suse.cz>
18576
18577 * dbgcnt.def (eipa_sra): New counter.
18578 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
18579
18580 2010-07-29 Xinliang David Li <davidxl@google.com>
18581
18582 PR bootstrap/45119
18583 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
18584 in revision 162652.
18585
18586 2010-07-29 Richard Guenther <rguenther@suse.de>
18587
18588 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
18589 (TV_TREE_STORE_CCP): Likewise.
18590 (TV_TREE_REDPHI): Likewise.
18591
18592 2010-07-29 Richard Guenther <rguenther@suse.de>
18593
18594 * double-int.h (double_int_and_not): New function.
18595 * combine.c (try_combine): Use it.
18596 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
18597
18598 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
18599
18600 PR rtl-optimization/42575
18601 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
18602 Argument AU removed. All callers changed. Ignore artificial refs.
18603 Use return value of df_word_lr_simulate_defs to decide whether an insn
18604 is necessary.
18605 (fast_dce): Rename arg to WORD_LEVEL.
18606 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
18607 static.
18608 (pass_fast_rtl_byte_dce): Delete.
18609 * dce.h (run_word_dce): Declare.
18610 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
18611 All callers changed. Simplify code to only deal with two-word regs.
18612 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
18613 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
18614 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
18615 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
18616 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
18617 (df_word_lr_mark_ref): Declare.
18618 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
18619 df_word_lr_simulate_uses): Declare or rename from byte variants.
18620 (df_byte_lr_simulate_artificial_refs_at_top,
18621 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
18622 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
18623 declarations.
18624 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
18625 (enum df_mm): Delete.
18626 * df-byte-scan.c: Delete file.
18627 * df-problems.c (df_word_lr_problem_data): Renamed from
18628 df_byte_lr_problem_data, all members deleted except for
18629 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
18630 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
18631 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
18632 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
18633 df_byte_lr_confluence_0): Delete functions.
18634 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
18635 callers changed.
18636 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
18637 Don't initialize members that were deleted, don't try to discover data
18638 about registers. Ignore hard regs.
18639 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
18640 (df_word_lr_mark_ref): New function.
18641 (df_word_lr_bb_local_compute): Renamed from
18642 df_byte_bb_lr_local_compute; all callers changed. Use
18643 df_word_lr_mark_ref. Assert that artificial refs don't include
18644 pseudos. Ignore hard registers.
18645 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
18646 Assert that exit block uses don't contain pseudos.
18647 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
18648 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
18649 callers changed. Ignore hard regs.
18650 (df_word_lr_transfer_function): Renamed from
18651 df_byte_lr_transfer_function; all callers changed.
18652 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
18653 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
18654 changed.
18655 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
18656 callers changed.
18657 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
18658 confluence operator 0 set to NULL.
18659 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
18660 callers changed.
18661 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
18662 Return bool, true if bitmap changed or insn otherwise necessary.
18663 All callers changed. Simplify using df_word_lr_mark_ref.
18664 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
18665 all callers changed. Simplify using df_word_lr_mark_ref.
18666 * lower-subreg.c: Include "dce.h"
18667 (decompose_multiword_subregs): Call run_word_dce if df available.
18668 * Makefile.in (lower-subreg.o): Adjust dependencies.
18669 (df-byte-scan.o): Delete.
18670 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
18671
18672 2010-07-29 Richard Guenther <rguenther@suse.de>
18673
18674 * tree.c (build_vector): Assert that the vector constant
18675 has enough elements.
18676 (build_vector_from_ctor): Pad with trailing zeros.
18677
18678 2010-07-29 Richard Guenther <rguenther@suse.de>
18679
18680 PR tree-optimization/45120
18681 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18682 Handle offset in DEREFs properly.
18683 (get_constraint_for_1): Handle MEM_REF offset properly.
18684
18685 2010-07-29 Richard Guenther <rguenther@suse.de>
18686
18687 PR middle-end/45034
18688 * convert.c (convert_to_integer): Always use an unsigned
18689 type for narrowed negate and bitwise not.
18690
18691 2010-07-29 Ira Rosen <irar@il.ibm.com>
18692
18693 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
18694 to outer loop when creating reduction epilogue for double reduction,
18695 and switch back to the inner loop when updating the phi nodes.
18696 Update uses of outer loop exit phi nodes in double reduction (instead
18697 of uses of reduction).
18698
18699 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
18700
18701 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
18702 popcount on power7 and parity on power6 systems.
18703 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
18704 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
18705 instructions.
18706
18707 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
18708 (UNSPEC_PARITY): Ditto.
18709 (SFDF): New iterator for SF/DF.
18710 (rreg2): New mode attribute for floating register constraint.
18711 (TARGET_FLOAT): New mode attribute for whether single/double float
18712 is supported.
18713 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
18714 pattern.
18715 (parity<mode>2_cmpb): New insn for parity on power6 and newer
18716 machines.
18717 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
18718 pattern. Add support for fcpsgn instruction added in power6.
18719 (copysignsf3): Delete.
18720 (copysigndf3): Delete.
18721 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
18722 instead of if_then_else in RTL to avoid problems with -0.
18723
18724 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
18725 of if_then_else to mirror scalar code.
18726 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
18727 rs6000.md.
18728
18729 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
18730 instead of if_then_else.
18731
18732 2010-07-28 Xinliang David Li <davidxl@google.com>
18733
18734 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
18735 (dump_cand): Dump var_before/after.
18736 (htab_inv_expr_eq): New function.
18737 (htab_inv_expr_hash): New function.
18738 (tree_ssa_iv_optimize_init): Support pseudo invariants.
18739 (add_candidate_1): consider base type precision.
18740 (set_use_iv_cost): New parameter.
18741 (adjust_setup_cost): Use profile information.
18742 (get_address_cost): Do not hard code width in computing address
18743 offset limits.
18744 (compare_aff_trees): New function.
18745 (get_loop_invariant_expr_id): New function.
18746 (get_computation_cost_at): New parameter and use profile information.
18747 (get_computation_cost): New parameter.
18748 (determine_use_iv_cost_generic): Pass new parameter.
18749 (determine_use_iv_cost_address): Ditto.
18750 (determine_use_iv_cost_condition): Ditto.
18751 (autoinc_possible_for_pair): Ditto.
18752 (determine_use_iv_costs): More dumps.
18753 (iv_ca_get_num_inv_exprs): New function.
18754 (iv_ca_recount_cost): Consider loop invariants in register pressure
18755 cost.
18756 (iv_ca_add_use): New parameter.
18757 (iv_ca_dump): Better dumping.
18758 (iv_ca_extend): New parameter.
18759 (try_add_cand_for): Attempt to get better partial solution.
18760 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
18761 (create_new-ivs): More dumps.
18762 (rewrite_use_compare): Ditto.
18763 (free_loop_data): More cleanup.
18764 (treee_ssa_iv_optimize_finalize): Ditto.
18765
18766 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
18767
18768 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
18769 * config/i386/i386.c (ix86_profile_before_prologue): New.
18770 (override_options): Add special handling for -mfentry.
18771 (ix86_function_regparm): Likewise.
18772 (ix86_function_sseregparm): Likewise.
18773 (ix86_frame_pointer_required): Likewise.
18774 (ix86_expand_prologue): Check for ms_hook_prologue.
18775 (x86_function_profiler): Adjust mcount output.
18776 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
18777 * config/i386/i386.opt (mfentry): New.
18778 * doc/invoke.texi (mfentry): Add documentation.
18779 * doc/tm.texi: Regenerated..
18780 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
18781 * final.c (final_start_function): Replace macro
18782 PROFILE_BEFORE_PROLOGUE by target hook.
18783 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18784 * target.def (profile_before_prologue): New hook.
18785 * targhooks.c (default_profile_before_prologue): New.
18786 * targhooks.h (default_profile_before_prologue): New.
18787
18788 2010-07-28 Jakub Jelinek <jakub@redhat.com>
18789
18790 PR debug/45105
18791 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
18792
18793 PR debug/45103
18794 * dwarf2out.c (dwarf2out_var_location): Always consider
18795 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
18796
18797 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
18798
18799 PR rtl-optimization/45107
18800 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
18801
18802 2010-07-28 Richard Guenther <rguenther@suse.de>
18803
18804 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
18805 (set_lattice_value): Do not query an old default value.
18806 (get_value_for_expr): New function. Properly canonicalize
18807 float values.
18808 (ccp_visit_phi_node): Use it.
18809
18810 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
18811
18812 * config/arm/arm.c (arm_pcs_default): Remove static.
18813 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
18814 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
18815 (arm_pcs_default): Declare.
18816
18817 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
18818
18819 * config/rs6000/rs6000.c (rs6000_override_options):
18820 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
18821 ... to darwin_rs6000_override_options.
18822 (rs6000_return_in_memory): Update preceding comment for darwin
18823 64 bit ABI. Use TARGET_MACHO inline.
18824 (rs6000_darwin64_struct_check_p): New.
18825 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
18826 (function_arg): Likewise.
18827 (rs6000_arg_partial_bytes): Likewise.
18828 (rs6000_function_value): Likewise.
18829
18830 2010-07-28 Andi Kleen <ak@linux.intel.com>
18831
18832 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
18833
18834 2010-07-28 Richard Guenther <rguenther@suse.de>
18835
18836 PR middle-end/44903
18837 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
18838 targets try harder to not generate unaligned accesses.
18839
18840 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
18841
18842 PR rtl-optimization/45101
18843 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
18844 for gcse-las.
18845
18846 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18847
18848 PR tree-optimization/44885
18849 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
18850 with non-aliased component.
18851
18852 2010-07-28 Joseph Myers <joseph@codesourcery.com>
18853
18854 * config/darwin-driver.c (SWITCH_TAKES_ARG,
18855 WORD_SWITCH_TAKES_ARG): Remove.
18856 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
18857 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
18858 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
18859 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
18860 definitions from gcc.c.
18861 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
18862 defaults.h.
18863 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
18864 Move to defaults.h.
18865 * opts-common.c: Include tm.h.
18866 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
18867 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
18868 Handle more than one argument. Set canonical_option_num_elements.
18869 (decode_cmdline_options_to_array): Set
18870 canonical_option_num_elements and trailing elements of
18871 canonical_option.
18872 * opts.h (struct cl_decoded_option): Allow four elements in
18873 canonical_option. Add field canonical_option_num_elements.
18874 * Makefile.in (opts-common.o): Update dependencies.
18875
18876 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18877
18878 PR middle-end/44790
18879 PR middle-end/44993
18880 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
18881 sure the base has address_mode before adding the offset.
18882
18883 2010-07-27 Xinliang David Li <davidxl@google.com>
18884
18885 * tree-flow.h (create_mem_ref): Add one new parameter.
18886 * tree-ssa-address.c (create_mem_ref): New parameter.
18887 (addr_to_parts): Ditto.
18888 (move_variant_to_index): New function.
18889 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
18890
18891 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18892
18893 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
18894 4 and 5.
18895 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
18896 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
18897 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
18898 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
18899 CODE_LABELs and NOTEs.
18900 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
18901 * combine.c (try_combine): Likewise.
18902 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18903 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
18904
18905 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18906
18907 * coretypes.h (struct cl_option_handlers): Declare.
18908 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
18909 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
18910 * langhooks-def.h (lhd_handle_option): Declare.
18911 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
18912 * langhooks.c (lhd_handle_option): New.
18913 * langhooks.h (struct lang_hooks): Update prototype and return
18914 value type of handle_option hook.
18915 * optc-gen.awk: Generate target_flags_explicit definition for the
18916 driver.
18917 * opts-common.c: Include diagnostic.h.
18918 (handle_option): Move from opts.c. Update prototype and return
18919 value type. Use handlers structure.
18920 (read_cmdline_option): Move from opts.c. Update prototype. Use
18921 handlers structure.
18922 (set_option): Move from opts.c.
18923 * opts.c (common_handle_option): Update prototype and return value
18924 type. Update calls to handle_option and enable_warning_as_error.
18925 (unknown_option_callback, post_handling_callback,
18926 lang_handle_option, target_handle_option): New.
18927 (handle_option, read_cmdline_option): Move to opts-common.c.
18928 (read_cmdline_options): Update prototype. Update call to
18929 read_cmdline_option.
18930 (decode_options): Initialize and use handlers structure.
18931 (set_option): Move to opts-common.c.
18932 (enable_warning_as_error): Update prototype. Update call to
18933 handle_option.
18934 * opts.h (struct cl_option_handler_func, struct
18935 cl_option_handlers): New.
18936 (handle_option, enable_warning_as_error): Update prototypes.
18937 (read_cmdline_option): Declare.
18938 * Makefile.in (opts-common.o): Update dependencies.
18939
18940 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18941
18942 * config/arm/arm.c (params.h): Include.
18943 (arm_override_options): Tune gcse-unrestricted-cost.
18944 * config/arm/t-arm (arm.o): Define dependencies.
18945
18946 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18947
18948 PR target/42495
18949 PR middle-end/42574
18950 * basic-block.h (get_dominated_to_depth): Declare.
18951 * dominance.c (get_dominated_to_depth): New function, use
18952 get_all_dominated_blocks as a base.
18953 (get_all_dominated_blocks): Use get_dominated_to_depth.
18954
18955 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
18956 (hoist_exprs): Remove.
18957 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
18958 (compute_code_hoist_vbeinout): Add debug print outs.
18959 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
18960
18961 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
18962 quadratic behavior.
18963 * params.h (MAX_HOIST_DEPTH): New macro.
18964 * doc/invoke.texi (max-hoist-depth): Document.
18965
18966 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18967
18968 PR rtl-optimization/40956
18969 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
18970 constants.
18971
18972 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18973
18974 PR target/42495
18975 PR middle-end/42574
18976 * config/arm/arm.c (legitimize_pic_address): Use
18977 gen_calculate_pic_address pattern to emit calculation of PIC address.
18978 (will_be_in_index_register): New function.
18979 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
18980 (thumb1_legitimate_address_p): Use it provided !strict_p.
18981 * config/arm/arm.md (calculate_pic_address): New expand and split.
18982
18983 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18984
18985 PR target/42495
18986 PR middle-end/42574
18987 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
18988 * config/arm/arm.md (define_split "J", define_split "K"): Make
18989 IRA/reload friendly.
18990
18991 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18992
18993 * gcse.c (insert_insn_end_basic_block): Update signature, remove
18994 unused checks.
18995 (pre_edge_insert, hoist_code): Update.
18996
18997 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18998
18999 PR target/42495
19000 PR middle-end/42574
19001 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
19002
19003 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
19004
19005 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
19006
19007 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
19008
19009 PR rtl-optimization/40956
19010 PR target/42495
19011 PR middle-end/42574
19012 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
19013 for hoisting.
19014 (hoist_code): Count occurences in current block too.
19015
19016 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
19017
19018 * gcse.c (struct expr:max_distance): New field.
19019 (doing_code_hoisting_p): New static variable.
19020 (want_to_gcse_p): Change signature. Allow constrained hoisting of
19021 simple expressions, don't change behavior for PRE. Set max_distance.
19022 (insert_expr_in_table): Set new max_distance field.
19023 (hash_scan_set): Update.
19024 (hoist_expr_reaches_here_p): Stop search after max_distance
19025 instructions.
19026 (find_occr_in_bb): New static function. Use it in ...
19027 (hoist_code): Calculate sizes of basic block before any changes are
19028 done. Pass max_distance to hoist_expr_reaches_here_p.
19029 (one_code_hoisting_pass): Set doing_code_hoisting_p.
19030
19031 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
19032 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
19033 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
19034 macros.
19035 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
19036 Document.
19037
19038 2010-07-27 Jeff Law <law@redhat.com>
19039 Maxim Kuvyrkov <maxim@codesourcery.com>
19040
19041 * gcse.c (compute_transpout, transpout): Remove, move logic
19042 to prune_expressions.
19043 (compute_pre_data): Move pruning of trapping expressions ...
19044 (prune_expressions): ... here. New static function.
19045 (compute_code_hoist_data): Use it.
19046 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
19047
19048 2010-07-27 Xinliang David Li <davidxl@google.com>
19049
19050 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
19051 (rewrite_use_address): Adjust iv update position when needed.
19052
19053 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
19054
19055 * dbgcnt.def (hoist_insn): New debug counter.
19056 * gcse.c (hoist_code): Use it.
19057
19058 2010-07-27 Xinliang David Li <davidxl@google.com>
19059
19060 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
19061 (niter_for_single_dom_exit): Passes additional parameter.
19062 (iv_period): Fix comments.
19063 (may_eliminate_iv): Handles multiple exit loops properly.
19064 (free_tree_niter_desc): New function.
19065 (free_loop_data): Frees up loop iteration descriptors.
19066
19067 2010-07-27 Jakub Jelinek <jakub@redhat.com>
19068
19069 PR target/44542
19070 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
19071 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
19072 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
19073 (expand_one_var): Don't consider DECL_ALIGN for variables for
19074 which expand_one_stack_var_at has been already called.
19075
19076 PR testsuite/44701
19077 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
19078 constraints on IA-64.
19079
19080 2010-07-27 Jie Zhang <jie@codesourcery.com>
19081
19082 PR target/44290
19083 Revert:
19084 2010-07-23 Jie Zhang <jie@codesourcery.com>
19085
19086 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
19087 false if ! tree_versionable_function_p.
19088
19089 2010-07-27 Jakub Jelinek <jakub@redhat.com>
19090
19091 * dwarf2out.c (add_data_member_location_attribute): Use
19092 add_AT_unsigned instead of add_AT_int if offset is non-negative.
19093
19094 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
19095
19096 * postreload.c (try_replace_in_use): New static function.
19097 (reload_combine_recognize_const_pattern): Use it here. Allow
19098 substituting into a final add insn, and substituting into a memory
19099 reference in an insn that sets the reg.
19100
19101 2010-07-27 Joseph Myers <joseph@codesourcery.com>
19102
19103 * common.opt (o): Add MissingArgError.
19104 * doc/options.texi (MissingArgError): Document.
19105 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
19106 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
19107 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
19108 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
19109 * langhooks.h (struct lang_hooks): Remove missing_argument.
19110 * optc-gen.awk: Handle MissingArgError and output new structure
19111 field initializers.
19112 * opts.c (read_cmdline_option): Use missing_argument_error field
19113 instead of missing_argument langhook.
19114 * opts.h (struct cl_option): Add missing_argument_error field.
19115 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
19116
19117 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
19118
19119 PR target/29090
19120 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
19121 Darwin64 ABI, for zero-sized objects.
19122
19123 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
19124
19125 PR target/35491
19126 PR target/29090
19127
19128 Merge from Apple local 4.2.1.
19129 2005-05-11 Stan Shebs <shebs@apple.com>
19130 Fix 64-bit varargs for Darwin (Radar 4028089).
19131 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
19132 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
19133 Add argument, add case for 8-byte register half-filled with a float.
19134 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
19135 single-precision floats specially.
19136
19137 2010-07-27 Ira Rosen <irar@il.ibm.com>
19138
19139 PR tree-optimization/44152
19140 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
19141 complex numbers for further check.
19142 (vect_supported_load_permutation_p): Check nodes with
19143 complex numbers.
19144
19145 2010-07-27 Joseph Myers <joseph@codesourcery.com>
19146
19147 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
19148 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
19149 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
19150 (LANG_HOOKS_INITIALIZER): Add new hooks.
19151 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
19152 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
19153 and complain_wrong_lang_p. Update init_options prototype.
19154 * c-objc-common.c (c_initialize_diagnostics): First call
19155 c_common_initialize_diagnostics.
19156 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
19157 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
19158 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
19159 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
19160 (hook_uint_void_0): New.
19161 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
19162 (hook_uint_void_0): New.
19163 * opts-common.c (decode_cmdline_option,
19164 decode_cmdline_options_to_array): Also fill in canonical_option field.
19165 * opts.c (complain_wrong_lang): Use langhook to determine whether
19166 to complain instead of special-casing LTO.
19167 (decode_options): Separate lang_mask determination with
19168 option_lang_mask hook from call of init_options hook.
19169 * opts.h (struct cl_decoded_option): Add canonical_option.
19170
19171 2010-07-27 Jakub Jelinek <jakub@redhat.com>
19172
19173 PR tree-optimization/45083
19174 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
19175
19176 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
19177
19178 * postreload.c (reload_combine_recognize_const_pattern): Move test
19179 for limiting the insn movement to the right scope.
19180
19181 PR rtl-optimization/45051
19182 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
19183 than reg_mentioned_p.
19184
19185 2010-07-26 Richard Henderson <rth@redhat.com>
19186
19187 PR target/44132
19188 * tree-emutls.c: New file.
19189 * Makefile.in (OBJS-common): Add it.
19190 * tree-pass.h (pass_ipa_lower_emutls): Declare.
19191 * passes.c (init_optimization_passes): Add it.
19192
19193 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
19194 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
19195 * expr.c (emutls_var_address): Delete.
19196 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
19197 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
19198 (emutls_finish): Delete.
19199 * toplev.c (compile_file): Don't call it.
19200 * tree.h (emutls_decl): Delete.
19201 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
19202 (emutls_finish, emutls_finalize_control_var): Delete.
19203 (emutls_object_type): Move to tree-emutls.c.
19204 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
19205 default_emutls_var_fields, get_emutls_object_type,
19206 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
19207 default_emutls_var_init): Likewise.
19208 (get_variable_section): Don't special case emutls.
19209 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
19210 default_elf_select_section, default_unique_section,
19211 default_encode_section_info): Likewise.
19212 * varpool.c (decide_is_variable_needed): Likewise.
19213 * gimple-iterator.c (update_call_edge_frequencies): New
19214 (gsi_insert_on_edge_immediate): Use it.
19215 (gsi_insert_seq_on_edge_immediate): Likewise.
19216 (gsi_commit_one_edge_insert): Likewise.
19217
19218 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
19219 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
19220 (x86_64_elf_unique_section): Likewise.
19221
19222 2010-07-26 Jan Hubicka <jh@suse.cz>
19223
19224 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
19225 GTY((skip)).
19226
19227 2010-07-26 Anatoly Sokolov <aesok@post.ru>
19228
19229 * target.def (output_source_filename): New hook.
19230 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
19231 * doc/tm.texi: Regenerate.
19232 * toplev.c (output_file_directive) Remove function.
19233 * toplev.h (output_file_directive) Remove.
19234 * output.h (default_asm_output_source_filename,
19235 output_file_directive): Declare.
19236 * varasm.h (default_asm_output_source_filename,
19237 output_file_directive): New functions.
19238
19239 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
19240 * config/mips/mips-protos.h (mips_output_filename): Remove.
19241 * config/mips/mips.c (mips_output_filename): Make Static.
19242 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
19243
19244 2010-07-26 Richard Guenther <rguenther@suse.de>
19245
19246 PR tree-optimization/43784
19247 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
19248 if the destination is used by the call.
19249
19250 2010-07-26 Richard Guenther <rguenther@suse.de>
19251
19252 PR middle-end/45073
19253 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
19254 SSA updating on being in SSA form.
19255
19256 2010-07-26 Richard Guenther <rguenther@suse.de>
19257
19258 PR middle-end/45056
19259 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
19260
19261 2010-07-26 Richard Guenther <rguenther@suse.de>
19262
19263 PR tree-optimization/45071
19264 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
19265 adjust op->opcode.
19266
19267 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
19268
19269 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
19270 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
19271 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
19272 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
19273 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
19274 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
19275 save_r31, return_r31, save_interrupt, return_interrupt,
19276 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
19277 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
19278 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
19279 new ABI requirements.
19280 (save_r6_r9, L_callt_save_r6_r9): Remove.
19281 * config/v850/predicates.md (even_reg_operand, disp23_operand,
19282 const_float_1_operand const_float_0_operand): New Predicates.
19283 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
19284 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
19285 * config/v850/t-v850: Update multilibs for new target variants.
19286 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
19287 * config/v850/t-v850e: Likewise.
19288 * config/v850/v850.c (v850_issue_rate): New.
19289 (v850_strict_argument_naming): New.
19290 (function_arg): Modify to generate a different ABI.
19291 (print_operand): Update case 'z' to support float modes.
19292 (output_move_single): Modify to generate appropriate and better
19293 assembly.
19294 (v850_float_z_comparison_operator, v850_select_cc_mode,
19295 v850_float_nz_comparison_operator, v850_gen_float_compare,
19296 v850_gen_compare): New functions to support comparison of float values.
19297 (ep_memory_offset): Add support for V850E2 targets.
19298 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
19299 (INTERRUPT_REGPARM_NUM): Remove.
19300 (compute_register_save_size): Add extra case to save/restore long call.
19301 (use_prolog_function): New function to support prologue.
19302 (expand_prologue): Add support for V850E2 targets and modified
19303 as per the current ABI requirements.
19304 (expand_epilogue): Likewise.
19305 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
19306 (construct_save_jarl): Likewise.
19307 (construct_dispose_instruction): Update as per the current ABI
19308 requirements.
19309 (construct_prepare_instruction): Likewise.
19310 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
19311 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
19312 (CPP_SPEC): Updated to support v850e2 targets.
19313 (STRICT_ALIGNMENT): Modified.
19314 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
19315 (FIXED_REGISTERS): Likewise.
19316 (CALL_USED_REGISTERS): Likewise.
19317 (CONDITIONAL_REGISTER_USAGE): Updated.
19318 (HARD_REGNO_MODE_OK): Updated.
19319 (reg_class): Updated to add even registers.
19320 (REG_CLASS_NAMES): Likewise.
19321 (REG_CLASS_CONTENTS): Likewise.
19322 (REGNO_REG_CLASS): Updated for CC registers.
19323 (REG_CLASS_FROM_LETTER): Added support for even registers.
19324 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
19325 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
19326 ARG_POINTER_REGNUM): Updated.
19327 (FUNCTION_ARG_ADVANCE): Define.
19328 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
19329 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
19330 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
19331 (GO_IF_LEGITIMATE_ADDRESS): Updated.
19332 (SELECT_CC_MODE): Define.
19333 (REGISTER_NAMES): Updated to add psw and fcc registers.
19334 (ADDITIONAL_REGISTER_NAMES): Updated.
19335 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
19336 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
19337 * config/v850/v850.md (define_constants): Define new constants.
19338 (type): Update store,bit1,macc,div,fpu and single attributes.
19339 (cpu): New attribute.
19340 (cc): Add set_z attribute.
19341 (unsign23byte_load, sign23byte_load, unsign23hword_load,
19342 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
19343 23word_store): New instructions for 23-bit displacement load and store.
19344 (movqi_internal, movhi_internal): Update the attributes.
19345 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
19346 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
19347 the attributes.
19348 (v850_tst1): Modified using CC_REGNUM.
19349 (tstsi): Remove.
19350 (cmpsi): Modified as define_expand from define_insn.
19351 (cmpsi_insn, cmpsf, cmpdf): New instructions.
19352 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
19353 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
19354 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
19355 one_cmplsi2): Clobber the CC_REGNUM register.
19356 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
19357 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
19358 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
19359 (setf_insn, set_z_insn, set_nz_insn): New instructions for
19360 v850e2v3 target.
19361 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
19362 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
19363 targets.
19364 (sasf_1, sasf_2): Remove.
19365 (sasf): New instruction.
19366 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
19367 targets. CC_REGNUM register is clobbered and attributes are
19368 updated.
19369 (branch_z_normal, branch_z_invert, branch_nz_normal,
19370 branch_nz_invert): New branch related instructions.
19371 (jump): Updated the attributes.
19372 (switch): Update to support new targets. CC_REGNUM register is
19373 clobbered and attributes are updated.
19374 (call_internal_short, call_internal_long, call_value_internal_short,
19375 call_value_internal_long): Updated the attributes.
19376 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
19377 clobbered and attributes are updated.
19378 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
19379 Update to support new targets. CC_REGNUM register is clobbered.
19380 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
19381 instructions.
19382 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
19383 are updated.
19384 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
19385 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
19386 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
19387 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
19388 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
19389 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
19390 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
19391 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
19392 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
19393 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
19394 point instructions defined for V850e2v3 target.
19395 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
19396 Add support for V850E2 targets and CC_REGNUM register is clobbered.
19397 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
19398 support for new targets.
19399 * config/v850/v850-modes.def: New file.
19400 * config/v850/v850.opt(mstrict-align): Remove.
19401 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
19402 mv850e2v3): New command line options for V850.
19403 * config.gcc: Update the newly added files.
19404 * doc/invoke.texi: Update the newly added command line options for
19405 V850 target.
19406
19407 2010-07-26 Richard Guenther <rguenther@suse.de>
19408
19409 PR tree-optimization/45052
19410 * ipa-pure-const.c (check_stmt): Check volatileness.
19411
19412 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
19413
19414 PR target/44707
19415 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
19416 * config/sparc/sparc.c: Include reload.h.
19417 (legitimize_tls_address): Rename into...
19418 (sparc_legitimize_tls_address): ...this.
19419 (legitimize_pic_address): Rename into...
19420 (sparc_legitimize_pic_address): ...this.
19421 (sparc_expand_move): Adjust to above renaming.
19422 (sparc_tls_referenced_p): Likewise.
19423 (sparc_legitimize_tls_address): Likewise.
19424 (sparc_legitimize_pic_address): Likewise.
19425 (sparc_legitimize_address): Likewise.
19426 (sparc_output_mi_thunk): Likewise.
19427 (sparc_legitimize_reload_address): New global function. Recognize
19428 (lo_sum (high ...) ...) patterns generated by earlier passes.
19429 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
19430
19431 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
19432
19433 PR target/44484
19434 * config/sparc/predicates.md (memory_reg_operand): Delete.
19435 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
19436 (*sync_compare_and_swap): Encode the address form in the pattern.
19437 (*sync_compare_and_swapdi_v8plus): Likewise.
19438
19439 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
19440
19441 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
19442 Streamline paragraph on compatibility with the system compiler.
19443
19444 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
19445
19446 PR middle-end/45035
19447 * alias.c (true_dependence_1): Fix thinko in merge of old
19448 true_dependence and canon_true_dependence.
19449
19450 2010-07-23 Jan Hubicka <jh@suse.cz>
19451
19452 * lto-streamer-out.c (write_symbol): Fix visibilities of external
19453 references.
19454
19455 2010-07-23 Le-Chun Wu <lcwu@google.com>
19456
19457 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
19458 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
19459 and an unnecessary assignment.
19460 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
19461 self-assign warning.
19462 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
19463 unnecessary self-init.
19464
19465 2010-07-23 Richard Guenther <rguenther@suse.de>
19466
19467 PR lto/43071
19468 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
19469 for -flto and -fwhopr.
19470
19471 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
19472
19473 PR target/41943
19474 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
19475 (stmp-int-hdrs): Prefix/postfix headers by include_next.
19476 * config.gcc (user_headers_inc_next_pre): New.
19477 (user_headers_inc_next_post): Likewise.
19478 (*-w64-mingw*): Use for float.h post-fixing, and for
19479 stddef.h/stdarg.h pre-fixing by include_next.
19480 * configure.ac (user_headers_inc_next_post): New.
19481 (user_headers_inc_next_pre): New.
19482 * configure: Regenerated.
19483
19484 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19485
19486 * configure.ac: Don't disable TLS on Solaris 8/9 by default
19487 Set tga_func for Solaris 2/x86 resp. SPARC.
19488 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
19489 (LIB_THREAD_LDFLAGS_SPEC): Define.
19490 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
19491 * configure: Regenerate.
19492 * config.in: Regenerate.
19493 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
19494 -pthread, -threads, LIB_TLS_SPEC with -pthread.
19495 * doc/install.texi (Specific, *-*-solaris2*): Document use of
19496 alternate thread libraries on Solaris 8.
19497 Document TLS patch requirements.
19498 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
19499 Document tls.
19500
19501 PR target/18788
19502 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
19503 -shared.
19504
19505 2010-07-23 Jakub Jelinek <jakub@redhat.com>
19506
19507 * tree.h (struct tree_base): Add nameless_flag bitfield.
19508 (TYPE_NAMELESS, DECL_NAMELESS): Define.
19509 * omp-low.c (create_omp_child_function, scan_omp_parallel,
19510 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
19511 DECL_ARTIFICIAL where needed.
19512 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
19513 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
19514 has DECL_NAMELESS set.
19515
19516 2010-07-23 Martin Jambor <mjambor@suse.cz>
19517
19518 PR tree-optimization/44915
19519 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
19520 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
19521 (analyze_function): Likewise.
19522
19523 2010-07-23 Martin Jambor <mjambor@suse.cz>
19524
19525 PR tree-optimization/44914
19526 * tree-sra.c (sra_modify_function_body): Return true if CFG was
19527 changed, add purging dead eh edges.
19528 (ipa_sra_modify_function_body): Return true if CFG was changed,
19529 simplify purging dead eh edges.
19530 (modify_function): Return true if CFG was changed.
19531 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
19532 was changed.
19533 (ipa_early_sra): Likewise.
19534
19535 2010-07-23 Jie Zhang <jie@codesourcery.com>
19536
19537 PR target/44290
19538 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
19539 if "naked".
19540 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
19541 false if ! tree_versionable_function_p.
19542
19543 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
19544
19545 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
19546 * ipa-pure-const.c (special_builtlin_state): Remove
19547 BUILT_IN_ARGS_INFO case.
19548 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
19549 * builtins.c (expand_builtin): Likewise.
19550 (expand_builtin_args_info): Remove.
19551 * doc/tm.texi (__builtin_args_info): Remove.
19552 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
19553 * doc/tm.text.in: Likewise.
19554
19555 2010-07-23 Richard Guenther <rguenther@suse.de>
19556
19557 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
19558 (lto_symtab_merge_decls_2): Likewise.
19559 * tree-ssa.c (useless_type_conversion_p): Likewise.
19560 * lto-streamer-in.c (input_gimple_stmt): Likewise.
19561 * gimple.c (gtc_visited2, gtc_ob2): Remove.
19562 (struct type_pair_d): Make same_p an array indexed by mode.
19563 Update comment.
19564 (lookup_type_pair): Update initialization.
19565 (struct sccs): Adjust same_p type.
19566 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
19567 Adjust.
19568 (print_gimple_types_stats): Likewise.
19569 * gimple.h (enum gtc_mode): New.
19570 (gimple_types_compatible_p): Adjust prototype.
19571
19572 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
19573
19574 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
19575 again after processing insn.
19576
19577 2010-07-23 Jie Zhang <jie@codesourcery.com>
19578
19579 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
19580 proper words when !tree_versionable_function_p.
19581
19582 2010-07-23 Richard Guenther <rguenther@suse.de>
19583
19584 PR tree-optimization/45037
19585 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
19586
19587 2010-07-23 Jie Zhang <jie@codesourcery.com>
19588
19589 * doc/extend.texi: Remove IP2K from the description of naked attribute.
19590 Add MCORE instead.
19591
19592 2010-07-10 Andi Kleen <ak@linux.intel.com>
19593
19594 PR lto/44992
19595 * lto-opts.c (lto_write_options): Add NULL file_data argument to
19596 lto_get_section_name.
19597 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
19598 * lto-streamer-out.c (produce_asm): Likewise.
19599 (copy_function): Likewise.
19600 (produce_symtab): Likewise.
19601 (produce_asm_for_decls): Likewise.
19602 * lto-streamer.c (lto_get_section_name): Add file_data argument.
19603 Rewrite to add random postfix to LTO sections.
19604 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
19605 (lto_get_section_name): Add file_data argument to prototype.
19606
19607 2010-07-10 Andi Kleen <ak@linux.intel.com>
19608
19609 * lto-section-in.c (lto_section_name): Synchronize names
19610 with lto_get_section_name.
19611
19612 2010-07-10 Andi Kleen <ak@linux.intel.com>
19613
19614 * lto-opts.c (lto_read_file_options): Check for missing section.
19615
19616 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19617
19618 * ira.c (check_allocation): Correctly handle the case where an allocno
19619 with two objects was allocated to a single reg.
19620
19621 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
19622
19623 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
19624 (is_widening_mult_p): Likewise.
19625 (convert_to_widen): Use them.
19626 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
19627 well as integer ones.
19628
19629 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
19630
19631 * alias.c (true_dependence_1): New function, merged version of
19632 true_dependence and canon_true_dependence.
19633 (true_dependence): Simplify.
19634 (canon_true_dependence): Simplify.
19635
19636 2010-07-22 Richard Henderson <rth@redhat.com>
19637
19638 PR target/45027
19639 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
19640 of V4SFmode for the SSE saves; increase stack alignment if needed.
19641 (ix86_gimplify_va_arg): Don't increase stack alignment here.
19642
19643 2010-07-22 Jakub Jelinek <jakub@redhat.com>
19644
19645 PR bootstrap/45028
19646 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
19647 call cprop_find_used_regs again via note_uses.
19648
19649 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
19650
19651 * alias.c (get_alias_set): Fix formatting issues.
19652
19653 2010-07-22 Steve Ellcey <sje@cup.hp.com>
19654
19655 PR middle-end/44878
19656 * stmt.c (expand_value_return): Call promote_function_mode with
19657 a for_return argument of 2 when returning by reference.
19658
19659 2010-07-22 Dodji Seketeli <dodji@redhat.com>
19660
19661 PR debug/45024
19662 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
19663 unit DIE if we can find the scope DIE.
19664
19665 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19666
19667 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
19668 changed. Initialize OBJECT_SUBWORD.
19669 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
19670 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
19671 all callers changed.
19672 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
19673 (finish_allocno): Likewise.
19674 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
19675 (remove_low_level_allocnos): Likewise.
19676 (update_bad_spill_attribute): Likewise.
19677 (setup_min_max_allocno_live_range_point): Likewise.
19678 (sort_conflict_id_map): Likewise.
19679 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
19680 (ior_hard_reg_conflicts): New function.
19681 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
19682 (compress_conflict_vecs): Iterate over objects, not allocnos.
19683 (ira_add_live_range_to_object): New function.
19684 (object_range_compare_func): Renamed from allocno_range_compare_func.
19685 All callers changed.
19686 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
19687 subobjects, widen the min/max range of the lowest-order object to
19688 potentially include all other such low-order objects.
19689 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
19690 (check_allocation): Likewise. Use more fine-grained tests for register
19691 conflicts.
19692 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
19693 allocno subobjects.
19694 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
19695 choices about which bits to set in each set. Don't use
19696 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
19697 using the multiple sets we computed.
19698 (push_allocno_to_stack): Iterate over allocno subobjects.
19699 (all_conflicting_hard_regs_coalesced): New static function.
19700 (setup_allocno_available_regs_num): Use it.
19701 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
19702 subobjects.
19703 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
19704 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
19705 by ALLOCNO_NUM_OBJECTS.
19706 (calculate_spill_cost): Likewise.
19707 (color_pass): Express if statement in a more normal way.
19708 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
19709 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
19710 (setup_slot_coalesced_allocno_live_ranges): Likewise.
19711 (allocno_reload_assign): Likewise.
19712 (ira_reassign_pseudos): Likewise.
19713 (fast_allocation): Likewise.
19714 * ira-conflicts.c (build_conflict_bit_table): Likewise.
19715 (print_allocno_conflicts): Likewise.
19716 (ira_build_conflicts): Likewise.
19717 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
19718 callers changed. Test subword 0 of each allocno for conflicts.
19719 (build_object_conflicts): Renamed from build_allocno_conflicts. All
19720 callers changed. Iterate over allocno subobjects.
19721 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
19722 * ira-int.h (struct ira_allocno): New member: num_objects.
19723 Rename object to objects and change it into an array.
19724 (ALLOCNO_OBJECT): Add new argument N.
19725 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
19726 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
19727 (ior_hard_reg_conflicts): Declare.
19728 (ira_add_live_range_to_object): Declare.
19729 (ira_allocno_object_iterator): New.
19730 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
19731 (FOR_EACH_ALLOCNO_OBJECT): New macro.
19732 * ira-lives.c (objects_live): Renamed from allocnos_live; all
19733 uses changed.
19734 (allocnos_processed): New sparseset.
19735 (make_object_born): Renamed from make_allocno_born; take an
19736 ira_object_t argument. All callers changed.
19737 (make_object_dead): Renamed from make_allocno_dead; take an
19738 ira_object_t argument. All callers changed.
19739 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
19740 All callers changed.
19741 (mark_pseudo_regno_live): Iterate over allocno subobjects.
19742 (mark_pseudo_regno_dead): Likewise.
19743 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
19744 functions.
19745 (mark_ref_live): Detect subword accesses and call
19746 mark_pseudo_regno_subword_live as appropriate.
19747 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
19748 (process_bb_nodes_live): Deal with object-related updates first; set
19749 and test bits in allocnos_processed to avoid computing allocno
19750 statistics more than once.
19751 (create_start_finish_chains): Iterate over objects, not allocnos.
19752 (print_object_live_ranges): New function.
19753 (print_allocno_live_ranges): Use it.
19754 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
19755 and objects_live.
19756
19757 2010-07-22 Richard Guenther <rguenther@suse.de>
19758
19759 PR lto/42451
19760 * gimple.c (gtc_next_dfs_num): New global.
19761 (struct sccs): Make value a union, add integer same_p member.
19762 (gtc_visit): New function.
19763 (gimple_types_compatible_p_1): New function, split out from ...
19764 (gimple_types_compatible_p): ... here. Start a DFS walk here.
19765 (iterative_hash_gimple_type): Adjust for sccs change.
19766
19767 2010-07-22 Martin Jambor <mjambor@suse.cz>
19768
19769 PR tree-optimization/44891
19770 * tree-sra.c: Include gimple-pretty-print.h.
19771 (replace_uses_with_default_def_ssa_name): Renamed to
19772 get_repl_default_def_ssa_name, return the new SSA name instead of
19773 replacing the old one.
19774 (sra_modify_assign): Dump a message when removing a load, if the LHS
19775 is an SSA_NAME, do not do any propagation, just set the RHS to a
19776 default definition SSA NAME, type convert if necessary.
19777 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
19778
19779 2010-07-22 Richard Guenther <rguenther@suse.de>
19780
19781 PR tree-optimization/45017
19782 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
19783 TYPE_PRECISION of integral types in addition to size.
19784
19785 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
19786
19787 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
19788 when no C library is specified.
19789
19790 2010-07-22 Martin Jambor <mjambor@suse.cz>
19791
19792 * ipa-prop.h (struct ipa_node_params): Updated comment.
19793 (struct ipa_edge_args): Likewise.
19794 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
19795
19796 2010-07-22 Martin Jambor <mjambor@suse.cz>
19797
19798 * cgraphunit.c (verify_edge_count_and_frequency): New function.
19799 (verify_cgraph_node): Verify frequencies of indirect edges.
19800 * tree-inline.c (tree_function_versioning): Update frequencies of
19801 indirect edges.
19802
19803 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19804
19805 PR target/43698
19806 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
19807 Set *arm_rev to be predicable.
19808
19809 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
19810
19811 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
19812 (LINK_COMMAND_SPEC_A): New.
19813 (DSYMUTIL): New.
19814 (DSYMUTIL_SPEC): New.
19815 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
19816 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
19817
19818 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
19819
19820 * calls.c (load_register_parameters): Move check for zero
19821 sized items so that only the call to
19822 mem_overlaps_already_clobbered_arg_p () is protected.
19823
19824 2010-07-22 Jan Hubicka <jh@suse.cz>
19825
19826 * ipa-pure-const.c (varying_state): Break out from ...
19827 (get_function_state): ... here; always return varying_state
19828 when state would be NULL otherwise.
19829 (remove_node_data): Do not free varying state.
19830
19831 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19832
19833 PR bootstrap/44970
19834 PR middle-end/45009
19835 * postreload.c: Include "target.h".
19836 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
19837 into account.
19838 (fixup_debug_insns): Don't copy the rtx.
19839 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
19840 Don't copy when replacing. Call fixup_debug_insns in the case where
19841 we merged one add with another.
19842 (reload_combine_recognize_pattern): Fail if there aren't any uses.
19843 Try harder to determine whether we're picking a valid index register.
19844 Don't set store_ruid for an insn we're going to scan in the
19845 next iteration.
19846 (reload_combine): Remove unused code.
19847 (reload_combine_note_use): When updating use information for
19848 an old insn, ignore a use that occurs after store_ruid.
19849 * Makefile.in (postreload.o): Update dependencies.
19850
19851 * function.c (record_hard_reg_sets): Restrict the previous change
19852 to cases where the incoming nominal mode is the same as the
19853 incoming promoted mode and everything happens in MODE_INT.
19854
19855 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19856
19857 PR debug/45015
19858 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
19859 ASM_OPERANDS_OUTPUT_IDX.
19860 (adjust_insn): For inline asm with multiple sets ensure first
19861 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
19862 the insn.
19863
19864 2010-07-21 Richard Henderson <rth@redhat.com>
19865
19866 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
19867 comparison for avoiding xmm register saves. Emit the xmm register
19868 saves explicitly.
19869 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
19870 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
19871 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
19872 Remove patterns and the associated splitters.
19873
19874 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
19875
19876 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
19877 and imagine parts of a complex, so that they can have the same
19878 base and fall into the same group.
19879
19880 2010-07-21 Richard Guenther <rguenther@suse.de>
19881
19882 PR lto/45018
19883 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
19884 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
19885 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
19886
19887 2010-07-21 Martin Jambor <mjambor@suse.cz>
19888
19889 PR tree-optimization/44900
19890 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
19891 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
19892
19893 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
19894
19895 PR middle-end/44738
19896 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
19897
19898 2010-07-21 Richard Guenther <rguenther@suse.de>
19899
19900 PR middle-end/45013
19901 * tree-ssa.c (useless_type_conversion_p): Dispatch to
19902 gimple_types_compatible_p only when in lto.
19903 * gimple.c (gimple_types_compatible_p): Use canonical types
19904 to speed up comparison.
19905
19906 2010-07-21 Richard Guenther <rguenther@suse.de>
19907
19908 * tree-flow.h (referenced_var): Move define ...
19909 * tree-flow-inline.h (referenced_var): ... here as an inline
19910 function. Assert here ...
19911 * tree-dfa.c (referenced_var_lookup): ... instead of here.
19912 * tree-ssa.c (maybe_optimize_var): Check if the variable
19913 is in referenced vars.
19914 (execute_update_addresses_taken): Remove old broken check.
19915 * gimple-pretty-print.c (pp_points_to_solution): Use
19916 referenced_var_lookup.
19917 * tree-into-ssa.c (dump_decl_set): Likewise.
19918
19919 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19920
19921 PR debug/45003
19922 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
19923 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
19924 ZERO_EXTEND here.
19925
19926 2010-07-20 Richard Henderson <rth@redhat.com>
19927
19928 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
19929
19930 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19931
19932 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
19933 computing the sum of the stack pointer and a large constant.
19934 * config/arm/constraints.md (M): Remove superfluous parentheses.
19935 (Pc): New constraint.
19936
19937 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19938
19939 PR debug/45006
19940 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
19941 operand's type if exp is tcc_unary class tree.
19942
19943 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19944
19945 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
19946 Reverse sense of if_then_else condition.
19947
19948 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19949
19950 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
19951 * config/rs6000/rs6000.c (rs6000_override_options): Set
19952 rs6000_block_move_inline_limit appropriately.
19953 (expand_block_move): Use rs6000_block_move_inline_limit.
19954 * doc/invoke.texi (mblock-move-inline-limit): Document.
19955
19956 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19957
19958 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
19959 FROM and TO. All callers changed. Don't look for tracked uses,
19960 just scan the RTL for DEBUG_INSNs and substitute.
19961 (reload_combine_recognize_pattern): Call fixup_debug_insns.
19962 (reload_combine): Ignore DEBUG_INSNs.
19963
19964 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19965
19966 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
19967 depth to 8 from 5.
19968
19969 PR debug/45003
19970 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
19971 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
19972 instead of the result's type.
19973
19974 2010-07-20 Richard Guenther <rguenther@suse.de>
19975
19976 PR tree-optimization/44977
19977 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
19978 SSA form.
19979
19980 2010-07-20 Richard Guenther <rguenther@suse.de>
19981
19982 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
19983 (lto_symtab_merge_decls_2): Likewise.
19984 * gimple.h (gimple_types_compatible_p): Declare.
19985 * gimple.c (gimple_queue_type_fixup): Remove.
19986 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
19987 (gimple_compatible_complete_and_incomplete_type_p): New function.
19988 (gimple_types_compatible_p): Adjust.
19989 (gimple_register_type): Remove type fixup code.
19990 (print_gimple_types_stats): Adjust.
19991 (free_gimple_type_tables): Likewise.
19992 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
19993 * tree-ssa.c (useless_type_conversion_p): Likewise.
19994
19995 2010-07-20 Richard Guenther <rguenther@suse.de>
19996
19997 PR middle-end/44971
19998 PR middle-end/44988
19999 * tree-ssa.c (maybe_optimize_var): New function split out from ...
20000 (execute_update_addresses_taken): ... here.
20001 (non_rewritable_mem_ref_base): Likewise.
20002 (execute_update_addresses_taken): Do not iterate over all referenced
20003 vars but just all local decls and parms.
20004 Properly check call and asm arguments and rewrite call arguments.
20005
20006 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
20007
20008 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
20009 to top level.
20010 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
20011 definitions ...
20012 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
20013 New macro.
20014 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
20015
20016 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
20017
20018 * gengtype.c (start_root_entry): New function, split out from
20019 write_root. Check whether V is null and raise an error if so.
20020 (write_field_root): Check for V being null. Don't raise an error here;
20021 set V to null instead.
20022 (write_root): Update comment above function. Use start_root_entry.
20023
20024 2010-07-19 Xinliang David Li <davidxl@google.com>
20025
20026 PR testsuite/44932
20027 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
20028 def edges.
20029 (find_uninit_use): Add dump.
20030 (is_use_properly_guarded): Ditto.
20031 (warn_uninitialized_phi): Ditto.
20032 (execute_late_warn_uninitialized): Ditto.
20033
20034 2010-07-19 Richard Guenther <rguenther@suse.de>
20035
20036 PR middle-end/44941
20037 * expr.c (emit_block_move_hints): Move zero size check first.
20038 Move asserts to more useful places.
20039 * calls.c (load_register_parameters): Check for zero size.
20040
20041 2010-07-19 Richard Henderson <rth@redhat.com>
20042
20043 * tree-optimize.c (execute_all_early_local_passes): New. Change
20044 cgraph_state here ...
20045 (execute_early_local_optimizations): ... not here. Remove.
20046 (pass_early_local_passes, pass_all_early_optimizations): Update.
20047
20048 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
20049
20050 * postreload.c (reload_combine_closest_single_use): Ignore the
20051 number of uses for DEBUG_INSNs.
20052 (fixup_debug_insns): New static function.
20053 (reload_combine_recognize_const_pattern): Use it. Don't let the
20054 main loop be affected by DEBUG_INSNs.
20055 Really disallow moving adds past a jump insn.
20056 (reload_combine_recognize_pattern): Don't update use_ruid here.
20057 (reload_combine_note_use): Do it here.
20058 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
20059
20060 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
20061
20062 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
20063 of a loop.
20064 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
20065
20066 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
20067
20068 * config/i386/darwin.h: Define darwin_emit_branch_islands.
20069 (TARGET_MACHO_BRANCH_ISLANDS): New.
20070 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
20071 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
20072 default value.
20073 * config/i386/i386.c (output_pic_addr_const): Do not emit
20074 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
20075 (x86_output_mi_thunk): Adjust symbol creation.
20076 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
20077 Remove out of date comment.
20078 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
20079 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
20080 (DARWIN_GENERATE_ISLANDS): Ditto.
20081 (output_call): Do not emit branch islands unless
20082 darwin_emit_branch_islands is set.
20083 * config/darwin.c: Declare darwin_emit_branch_islands.
20084 (machopic_indirect_data_reference): Do not emit unless
20085 darwin_emit_branch_islands is set.
20086 (darwin_override_options): Set darwin_emit_branch_islands
20087 where it is needed.
20088 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
20089
20090 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20091
20092 * doc/sourcebuild.texi (Effective-Target Keywords): Document
20093 sse_runtime, sse2_runtime.
20094
20095 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
20096
20097 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
20098 low half of a single-register SCmode return value before ORing
20099 it with the high half.
20100 * config/mips/mips16.S (MERGE_GPRf): Likewise.
20101
20102 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20103
20104 PR target/44805
20105 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
20106 on all targets.
20107
20108 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
20109
20110 PR target/42235
20111 * postreload.c (reload_cse_move2add): Return bool, true if anything.
20112 changed. All callers changed.
20113 (move2add_use_add2_insn): Likewise.
20114 (move2add_use_add3_insn): Likewise.
20115 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
20116 reload_combine.
20117 (RELOAD_COMBINE_MAX_USES): Bump to 16.
20118 (last_jump_ruid): New static variable.
20119 (struct reg_use): New members CONTAINING_MEM and RUID.
20120 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
20121 (reload_combine_split_one_ruid, reload_combine_split_ruids,
20122 reload_combine_purge_insn_uses, reload_combine_closest_single_use
20123 reload_combine_purge_reg_uses_after_ruid,
20124 reload_combine_recognize_const_pattern): New static functions.
20125 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
20126 is true for our reg and that we have available index regs.
20127 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
20128 callers changed. Use them to initialize fields in struct reg_use.
20129 (reload_combine): Initialize last_jump_ruid. Be careful when to
20130 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
20131 Call reload_combine_recognize_const_pattern.
20132 (reload_combine_note_store): Update REAL_STORE_RUID field.
20133
20134 2010-07-16 Jason Merrill <jason@redhat.com>
20135
20136 * Makefile.in (opts-common.o): Depend on options.h.
20137
20138 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
20139
20140 * tree.c (build_common_builtin_nodes): Use build_function_type_list
20141 instead of build_function_type.
20142 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
20143 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20144
20145 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
20146
20147 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
20148 do all the work.
20149 (rs6000_emit_int_cmove): Use function pointers for insn generation.
20150 Don't force values into registers unnecessarily.
20151 (output_isel): Assert that we're not given conditions we can't handle.
20152 Delete corresponding code.
20153 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
20154 scc_comparison_operator constraint. Permit 0 for the consequent
20155 operand. Permit any GPR for the alternative operand.
20156 (isel_unsigned_<mode>): Likewise.
20157
20158 2010-07-16 Jakub Jelinek <jakub@redhat.com>
20159
20160 PR target/44942
20161 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
20162 argument to const_tree.
20163 * config/i386/i386.c (function_arg_advance): If padding needs to be
20164 inserted before argument, increment cum->words by number of padding
20165 words as well.
20166 (contains_aligned_value_p): Change argument to const_tree.
20167 (ix86_function_arg_boundary): Change second argument to const_tree.
20168
20169 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
20170
20171 PR target/42235
20172 * function.c (record_hard_reg_sets): New static function.
20173 (assign_parm_setup_reg): If an optab for extending exists and the
20174 generated code clobbbers no hard regs, emit the insn directly and
20175 create a REG_EQUIV note.
20176
20177 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
20178
20179 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
20180 TREE_CHAIN.
20181 * c-typeck.c (push_init_level): Likewise.
20182 (process_init_element): Likewise.
20183
20184 2010-07-15 Anatoly Sokolov <aesok@post.ru>
20185
20186 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
20187 (integer_three_node): Add.
20188 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
20189 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
20190 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
20191 of call build_int_cst.
20192 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
20193 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
20194 (find_interesting_uses_address): Ditto.
20195 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
20196 * tree-eh.c (lower_eh_constructs_2): Ditto.
20197 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
20198 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
20199 * expmed.c (expand_divmod): Ditto.
20200 * tree-mudflap.c (mx_register_decls): Ditto.
20201 * varasm.c (array_size_for_constructor): Ditto.
20202 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
20203 * c-parser.c (c_parser_postfix_expression): Ditto.
20204
20205 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
20206
20207 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
20208 New static variables.
20209 (reload_combine_recognize_pattern): New static function, broken out
20210 of reload_combine.
20211 (reload_combine): Use it. Only initialize first_index_reg and
20212 last_index_reg once.
20213
20214 2010-07-15 Richard Henderson <rth@redhat.com>
20215
20216 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
20217 when done.
20218
20219 2010-07-15 Jan Hubicka <jh@suse.cz>
20220
20221 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
20222 comdats for broken gold.
20223 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
20224
20225 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
20226
20227 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
20228
20229 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
20230
20231 * tree.h (DECL_CHAIN): Define.
20232 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
20233 * c-decl.c: Likewise.
20234 * c-parser.c: Likewise.
20235 * c-typeck.c: Likewise.
20236 * cfgexpand.c: Likewise.
20237 * cgraph.c: Likewise.
20238 * cgraphunit.c: Likewise.
20239 * combine.c: Likewise.
20240 * config/alpha/alpha.c: Likewise.
20241 * config/arm/arm.c: Likewise.
20242 * config/frv/frv.c: Likewise.
20243 * config/i386/i386.c: Likewise.
20244 * config/i386/winnt-cxx.c: Likewise.
20245 * config/ia64/ia64.c: Likewise.
20246 * config/iq2000/iq2000.c: Likewise.
20247 * config/mep/mep.c: Likewise.
20248 * config/mips/mips.c: Likewise.
20249 * config/pa/som.h: Likewise.
20250 * config/rs6000/rs6000.c: Likewise.
20251 * config/s390/s390.c: Likewise.
20252 * config/sh/sh.c: Likewise.
20253 * config/sh/symbian-cxx.c: Likewise.
20254 * config/sparc/sparc.c: Likewise.
20255 * config/spu/spu.c: Likewise.
20256 * config/stormy16/stormy16.c: Likewise.
20257 * config/vxworks.c: Likewise.
20258 * config/xtensa/xtensa.c: Likewise.
20259 * coverage.c: Likewise.
20260 * dbxout.c: Likewise.
20261 * dwarf2out.c: Likewise.
20262 * emit-rtl.c: Likewise.
20263 * expr.c: Likewise.
20264 * function.c: Likewise.
20265 * gimple-low.c: Likewise.
20266 * gimple-pretty-print.c: Likewise.
20267 * gimplify.c: Likewise.
20268 * integrate.c: Likewise.
20269 * ipa-inline.c: Likewise.
20270 * ipa-prop.c: Likewise.
20271 * ipa-split.c: Likewise.
20272 * ipa-struct-reorg.c: Likewise.
20273 * ipa-type-escape.c: Likewise.
20274 * langhooks.c: Likewise.
20275 * lto-cgraph.c: Likewise.
20276 * omp-low.c: Likewise.
20277 * stor-layout.c: Likewise.
20278 * tree-cfg.c: Likewise.
20279 * tree-complex.c: Likewise.
20280 * tree-dfa.c: Likewise.
20281 * tree-dump.c: Likewise.
20282 * tree-inline.c: Likewise.
20283 * tree-mudflap.c: Likewise.
20284 * tree-nested.c: Likewise.
20285 * tree-object-size.c: Likewise.
20286 * tree-pretty-print.c: Likewise.
20287 * tree-sra.c: Likewise.
20288 * tree-ssa-live.c: Likewise.
20289 * tree-ssa-loop-niter.c: Likewise.
20290 * tree-ssa-math-opts.c: Likewise.
20291 * tree-ssa-reassoc.c: Likewise.
20292 * tree-ssa-sccvn.c: Likewise.
20293 * tree-ssa-structalias.c: Likewise.
20294 * tree-tailcall.c: Likewise.
20295 * tree-vrp.c: Likewise.
20296 * tree.c: Likewise.
20297 * var-tracking.c: Likewise.
20298 * varasm.c: Likewise.
20299
20300 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20301
20302 PR target/44877
20303 * config/spu/spu.c (spu_expand_builtin_1): Allow references
20304 (as well as pointers) as argument to mask_for_load builtins.
20305
20306 2010-07-15 Richard Guenther <rguenther@suse.de>
20307
20308 PR tree-optimization/44946
20309 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
20310 with accessing only padding properly.
20311
20312 2010-07-15 Jan Hubicka <jh@suse.cz>
20313
20314 * ipa.c (function_and_variable_visibility): Variables marked as used
20315 should not be localized.
20316
20317 2010-07-15 Jan Hubicka <jh@suse.cz>
20318
20319 * cgraph.c: Include lto-streamer.h
20320 (change_decl_assembler_name): Work when assembler name hash is at place.
20321 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
20322 be sure to rename it to avoid name clash.
20323 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
20324 Localize hidden symbols only when locally defined.
20325
20326 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
20327
20328 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
20329
20330 2010-07-15 Magnus Granberg <zorry@gentoo.org>
20331 Kevin F. Quinn <kevquinn@gentoo.org>
20332
20333 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
20334 * common.opt: Add -Wtrampolines.
20335 * doc/invoke.texi: Add -Wtrampolines.
20336
20337 2010-07-15 Jie Zhang <jie@codesourcery.com>
20338
20339 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
20340 cortex_a8_issue_ls.
20341
20342 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
20343
20344 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
20345 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
20346
20347 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20348
20349 * config/spu/spu.c (reg_names): Remove prototype.
20350 (call_used_regs): Likewise.
20351
20352 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
20353
20354 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
20355 "unused" with attribute "used".
20356 (__JCR_END__): Likewise.
20357 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
20358 "used" attribute.
20359 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
20360
20361 2010-07-14 Richard Guenther <rguenther@suse.de>
20362
20363 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
20364 (maybe_fixup_decls): Likewise.
20365 (input_gimple_stmt): Do not fixup anything.
20366 * lto-streamer-out.c (output_gimple_stmt): Make sure all
20367 non-automatic variable uses are wrapped inside a MEM_REF.
20368
20369 2010-07-14 Richard Henderson <rth@redhat.com>
20370
20371 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
20372 for functions.
20373 * varasm.c (assemble_variable): Remove early exit for functions;
20374 assert that we're given a variable.
20375
20376 2010-07-14 Jie Zhang <jie@codesourcery.com>
20377
20378 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
20379 cortex_a8_default when neon_type is not none.
20380
20381 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
20382
20383 * lower-subreg.c (subreg_context): New static bitmap.
20384 (decompose_multiword_subregs): Allocate and free it.
20385 (find_decomposable_subregs): Set a bit in it for a register that
20386 occurs in a subreg that changes mode but not size.
20387 (can_decompose_p): Test it instead of non_decomposable_context.
20388
20389 2010-07-14 Richard Guenther <rguenther@suse.de>
20390
20391 PR tree-optimization/44824
20392 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
20393 is_gimple_mem_ref_addr.
20394 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
20395 non-decl_address_invariant_p addresses.
20396
20397 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
20398
20399 * reload.c (find_reloads): Revert code to penalize small register
20400 classes that was brought in with the IRA merge.
20401
20402 2010-07-14 Richard Guenther <rguenther@suse.de>
20403
20404 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
20405 as base of ARRAY_REFs.
20406
20407 2010-07-14 Richard Guenther <rguenther@suse.de>
20408
20409 PR middle-end/44930
20410 * tree-pretty-print.c (do_niy): Do not print a newline.
20411
20412 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
20413
20414 * ira-int.h (struct ira_object): New.
20415 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
20416 (struct ira_allocno): Remove members min, max,
20417 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
20418 conflict_allocnos_num and conflict_vec_p. Add new member object.
20419 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
20420 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
20421 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
20422 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
20423 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
20424 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
20425 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
20426 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
20427 an ira_object_t rather than ira_allocno_t. All uses changed.
20428 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
20429 contains a vector of ira_object_t; all uses changed.
20430 (ira_objects_num): Declare variable.
20431 (ira_create_allocno_object): Declare function.
20432 (ira_conflict_vector_profitable_p): Adjust prototype.
20433 (ira_allocate_conflict_vec): Renamed from
20434 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
20435 (ira_allocate_object_conflicts): Renamed from
20436 ira_allocate_allocno_conflicts; first arg now ira_object_t.
20437 (struct ira_object_iterator): New.
20438 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
20439 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
20440 to conflict_vec_p. All uses changed.
20441 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
20442 Changed to take into account that conflicts are now tracked for
20443 objects.
20444 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
20445 Args changed to accept ira_object_t. All uses changed.
20446 (allocnos_conflict_p): New static function.
20447 (collected_conflict_objects): Renamed from collected_allocno_objects;
20448 now a vector of ira_object_t. All uses changed.
20449 (build_conflict_bit_table): Changed to take into account that
20450 conflicts are now tracked for objects.
20451 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
20452 (print_allocno_conflicts, ira_build_conflicts): Likewise.
20453 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
20454 setup_allocno_left_conflicts_size, allocno_reload_assign,
20455 fast_allocation): Likewise.
20456 * ira-lives.c (make_hard_regno_born, make_allocno_born)
20457 process_single_reg_class_operands, process_bb_node_lives): Likewise.
20458 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
20459 Likewise.
20460 * ira-build.c (ira_objects_num): New variable.
20461 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
20462 contains a vector of ira_object_t; all uses changed.
20463 (ira_object_id_map_vec): Corresponding change.
20464 (object_pool): New static variable.
20465 (initiate_allocnos): Initialize it.
20466 (finish_allocnos): Free it.
20467 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
20468 New functions.
20469 (ira_create_allocno): Don't set members that were removed.
20470 (ira_set_allocno_cover_class): Don't change conflict hard regs.
20471 (merge_hard_reg_conflicts): Changed to take into account that
20472 conflicts are now tracked for objects.
20473 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
20474 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
20475 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
20476 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
20477 setup_min_max_conflict_allocno_ids, ): Likewise.
20478 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
20479 to ira_object_t; all callers changed.
20480 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
20481 to ira_object_t, all callers changed.
20482 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
20483 to ira_object_t, all callers changed.
20484 (conflict_check, curr_conflict_check_tick): Renamed from
20485 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
20486 changed.
20487 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
20488 arg changed to ira_object_t, all callers changed.
20489 (create_cap_allocno): Call ira_create_allocno_object.
20490 (finish_allocno): Free the corresponding object.
20491 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
20492 callers changed. Adjusted for dealing with objects.
20493 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
20494 dealing with objects.
20495 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
20496
20497 * ira-int.h (struct live_range): Rename allocno member to object
20498 and change type to ira_object_t.
20499 (struct ira_object): New member live_ranges.
20500 (struct ira_allocno): Remove member live_ranges.
20501 (ALLOCNO_LIVE_RANGES): Remove.
20502 (OBJECT_LIVE_RANGES): New macro.
20503 (ira_create_live_range, ira_copy_live_range_list,
20504 ira_merge_live_range_list, ira_live_ranges_intersect_p,
20505 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
20506 * ira-build.c (ira_create_object): Initialize live ranges here.
20507 (ira_create_allocno): Not here.
20508 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
20509 changed to ira_object_t, all callers changed.
20510 (copy_live_range): Rename from copy_allocno_live_range, all callers
20511 changed.
20512 (ira_copy_live_range_list): Rename from
20513 ira_copy_allocno_live_range_list, all callers changed.
20514 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
20515 all callers changed.
20516 (ira_live_ranges_intersect_p): Rename from
20517 ira_allocno_live_ranges_intersect_p, all callers changed.
20518 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
20519 callers changed.
20520 (ira_finish_live_range_list): Rename from
20521 ira_finish_allocno_live_range_list, all callers changed.
20522 (change_object_in_range_list): Rename from change_allocno_in_range_list,
20523 last arg changed to ira_object_t, all callers changed.
20524 (finish_allocno): Changed to expect live ranges in the allocno's object.
20525 (move_allocno_live_ranges, copy_allocno_live_ranges,
20526 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
20527 ira_flattening, ira_build): Likewise.
20528 * ira-color.c (allocnos_have_intersected_live_ranges_p,
20529 slot_coalesced_allocno_live_ranges_intersect,
20530 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
20531 * ira-conflicts.c (build_conflict_bit_table): Likewise.
20532 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
20533 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
20534 make_allocno_dead, create_start_finish_chains,
20535 remove_some_program_points_and_update_live_ranges,
20536 ira_debug_live_range_list): Likewise.
20537
20538 * ira-int.h (ira_object_conflict_iterator): Rename from
20539 ira_allocno_conflict_iterator.
20540 (ira_object_conflict_iter_init): Rename from
20541 ira_allocno_conflict_iter_init, second arg changed to
20542 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
20543 FOR_EACH_ALLOCNO_CONFLICT.
20544 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
20545 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
20546 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
20547 * ira-conflicts.c (print_allocno_conflicts): Likewise.
20548
20549 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
20550
20551 PR other/44874
20552 * tree-dump.c (dump_options): Add enumerate_locals entry.
20553 Add TDF_NOID exclusion to all entry.
20554 * tree-dump.h (dump_enumerated_decls): Declare.
20555 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
20556 Don't display type uid.
20557 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
20558 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
20559 * tree-ssa-live.c: Include gimple.h.
20560 (numbered_tree_d): New struct.
20561 (numbered_tree): New typedef.
20562 (DEF_VEC_O (numbered_tree): New.
20563 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
20564 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
20565 (dump_enumerated_decls): Likewise.
20566 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
20567 debug info and flag_dump_final_insns, call dump_enumerated_decls.
20568 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
20569 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
20570
20571 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
20572
20573 * expmed.h (MAX_BITS_PER_WORD): Move to...
20574 * defaults.h (MAX_BITS_PER_WORD): ...here.
20575
20576 2010-07-13 DJ Delorie <dj@redhat.com>
20577
20578 * config/h8300/h8300.c (h8300_init_once): Default to
20579 -fstrict_volatile_bitfields.
20580
20581 * config/sh/sh.c (sh_override_options): Default to
20582 -fstrict_volatile_bitfields.
20583
20584 * config/rx/rx.c (rx_option_override): New.
20585
20586 * config/m32c/m32c.c (m32c_override_options): Default to
20587 -fstrict_volatile_bitfields.
20588
20589 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
20590
20591 * tree.h (build_function_call_expr): Delete.
20592 (build_call_expr_loc_array): New function.
20593 (build_call_expr_loc_vec): New function.
20594 * tree-flow.h (struct omp_region): Change type of ws_args field
20595 to a VEC.
20596 * builtins.c (build_function_call_expr): Delete.
20597 (build_call_expr_loc_array): New function.
20598 (build_call_expr_loc): Call it. Use XALLOCAVEC.
20599 (build_call_expr): Likewise.
20600 (build_call_expr_loc_vec): New function.
20601 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
20602 build_function_call_expr.
20603 * expr.c (emutls_var_address): Likewise.
20604 * varasm.c (emutls_common_1): Likewise.
20605 * omp-low.c (expand_omp_atomic_mutex): Likewise.
20606 (expand_omp_taskreg): Adjust for new type of region->ws_args.
20607 (get_ws_args_for): Return a VEC instead of a tree.
20608 (expand_parallel_call): Call build_call_expr_loc_vec instead of
20609 build_function_call_expr.
20610 * stor-layout.c (self_referential_size): Likewise.
20611
20612 2010-07-13 Jakub Jelinek <jakub@redhat.com>
20613
20614 PR testsuite/44701
20615 * recog.c (constrain_operands): Allow side-effects in memory
20616 operands if either < or > constraint is used, rather than if
20617 both < and > is used.
20618
20619 2010-07-13 Richard Guenther <rguenther@suse.de>
20620
20621 PR middle-end/44911
20622 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
20623 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
20624 without name.
20625
20626 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
20627
20628 PR target/44761
20629 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
20630 to variable emited.
20631 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
20632 * config/sh/sh.md (symGOT_load): Likewise.
20633 (symDTPOFF2reg): Likewise.
20634 (symTPOFF2reg): Likewise.
20635
20636 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20637
20638 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
20639 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
20640
20641 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20642
20643 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
20644 explanation.
20645 Find ucontext_t * on Solaris 11.
20646 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
20647 Handle new Solaris 11 __sighndlr patterns.
20648
20649 2010-07-13 Jakub Jelinek <jakub@redhat.com>
20650
20651 PR debug/44901
20652 * vec.h (VEC_block_remove): Fix comment.
20653 * tree-ssa-live.c (remove_unused_locals): Don't use
20654 VEC_unordered_remove on local_decls, instead replace a single
20655 vector element in each iteration if at least one element had
20656 to be removed and VEC_truncate at the end.
20657 * omp-low.c (expand_omp_taskreg): Likewise.
20658
20659 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
20660
20661 * c-decl.c (finish_function): Fix typo in comment.
20662
20663 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
20664
20665 PR bootstrap/44921
20666 * postreload.c (move2add_use_add3_insn): Silence gcc warning
20667 on min_regno.
20668
20669 2010-07-12 Jakub Jelinek <jakub@redhat.com>
20670
20671 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
20672 (simplify_stmt_using_ranges): Use it.
20673
20674 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20675
20676 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
20677 member. Do not mark as GTY(()).
20678 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
20679 (spu_builtin_decls): New static variable.
20680 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
20681 (spu_init_builtins): Likewise.
20682 (spu_builtin_mul_widen_even): Likewise.
20683 (spu_builtin_mul_widen_odd): Likewise.
20684 (spu_builtin_mask_for_load): Likewise.
20685 (spu_builtin_vec_perm): Likewise.
20686 * config/spu/spu-c.c: Include "target.h".
20687 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
20688 of using spu_builtins[].fndecl.
20689
20690 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20691
20692 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
20693 imply -minterlink-mips16.
20694
20695 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20696
20697 * config/mips/mips.h (mips16_globals): Declare.
20698 (SWITCHABLE_TARGET): Define.
20699 * config/mips/mips.c: Include target-globals.h.
20700 (mips16_globals): New variable.
20701 (mips_set_mips16_mode): Use save_target_globals and
20702 restore_target_globals instead of target_reinit.
20703
20704 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20705
20706 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
20707 to say that the function can be called more than once.
20708 * target-globals.c (save_target_globals): Call init_reg_sets.
20709
20710 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20711
20712 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
20713 * bb-reorder.h: New file.
20714 * bb-reorder.c (default_target_bb_reorder): New variable.
20715 (this_target_bb_reorder): New conditional variable.
20716 (uncond_jump_length): Redefine as a macro.
20717 * target-globals.h (this_target_bb_reorder): Declare.
20718 (target_globals): Add a bb_reorder field.
20719 (restore_target_globals): Copy the bb_reorder field to
20720 this_target_bb-reorder.
20721 * target-globals.c: Include bb-reorder.h.
20722 (default_target_globals): Initialize the bb_reorder field.
20723 (save_target_globals): Likewise.
20724
20725 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20726
20727 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
20728 * gcse.h: New file.
20729 * gcse.c: Include gcse.h.
20730 (default_target_gcse): New variable.
20731 (this_target_gcse): New conditional variable.
20732 (can_copy): Redefine as a macro.
20733 (can_copy_init_p): New macro.
20734 (can_copy_p): Remove can_copy_init_p.
20735 * target-globals.h (this_target_gcse): Declare.
20736 (target_globals): Add a gcse field.
20737 (restore_target_globals): Copy the gcse field to this_target_gcse.
20738 * target-globals.c: Include gcse.h.
20739 (default_target_globals): Initialize the gcse field.
20740 (save_target_globals): Likewise.
20741
20742 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20743
20744 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
20745 and x_ira_prohibited_mode_move_regs_initialized_p.
20746 (ira_prohibited_mode_move_regs): Redefine as a macro.
20747 * ira.c (ira_prohibited_mode_move_regs): Delete.
20748 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
20749
20750 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20751
20752 * reload.h (target_reload): Add x_cached_reg_save_code and
20753 x_cached_reg_restore_code.
20754 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
20755 Redefine as macros.
20756
20757 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20758
20759 * Makefile.in (target-globals.o): Depend on builtins.h.
20760 * builtins.h: New file.
20761 * builtins.c: Include builtins.h.
20762 (default_target_builtins): New variable.
20763 (this_target_builtins): New conditional variable.
20764 (apply_args_mode, apply_result_mode): Redefine as macros.
20765 * target-globals.h (this_target_builtins): Declare.
20766 (target_globals): Add a builtins field.
20767 (restore_target_globals): Copy the builtins field to
20768 this_target_builtins.
20769 * target-globals.c: Include builtins.h.
20770 (default_target_globals): Initialize the builtins field.
20771 (save_target_globals): Likewise.
20772
20773 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20774
20775 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
20776 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
20777 from expmed.c.
20778 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
20779 (alg_hash, alg_hash_used_p): New macros.
20780 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
20781 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
20782 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
20783
20784 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20785
20786 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
20787 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
20788 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
20789 (this_op_costs, costs_classes): Redefine as macros.
20790 (record_reg_classes): Don't take op_costs as a parameter.
20791 (record_operand_costs): Likewise. Update calls to record_reg_classes.
20792 (scan_one_insn): Update call to record_operand_costs.
20793
20794 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20795
20796 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
20797 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
20798 (target_ira_int): New structure.
20799 (default_target_ira_int): Declare.
20800 (this_target_ira_int): Declare as a variable or define as a macro.
20801 (ira_reg_mode_hard_regset, ira_register_move_cost)
20802 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
20803 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
20804 (prohibited_class_mode_regs, ira_important_classes_num)
20805 (ira_important_classes, ira_reg_class_intersect)
20806 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
20807 (ira_reg_class_union): Redefine as macros.
20808 * ira.h (target_ira): New structure.
20809 (default_target_ira): Declare.
20810 (this_target_ira): Declare as a variable or define as a macro.
20811 (ira_available_class_regs, ira_hard_regno_cover_class)
20812 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
20813 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
20814 (ira_class_hard_regs_num): Redefine as macros.
20815 * ira.c (default_target_ira, default_target_ira_int): New variables.
20816 (this_target_ira, this_target_ira_int): New conditional variables.
20817 (ira_reg_mode_hard_regset, ira_memory_move_cost)
20818 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
20819 (ira_class_subset_p): Delete.
20820 (no_unit_alloc_regs): Redefine as a macro.
20821 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
20822 (ira_class_hard_regs_num, ira_class_hard_reg_index)
20823 (ira_available_class_regs): Delete.
20824 (alloc_reg_class_subclasses): Redefine as a macro.
20825 (ira_reg_class_cover_size, ira_reg_class_cover)
20826 (ira_important_classes_num, ira_important_classes)
20827 (ira_important_class_nums, ira_class_translate): Delete.
20828 (cover_class_order): Document the variable's lifetime.
20829 (reorder_important_classes): Don't set ira_important_class_nums.
20830 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
20831 (ira_reg_class_super_classes, ira_reg_class_union)
20832 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
20833 Delete.
20834 (setup_reg_class_nregs): Don't set ira_max_regs.
20835 (prohibited_class_mode_regs): Delete.
20836 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
20837 (target_globals): Add ira and ira_int fields.
20838 (restore_target_globals): Copy the ira field to this_target_ira
20839 and the ira_int field to this_target_ira_int.
20840 * target-globals.c: Include ira-int.h.
20841 (default_target_globals): Initialize the ira and ira_int fields.
20842 (save_target_globals): Likewise.
20843
20844 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20845
20846 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
20847 * cfgloop.h (target_cfgloop): New structure.
20848 (default_target_cfgloop): Declare.
20849 (this_target_cfgloop): Declare as a variable or define as a macro.
20850 (target_avail_regs, target_clobbered_regs, target_res_regs)
20851 (target_reg_cost, target_spill_cost): Redefine as macros.
20852 * cfgloopanal.c (default_target_cfgloop): New variable.
20853 (this_target_cfgloop): New conditional variable.
20854 (target_avail_regs, target_clobbered_regs, target_res_regs)
20855 (target_reg_cost, target_spill_cost): Delete.
20856 * target-globals.h (this_target_cfgloop): Declare.
20857 (target_globals): Add a cfgloop field.
20858 (restore_target_globals): Copy the cfgloop field to
20859 this_target_cfgloop.
20860 * target-globals.c: Include cfgloop.h.
20861 (default_target_globals): Initialize the cfgloop field.
20862 (save_target_globals): Likewise.
20863
20864 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20865
20866 * regs.h (target_regs): Add x_direct_load, x_direct_store and
20867 x_float_extend_from_mem.
20868 (direct_load, direct_store, float_extend_from_mem): New macros.
20869 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
20870
20871 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20872
20873 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
20874 (target-globals.o): Depend on $(LIBFUNCS_H).
20875 * libfuncs.h: Include hashtab.h.
20876 (libfunc_entry): Moved from optabs.c.
20877 (target_libfuncs): New structure.
20878 (default_target_libfuncs): Declare.
20879 (this_target_libfuncs): Declare as a variable or define as a macro.
20880 (libfunc_table): Redefine as a macro.
20881 * optabs.c (default_target_libfuncs): New variable.
20882 (this_target_libfuncs): New conditional variable.
20883 (libfunc_table): Delete.
20884 (libfunc_entry): Moved to optabs.h.
20885 (libfunc_hash): Redefine as a macro.
20886 (hash_libfunc, eq_libfunc): Fix comments.
20887 (init_optabs): Use libfunc_hash to detect cases where the function
20888 has already been called. Clear the hash table instead of
20889 recreating it.
20890 * target-globals.h (this_target_libfuncs): Declare.
20891 (target_globals): Add a libfuncs field.
20892 (restore_target_globals): Copy the libfuncs field to
20893 this_target_libfuncs.
20894 * target-globals.c: Include libfuncs.h.
20895 (default_target_globals): Initialize the libfuncs field.
20896 (save_target_globals): Likewise.
20897
20898 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20899
20900 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
20901 in all dependency lists.
20902
20903 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20904
20905 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
20906 * optabs.h (target_optabs): New structure.
20907 (default_target_optabs): Declare.
20908 (this_target_optabs): Declare as a variable or define as a macro.
20909 (optab_table, convert_optab_table, direct_optab_table): Redefine
20910 as macros.
20911 * optabs.c (default_target_optabs): New variable.
20912 (this_target_optabs): New conditional variable.
20913 (optab_table, convert_optab_table, direct_optab_table): Delete.
20914 * target-globals.h (this_target_optabs): Declare.
20915 (target_globals): Add a optabs field.
20916 (restore_target_globals): Copy the optabs field to
20917 this_target_optabs.
20918 * target-globals.c: Include expr.h and optabs.h.
20919 (default_target_globals): Initialize the optabs field.
20920 (save_target_globals): Likewise.
20921
20922 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20923
20924 * flags.h (target_flagstate): Add x_flag_excess_precision.
20925 (flag_excess_precision): Redefine as a macro.
20926 * toplev.c (flag_excess_precision): Delete.
20927
20928 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20929
20930 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
20931 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
20932 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
20933 (no_caller_save_reg_set): Redefine as a macro.
20934 * reload.h (target_reload): Add x_caller_save_initialized_p and
20935 x_regno_save_mode.
20936 (caller_save_initialized_p): Redefine as a macro.
20937 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
20938 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
20939 (regno_save_mode): Redefine as a macro.
20940
20941 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20942
20943 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
20944 * expmed.h: New file.
20945 * expmed.c (default_target_costs): New variable.
20946 (this_target_costs): New conditional variable.
20947 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
20948 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
20949 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
20950 * target-globals.h (this_target_expmed): Declare.
20951 (target_globals): Add a expmed field.
20952 (restore_target_globals): Copy the expmed field to
20953 this_target_expmed.
20954 * target-globals.c: Include expmed.h.
20955 (default_target_globals): Initialize the expmed field.
20956 (save_target_globals): Likewise.
20957
20958 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20959
20960 * Makefile.in (target-globals.o): Depend on reload.h.
20961 * reload.h (target_reload): New structure.
20962 (default_target_reload): Declare.
20963 (this_target_reload): Declare as a variable or define as a macro.
20964 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
20965 * reload1.c (default_target_reload): New variable
20966 (this_target_reload): New conditional variable.
20967 (indirect_symref_ok, double_reg_address_ok): Delete.
20968 (spill_indirect_levels): Redefine as a macro.
20969 * target-globals.h (this_target_reload): Declare.
20970 (target_globals): Add a reload field.
20971 (restore_target_globals): Copy the reload field to
20972 this_target_reload.
20973 * target-globals.c: Include hard-reg-set.h.
20974 (default_target_globals): Initialize the reload field.
20975 (save_target_globals): Likewise.
20976
20977 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20978
20979 * rtl.h (target_rtl): Add x_static_reg_base_value.
20980 * alias.c (static_reg_base_value): Redefine as a macro.
20981
20982 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20983
20984 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
20985 (GTFILES): Remove reginfo.c.
20986 * rtl.h (target_rtl): Add x_top_of_stack.
20987 (top_of_stack): New macro.
20988 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
20989 (top_of_stack): Delete.
20990
20991 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20992
20993 * regs.h (target_regs): Add x_hard_regs_of_mode,
20994 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
20995 x_may_move_out_cost and x_last_mode_for_init_move_cost.
20996 (have_regs_of_mode, contains_reg_of_mode, move_cost)
20997 (may_move_in_cost, may_move_out_cost): Redefine as macros.
20998 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
20999 (may_move_in_cost, may_move_out_cost): Delete.
21000 (last_mode_for_init_move_cost): Redefine as a macro.
21001
21002 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
21003
21004 * hard-reg-set.h (target_hard_regs): New structure.
21005 (default_target_hard_regs): Declare.
21006 (this_target_hard_regs): Declare as a variable or define as a macro.
21007 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
21008 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
21009 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
21010 (reg_class_size, reg_class_subclasses, reg_class_subunion)
21011 (reg_class_superunion, reg_names): Redefine as macros.
21012 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
21013 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
21014 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
21015 (reg_class_contents, reg_class_size, reg_class_subclasses)
21016 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
21017 (default_target_hard_regs): New variable
21018 (this_target_hard_regs, initial_call_really_used_regs)
21019 (initial_reg_alloc_order): New conditional variables.
21020 (initial_reg_names): New variable.
21021 (init_reg_sets): Assert that initial_call_really_used_regs,
21022 initial_reg_alloc_order and initial_reg_names
21023 are all the same size as their variable counterparts. Use them to
21024 initialize those counterparts.
21025 * target-globals.h (this_target_hard_regs): Declare.
21026 (target_globals): Add a hard_regs field.
21027 (restore_target_globals): Copy the hard_regs field to
21028 this_target_hard_regs.
21029 * target-globals.c: Include hard-reg-set.h.
21030 (default_target_globals): Initialize the hard_regs field.
21031 (save_target_globals): Likewise.
21032
21033 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
21034
21035 * Makefile.in (target-globals.o): Depend on $(RTL_H).
21036 * rtl.h (target_rtl): New structure.
21037 (default_target_rtl): Declare.
21038 (this_target_rtl): Declare as a variable or define as a macro.
21039 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
21040 Redefine as macros.
21041 * emit-rtl.c (default_target_rtl): New variable.
21042 (this_target_rtl): New conditional variable.
21043 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
21044 (return_address_pointer_rtx): Delete.
21045 (initial_regno_reg_rtx): New macro.
21046 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
21047 (init_emit_regs): Likewise.
21048 * target-globals.h (this_target_rtl): Declare.
21049 (target_globals): Add a rtl field.
21050 (restore_target_globals): Copy the rtl field to this_target_rtl.
21051 * target-globals.c: Include rtl.h.
21052 (default_target_globals): Initialize the rtl field.
21053 (save_target_globals): Likewise.
21054
21055 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
21056
21057 * Makefile.in (target-globals.o): Depend on $(REGS_H).
21058 * regs.h (target_reg_modes): New structure.
21059 (default_target_reg_modes): Declare.
21060 (this_target_reg_modes): Declare as a variable or define as a macro.
21061 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
21062 * reginfo.c (default_target_reg_modes): New variable.
21063 (this_target_reg_modes): New conditional variable.
21064 (hard_regno_nregs, reg_raw_mode): Delete.
21065 * target-globals.h (this_target_regs): Declare.
21066 (target_globals): Add a regs field.
21067 (restore_target_globals): Copy the regs field to this_target_regs.
21068 * target-globals.c: Include regs.h.
21069 (default_target_globals): Initialize the regs field.
21070 (save_target_globals): Likewise.
21071
21072 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
21073
21074 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
21075 * doc/tm.texi: Regenerate.
21076 * Makefile.in (OBJS-common): Add target-globals.o.
21077 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
21078 and target-globals.h.
21079 (target-globals.o): New rule.
21080 (GTFILES): Include $(srcdir)/target-globals.h.
21081 * defaults.h (SWITCHABLE_TARGET): Define.
21082 * gengtype.c (open_base_files): Add target-globals.h to the
21083 list of includes.
21084 * target-globals.h: New file.
21085 * target-globals.c: Likewise.
21086
21087 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
21088 * flags.h (target_flag_state): New structure.
21089 (default_target_flag_state): Declare.
21090 (this_target_flag_state): Declare as a variable or define as a macro.
21091 (align_loops_log): Redefine as a macro.
21092 (align_loops_max_skip, align_jumps_log): Likewise.
21093 (align_jumps_max_skip, align_labels_log): Likewise.
21094 (align_labels_max_skip, align_functions_log): Likewise.
21095 * toplev.c (default_target_flag_state): New variable.
21096 (this_target_flag_state): New conditional variable.
21097 (align_loops_log): Delete.
21098 (align_loops_max_skip, align_jumps_log): Likewise.
21099 (align_jumps_max_skip, align_labels_log): Likewise.
21100 (align_labels_max_skip, align_functions_log): Likewise.
21101 * target-globals.h (this_target_flag_state): Declare.
21102 (target_globals): Add a flag_state field.
21103 (restore_target_globals): Copy the flag_state field to
21104 this_target_flag_state.
21105 * target-globals.c: Include flags.h.
21106 (default_target_globals): Initialize the flag_state field.
21107 (save_target_globals): Likewise.
21108
21109 2010-07-12 Jie Zhang <jie@codesourcery.com>
21110
21111 * postreload.c (reg_symbol_ref[]): New.
21112 (move2add_use_add2_insn): New.
21113 (move2add_use_add3_insn): New.
21114 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
21115 (move2add_note_store): Likewise.
21116
21117 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
21118
21119 PR rtl-optimization/44752
21120 * genautomata.c (main): Don't emit an empty file even if there
21121 is no automaton.
21122
21123 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21124
21125 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
21126 ix86_solaris_return_in_memory.
21127 * config/i386-protos.h: Reflect this.
21128 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
21129 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
21130 Move ...
21131 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
21132
21133 2010-07-12 Jie Zhang <jie@codesourcery.com>
21134
21135 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
21136 align the stack when it's going to be saved.
21137
21138 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21139
21140 PR pch/14940
21141 * config/host-solaris.c (mmap_fixed): New function.
21142 (sol_gt_pch_get_address): Use it.
21143 (sol_gt_pch_use_address): Likewise.
21144
21145 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21146
21147 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21148 pentiumpro on Solaris 8 and 9/x86.
21149 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
21150 Document SSE/SSE2 support.
21151 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
21152
21153 2010-07-12 Andi Kleen <ak@linux.intel.com>
21154
21155 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
21156 instead of gcc_assert to print better error message for multiple
21157 prevailing defs.
21158
21159 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
21160
21161 * config/i386/i386.c (ix86_asm_output_function_label): Change format
21162 string placeholder from 0x%x to %#x.
21163 (ix86_code_end): Use putc to output '\n'.
21164 (ix86_print_operand) <case ';'>: Use putc to output ';'.
21165
21166 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
21167
21168 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
21169 in directive -export.
21170
21171 2010-07-10 Anatoly Sokolov <aesok@post.ru>
21172
21173 * reginfo.h (reg_classes_intersect_p): Change arguments type to
21174 reg_class_t.
21175 * rtl.h (reg_classes_intersect_p): Adjust prototype.
21176
21177 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21178 Remove macros.
21179 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
21180 rs6000_memory_move_cost): Remove
21181 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
21182 TARGET_MEMORY_MOVE_COST): Define.
21183 (rs6000_register_move_cost): Make static. Change arguments type from
21184 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
21185 (rs6000_memory_move_cost): Make static. Change arguments type from
21186 'enum reg_class' to reg_class_t.
21187
21188 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
21189
21190 PR middle-end/42505
21191 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
21192 lookup code into....
21193 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
21194 new functions.
21195 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
21196 * cfgloopanal.c (target_clobbered_regs): Define.
21197 (init_set_costs): Initialize target_clobbered_regs.
21198 (estimate_reg_pressure_cost): Add call_p argument. When true,
21199 adjust the number of available registers to exclude the
21200 call-clobbered registers.
21201 * cfgloop.h (target_clobbered_regs): Declare.
21202 (estimate_reg_pressure_cost): Adjust declaration.
21203 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
21204 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
21205 (determine_set_costs): Dump target_clobbered_regs.
21206 (loop_body_includes_call): New function.
21207 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
21208 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
21209 call_p flag through.
21210 (best_gain_for_invariant): Likewise.
21211 (find_invariants_to_move): Likewise.
21212 (move_single_loop_invariants): Likewise, using already-computed
21213 has_call field.
21214
21215 2010-07-10 Richard Guenther <rguenther@suse.de>
21216 Joern Rennecke <joern.rennecke@embecosm.com>
21217
21218 PR debug/44832
21219 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
21220 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
21221 unless they have DECL_IGNORED_P set.
21222
21223 2010-07-10 Richard Guenther <rguenther@suse.de>
21224
21225 PR lto/44889
21226 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
21227 helper function.
21228 (gimple_types_compatible_p): Similar to pointed-to
21229 types allow and merge a mix of complete and incomplete aggregate.
21230 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
21231 (iterative_hash_gimple_type): Adjust for that.
21232
21233 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
21234
21235 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
21236
21237 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
21238
21239 PR objc/44140
21240 * config/darwin.c (output_objc_section_asm_op): Save and restore
21241 section when outputting ObjC section list.
21242
21243 2010-07-09 Jan Hubicka <jh@suse.cz>
21244
21245 * lto-streamer-out.c (produce_symtab): Do not write alias
21246 cgraph/varpool nodes.
21247
21248 2010-07-09 Jan Hubicka <jh@suse.cz>
21249
21250 * tree-inline.c (declare_return_variable): Fix ICE while
21251 inlining DECL_BY_VALUE function not in SSA form
21252
21253 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
21254
21255 PR tree-optimization/44576
21256 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
21257 New. Pull out from is_loop_prefetching_profitable to implement
21258 the trip count to ahead ratio heuristic.
21259 (mem_ref_count_reasonable_p): New. Pull out from
21260 is_loop_prefetching_profitable to implement the instruction to
21261 memory reference ratio heuristic. Also consider not reasonable if
21262 the memory reference count is above a threshold (to avoid
21263 explosive compilation time.
21264 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
21265 is_loop_prefetching_profitable to implement the instruction to
21266 prefetch ratio heuristic.
21267 (is_loop_prefetching_profitable): Removed.
21268 (loop_prefetch_arrays): Distribute the cost analysis across the
21269 function to allow early exit of the prefetch analysis.
21270 is_loop_prefetching_profitable is splitted into three functions,
21271 with each one called as early as possible.
21272 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
21273 number of memory references in a loop is considered too many.
21274
21275 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
21276
21277 * reload.c (find_reloads): Don't clear badop if we have a winreg
21278 alternative, but not win, and the class only has fixed regs.
21279 * hard-reg-set.h (class_only_fixed_regs): Declare.
21280 * reginfo.c (class_only_fixed_regs): New array.
21281 (init_reg_sets_1): Initialize it.
21282 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
21283 discourage alternatives using the stack pointer.
21284
21285 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
21286
21287 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
21288
21289 * config/arm/arm.md (cbranchqi4): Fix array size.
21290 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
21291 calculating length.
21292
21293 2010-07-09 Richard Guenther <rguenther@suse.de>
21294
21295 * gimple.c (struct type_fixup_s): New struct and VEC type.
21296 (gimple_register_type_fixups): New static global.
21297 (gimple_queue_type_fixup): New function.
21298 (gimple_types_compatible_p): Queue type fixups instead of
21299 applying them here.
21300 (gimple_register_type): Apply queued fixups for the
21301 canonical type. Empty the type fixup queue.
21302
21303 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
21304
21305 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
21306 * configure: Regenerate.
21307 * config.in: Ditto.
21308
21309 2010-07-09 Jakub Jelinek <jakub@redhat.com>
21310 Denys Vlasenko <dvlasenk@redhat.com>
21311 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21312
21313 PR tree-optimization/28632
21314 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
21315 (extract_range_from_binary_expr): Further optimize
21316 BIT_AND_EXPR and BIT_IOR_EXPR.
21317
21318 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
21319
21320 * tree-if-conv.c (fold_or_predicates): New.
21321 (add_to_predicate_list): Call it.
21322
21323 2010-07-09 Richard Guenther <rguenther@suse.de>
21324
21325 PR middle-end/44890
21326 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
21327 if base is a pointer.
21328 * tree-cfg.c (verify_expr): Update MEM_REF checking.
21329
21330 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21331
21332 PR target/44877
21333 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
21334 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
21335 builtin mask for load/store builtins.
21336
21337 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
21338
21339 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
21340 for "lock addl".
21341 * configure: Regenerate.
21342 * config/i386/i386.c (ix86_print_operand) <case ';'>:
21343 Remove TARGET_MACHO.
21344
21345 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
21346
21347 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
21348 default ISA flags.
21349 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
21350
21351 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
21352
21353 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
21354
21355 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
21356
21357 * config/picochip/picochip.md (commsTestPort): Emit more
21358 efficient sequence for tstport instruction.
21359
21360 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
21361
21362 * config/i386/i386.c (ix86_veclib_handler): Make static.
21363
21364 2010-07-09 Richard Guenther <rguenther@suse.de>
21365
21366 PR tree-optimization/44852
21367 * tree-ssa-alias.c: Include toplev.h for exact_log2.
21368 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
21369 in MEM_REF.
21370 (indirect_refs_may_alias_p): Likewise.
21371 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
21372
21373 2010-07-09 Richard Guenther <rguenther@suse.de>
21374
21375 PR tree-optimization/44882
21376 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
21377 sets do conflict.
21378 (vectorizable_load): Likewise.
21379
21380 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
21381
21382 PR target/40657
21383 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
21384 All callers changed.
21385 Handle the case when we're called for the epilogue.
21386 (thumb_unexpanded_epilogue): Use it.
21387 (thumb1_expand_epilogue): Likewise.
21388
21389 2010-07-09 Jakub Jelinek <jakub@redhat.com>
21390
21391 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
21392 both ranges are range_int_cst_p with non-negative minimum,
21393 try harder to derive smaller range.
21394
21395 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
21396
21397 * genrecog.c: Include diagnostic-core.h before toplev.h.
21398 * genoutput.c: Likewise.
21399 * genextract.c: Likewise.
21400 * genautomata.c: Likewise.
21401 * genemit.c: Likewise.
21402 * genpeep.c: Likewise.
21403 * genattrtab.c: Likewise.
21404 * genconditions.c: Likewise.
21405 * genpreds.c: Likewise.
21406
21407 2010-07-08 Andi Kleen <ak@linux.intel.com>
21408
21409 * lto-section-in.c (lto_section_name): Add missing comma.
21410
21411 2010-07-08 Anatoly Sokolov <aesok@post.ru>
21412
21413 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
21414 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
21415 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
21416 (ia64_override_options): Rename to...
21417 (ia64_option_override): ... this one. Make static.
21418
21419 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21420
21421 PR middle-end/44843
21422 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
21423 pointed-to type of the offset in a MEM_REF to compute the alignment.
21424
21425 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
21426
21427 * final.c (final_scan_insn): Replace
21428 TARGET_UNWIND_INFO macro check by unwind_emit
21429 hook NULL check.
21430 * targhooks.c (default_unwind_emit): Removed.
21431 * targhooks.h (default_unwind_emit): Likewise.
21432 * target.def (unwind_emit): Set default value to NULL.
21433
21434 * config/i386/i386-protos.h (ix86_asm_output_function_label):
21435 New prototype.
21436 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
21437 for NULL fntype argument and allow 64-bit targets.
21438 (ix86_asm_output_function_label): New function.
21439 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
21440 (ix86_handle_fndecl_attribute): Likewise.
21441 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
21442 * doc/doc/tm.texi: Regenerated.
21443 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
21444 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
21445 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
21446 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
21447 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
21448 * config/elfos.h: Likewise.
21449 * config/i386/cygming.h: Likewise.
21450 * config/netbsd-aout.h: Likewise.
21451 * config/openbsd.h: Likewise.
21452 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
21453 by ix86_asm_output_function_label function call.
21454 * varasm.c (assemble_start_function): Use
21455 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
21456
21457 2010-07-08 Jan Hubicka <jh@suse.cz>
21458
21459 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
21460 New function.
21461 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
21462 Declare.
21463 * ipa-cp.c (ipcp_estimate_growth): Use it.
21464 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
21465 Likewise.
21466
21467 2010-07-08 Jan Hubicka <jh@suse.cz>
21468
21469 * tree-inline.c (declare_return_variable): Allocate annotation for new
21470 temporary.
21471
21472 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
21473
21474 PR tree-optimization/44710
21475 * tree-if-conv.c (parse_predicate): New.
21476 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
21477 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
21478
21479 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
21480
21481 * common.opt (ftree-loop-if-convert): New flag.
21482 * doc/invoke.texi (ftree-loop-if-convert): Documented.
21483 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
21484 when flag_tree_loop_if_convert is set.
21485
21486 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
21487
21488 * config/i386/i386.c: Use short syntax for function calls
21489 through function pointers.
21490 * config/i386/i386.md: Ditto.
21491
21492 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21493
21494 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
21495
21496 2010-07-08 Richard Guenther <rguenther@suse.de>
21497
21498 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
21499 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
21500
21501 2010-07-08 Jakub Jelinek <jakub@redhat.com>
21502
21503 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
21504 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
21505 (loc_list_from_tree): Likewise.
21506 (output_loc_operands): Handle outputting DW_OP_const[48]u
21507 with loc->dtprel set.
21508 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
21509
21510 2010-07-08 Jan Hubicka <jh@suse.cz>
21511
21512 * ipa.c: Include pointer-set.h
21513 (cgraph_externally_visible_p): New attribute ALIASED;
21514 when in LTO, hidden symbols are local unless they are aliased.
21515 (function_and_variable_visibility): Compute aliased nodes;
21516 handle LTO and hidden symbol on functions and vars.
21517 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
21518 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
21519
21520 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21521
21522 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
21523 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21524 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21525 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21526 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21527 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
21528 (ix86_gen_probe_stack_range): Likewise.
21529 (override_options): Set them.
21530 (ix86_target_stack_probe): New function.
21531 (ix86_compute_frame_layout): Force use of push instructions to
21532 save registers if stack checking with probes is enabled.
21533 (get_scratch_register_on_entry): New function.
21534 (release_scratch_register_on_entry): Likewise.
21535 (ix86_adjust_stack_and_probe): Likewise.
21536 (output_adjust_stack_and_probe): Likewise.
21537 (ix86_emit_probe_stack_range): Likewise.
21538 (output_probe_stack_range): Likewise.
21539 (ix86_expand_prologue): Emit stack checking code if static built-in
21540 stack checking is enabled.
21541 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
21542 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
21543 (output_adjust_stack_and_probe): Likewise.
21544 (output_probe_stack_range): Likewise.
21545 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
21546 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
21547 TARGET_STACK_PROBE.
21548 (allocate_stack_worker_64): Likewise.
21549 (allocate_stack): Likewise.
21550 (adjust_stack_and_probe): New insn.
21551 (probe_stack_range): Likewise.
21552
21553 2010-07-08 Richard Guenther <rguenther@suse.de>
21554
21555 PR tree-optimization/44831
21556 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
21557 a MEM_REF preserving TBAA info of the original dereference.
21558 Dereference the original pointer if the address is not invariant.
21559 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
21560 at least one invariant address that we are going to dereference.
21561
21562 2010-07-08 Richard Guenther <rguenther@suse.de>
21563
21564 PR tree-optimization/44861
21565 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
21566 information when building MEM_REFs.
21567 (vectorizable_load): Likewise.
21568 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
21569
21570 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21571
21572 * config/sol2-c.c: Do not include diagnostic-core.h.
21573
21574 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21575
21576 PR bootstrap/44768
21577 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
21578 with respect to current_function_decl. Pass decl of the function.
21579 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
21580 * ipa-inline.c (compute_inline_parameters): Pass decl to
21581 estimated_stack_frame_size.
21582
21583 2010-07-08 Richard Guenther <rguenther@suse.de>
21584
21585 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21586 New function.
21587 (valueize_refs): Call it.
21588
21589 2010-07-08 Richard Guenther <rguenther@suse.de>
21590
21591 PR rtl-optimization/44838
21592 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
21593 SSA form do not use pointer equivalence.
21594
21595 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
21596
21597 * dwarf2out.c (AT_linkage_name): Delete.
21598 (add_linkage_attr): New function.
21599 (add_linkage_name): Call it to emit the linkage attribute.
21600 (dwarf2out_finish): Likewise.
21601 (move_linkage_attr): Explicitly accept both attribute variants.
21602
21603 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
21604
21605 * toplev.h: Do not include diagnostic-core.h.
21606 Include diagnostic-core.h in every file that includes toplev.h.
21607 * c-tree.h: Do not include toplev.h.
21608 * pretty-print.h: Update comment.
21609 * Makefile.in: Update dependencies.
21610 * alias.c: Include diagnostic-core.h in every file that includes
21611 toplev.h.
21612 * attribs.c: Likewise.
21613 * auto-inc-dec.c: Likewise.
21614 * bb-reorder.c: Likewise.
21615 * bt-load.c: Likewise.
21616 * caller-save.c: Likewise.
21617 * calls.c: Likewise.
21618 * cfg.c: Likewise.
21619 * cfganal.c: Likewise.
21620 * cfgbuild.c: Likewise.
21621 * cfgcleanup.c: Likewise.
21622 * cfghooks.c: Likewise.
21623 * cfgloop.c: Likewise.
21624 * combine.c: Likewise.
21625 * config/alpha/alpha.c: Likewise.
21626 * config/arc/arc.c: Likewise.
21627 * config/arm/arm.c: Likewise.
21628 * config/arm/pe.c: Likewise.
21629 * config/avr/avr.c: Likewise.
21630 * config/bfin/bfin.c: Likewise.
21631 * config/cris/cris.c: Likewise.
21632 * config/crx/crx.c: Likewise.
21633 * config/darwin-c.c: Likewise.
21634 * config/darwin.c: Likewise.
21635 * config/fr30/fr30.c: Likewise.
21636 * config/frv/frv.c: Likewise.
21637 * config/h8300/h8300.c: Likewise.
21638 * config/host-darwin.c: Likewise.
21639 * config/i386/i386.c: Likewise.
21640 * config/i386/netware.c: Likewise.
21641 * config/i386/nwld.c: Likewise.
21642 * config/i386/winnt-cxx.c: Likewise.
21643 * config/i386/winnt-stubs.c: Likewise.
21644 * config/i386/winnt.c: Likewise.
21645 * config/ia64/ia64-c.c: Likewise.
21646 * config/ia64/ia64.c: Likewise.
21647 * config/iq2000/iq2000.c: Likewise.
21648 * config/lm32/lm32.c: Likewise.
21649 * config/m32c/m32c-pragma.c: Likewise.
21650 * config/m32c/m32c.c: Likewise.
21651 * config/m32r/m32r.c: Likewise.
21652 * config/m68hc11/m68hc11.c: Likewise.
21653 * config/m68k/m68k.c: Likewise.
21654 * config/mcore/mcore.c: Likewise.
21655 * config/mep/mep-pragma.c: Likewise.
21656 * config/mep/mep.c: Likewise.
21657 * config/mmix/mmix.c: Likewise.
21658 * config/mn10300/mn10300.c: Likewise.
21659 * config/moxie/moxie.c: Likewise.
21660 * config/pa/pa.c: Likewise.
21661 * config/pdp11/pdp11.c: Likewise.
21662 * config/picochip/picochip.c: Likewise.
21663 * config/rs6000/rs6000-c.c: Likewise.
21664 * config/rs6000/rs6000.c: Likewise.
21665 * config/rx/rx.c: Likewise.
21666 * config/s390/s390.c: Likewise.
21667 * config/score/score.c: Likewise.
21668 * config/score/score3.c: Likewise.
21669 * config/score/score7.c: Likewise.
21670 * config/sh/sh.c: Likewise.
21671 * config/sh/symbian-base.c: Likewise.
21672 * config/sh/symbian-c.c: Likewise.
21673 * config/sh/symbian-cxx.c: Likewise.
21674 * config/sol2-c.c: Likewise.
21675 * config/sol2.c: Likewise.
21676 * config/sparc/sparc.c: Likewise.
21677 * config/spu/spu.c: Likewise.
21678 * config/stormy16/stormy16.c: Likewise.
21679 * config/v850/v850-c.c: Likewise.
21680 * config/v850/v850.c: Likewise.
21681 * config/vax/vax.c: Likewise.
21682 * config/vxworks.c: Likewise.
21683 * config/xtensa/xtensa.c: Likewise.
21684 * convert.c: Likewise.
21685 * cse.c: Likewise.
21686 * cselib.c: Likewise.
21687 * dbgcnt.c: Likewise.
21688 * dbxout.c: Likewise.
21689 * ddg.c: Likewise.
21690 * dominance.c: Likewise.
21691 * emit-rtl.c: Likewise.
21692 * explow.c: Likewise.
21693 * expmed.c: Likewise.
21694 * fixed-value.c: Likewise.
21695 * fold-const.c: Likewise.
21696 * fwprop.c: Likewise.
21697 * gcse.c: Likewise.
21698 * ggc-common.c: Likewise.
21699 * ggc-page.c: Likewise.
21700 * ggc-zone.c: Likewise.
21701 * gimple-low.c: Likewise.
21702 * gimplify.c: Likewise.
21703 * graph.c: Likewise.
21704 * haifa-sched.c: Likewise.
21705 * ifcvt.c: Likewise.
21706 * implicit-zee.c: Likewise.
21707 * integrate.c: Likewise.
21708 * ira-build.c: Likewise.
21709 * ira-color.c: Likewise.
21710 * ira-conflicts.c: Likewise.
21711 * ira-costs.c: Likewise.
21712 * ira-lives.c: Likewise.
21713 * ira.c: Likewise.
21714 * lists.c: Likewise.
21715 * loop-doloop.c: Likewise.
21716 * loop-iv.c: Likewise.
21717 * lto-opts.c: Likewise.
21718 * lto-symtab.c: Likewise.
21719 * main.c: Likewise.
21720 * modulo-sched.c: Likewise.
21721 * optabs.c: Likewise.
21722 * params.c: Likewise.
21723 * plugin.c: Likewise.
21724 * postreload-gcse.c: Likewise.
21725 * postreload.c: Likewise.
21726 * predict.c: Likewise.
21727 * profile.c: Likewise.
21728 * real.c: Likewise.
21729 * regcprop.c: Likewise.
21730 * reginfo.c: Likewise.
21731 * regmove.c: Likewise.
21732 * reorg.c: Likewise.
21733 * resource.c: Likewise.
21734 * rtl.c: Likewise.
21735 * rtlanal.c: Likewise.
21736 * sched-deps.c: Likewise.
21737 * sched-ebb.c: Likewise.
21738 * sched-rgn.c: Likewise.
21739 * sdbout.c: Likewise.
21740 * sel-sched-dump.c: Likewise.
21741 * sel-sched-ir.c: Likewise.
21742 * simplify-rtx.c: Likewise.
21743 * stmt.c: Likewise.
21744 * stor-layout.c: Likewise.
21745 * store-motion.c: Likewise.
21746 * targhooks.c: Likewise.
21747 * tree-cfg.c: Likewise.
21748 * tree-cfgcleanup.c: Likewise.
21749 * tree-dump.c: Likewise.
21750 * tree-eh.c: Likewise.
21751 * tree-inline.c: Likewise.
21752 * tree-nomudflap.c: Likewise.
21753 * tree-object-size.c: Likewise.
21754 * tree-optimize.c: Likewise.
21755 * tree-outof-ssa.c: Likewise.
21756 * tree-phinodes.c: Likewise.
21757 * tree-profile.c: Likewise.
21758 * tree-ssa-ccp.c: Likewise.
21759 * tree-ssa-coalesce.c: Likewise.
21760 * tree-ssa-live.c: Likewise.
21761 * tree-ssa-loop-niter.c: Likewise.
21762 * tree-ssa-loop-prefetch.c: Likewise.
21763 * tree-ssa-loop.c: Likewise.
21764 * tree-ssa-structalias.c: Likewise.
21765 * tree-ssa-uninit.c: Likewise.
21766 * tree-ssa.c: Likewise.
21767 * tree-vect-data-refs.c: Likewise.
21768 * tree-vect-loop-manip.c: Likewise.
21769 * tree-vect-loop.c: Likewise.
21770 * tree-vect-patterns.c: Likewise.
21771 * tree-vect-stmts.c: Likewise.
21772 * tree-vrp.c: Likewise.
21773 * varasm.c: Likewise.
21774 * vec.c: Likewise.
21775 * web.c: Likewise.
21776 * xcoffout.c: Likewise.
21777
21778 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
21779
21780 * gengtype.c (write_field_root): New function.
21781 (write_root): Use it.
21782
21783 2010-07-07 Wei Guozhi <carrot@google.com>
21784
21785 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21786 of lowest bits to lshift/compare): Add a missing line.
21787
21788 2010-07-07 Wei Guozhi <carrot@google.com>
21789
21790 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21791 of lowest bits to lshift/compare): New.
21792
21793 2010-07-07 Tom Tromey <tromey@redhat.com>
21794
21795 * doc/tm.texi: Update.
21796 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
21797 Add @hook.
21798 * target.def (want_debug_pub_sections): New hook.
21799 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
21800 * dwarf2out.c (add_pubname_string): Check
21801 targetm.want_debug_pub_sections.
21802 (add_pubname): Likewise.
21803 (add_pubtype): Likewise.
21804
21805 2010-07-07 Jie Zhang <jie@codesourcery.com>
21806
21807 * genautomata.c (output_automata_list_min_issue_delay_code):
21808 Correctly decompress min_issue_delay.
21809
21810 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
21811
21812 PR rtl-optimization/44404
21813 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
21814 possible, use reg_overlap_mentioned_p instead.
21815
21816 2010-07-07 Duncan Sands <baldrick@free.fr>
21817
21818 PR middle-end/41355
21819 * tree.c (build_function_type_skip_args): Copy the original type using
21820 build_distinct_type_copy rather than copy_node.
21821
21822 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
21823
21824 PR target/44850
21825 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
21826 revision 161876.
21827 (ix86_expand_prologue): Likewise.
21828 (ix86_handle_fndecl_attribute): Likewise.
21829 (ix86_asm_declare_function_name): Likewise.
21830 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21831 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21832 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
21833 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
21834 * doc/extend.texi: Likewise.
21835
21836 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
21837
21838 PR target/44844
21839 * config/i386/i386.md (rdrand<mode>): Changed to expand to
21840 retry if the carry flag isn't valid.
21841 (rdrand<mode>_1): New.
21842
21843 2010-07-07 Richard Guenther <rguenther@suse.de>
21844
21845 PR middle-end/44790
21846 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
21847 for expanding the constant offset for MEM_REFs.
21848
21849 2010-07-07 Richard Guenther <rguenther@suse.de>
21850
21851 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
21852 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
21853 * gimple.h (is_gimple_operand): Remove.
21854 * gimple.c (is_gimple_operand): Likewise.
21855 (walk_gimple_op): Fix wi->val_only setting for calls.
21856 * tree-cfg.c (verify_gimple_call): Fix argument validation.
21857 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
21858 invalid gimple calls.
21859
21860 2010-07-06 Jan Hubicka <jh@suse.cz>
21861
21862 * lto-cgraph.c (output_cgraph): Add missing declaration.
21863
21864 2010-07-06 Jan Hubicka <jh@suse.cz>
21865
21866 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
21867 partition.
21868
21869 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
21870
21871 * doc/gimple.texi (GIMPLE_DEBUG): Document.
21872 * doc/rtl.texi (Debug Information): New node.
21873 (NOTE_INSN_VAR_LOCATION): Document.
21874 (debug_insn): Likewise.
21875 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
21876
21877 2010-07-07 Jan Hubicka <jh@suse.cz>
21878
21879 With parts by Richard Guenther.
21880
21881 PR middle-end/44813
21882 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
21883 for functions passed by reference.
21884 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
21885 in memory when passed by reference.
21886 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
21887 beggining.
21888 * ipa-split.c (split_function): Cleanup way return value is passed;
21889 handle SSA DECL_BY_REFERENCE retvals.
21890 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
21891 DECL_BY_REFERENCE is set.
21892 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
21893 find_what_p_points_to): Handle RESULT_DECL.
21894 * tree-inline.c (declare_return_variable): Get new entry_block argument;
21895 when passing by reference ensure that RESULT_DECL is gimple_val.
21896 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
21897 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
21898
21899 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
21900
21901 PR rtl-optimization/44787
21902 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
21903 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
21904
21905 2010-07-06 Jan Hubicka <jh@suse.cz>
21906
21907 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
21908 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
21909 with body can prevail.
21910 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
21911 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
21912 * cgraph.c (cgraph_get_node_or_alias): New function.
21913 * cgraph.h (cgraph_get_node_or_alias): Declare.
21914
21915 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
21916
21917 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
21918 support.
21919 (ix86_expand_prologue): Likewise.
21920 (ix86_handle_fndecl_attribute): Likewise.
21921 (ix86_asm_declare_function_name): New function for
21922 ASM_DECLARE_FUNCTION_NAME.
21923 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
21924 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
21925 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
21926 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
21927 * doc/extend.texi: Adjust documentation about ms_hook_prologue
21928 attribute.
21929
21930 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21931
21932 * config/i386/i386.md (immediate_operand): New mode attribute.
21933
21934 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
21935 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
21936 using P mode iterator.
21937 (pro_epilogue_adjust_stack_di_2): Rename from
21938 pro_epilogue_adjust_stack_rex64_2.
21939
21940 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
21941
21942 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21943
21944 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
21945 through gen_mov_insv_1 function pointer.
21946 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
21947 gen_truncxf<mode>2 through gen_truncxf function pointer.
21948 (remainder<mode>3): Ditto.
21949 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
21950 (allocate_stack): Call gen_allocate_stack_worker_64 or
21951 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
21952 function pointer.
21953 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
21954 function pointer.
21955
21956 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21957
21958 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
21959 operand constraint instead of <r><i>m.
21960
21961 2010-07-06 Richard Guenther <rguenther@suse.de>
21962
21963 PR middle-end/44828
21964 * convert.c (convert_to_integer): Watch out for overflowing
21965 MULT_EXPR as well.
21966
21967 2010-07-05 Jan Hubicka <jh@suse.cz>
21968
21969 * lto-streamer.c (write_symbol_vec): Rename to ...
21970 (write_symbol) ... this one; write only symbol given and when
21971 present in cache. Sanity check that what is defined is present
21972 in cgraph/varpool with body/finalized decl.
21973 (write_symbols_of_kind): Remove.
21974 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
21975 pairs to produce symtab.
21976 (produce_asm_for_decls): Update call of produce_symtab; don't do so
21977 when doing WPA streaming.
21978
21979 2010-07-05 Jan Hubicka <jh@suse.cz>
21980
21981 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
21982 function is still available to fold into.
21983
21984 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21985
21986 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
21987 * function.h (struct_function): Change type of local_decls field
21988 to a VEC.
21989 (add_local_decl): New function.
21990 (FOR_EACH_LOCAL_DECL): New macro.
21991 * cfgexpand.c (init_vars_expansion): Adjust for new type of
21992 cfun->local_decls.
21993 (estimated_stack_frame_size): Likewise.
21994 (expand_used_vars): Likewise.
21995 * cgraphbuild.c (build_cgraph_edges): Likewise.
21996 * function.c (instantiate_decls_1): Likewise.
21997 * ipa-struct-reorg.c (build_data_structure): Likewise.
21998 * ipa-type-escape.c (analyze_function): Likewise.
21999 * lto-streamer-in.c (input_function): Likewise.
22000 * lto-streamer-out.c (output_function): Likewise.
22001 * tree-ssa-live.c (remove_unused_locals): Likewise.
22002 * tree.c (free_lang_data_in_decl): Likewise.
22003 (find_decls_types_in_node): Likewise.
22004 * omp-low.c (remove_exit_barrier): Likewise.
22005 (expand_omp_taskreg): Likewise.
22006 (list2chain): Rename to...
22007 (vec2chain): ...this. Adjust.
22008 * cgraphunit.c (assemble_thunk): Call add_local_decl.
22009 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
22010 * gimple-low.c (record_vars_into): Likewise.
22011 * tree-inline.c (remap_decls): Likewise.
22012 (declare_return_variable): Likewise.
22013 (declare_inline_vars): Likewise.
22014 (copy_forbidden): Adjust for new type of cfun->local_decls.
22015 (add_local_variables): New function.
22016 (expand_call_inline): Call it.
22017 (tree_function_versioning): Likewise.
22018
22019 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
22020
22021 AVX Programming Reference (June, 2010)
22022 * config/i386/cpuid.h (bit_F16C): New.
22023 (bit_RDRND): Likewise.
22024 (bit_FSGSBASE): Likewise.
22025
22026 * config/i386/i386-builtin-types.def: Add
22027 "DEF_FUNCTION_TYPE (UINT16)", function types for
22028 float16 <-> float conversions and
22029 "DEF_FUNCTION_TYPE (VOID, UINT64)".
22030
22031 * config/i386/i386-c.c (ix86_target_macros_internal): Support
22032 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
22033 OPTION_MASK_ISA_F16C.
22034
22035 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
22036 (OPTION_MASK_ISA_RDRND_SET): Likewise.
22037 (OPTION_MASK_ISA_F16C_SET): Likewise.
22038 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
22039 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
22040 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
22041 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
22042 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
22043 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
22044 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
22045 (override_options): Handle them.
22046 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
22047 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
22048 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
22049 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
22050 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
22051 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
22052 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
22053 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
22054 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
22055 (bdesc_args): Likewise.
22056 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
22057 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
22058 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
22059 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
22060 Handle non-memory store.
22061
22062 * config/i386/i386.h (TARGET_FSGSBASE): New.
22063 (TARGET_RDRND): Likewise.
22064 (TARGET_F12C): Likewise.
22065
22066 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
22067 (UNSPEC_VCVTPS2PH): Likewise.
22068 (UNSPECV_RDFSBASE): Likewise.
22069 (UNSPECV_RDGSBASE): Likewise.
22070 (UNSPECV_WRFSBASE): Likewise.
22071 (UNSPECV_WRGSBASE): Likewise.
22072 (UNSPECV_RDRAND): Likewise.
22073 (rdfsbase<mode>): Likewise.
22074 (rdgsbase<mode>): Likewise.
22075 (wrfsbase<mode>): Likewise.
22076 (wrgsbase<mode>): Likewise.
22077 (rdrand<mode>): Likewise.
22078
22079 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
22080
22081 * config/i386/immintrin.h (_rdrand_u16): New.
22082 (_rdrand_u32): Likewise.
22083 (_readfsbase_u32): Likewise.
22084 (_readfsbase_u64): Likewise.
22085 (_readgsbase_u32): Likewise.
22086 (_readgsbase_u64): Likewise.
22087 (_writefsbase_u32): Likewise.
22088 (_writefsbase_u64): Likewise.
22089 (_writegsbase_u32): Likewise.
22090 (_writegsbase_u64): Likewise.
22091 (_rdrand_u64): Likewise.
22092 (_cvtsh_ss): Likewise.
22093 (_mm_cvtph_ps): Likewise.
22094 (_mm256_cvtph_ps): Likewise.
22095 (_cvtss_sh): Likewise.
22096 (_mm_cvtps_ph): Likewise.
22097 (_mm256_cvtps_ph): Likewise.
22098
22099 * config/i386/sse.md (vcvtph2ps): New.
22100 (*vcvtph2ps_load): Likewise.
22101 (vcvtph2ps256): Likewise.
22102 (vcvtps2ph): Likewise.
22103 (*vcvtps2ph): Likewise.
22104 (*vcvtps2ph_store): Likewise.
22105 (vcvtps2ph256): Likewise.
22106
22107 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
22108
22109 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
22110
22111 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
22112
22113 PR bootstrap/44512
22114 * genenums.c (main): Output include of insn-constants.h
22115 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
22116
22117 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
22118
22119 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
22120 (override_options): Initialize it.
22121 (ix86_expand_prologue): Use it.
22122
22123 2010-07-05 Jakub Jelinek <jakub@redhat.com>
22124
22125 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
22126
22127 2010-07-05 Anatoly Sokolov <aesok@post.ru>
22128
22129 * double-int.h (fit_double_type): Remove declaration.
22130 * double-int.c (fit_double_type): Remove function.
22131 * tree.h (int_fits_type_p): Adjust prototype.
22132 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
22133 instead of fit_double_type.
22134 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
22135 instead of fit_double_type and build_int_cst_wide.
22136 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
22137 instead of fit_double_type and build_int_cst_wide.
22138 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
22139 of fit_double_type.
22140
22141 2010-07-05 Jan Hubicka <jh@suse.cz>
22142
22143 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
22144 in_other_partition.
22145 * lto-cgraph.c (referenced_from_other_partition_p,
22146 reachable_from_other_partition_p): Use in_other_partition flags.
22147 (output_node, output_varpool_node): COMDAT nodes always have private
22148 copies and thus are never used from other partition.
22149
22150 2010-07-05 Anatoly Sokolov <aesok@post.ru>
22151
22152 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
22153 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
22154 * config/ia64/ia64.c Include reload.h.
22155 (ia64_memory_move_cost): New function.
22156 (TARGET_MEMORY_MOVE_COST): Define.
22157 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
22158 memory_move_cost.
22159
22160 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
22161
22162 PR middle-end/42505
22163 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
22164 comments about cost model.
22165 (try_add_cand_for): Add second strategy for choosing initial set
22166 based on original IVs, controlled by ORIGINALP argument.
22167 (get_initial_solution): Add ORIGINALP argument.
22168 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
22169 (find_optimal_iv_set): Try two different strategies for choosing
22170 the IV set, and return the one with lower cost.
22171
22172 2010-07-05 Richard Guenther <rguenther@suse.de>
22173
22174 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
22175
22176 2010-07-05 Richard Guenther <rguenther@suse.de>
22177
22178 * tree.c (reference_alias_ptr_type): New function.
22179 * tree.h (reference_alias_ptr_type): Declare.
22180 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
22181 allow non-TARGET_MEM_REF new refs.
22182 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
22183 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
22184 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
22185 (create_mem_ref): Get alias pointer type. Adjust calls to
22186 create_mem_ref_raw.
22187 (maybe_fold_tmr): Likewise.
22188 * tree-flow.h (create_mem_ref): Adjust prototype.
22189
22190 2010-07-05 Jakub Jelinek <jakub@redhat.com>
22191
22192 PR c++/44808
22193 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
22194 *from_p is VAR_DECL.
22195
22196 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
22197
22198 * tree.h (build_call_list): Remove.
22199 * tree.c (build_call_list): Remove.
22200
22201 2010-07-05 Richard Guenther <rguenther@suse.de>
22202
22203 * double-int.h (double_int_sub): Declare.
22204 * double-int.c (double_int_sub): New function.
22205 * dwarf2out.c (field_byte_offset): Use it.
22206 * fixed-value.c (do_fixed_add): Likewise.
22207 (do_fixed_multiply): Likewise.
22208 (do_fixed_divide): Likewise.
22209 * tree-predcom.c (add_ref_to_chain): Likewise.
22210 (determine_roots_comp): Likewise.
22211 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22212
22213 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
22214
22215 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
22216 implementations.
22217
22218 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
22219
22220 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
22221 * arm-modes.def (CC_NOTB): Don't define.
22222 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
22223 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
22224 (LTUGEU): New code_iterator.
22225 (cnb, optab): New corresponding code_attrs.
22226 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
22227 to canonical form. Operands 1 and 2 are commutative. Parametrize
22228 using LTUGEU.
22229 (addsi3_carryin_shift_<optab>): Likewise.
22230 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
22231 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
22232 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
22233 (subsi3_compare): Renamed from subsi3_compare0_c.
22234 Change CC_NOTB to CC.
22235 (arm_subsi3_insn): Allow constants for operand 0.
22236 (compare_scc peephole for eq case): New.
22237 (compare_scc splitters): Change CC_NOTB to CC.
22238
22239 2010-07-05 Richard Guenther <rguenther@suse.de>
22240
22241 * tree-ssa-loop-im.c (for_each_index): Do not handle
22242 ALIGN_INDIRECT_REF.
22243 (gen_lsm_tmp_name): Likewise.
22244 * tree-dump.c (dequeue_and_dump): Likewise.
22245 * tree-pretty-print.c (dump_generic_node): Likewise.
22246 (op_code_prio): Likewise.
22247 (op_symbol_code): Likewise.
22248 * tree.c (staticp): Likewise.
22249 (build1_stat): Likewise.
22250 * tree.h (INDIRECT_REF_P): Likewise.
22251 * fold-const.c (maybe_lvalue_p): Likewise.
22252 (operand_equal_p): Likewise.
22253 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22254 (ao_ref_init_from_vn_reference): Likewise.
22255 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
22256 (find_interesting_uses_address): Likewise.
22257 * dwarf2out.c (loc_list_from_tree): Likewise.
22258 * gimplify.c (gimplify_expr): Likewise.
22259 * tree-eh.c (tree_could_trap_p): Likewise.
22260 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
22261 * cfgexpand.c (expand_debug_expr): Likewise.
22262 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
22263 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
22264 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
22265 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
22266 * tree-ssa-operands.c (get_expr_operands): Likewise.
22267 * expr.c (safe_from_p): Likewise.
22268 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
22269 * tree-vect-data-refs.c (vect_setup_realignment): Build
22270 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
22271 * tree-vect-stmts.c (vectorizable_load): Likewise.
22272 * tree.def (ALIGN_INDIRECT_REF): Remove.
22273
22274 2010-07-05 Richard Guenther <rguenther@suse.de>
22275
22276 PR tree-optimization/44784
22277 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
22278 for inserted stmts.
22279 (find_or_generate_expression): Fix SCCVN insertion check.
22280
22281 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
22282
22283 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
22284 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22285 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
22286 directives.
22287
22288 2010-07-05 Ira Rosen <irar@il.ibm.com>
22289
22290 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
22291 statements that are not vectorized.
22292 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
22293 in INSIDE_COST.
22294
22295 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
22296
22297 PR bootstrap/44820
22298 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
22299
22300 2010-07-05 Richard Guenther <rguenther@suse.de>
22301
22302 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
22303 RESULT_DECLs properly.
22304
22305 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
22306
22307 PR rtl-optimization/44695
22308 * config/i386/i386.md (extract_code): Removed.
22309 (<u>divmodqi4): Likewise.
22310 (divmodqi4): New.
22311 (udivmodqi4): Likewise.
22312 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
22313 (udivmodhiqi3): Likewise.
22314
22315 2010-07-04 Jan Hubicka <jh@suse.cz>
22316
22317 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
22318
22319 2010-07-04 Jan Hubicka <jh@suse.cz>
22320
22321 * cgraphunit.c (init_cgraph): Only initialize dump file if it
22322 is not already initialized.
22323
22324 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
22325
22326 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
22327 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
22328 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
22329 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
22330 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
22331 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
22332 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
22333 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
22334 (sync_new_nand_optab): Redefine as macros.
22335 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
22336 Delete.
22337 (direct_optab_index): New enum.
22338 (direct_optab_d): New structure.
22339 (direct_optab): New typedef.
22340 (direct_optab_table): Declare.
22341 (direct_optab_handler, set_direct_optab_handler): New functions.
22342 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
22343 (sync_lock_release_optab): New macros.
22344 * optabs.c (direct_optab_table): New variable.
22345 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
22346 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
22347 cmpstr_optab and cmpstrn_optab.
22348 (emit_conditional_move): Likewise for movcc_optab.
22349 (can_conditionally_move_p): Likewise for movcc_gen_code.
22350 (init_insn_codes): Clear direct_optab_table.
22351 (init_optabs): Don't initialize the new "direct optabs" here.
22352 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
22353 vcond_gen_code.
22354 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
22355 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
22356 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
22357 (expand_sync_operation): Likewise other sync_*_optabs.
22358 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
22359 to sync_compare_and_swap_optab.
22360 (expand_sync_lock_test_and_set): Use direct_optab_handler for
22361 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
22362 to the names of both.
22363 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
22364 cmpstr_optab and cmpstrn_optab.
22365 (expand_builtin_lock_release): Likewise sync_lock_release.
22366 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
22367 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
22368 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
22369 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
22370 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
22371 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
22372 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
22373 (sync_lock_test_and_set, sync_lock_release): Delete.
22374 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
22375 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
22376 * genopinit.c (optabs): Use set_direct_optab_handler for the new
22377 macro optabs.
22378 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
22379 the "optab" local variable. Use direct_optab_handler for optab and
22380 sync_compare_and_swap_optab.
22381 * reload1.c (reload_in_optab, reload_out_optab): Delete.
22382 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
22383 reload_in_optab and reload_out_optab.
22384 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
22385 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
22386 * config/pa/pa.c (pa_secondary_reload): Likewise.
22387 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
22388 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
22389 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
22390 (VMSupportsCS8_builtin): Likewise.
22391
22392 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
22393
22394 * optabs.h (optab_handlers): Change type of insn_code to int.
22395 (optab_handler, set_optab_handler, convert_optab_handler)
22396 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
22397 CODE_FOR_nothing".
22398 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
22399 (init_insn_codes): Zero both the above arrays.
22400 (init_optabs): Never call init_insn_codes first time around.
22401
22402 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
22403
22404 * optabs.h (optab_handler, convert_optab_handler): Turn into
22405 inline functions that return an insn code.
22406 (set_optab_handler, set_convert_optab_handler): New functions.
22407 * builtins.c: Replace optab_handler(X)->insn_code with
22408 optab_handler or set_optab_handler thoughout. Likewise
22409 convert_optab_handler(X)->insn_code with convert_optab_handler
22410 and set_convert_optab_handler.
22411 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
22412 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
22413 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
22414 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
22415 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
22416 config/spu/spu.c: Likewise.
22417
22418 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
22419
22420 PR target/44531
22421 * config.gcc (sh*-*-*): Use regular expressions instead of
22422 the 'i' modifier for sed substitutions.
22423
22424 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
22425
22426 * gimple.c (gimple_body): Comments added.
22427
22428 2010-07-04 Richard Guenther <rguenther@suse.de>
22429
22430 PR middle-end/44809
22431 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
22432 of an INDIRECT_REF.
22433
22434 2010-07-04 Richard Guenther <rguenther@suse.de>
22435
22436 PR tree-optimization/44479
22437 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
22438 extra SSA name copy statements which preserves points-to
22439 information.
22440 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22441 Copy points-to information for all pointers. Properly handle
22442 MEM_REFs.
22443 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
22444 copy statements.
22445 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
22446 dependency.
22447
22448 2010-07-04 Richard Guenther <rguenther@suse.de>
22449
22450 PR middle-end/44785
22451 * tree-inline.c (initialize_inlined_parameters): Do not
22452 re-use pointer-map slot over remap_type call.
22453
22454 2010-07-04 Richard Guenther <rguenther@suse.de>
22455
22456 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
22457
22458 2010-07-04 Richard Guenther <rguenther@suse.de>
22459
22460 PR tree-optimization/44656
22461 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
22462 again after value-replacing in the defintions lhs.
22463
22464 2010-07-04 Ira Rosen <irar@il.ibm.com>
22465 Revital Eres <eres@il.ibm.com>
22466
22467 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
22468 Document new arguments.
22469 * doc/tm.texi: Regenerate.
22470 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
22471 Handle unaligned store.
22472 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
22473 * target.def (builtin_vectorization_cost): Add new arguments.
22474 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
22475 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
22476 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
22477 (vect_vfa_segment_size): Fix indentation.
22478 * tree-vectorizer.h (struct _vect_peel_info): New.
22479 (struct _vect_peel_extended_info): New.
22480 (struct _loop_vec_info): Add new field for peeling hash table and a
22481 macro for its access.
22482 (VECT_MAX_COST): Define.
22483 (vect_get_load_cost): Declare.
22484 (vect_get_store_cost, vect_get_known_peeling_cost,
22485 vect_get_single_scalar_iteraion_cost): Likewise.
22486 (vect_supportable_dr_alignment): Add new argument.
22487 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
22488 field.
22489 (destroy_loop_vec_info): Free peeling hash table.
22490 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
22491 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
22492 vect_analyze_slp. Fix indentation.
22493 (vect_get_single_scalar_iteraion_cost): New function.
22494 (vect_get_known_peeling_cost): Likewise.
22495 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
22496 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
22497 statement. Move outside cost calculation inside unknown peeling case.
22498 Call vect_get_known_peeling_cost for known amount of peeling.
22499 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
22500 reference to the print message of forced alignment.
22501 (vect_verify_datarefs_alignment): Update call to
22502 vect_supportable_dr_alignment.
22503 (vect_get_data_access_cost): New function.
22504 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
22505 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
22506 vect_peeling_hash_choose_best_peeling): Likewise.
22507 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
22508 to store all the accesses in the loop and find best possible access to
22509 align using peeling for known alignment case. For unknown alignment
22510 check if stores are preferred or if peeling is worthy.
22511 (vect_find_same_alignment_drs): Analyze pairs of loads too.
22512 (vect_supportable_dr_alignment): Add new argument and check aligned
22513 accesses according to it.
22514 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
22515 (cost_for_stmt): Call vect_get_stmt_cost.
22516 (vect_model_simple_cost): Likewise.
22517 (vect_model_store_cost): Call vect_get_stmt_cost. Call
22518 vect_get_store_cost to calculate the cost of the statement.
22519 (vect_get_store_cost): New function.
22520 (vect_model_load_cost): Call vect_get_stmt_cost. Call
22521 vect_get_load_cost to calculate the cost of the statement.
22522 (vect_get_load_cost): New function.
22523 (vectorizable_store): Update call to vect_supportable_dr_alignment.
22524 (vectorizable_load): Likewise.
22525 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
22526 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
22527 arguments. Handle unaligned store.
22528 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
22529 (rs6000_builtin_support_vector_misalignment): Return true for word and
22530 double word alignments for VSX.
22531 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
22532 vect_supportable_dr_alignment and builtin_vectorization_cost.
22533
22534 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22535
22536 PR target/44597
22537 * config/pa/predicates.md (prefetch_cc_operand): Remove.
22538 (prefetch_nocc_operand): Likewise.
22539 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
22540 (prefetch_20): New insn.
22541 (prefetch_cc): Remove.
22542 (prefetch_nocc): Likewise.
22543
22544 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
22545
22546 * expr.c (vector_mode_valid_p): Move to c-common.c.
22547 * expr.h (vector_mode_valid_p): Do not declare here.
22548 * system.h: Poison GCC_EXPR_H in front-ends.
22549 * Makefile.in: Update dependencies.
22550
22551 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22552
22553 PR target/44705
22554 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
22555
22556 2010-07-03 Jan Hubicka <jh@suse.cz>
22557
22558 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
22559 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
22560 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
22561 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
22562 Likewise.
22563
22564 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
22565 Update timevars.V
22566 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
22567 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
22568 TV_IPA_LTO_DECL_OUT): New.
22569 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
22570
22571 2010-07-03 Jan Hubicka <jh@suse.cz>
22572
22573 * ipa-inline.c (update_edge_key): Break out from ...
22574 update_callers_keys): ... here;
22575 (update_callee_keys): Update only the edges from caller to callee.
22576 (update_all_calle_keys): Do what update_calle_keys did.
22577 (decide_inlining_of_small_functions): Avoid recomputing of all
22578 callees when badness increase.
22579
22580 2010-07-03 Jie Zhang <jie@codesourcery.com>
22581
22582 * config/arm/arm.c (arm_attr_length_move_neon): New.
22583 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
22584 * config/arm/neon.md (define_mode_attr V_slen): Remove.
22585 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
22586 to compute length attribute.
22587
22588 2010-07-03 Jie Zhang <jie@codesourcery.com>
22589
22590 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
22591 as predicate for operand 1 and remove its constraint.
22592 * config/arm/predicates.md (vfp_register_operand): New.
22593 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
22594 (*push_fp_multi): Likewise.
22595
22596 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
22597
22598 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
22599
22600 2010-07-03 Jan Hubicka <jh@suse.cz>
22601
22602 * config/i386/i386.c (override_options): Revert accidental commit.
22603
22604 2010-07-02 Le-Chun Wu <lcwu@google.com>
22605
22606 PR c++/44128
22607 * doc/invoke.texi: Update documentation of -Wshadow.
22608
22609 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
22610 Julian Brown <julian@codesourcery.com>
22611 Sandra Loosemore <sandra@codesourcery.com>
22612
22613 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
22614 comparisons. Adjust to take both operands.
22615 (arm_select_cc_mode): Handle DImode comparisons.
22616 (arm_gen_compare_reg): Generate a scratch register for DImode
22617 comparisons which require one. Use xor for Thumb equality checks.
22618 (arm_const_double_by_immediates): New.
22619 (arm_print_operand): Allow 'Q' and 'R' for constants.
22620 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
22621 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
22622 arm_canonicalize_comparison.
22623 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
22624 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
22625 prototype.
22626 (arm_const_double_by_immediates): Declare.
22627 * config/arm/constraints.md (Di): New constraint.
22628 * config/arm/predicates.md (arm_immediate_di_operand)
22629 (arm_di_operand, cmpdi_operand): New.
22630 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
22631 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
22632 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
22633 (cstoredi4): Handle non-Cirrus also.
22634
22635 2010-07-02 Julian Brown <julian@codesourcery.com>
22636 Sandra Loosemore <sandra@codesourcery.com>
22637
22638 PR target/43703
22639 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
22640 (smax<mode>3): Disable for NEON float modes when
22641 flag_unsafe_math_optimizations is false.
22642 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
22643 (*mul<mode>3_neon)
22644 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
22645 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
22646 for NEON float modes when flag_unsafe_math_optimizations is false.
22647 (quad_halves_<code>v4sf): Only enable if
22648 flag_unsafe_math_optimizations is true.
22649 * doc/invoke.texi (ARM Options): Add note about floating point
22650 vectorization requiring -funsafe-math-optimizations.
22651
22652 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22653 Julian Brown <julian@codesourcery.com>
22654
22655 * config/arm/neon.md (UNSPEC_VABA): Delete.
22656 (UNSPEC_VABAL): Delete.
22657 (UNSPEC_VABS): Delete.
22658 (UNSPEC_VMUL_N): Delete.
22659 (adddi3_neon): New.
22660 (subdi3_neon): New.
22661 (mul<mode>3add<mode>_neon): Make the pattern named.
22662 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
22663 (neon_vadd<mode>): Replace with define_expand, and move the remaining
22664 unspec parts...
22665 (neon_vadd<mode>_unspec): ...to this.
22666 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
22667 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
22668 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
22669 (neon_vaba<mode>): Rewrite in terms of vabd.
22670 (neon_vabal<mode>): Rewrite in terms of vabdl.
22671 (neon_vabs<mode>): Rewrite without unspec.
22672 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
22673 (*arm_subdi3): Likewise.
22674 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
22675 No_op attribute to disable assembly output checks.
22676 * config/arm/arm_neon.h: Regenerated.
22677 * doc/arm-neon-intrinsics.texi: Regenerated.
22678
22679 2010-07-02 Jan Hubicka <jh@suse.cz>
22680
22681 * ipa-split.c (split_function): For aggregate values, set the return
22682 slot optimization bit. When passing DECL_BY_REFERENCE, produce
22683 *<retval> = fncall.part ().
22684 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
22685
22686 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22687
22688 * config/arm/neon.md (UNSPEC_VAND): Delete.
22689 (UNSPEC_VBIC): Delete.
22690 (UNSPEC_VCLZ): Delete.
22691 (UNSPEC_VCNT): Delete.
22692 (UNSPEC_VEOR): Delete.
22693 (UNSPEC_VORN): Delete.
22694 (UNSPEC_VORR): Delete.
22695 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
22696 core registers too.
22697 (anddi3_neon): Likewise.
22698 (orndi3_neon): Likewise.
22699 (bicdi3_neon): Likewise.
22700 (xordi3_neon): Likewise.
22701 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
22702 rid of unspec and handle unused operand.
22703 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
22704 * config/arm/predicates.md (imm_for_neon_logic_operand):
22705 Require TARGET_NEON.
22706 (imm_for_neon_inv_logic_operand): Likewise.
22707 * config/arm/arm.md (define_split for logical_binary_operator):
22708 Disable for NEON registers.
22709 (anddi3): Add new define_expand, and rename the insn. Disable
22710 this insn for NEON, where anddi3_neon now applies.
22711 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
22712 (iordi3): As for anddi3.
22713 (xordi3): Likewise.
22714 * config/arm/neon.ml (Vand): Split DImode variants and mark them
22715 as No_op to disable testing for exact instruction match.
22716 (Vorr): Likewise.
22717 (Veor): Likewise.
22718 (Vbic): Likewise.
22719 (Vorn): Likewise.
22720 * config/arm/arm_neon.h: Regenerated.
22721 * doc/arm-neon-intrinsics.texi: Regenerated.
22722
22723 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
22724
22725 * expr.h (emit_stack_probe): Declare.
22726 * explow.c (emit_stack_probe): Make global.
22727 (anti_adjust_stack_and_probe): Fix comments.
22728 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
22729 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22730 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22731 * config/sparc/sparc.c: Include except.h.
22732 (sparc_emit_probe_stack_range): New function.
22733 (output_probe_stack_range): Likewise.
22734 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
22735 built-in stack checking is enabled.
22736 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
22737 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
22738 (probe_stack_range): New insn.
22739
22740 2010-07-02 Richard Guenther <rguenther@suse.de>
22741
22742 PR target/43958
22743 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
22744 for argument alignment.
22745
22746 2010-07-02 Jan Hubicka <jh@suse.cz>
22747
22748 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
22749 walk backwards from entry_bb to check only those basic block of header
22750 that might lead to execution of split part.
22751 (consider_split) ... here.
22752 (find_return_bb): Allow assignment in return BB.
22753 (find_retval): New.
22754 (split_function): Fix name of cloned function; take care of updating
22755 return value in return_bb containing move.
22756
22757 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
22758
22759 PR target/44771
22760 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
22761 used variable insn.
22762
22763 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
22764
22765 * implicit-zee.c (combine_reaching_defs): Fix long lines.
22766 (is_set_with_extension_DI): Delete.
22767 (struct zero_extend_info): New structure.
22768 (add_removable_zero_extend): New function.
22769 (find_removable_zero_extends): Use note_stores to find SETs.
22770 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
22771
22772 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
22773
22774 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
22775 is_miss_rate_acceptable. Pull total_positions computation
22776 out of the loops. Early return if miss_positions exceeds
22777 the acceptable threshold.
22778 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
22779 is_miss_rate_acceptable after renaming of compute_miss_rate.
22780
22781 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
22782
22783 PR middle-end/44576
22784 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
22785 of 1000) for miss rate if the address diference is greater than or
22786 equal to the cache line size (the two reference will never hit the
22787 same cache line).
22788
22789 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
22790
22791 PR target/42835
22792 * config/arm/arm-modes.def (CC_NOTB): New mode.
22793 * config/arm/arm.c (get_arm_condition_code): Handle it.
22794 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
22795 * config/arm/arm.md (subsi3_compare0_c): New pattern.
22796 (compare_scc): Now a define_and_split. Add a number of extra
22797 splitters before it.
22798
22799 PR target/42172
22800 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
22801 and ZERO_EXTEND.
22802 (arm_rtx_costs_1): Likewise.
22803 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
22804 * config/arm/arm.md (is_arch6): New attribute.
22805 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
22806 extendqisi2): Tighten the code somewhat, avoiding invalid
22807 RTL to occur in the expander patterns.
22808 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
22809 (thumb1_zero_extendhisi2_v6): Delete.
22810 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
22811 (thumb1_extendhisi2_v6): Delete.
22812 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
22813 (thumb1_extendqisi2_v6): Delete.
22814 (zero_extendhisi2 for register input splitter): New.
22815 (zero_extendqisi2 for register input splitter): New.
22816 (thumb1_extendhisi2 for register input splitter): New.
22817 (extendhisi2 for register input splitter): New.
22818 (extendqisi2 for register input splitter): New.
22819 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
22820 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
22821 and add support for a register alternative requiring a split.
22822 (thumb1_zero_extendqisi2): Likewise.
22823 (arm_zero_extendqisi2): Likewise.
22824 (arm_extendhisi2): Likewise.
22825 (arm_extendqisi2): Likewise.
22826
22827 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22828
22829 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
22830 instead of an unspec.
22831 (neon_expand_vector_init): Likewise.
22832 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
22833 (UNSPEC_VDUP_LANE): Delete.
22834 (UNSPEC VDUP_N): Delete.
22835 (UNSPEC_VGET_HIGH): Delete.
22836 (UNSPEC_VGET_LANE): Delete.
22837 (UNSPEC_VGET_LOW): Delete.
22838 (UNSPEC_VMVN): Delete.
22839 (UNSPEC_VSET_LANE): Delete.
22840 (V_double_vector_mode): New.
22841 (vec_set<mode>_internal): Make code emitted match that for the
22842 corresponding intrinsics.
22843 (vec_setv2di_internal): Likewise.
22844 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
22845 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
22846 (neon_vset_lane<mode>): Combine double and quad patterns and
22847 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
22848 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
22849 (neon_vdup_n<mode>): Rewrite RTL without unspec.
22850 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
22851 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
22852 with neon_vdup_lanev2di, adjusting the pattern from the latter
22853 to be predicable for consistency.
22854 (neon_vdup_lane<mode>_internal): New.
22855 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
22856 to avoid using an unspec.
22857 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
22858 (neon_vdup_lanev2di): Turn into a define_expand.
22859 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
22860 (neon_vget_high<mode>): Replace with....
22861 (neon_vget_highv16qi): New pattern using canonical RTL.
22862 (neon_vget_highv8hi): Likewise.
22863 (neon_vget_highv4si): Likewise.
22864 (neon_vget_highv4sf): Likewise.
22865 (neon_vget_highv2di): Likewise.
22866 (neon_vget_low<mode>): Replace with....
22867 (neon_vget_lowv16qi): New pattern using canonical RTL.
22868 (neon_vget_lowv8hi): Likewise.
22869 (neon_vget_lowv4si): Likewise.
22870 (neon_vget_lowv4sf): Likewise.
22871 (neon_vget_lowv2di): Likewise.
22872
22873 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
22874 test for this emitting vmov.
22875 (Vset_lane): Likewise.
22876 (Vdup_n): Likewise.
22877 (Vmov_n): Likewise.
22878
22879 * doc/arm-neon-intrinsics.texi: Regenerated.
22880
22881 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22882
22883 * config/arm/neon.md (vec_extractv2di): Correct error in register
22884 numbering to reconcile with neon_vget_lanev2di.
22885
22886 2010-07-02 Richard Guenther <rguenther@suse.de>
22887
22888 * tree-ssa-structalias.c (pt_solution_set_var): New function.
22889 * tree-ssa-alias.h (pt_solution_set_var): Declare.
22890 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
22891 points-to information.
22892
22893 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
22894
22895 * config/s390/s390.c (override_options): Adopt prefetching
22896 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
22897
22898 2010-07-02 Jan Hubicka <jh@suse.cz>
22899
22900 * df-problems.c (df_kill_notes): Do not collect dead notes.
22901 (df_set_note): Just call add_reg_note.
22902 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
22903 df_create_unused_note): Do not deal with lists of old notes.
22904 (df_note_bb_compute): Likewise.
22905
22906 2010-07-02 Richard Guenther <rguenther@suse.de>
22907
22908 * tree-ssa-structalias.c (find_func_aliases): Handle
22909 pointer alignment via BIT_AND_EXPR.
22910 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
22911
22912 2010-07-02 Richard Guenther <rguenther@suse.de>
22913
22914 * tree-data-ref.c (initialize_data_dependence_relation): Handle
22915 mismatching number of dimensions properly.
22916
22917 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22918
22919 PR target/44707
22920 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
22921 (lo_sum (high ...) ...) patterns generated by earlier passes.
22922
22923 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22924
22925 * doc/install.texi (Prerequisites): Document Perl requirement on
22926 Solaris 2.
22927 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
22928
22929 2010-07-02 Richard Guenther <rguenther@suse.de>
22930
22931 PR middle-end/44777
22932 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
22933
22934 2010-07-02 Jan Hubicka <jh@suse.cz>
22935
22936 PR middle-end/44706
22937 * predict.c (predict_paths_for_bb): Handle case when control dependence
22938 BB has only abnormal edges.
22939
22940 2010-07-02 Richard Guenther <rguenther@suse.de>
22941
22942 PR tree-optimization/44748
22943 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
22944 the embedded conversion in MEM_REFs.
22945
22946 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
22947
22948 * reload.c: Include toplev.h.
22949 * recog.c: Likewise.
22950 * Makefile.in: Adjust dependencies.
22951
22952 2010-07-01 Jakub Jelinek <jakub@redhat.com>
22953
22954 PR debug/44694
22955 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
22956 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
22957
22958 2010-07-01 Richard Guenther <rguenther@suse.de>
22959
22960 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
22961 types for offsets.
22962
22963 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
22964
22965 PR target/44732
22966 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
22967 Fix argument types.
22968
22969 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
22970
22971 PR target/44727
22972 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22973 Make sure operand 0 dies.
22974
22975 2010-07-01 Richard Guenther <rguenther@suse.de>
22976
22977 PR middle-end/42834
22978 PR middle-end/44468
22979 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
22980 * doc/generic.texi (References to storage): Document MEM_REF.
22981 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
22982 (print_call_name): Likewise.
22983 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
22984 (build_simple_mem_ref_loc): New function.
22985 (mem_ref_offset): Likewise.
22986 * tree.h (build_simple_mem_ref_loc): Declare.
22987 (build_simple_mem_ref): Define.
22988 (mem_ref_offset): Declare.
22989 * fold-const.c: Include tree-flow.h.
22990 (operand_equal_p): Handle MEM_REF.
22991 (build_fold_addr_expr_with_type_loc): Likewise.
22992 (fold_comparison): Likewise.
22993 (fold_unary_loc): Fold
22994 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
22995 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
22996 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
22997 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
22998 (ptr_deref_may_alias_ref_p_1): Likewise.
22999 (ao_ref_base_alias_set): Properly differentiate base object for
23000 offset and TBAA.
23001 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
23002 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
23003 (indirect_refs_may_alias_p): Likewise.
23004 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
23005 chasing code.
23006 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
23007 (call_may_clobber_ref_p_1): Likewise.
23008 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
23009 * expr.c (expand_assignment): Handle MEM_REF.
23010 (store_expr): Handle MEM_REFs from STRING_CSTs.
23011 (store_field): If expanding a MEM_REF of a non-addressable
23012 decl use bitfield operations.
23013 (get_inner_reference): Handle MEM_REF.
23014 (expand_expr_addr_expr_1): Likewise.
23015 (expand_expr_real_1): Likewise.
23016 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
23017 * alias.c (ao_ref_from_mem): Handle MEM_REF.
23018 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
23019 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
23020 (dr_analyze_indices): Likewise.
23021 (dr_analyze_alias): Likewise.
23022 (object_address_invariant_in_loop_p): Likewise.
23023 * gimplify.c (mark_addressable): Handle MEM_REF.
23024 (gimplify_cond_expr): Build MEM_REFs.
23025 (gimplify_modify_expr_to_memcpy): Likewise.
23026 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
23027 (gimple_fold_indirect_ref): Adjust.
23028 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
23029 * tree.def (MEM_REF): New tree code.
23030 * tree-dfa.c: Include toplev.h.
23031 (get_ref_base_and_extent): Handle MEM_REF.
23032 (get_addr_base_and_unit_offset): New function.
23033 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
23034 * gimple-fold.c (may_propagate_address_into_dereference): Handle
23035 MEM_REF.
23036 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
23037 accesses if the array has just one dimension. Remove always true
23038 parameter. Do not require type compatibility here.
23039 (maybe_fold_offset_to_component_ref): Remove.
23040 (maybe_fold_stmt_indirect): Remove.
23041 (maybe_fold_reference): Remove INDIRECT_REF handling.
23042 Fold back to non-MEM_REF.
23043 (maybe_fold_offset_to_address): Simplify. Deal with type
23044 mismatches here.
23045 (maybe_fold_reference): Likewise.
23046 (maybe_fold_stmt_addition): Likewise. Also handle
23047 &ARRAY + I in addition to &ARRAY[0] + I.
23048 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
23049 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
23050 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
23051 * tree-ssa.c (useless_type_conversion_p): Make most pointer
23052 conversions useless.
23053 (warn_uninitialized_var): Handle MEM_REF.
23054 (maybe_rewrite_mem_ref_base): New function.
23055 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
23056 to SSA form.
23057 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
23058 INDIRECT_REF handling.
23059 (copy_tree_body_r): Handle MEM_REF.
23060 * gimple.c (is_gimple_addressable): Adjust.
23061 (is_gimple_address): Likewise.
23062 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
23063 invariant base are invariant.
23064 (is_gimple_min_lval): Adjust.
23065 (is_gimple_mem_ref_addr): New function.
23066 (get_base_address): Handle MEM_REF.
23067 (count_ptr_derefs): Likewise.
23068 (get_base_loadstore): Likewise.
23069 * gimple.h (is_gimple_mem_ref_addr): Declare.
23070 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
23071 * tree-cfg.c (verify_address): New function, split out from ...
23072 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
23073 the address operand of MEM_REFs. Verify MEM_REFs. Reject
23074 INDIRECT_REFs.
23075 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
23076 INDIRECT_REF. Allow conversions.
23077 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
23078 a register does not change its size.
23079 (verify_types_in_gimple_reference): Verify MEM_REF.
23080 (verify_gimple_assign_single): Disallow INDIRECT_REF.
23081 Handle MEM_REF.
23082 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
23083 New.
23084 (mark_address_taken): Handle MEM_REF.
23085 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
23086 (get_asm_expr_operands): Pass opf_not_non_addressable.
23087 (get_expr_operands): Handle opf_[not_]non_addressable.
23088 Handle MEM_REF. Remove INDIRECT_REF handling.
23089 * tree-vrp.c (check_array_ref): Handle MEM_REF.
23090 (search_for_addr_array): Likewise.
23091 (check_array_bounds): Likewise.
23092 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
23093 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
23094 (ref_always_accessed_p): Likewise.
23095 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
23096 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
23097 Handle MEM_REF.
23098 * cgraphbuild.c (mark_load): Properly check for NULL result
23099 from get_base_address.
23100 (mark_store): Likewise.
23101 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
23102 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
23103 handling for MEM_REF.
23104 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
23105 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
23106 * builtins.c (stabilize_va_list_loc): Use the function ABI
23107 valist type if we couldn't canonicalize the argument type.
23108 Always dereference with the canonical va-list type.
23109 (maybe_emit_free_warning): Handle MEM_REF.
23110 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
23111 memmove to memcpy.
23112 * builtins.c (fold_builtin_memory_op): Use ref-all types
23113 for all memcpy foldings.
23114 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
23115 (build_outer_var_ref): Likewise.
23116 (scan_omp_1_op): Likewise.
23117 (lower_rec_input_clauses): Likewise.
23118 (lower_lastprivate_clauses): Likewise.
23119 (lower_reduction_clauses): Likewise.
23120 (lower_copyprivate_clauses): Likewise.
23121 (expand_omp_atomic_pipeline): Likewise.
23122 (expand_omp_atomic_mutex): Likewise.
23123 (create_task_copyfn): Likewise.
23124 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
23125 Remove old union trick. Initialize constant offsets.
23126 (ao_ref_init_from_vn_reference): Likewise. Do not handle
23127 INDIRECT_REF. Init base_alias_set properly.
23128 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
23129 (vn_reference_fold_indirect): Adjust for MEM_REFs.
23130 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
23131 for ARRAY_REFs.
23132 (may_insert): Remove.
23133 (visit_reference_op_load): Do not test may_insert.
23134 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
23135 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
23136 a field to store the constant offset this op applies.
23137 (run_scc_vn): Adjust prototype.
23138 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
23139 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
23140 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
23141 bother about volatile qualifiers on pointers.
23142 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
23143 * tree-ssa-loop-ivopts.c
23144 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
23145 (strip_offset_1): Likewise.
23146 (find_interesting_uses_address): Replace INDIRECT_REF handling with
23147 MEM_REF handling.
23148 (get_computation_cost_at): Likewise.
23149 * ipa-pure-const.c (check_op): Handle MEM_REF.
23150 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
23151 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
23152 and constants.
23153 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
23154 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
23155 (eliminate_local_variables_1): Likewise.
23156 (create_call_for_reduction_1): Likewise.
23157 (create_loads_for_reductions): Likewise.
23158 (create_loads_and_stores_for_name): Likewise.
23159 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
23160 (ssa_accessed_in_tree): Handle MEM_REF.
23161 (ssa_accessed_in_assign_rhs): Likewise.
23162 (update_type_size): Likewise.
23163 (analyze_accesses_for_call_stmt): Likewise.
23164 (analyze_accesses_for_assign_stmt): Likewise.
23165 (transform_access_sites): Likewise.
23166 (transform_allocation_sites): Likewise.
23167 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
23168 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
23169 not handle INDIRECT_REF.
23170 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
23171 (cond_store_replacement): Likewise.
23172 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
23173 MEM_REF, no not handle INDIRECT_REFs.
23174 (insert_into_preds_of_block): Properly initialize avail.
23175 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
23176 for ARRAY_REFs. Properly handle reference lookups that
23177 require a bit re-interpretation.
23178 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
23179 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
23180 (build_ref_for_offset_1): Remove.
23181 (build_ref_for_offset): Build MEM_REFs.
23182 (gate_intra_sra): Disable for now.
23183 (sra_ipa_modify_expr): Handle MEM_REF.
23184 (ipa_early_sra_gate): Disable for now.
23185 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
23186 MEM_REF handling.
23187 (disqualify_base_of_expr): Likewise.
23188 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
23189 MEM_REF handling.
23190 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
23191 Use mem_ref_offset. Remove bogus folding.
23192 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
23193 (make_fancy_name_1): Add support for MEM_REF.
23194 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
23195 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
23196 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
23197 (compute_complex_ancestor_jump_func): Likewise.
23198 (ipa_analyze_virtual_call_uses): Likewise.
23199 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
23200 INDIRECT_REF folding with more generalized MEM_REF folding.
23201 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
23202 (forward_propagate_addr_into_variable_array_index): Also handle
23203 &ARRAY + I in addition to &ARRAY[0] + I.
23204 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
23205 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
23206 creates assignments with overlap.
23207 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
23208 (get_frame_field): Likewise.
23209 (get_nonlocal_debug_decl): Likewise.
23210 (convert_nonlocal_reference_op): Likewise.
23211 (struct nesting_info): Add mem_refs pointer-set.
23212 (create_nesting_tree): Allocate it.
23213 (convert_local_reference_op): Insert to be folded mem-refs.
23214 (fold_mem_refs): New function.
23215 (finalize_nesting_tree_1): Perform defered folding of mem-refs
23216 (free_nesting_tree): Free the pointer-set.
23217 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
23218 (vectorizable_load): Likewise.
23219 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
23220 (propagate_with_phi): Likewise.
23221 * tree-object-size.c (addr_object_size): Handle MEM_REFs
23222 instead of INDIRECT_REFs.
23223 (compute_object_offset): Handle MEM_REF.
23224 (plus_stmt_object_size): Handle MEM_REF.
23225 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
23226 for &MEM_REF.
23227 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
23228 (symbol_marked_for_renaming): Likewise.
23229 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
23230 (fold-const.o): Add $(TREE_FLOW_H).
23231 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
23232 (find_func_clobbers): Likewise.
23233 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
23234 (decompose_access): Likewise.
23235 (replace_field_acc): Likewise.
23236 (replace_field_access_stmt): Likewise.
23237 (insert_new_var_in_stmt): Likewise.
23238 (get_stmt_accesses): Likewise.
23239 (reorg_structs_drive): Disable.
23240 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
23241 (ix86_canonical_va_list_type): Likewise.
23242
23243 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
23244
23245 PR other/44566
23246 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
23247 * target.def (struct gcc_target): Replace enum reg_class with
23248 reg_class_t in hook argument / return types.
23249 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
23250 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
23251 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
23252 * targhooks.h (default_branch_target_register_class): Likewise.
23253 (default_ira_cover_classes, default_secondary_reload): Likewise.
23254 (default_memory_move_cost, default_register_move_cost): Likewise.
23255 * targhooks.c (default_branch_target_register_class): Likewise.
23256 (default_ira_cover_classes, default_secondary_reload): Likewise.
23257 (default_memory_move_cost, default_register_move_cost): Likewise.
23258 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
23259 * bt-load.c (branch_target_load_optimize): Likewise.
23260 * ira.c (setup_cover_and_important_classes): Likewise.
23261 * ira-costs.c (copy_cost): Likewise.
23262 * reload1.c (emit_input_reload_insns): Likewise.
23263 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
23264 * config/frv/frv.c (frv_secondary_reload): Likewise.
23265 * config/s390/s390.c (s390_secondary_reload): Likewise.
23266 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
23267 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
23268 (ix86_register_move_cost): Likewise.
23269 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
23270 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
23271 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
23272 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
23273 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
23274 (rs6000_ira_cover_classes): Likewise.
23275 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
23276 * config/picochip/picochip-protos.h (picochip_secondary_reload):
23277 Likewise.
23278 * config/pa/pa.c (pa_secondary_reload): Likewise.
23279 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
23280 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
23281 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
23282 * doc/tm.texi: Regenerate.
23283
23284 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
23285
23286 PR bootstrrap/44726
23287 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
23288 use.
23289 (build_alias_set_optimal_p): Likewise.
23290 (build_base_obj_set_for_drs): Likewise.
23291
23292 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
23293
23294 * target.def: Remove comment about licensing problems of function
23295 declarations.
23296
23297 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
23298 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
23299 * doc/tm.texi: Regenerate.
23300
23301 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
23302 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
23303
23304 * target.def (enum_va_list_p): Use DEFHOOK.
23305 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
23306 Rename ptype to ptree.
23307 * doc/tm.texi: Regenerate.
23308
23309 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
23310 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
23311 * doc/tm.texi: Regenerate.
23312
23313 * target.def (memory_move_cost): Use DEFHOOK.
23314 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
23315 Rename regclass AKA class to rclass.
23316 * doc/tm.texi: Regenerate.
23317
23318 * target.def (pragma_parse): Use DEFHOOK.
23319 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
23320 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
23321 * doc/tm.texi: Regenerate.
23322
23323 * target.def (pass_by_reference): Use DEFHOOK.
23324 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
23325 * doc/tm.texi: Regenerate.
23326
23327 * target.def (resolve_overloaded_builtin): Rename params to arglist.
23328 Use DEFHOOK.
23329 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
23330 * doc/tm.texi: Regenerate.
23331
23332 * target.def (return_pops_args): Use DEFHOOK.
23333 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
23334 Rename stack-size to size.
23335 * doc/tm.texi: Regenerate.
23336
23337 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
23338 last-sched_cycle to last_clock, cur_cycle to clock.
23339 * doc/tm.texi.in: Use @hook.
23340 * doc/tm.texi: Regenerate.
23341
23342 * target.def (print_operand, print_operand_address): Update comment.
23343 (print_operand_punct_valid_p): Likewise.
23344
23345 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
23346
23347 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
23348 to rtl.h.
23349 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
23350 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
23351 * rtl-error.h: New.
23352 * regrename.c: Do not include toplev.h. Include rtl-error.h.
23353 * rtl-error.c: Likewise.
23354 * reload.c: Likewise.
23355 * recog.c: Likewise.
23356 * sel-sched.c: Likewise.
23357 * function.c: Likewise.
23358 * reg-stack.c: Likewise.
23359 * cfgrtl.c: Likewise.
23360 * reload1.c: Likewise.
23361 * final.c: Include rtl-error.
23362 * Makefile.in: Adjust dependencies.
23363
23364 2010-06-30 Jan Hubicka <jh@suse.cz>
23365
23366 PR middle-end/PR44706
23367 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
23368 to return the value.
23369
23370 2010-06-30 Michael Matz <matz@suse.de>
23371
23372 PR bootstrap/44699
23373 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
23374 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
23375 a gimple reg, attach the original VDEF to the last store in the
23376 sequence.
23377
23378 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
23379
23380 PR other/44034
23381 * config/darwin.c (darwin_override_options): Use renamed
23382 targetm.asm_out.emit_unwind_label.
23383
23384 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
23385
23386 PR tree-optimization/39799
23387 * tree-inline.c (remap_ssa_name): Initialize variable only if
23388 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
23389
23390 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
23391
23392 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
23393
23394 2010-06-30 Richard Guenther <rguenther@suse.de>
23395
23396 PR target/44722
23397 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
23398 against oscillation with reverse peephole2.
23399
23400 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
23401
23402 PR target/44721
23403 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
23404 Fix last commit.
23405
23406 2010-06-30 Nick Clifton <nickc@redhat.com>
23407
23408 * config/rx/rx-modes.def: New file.
23409 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
23410 (CC_REGNUM): Define.
23411 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
23412 register.
23413 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
23414 (SELECT_CC_MODE): Define.
23415 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
23416 (reg:CC CC_REG) instead of (cc0).
23417 (attr "cc"): Delete.
23418 (cbranchsi4): Do not split compare and branch here. Instead move
23419 it to...
23420 (cbranchsi4_<code>): ... here. New patterns.
23421 (cmpsi): Call rx-compare_redundant to find out if it is necessary
23422 to emit the compare instruction.
23423 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
23424 cc_status flags.
23425 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
23426 FIRST_PSEUDO_REGNUM.
23427 (rx_expand_prologue, rx_expand_epilogue): Likewise.
23428 (rx_notice_update_cc): Delete.
23429 (rx_cc_modes_compatible): New function.
23430 (flags_needed_for_conditional): New function.
23431 (flags_from_mode): New function.
23432 (rx_compare_redundant): New function - scans backwards through
23433 insn list to find out if condition flags are already set correctly.
23434 (TARGET_CC_MODES_COMPATIBLE): Define.
23435 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
23436
23437 * config/rx/rx.h (BRANCH_COST): Define.
23438 (REGISTER_MOVE_COST): Define.
23439 * config/rx/predicates (rx_source_operand): Allow all constant types.
23440 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
23441 (tstsi4): New pattern.
23442 * config/rx/rx.c (rx_memory_move_cost): Define.
23443 (TARGET_MEMORY_MOVE_COST): Define.
23444
23445 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
23446
23447 * tree.h (block_may_fallthru): Declare here.
23448 * tree-flow.h (block_may_fallthru): Do not declare here.
23449 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
23450 bitmap.h
23451 * Makefile.in (c-typeck.o): Update dependencies.
23452
23453 2010-06-30 Jakub Jelinek <jakub@redhat.com>
23454
23455 PR debug/44694
23456 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
23457 * cselib.c (cfa_base_preserved_regno): New static variable.
23458 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
23459 of REGNO (cfa_base_preserved_val->locs->loc).
23460 (cselib_preserve_cfa_base_value): Add regno argument, set
23461 cfa_base_preserved_regno to it.
23462 (cselib_invalidate_regno): Allow removal of registers other than
23463 cfa_base_preserved_regno from cfa_base_preserved_val.
23464 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
23465 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
23466 of MEM addresses, if not on LHS.
23467 (reverse_op): Don't add reverse ops for cfa_base_rtx.
23468 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
23469
23470 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
23471
23472 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
23473 static variables.
23474 (peep2_buf_position): New static function.
23475 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
23476 peephole2_optimize): Use it.
23477 (peep2_attempt, peep2_update_life): New static functions, broken out
23478 of peephole2_optimize.
23479 (peep2_fill_buffer): New static function.
23480 (peephole2_optimize): Change the main loop to try to fill the buffer
23481 with the maximum number of insns before matching them against
23482 peepholes. Use a forward scan. Remove special case for targets with
23483 conditional execution.
23484 * genrecog.c (change_state): Delete dead code.
23485 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
23486 Rewrite so as not to expect the second insn to have had a peephole
23487 applied yet.
23488
23489 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23490
23491 * genhooks.c (emit_findices): Cast field precision to int.
23492 (emit_documentation): Likewise.
23493
23494 2010-06-29 Jakub Jelinek <jakub@redhat.com>
23495
23496 PR tree-optimization/43801
23497 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
23498 if old_decl was DECL_ONE_ONLY.
23499
23500 PR debug/44668
23501 * dwarf2out.c (add_accessibility_attribute): New function.
23502 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
23503 instead of adding DW_AT_accessibility manually.
23504 (gen_enumeration_type_die, gen_struct_or_union_type_die,
23505 gen_typedef_die): Use it.
23506
23507 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23508
23509 * vmsdbgout.c (full_name): Just output the file name if not native.
23510
23511 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23512
23513 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
23514 (funcnam_table): New static table.
23515 (funcnum_table): New static table.
23516 (write_rtnbeg): Write value saved in funcnum_table.
23517 (write_rtnend): Write value saved in funcnum_table.
23518 (vmsdbgout_begin_function): Save current function info in
23519 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
23520 (vmsdbgout_finish): Iterate over funcnum_table.
23521
23522 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23523
23524 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
23525 (vmsdbgout_type_decl): Declare
23526 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
23527 (FUNC_EPILOGUE_LABEL): New macro
23528 (vmsdbgout_begin_epilogue): New function.
23529 (vmsdbgout_type_decl): New function.
23530
23531 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23532
23533 * vmsdbg.h: Update copyright.
23534
23535 2010-06-29 Douglas B Rupp <rupp@gnat.com>
23536
23537 * vmsdbg.h (DST_K_TBG): New DST constant.
23538 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
23539 (write_modbeg): Cast module_language to avoid warning.
23540 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
23541
23542 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
23543
23544 PR other/44034
23545 * target.def, doc/tm.texi.in, genhooks.c: New files.
23546 * target.h: Instead of defining individual hook members,
23547 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
23548 include target.def.
23549 * target-def.h: Instead of defining individual hook initializers,
23550 include target-hooks-def.h.
23551 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
23552 targetm.live_on_entry -> targetm.extra_live_on_entry
23553 targetm.sched.md_finish ->targetm.sched.finish
23554 targetm.sched.md_init -> targetm.sched.init
23555 targetm.sched.md_init_global -> targetm.sched.init_global
23556 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
23557 targetm.asm_out.except_table_label ->
23558 targetm.asm_out.emit_except_table_label
23559 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
23560 targetm.target_help -> targetm.help
23561 targetm.vectorize.builtin_support_vector_misalignment ->
23562 targetm.vectorize.support_vector_misalignment
23563 targetm.file_start_app_off -> targetm.asm_file_start_app_off
23564 targetm.file_start_file_directive ->
23565 targetm.asm_file_start_file_directive
23566 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
23567 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
23568 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
23569 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
23570 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
23571 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
23572 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
23573 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
23574 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
23575 * Makefile.in (TARGET_H): Depend on target.def.
23576 (TARGET_DEF_H): Depend on target-hooks-def.h.
23577 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
23578 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
23579 * doc/tm.texi: Regenerate.
23580
23581 * Makefile.in (s-tm-texi): Remove stray tab / rule.
23582
23583 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
23584 (targetm.sched.init): Likewise.
23585
23586 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23587
23588 PR bootstrap/44713
23589 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
23590 (function_arg_advance_32): Const-ify TYPE parameter.
23591 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
23592 (ix86_function_arg_advance): Change type of NAMED to bool.
23593 (function_arg_32): Const-ify CUM and TYPE parameters.
23594 (function_arg_64): Likewise. Change type of NAMED to bool.
23595 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
23596 to bool.
23597 (ix86_function_arg): Change type of NAMED to bool.
23598 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
23599 last argument as a bool.
23600
23601 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
23602
23603 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
23604 (OVERRIDE_OPTIONS): Add note of obsolescence.
23605 Replace references with references to TARGET_OPTION_OVERRIDE.
23606 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
23607 the macro).
23608 * targhooks.c (default_target_option_override): New function.
23609 * targhooks.h (default_target_option_override): Declare.
23610 * target.h (struct gcc_target): Add override member to
23611 target_option member.
23612 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
23613 targetm.target_option.override call.
23614 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
23615 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
23616
23617 2010-06-29 Jan Hubicka <jh@suse.cz>
23618
23619 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
23620
23621 2010-06-29 Jan Hubicka <jh@suse.cz>
23622
23623 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
23624 unreachable.
23625 (rebuild_frequencies): New function.
23626 * predict.h (rebuild_frequencies): Declare.
23627 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
23628 entry block and edge reaching new_entry.
23629 (tree_function_versioning): When doing partial cloning, rebuild
23630 frequencies when done.
23631 * passes.c (execute_function_todo): Use rebild_frequencies.
23632
23633 2010-06-29 Richard Guenther <rguenther@suse.de>
23634
23635 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
23636 * tree-flow.h (enum noalias_state): Remove.
23637 (struct var_ann_d): Remove noalias_state member.
23638
23639 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
23640
23641 PR target/43902
23642 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
23643 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
23644 (maddhidi4): Likewise.
23645
23646 Revert parts of the change for PR25130.
23647 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
23648 MEM_ALIAS_SET.
23649
23650 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23651
23652 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
23653 targetm.calls.function_incoming_arg, and
23654 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
23655 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
23656 * target.h (struct gcc_target): Add function_arg_advance,
23657 function_arg, and function_incoming_arg fields.
23658 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
23659 (TARGET_FUNCTION_INCOMING_ARG): Define.
23660 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
23661 and TARGET_FUNCTION_INCOMING_ARG.
23662 * targhooks.h (default_function_arg_advance): Declare.
23663 (default_function_arg, default_function_incoming_arg): Declare.
23664 * targhooks.c (default_function_arg_advance): New function.
23665 (default_function_arg, default_function_incoming_arg): New function.
23666 * config/i386/i386.c (function_arg_advance): Rename to...
23667 (ix86_function_arg_advance): ...this. Make static.
23668 (function_arg): Rename to...
23669 (ix86_function_arg): ...this. Make static.
23670 (TARGET_FUNCTION_ARG_ADVANCE): Define.
23671 (TARGET_FUNCTION_ARG): Define.
23672 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
23673 (FUNCTION_ARG): Delete.
23674 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
23675 (function_arg): Delete prototype.
23676
23677 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
23678
23679 * reginfo.c (init_reg_sets_1): Adjust comments.
23680 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
23681 * calls.c (prepare_call_address): Likewise.
23682 (emit_call_1): Use targetm.calls.return_pops_args.
23683 (expand_call): Likewise.
23684 * function.c (assign_parms): Likewise.
23685 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
23686 * target.h (struct gcc_target) [struct calls]: Add
23687 return_pops_args field.
23688 * targhooks.h (default_return_pops_args): Declare.
23689 * targhooks.c (default_return_pops_args): Define.
23690 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
23691 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
23692 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
23693 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
23694 documentation.
23695 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
23696 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
23697 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
23698 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
23699 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
23700 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
23701 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
23702 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
23703 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
23704 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
23705 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
23706 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
23707 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
23708 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
23709 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
23710 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
23711 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
23712 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
23713 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
23714 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
23715 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
23716 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
23717 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
23718 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
23719 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
23720 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
23721 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
23722 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
23723 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
23724 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
23725 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
23726 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
23727 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
23728 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
23729 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
23730 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
23731 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
23732 * config/i386/i386.c (ix86_return_pops_args): Make static.
23733 Constify arguments.
23734 (TARGET_RETURN_POPS_ARGS): Define.
23735 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
23736 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
23737 (TARGET_RETURN_POPS_ARGS): Define.
23738 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
23739 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
23740 (TARGET_RETURN_POPS_ARGS): Define.
23741
23742 2010-06-29 Richard Guenther <rguenther@suse.de>
23743
23744 PR middle-end/44667
23745 * tree-inline.c (initialize_inlined_parameters): Make sure
23746 to remap the inlined parameter variable substitutions types.
23747
23748 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
23749
23750 PR rtl-optimization/44659
23751 * combine.c (make_compound_operation) <SUBREG>: Do not return the
23752 result of force_to_mode if it partially re-expanded the compound.
23753
23754 2010-06-28 Jan Hubicka <jh@suse.cz>
23755
23756 PR middle-end/44671
23757 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
23758 RESULT_DECL.
23759
23760 2010-06-28 Anatoly Sokolov <aesok@post.ru>
23761
23762 * double-int.h (force_fit_type_double): Remove declaration.
23763 * double-int.c (force_fit_type_double): Move to tree.c.
23764 * tree.h (force_fit_type_double): Declare.
23765 * tree.h (force_fit_type_double): Moved from double-int.c. Use
23766 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
23767 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
23768 * convert.c (convert_to_pointer): Adjust call to
23769 force_fit_type_double.
23770 * tree-vrp.c (extract_range_from_assert,
23771 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
23772 * fold-const.c: Update comment.
23773 (int_const_binop, fold_convert_const_int_from_int,
23774 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
23775 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
23776 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
23777 round_up_loc): Adjust call to force_fit_type_double.
23778
23779 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23780
23781 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
23782
23783 2010-06-28 Martin Jambor <mjambor@suse.cz>
23784
23785 * tree-sra.c (convert_callers): New parameter, change fndecls of
23786 recursive calls.
23787 (modify_function): Pass the old decl to convert_callers.
23788
23789 2010-06-28 Martin Jambor <mjambor@suse.cz>
23790
23791 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
23792 ipa_check_create_node_params and ipa_initialize_node_params with
23793 checking asserts they are not necessary.
23794
23795 2010-06-28 Jan Hubicka <jh@suse.cz>
23796
23797 PR tree-optimization/44687
23798 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
23799
23800 2010-06-28 Martin Jambor <mjambor@suse.cz>
23801
23802 PR c++/44535
23803 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
23804 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
23805 instead of BINFO_BASE_BINFO.
23806
23807 2010-06-28 Michael Matz <matz@suse.de>
23808
23809 PR middle-end/44592
23810 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
23811 proper VDEF chain for intermediate stores in the sequence.
23812
23813 2010-06-28 Jan Hubicka <jh@suse.cz>
23814
23815 PR tree-optimization/44357
23816 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
23817 uninlinable functions.
23818
23819 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23820
23821 * config.gcc (powerpc*-*-*): Handle titan.
23822 * config/rs6000/rs6000.c (titan_cost): New costs.
23823 (rs6000_override_options): Add "titan" to processor_target_table.
23824 Add Titan to branch alignment logic.
23825 Correctly set rs6000_cost for titan.
23826 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
23827 * config/rs6000/titan.md: New file.
23828 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
23829
23830 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23831
23832 * tree-browser.c (TB_history_stack): Convert to a VEC.
23833 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
23834 (TB_history_prev): Likewise.
23835
23836 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23837
23838 * vec.h (vec_heap_free): Add parentheses around free.
23839
23840 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
23841
23842 * system.h: Poison GCC_EXCEPT_H for front-end files.
23843
23844 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
23845 langhook.
23846 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
23847 Define to NULL by default.
23848 * except.h: Define GCC_EXCEPT_H.
23849 (doing_eh): Remove prototype.
23850 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
23851 (lang_protect_cleanup_actions): Remove.
23852 * except.c (lang_protect_cleanup_actions): Remove.
23853 (doing_eh): Remove.
23854 (gen_eh_region): Don't check doing_eh here.
23855 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
23856 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
23857 instead of lang_protect_cleanup_actions.
23858 * omp-low.c (maybe_catch_exception): Likewise.
23859 * Makefile.in: Update dependencies.
23860
23861 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
23862
23863 * cgraph.h (struct varpool_node): new used_from_object_file flag.
23864 (struct cgraph_local_info): new used_from_object_file flag.
23865 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
23866 (cgraph_clone_node): initialize used_from_object_file.
23867 (cgraph_create_virtual_clone): initialize used_from_object_file.
23868 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
23869 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
23870 when compiling with -fwhole-program.
23871 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
23872 internal resolver.
23873 * ipa.c (function_and_variable_visibility): Set externally_visible
23874 flag of varpool_node if used_from_object_file flag is set.
23875 (cgraph_externally_visible_p): check used_from_object_file flag.
23876 * doc/invoke.texi (-fwhole-program option): Change description of
23877 externally_visible attribute accordingly.
23878 * doc/extend.texi (externally_visible): Ditto.
23879
23880 2010-06-27 Jan Hubicka <jh@suse.cz>
23881
23882 * params.def (max-inline-insns-auto): Default to 40.
23883 * doc/invoke.texi (max-inline-insns-auto): Document the change.
23884
23885 2010-06-27 Jan Hubicka <jh@suse.cz>
23886
23887 PR middle-end/44671
23888 PR middle-end/44686
23889 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
23890 signature change.
23891 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
23892 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
23893
23894 2010-06-27 Anatoly Sokolov <aesok@post.ru>
23895
23896 * target.h (struct gcc_target): Add register_move_cost field.
23897 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
23898 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
23899 * targhooks.c (default_register_move_cost): New function.
23900 * targhooks.h (default_register_move_cost): Declare function.
23901 * defaults.h (REGISTER_MOVE_COST): Delete.
23902 * ira-int.h (ira_register_move_cost): Update comment.
23903 * ira.c (ira_register_move_cost): Update comment.
23904 * reload.h (register_move_cost): Declare.
23905 * reginfo.c (register_move_cost): New function.
23906 (move_cost): Update comment.
23907 (init_move_cost, memory_move_secondary_cost): Replace
23908 REGISTER_MOVE_COST with register_move_cost.
23909 * postreload.c (reload_cse_simplify_set): (Ditto.).
23910 * reload.c (find_valid_class, find_reloads): (Ditto.).
23911 * reload1.c (choose_reload_regs): (Ditto.).
23912 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
23913 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
23914 * doc/md.texi (can_create_pseudo_p): Update documentation.
23915
23916 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23917 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23918 * config/i386/i386.h (ix86_memory_move_cost): Make static.
23919 (TARGET_MEMORY_MOVE_COST): Define.
23920
23921 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
23922 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
23923 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
23924 (TARGET_MEMORY_MOVE_COST): Define.
23925
23926 2010-06-27 Richard Guenther <rguenther@suse.de>
23927
23928 PR tree-optimization/44683
23929 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
23930 false edge from the inverted condition.
23931
23932 2010-06-27 Richard Guenther <rguenther@suse.de>
23933
23934 PR middle-end/44684
23935 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
23936 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
23937 for register LHS. Or non-store assignments.
23938
23939 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
23940
23941 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
23942 (sparc_emit_set_const64): Likewise. Remove disabled code.
23943 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
23944 (sparc_emit_set_const64): Likewise.
23945
23946 2010-06-26 Catherine Moore <clm@codesourcery.com>
23947
23948 * config/mips/mips.md (alu_type): New attribute.
23949 (type): Infer type from alu_type.
23950 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
23951 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
23952 *subsi3_extended, negsi2, negdi2, *low<mode>,
23953 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
23954 xor<mode>3, *nor<mode>3,
23955 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
23956 *zero_extendhi_truncqi): Set alu_type instead of type.
23957
23958 2010-06-26 Douglas B Rupp <rupp@gnat.com>
23959
23960 * config/alpha/alpha.c (alpha_need_linkage): Adjust
23961 splay_tree_new_ggc call.
23962 (alpha_use_linkage): Likewise.
23963
23964 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23965
23966 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
23967 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
23968 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
23969 (static_specs): Remove switches_need_spaces.
23970 (process_command, do_self_spec): Hardcode handling "-o" instead of
23971 checking switches_need_spaces.
23972 * system.h (SWITCHES_NEED_SPACES): Poison.
23973
23974 2010-06-26 Richard Guenther <rguenther@suse.de>
23975
23976 PR tree-optimization/44393
23977 * tree-loop-distribution.c (generate_loops_for_partition): Fix
23978 stmt removal and VOP renaming.
23979 (generate_memset_zero): Remove redundant stmt updating.
23980 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
23981 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
23982
23983 2010-06-26 Jan Hubicka <jh@suse.cz>
23984
23985 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
23986 edges comming from header are equivalent.
23987 (visit_bb): Handle PHIs correctly.
23988 * tree-inline.c (copy_phis_for_bb): Be able to copy
23989 PHI from entry edge.
23990 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
23991
23992 2010-06-26 Richard Guenther <rguenther@suse.de>
23993
23994 PR middle-end/44674
23995 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
23996 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
23997
23998 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23999
24000 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
24001 add_infile, alloc_switch): New.
24002 (process_command): Remove variable lang_n_infiles. Process
24003 options in a single pass. Use new functions for allocating
24004 infiles and switches arrays. Properly skip operands of
24005 -Xpreprocessor and -Xassembler.
24006
24007 2010-06-26 Jan Hubicka <jh@suse.cz>
24008
24009 PR middle-end/44671
24010 * cgraphunit.c (cgraph_function_versioning): Remove wrong
24011 cgraph_make_decl_local call; fix typo copying RTL data.
24012
24013 2010-06-25 DJ Delorie <dj@redhat.com>
24014
24015 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
24016 (m32c_output_aligned_common): Likewise.
24017 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24018 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24019 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
24020 (m32c_register_pragmas): Register it.
24021 * config/m32c/m32c.c (m32c_get_pragma_address): New.
24022 (m32c_insert_attributes): Set #pragma address decls volatile.
24023 (pragma_entry_eq): New.
24024 (pragma_entry_hash): New.
24025 (m32c_note_pragma_address): New.
24026 (m32c_get_pragma_address): New.
24027 (m32c_output_aligned_common): New.
24028 * doc/extend.texi: Document the new pragma.
24029
24030 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
24031 also.
24032 * config/m32c/predicates.md (m32c_any_operand): Check the code
24033 instead of memory_operand so as to allow matching volatile MEMs.
24034 (m32c_nonimmediate_operand): Likewise.
24035 (mra_operand): Allow volatiles.
24036
24037 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
24038
24039 PR debug/44610
24040 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
24041 address if the offset is unknown.
24042
24043 2010-06-25 Douglas B Rupp <rupp@gnat.com>
24044
24045 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
24046 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
24047 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
24048 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
24049 to ia64_start_function. Invoke it.
24050 * config/ia64/ia64.c (ia64_start_function): Call new function
24051 dwarf2out_vms_debug_main_pointer.
24052
24053 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
24054
24055 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
24056 statements computing the true predicate.
24057
24058 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
24059
24060 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
24061 to boolean_true_node.
24062 (reset_bb_predicate): New.
24063 (predicate_bbs): Call reset_bb_predicate.
24064
24065 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
24066
24067 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
24068 (tree_if_conversion): Returns true when something has been changed.
24069 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
24070 changed something.
24071
24072 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
24073
24074 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
24075 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
24076 * tree-if-conv.c: Include dbgcnt.h.
24077 (tree_if_conversion): Use if_conversion_tree to count the number of
24078 if-convertible loops.
24079
24080 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
24081
24082 * common.opt (fprefetch-loop-arrays): Re-define
24083 -fprefetch-loop-arrays as a tri-state option with the initial
24084 value of -1.
24085 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
24086 pass only when flag_prefetch_loop_arrays > 0.
24087 * toplev.c (process_options): Note that, with tri-states,
24088 flag_prefetch_loop_arrays>0 means prefetching is enabled.
24089 * config/i386/i386.c (override_options): Enable prefetching at -O3
24090 for a set of CPUs that sw prefetching is helpful.
24091 (software_prefetching_beneficial_p): New. Return TRUE if software
24092 prefetching is beneficial for the given CPU.
24093
24094 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
24095
24096 PR rtl-optimization/44326
24097 * implicit-zee.c (find_removable_zero_extends): Replace
24098 INSN_P with NONDEBUG_INSN_P.
24099
24100 2010-06-25 Martin Jambor <mjambor@suse.cz>
24101
24102 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
24103 (struct ipa_node_params): Removed the modification_analysis_done flag.
24104 (ipa_is_param_modified): Removed.
24105 (ipa_analyze_node): Declare.
24106 (ipa_compute_jump_functions): Remove declaration.
24107 (ipa_count_arguments): Likewise.
24108 (ipa_detect_param_modifications): Likewise.
24109 (ipa_analyze_params_uses): Likewise.
24110 * ipa-prop.c (struct param_analysis_info): New type.
24111 (visit_store_addr_for_mod_analysis): Removed.
24112 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
24113 moved down in the file.
24114 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
24115 (ipa_count_arguments): Made static.
24116 (mark_modified): New function.
24117 (is_parm_modified_before_call): New function.
24118 (compute_pass_through_member_ptrs): New parameter parms_info, call
24119 is_parm_modified_before_call instead of ipa_is_param_modified.
24120 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
24121 it to compute_pass_through_member_ptrs.
24122 (ipa_compute_jump_functions): New parameter parms_info, pass it to
24123 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
24124 on the callee if it is analyzed. Made static.
24125 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
24126 is_parm_modified_before_call instead of ipa_is_param_modified.
24127 (ipa_analyze_call_uses): New parameter parms_info, pass it to
24128 ipa_analyze_indirect_call_uses.
24129 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
24130 ipa_analyze_call_uses.
24131 (ipa_analyze_params_uses): New parameter parms_info, pass it to
24132 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
24133 (ipa_analyze_node): New function.
24134 (ipa_print_node_params): Do not dump the modified flag.
24135 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
24136 it. Do not stream the modified parameter flag.
24137 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
24138 it. Do not stream the modified parameter flag.
24139 * ipa-cp.c (ipcp_analyze_node): Removed.
24140 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
24141 with only a call to ipa_analyze_node.
24142 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
24143 node with only a call to ipa_analyze_node.
24144
24145 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
24146
24147 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
24148
24149 2010-06-25 Jan Hubicka <jh@suse.cz>
24150
24151 * tree-pass.h (pass_split_functions): Declare.
24152 * opts.c (decode_options): Enable function splitting at -O2
24153 * timevar.def (TV_IPA_FNSPLIT): New macro.
24154 * ipa-split.c: New file.
24155 * common.opt (-fpartial-inlining): New flag.
24156 * Makefile.in (ipa-split.o): New object file.
24157 * passes.c (init_optimization_passes): Add ipa-split.
24158 * params.def (partial-inlining-entry-probability): New parameters.
24159 * doc/invoke.texi (-fpartial-inlining): New.
24160
24161 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
24162
24163 PR 44665
24164 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
24165 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
24166 (gimplify_expr): Likewise.
24167
24168 2010-06-25 Martin Jambor <mjambor@suse.cz>
24169
24170 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
24171 statements instead of bailing out on them.
24172 (ipa_analyze_indirect_call_uses): Do not require that loads from the
24173 parameter are in the same BB as the condition. Update comments.
24174
24175 2010-06-25 Jakub Jelinek <jakub@redhat.com>
24176
24177 PR middle-end/43866
24178 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
24179 true or always false, return NULL_TREE.
24180 (tree_unswitch_single_loop): Optimize conditions even when reaching
24181 max-unswitch-level parameter. If num > 0, optimize first all conditions
24182 using entry checks, then do still reachable block discovery and consider
24183 only conditions in still reachable basic blocks in the loop.
24184
24185 PR tree-optimization/44539
24186 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
24187 the call doesn't have LHS, but has VDEF.
24188
24189 2010-06-25 Joseph Myers <joseph@codesourcery.com>
24190
24191 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
24192 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
24193 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
24194 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
24195 * system.h (MODIFY_TARGET_NAME): Poison.
24196
24197 2010-06-25 Alan Modra <amodra@gmail.com>
24198
24199 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
24200 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
24201 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24202 CMODEL_LARGE as default.
24203 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
24204 (offsettable_ok_by_alignment): Delete.
24205 (rs6000_emit_move): Remove mcmodel=medium optimization.
24206
24207 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
24208
24209 With large parts from Jim Wilson:
24210 PR target/43902
24211 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
24212 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
24213 * optabs.c (optab_for_tree_code): Likewise.
24214 (expand_widen_pattern_expr): Likewise.
24215 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
24216 out of execute_optimize_widening_mul.
24217 (convert_plusminus_to_widen): New function.
24218 (execute_optimize_widening_mul): Use the two new functions.
24219 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
24220 Remove code to generate widening multiply-accumulate. Add support
24221 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
24222 * gimple-pretty-print.c (dump_ternary_rhs): New function.
24223 (dump_gimple_assign): Call it when appropriate.
24224 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
24225 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
24226 (expand_gimple_stmt_1): Likewise.
24227 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
24228 WIDEN_MULT_MINUS_EXPR.
24229 * tree-ssa-operands.c (get_expr_operands): Likewise.
24230 * tree-inline.c (estimate_operator_cost): Likewise.
24231 * gimple.c (extract_ops_from_tree_1): Renamed from
24232 extract_ops_from_tree. Add new arg for a third operand; fill it.
24233 (gimple_build_assign_stat): Support operations with three operands.
24234 (gimple_build_assign_with_ops_stat): Likewise.
24235 (gimple_assign_set_rhs_from_tree): Likewise.
24236 (gimple_assign_set_rhs_with_ops_1): Renamed from
24237 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
24238 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
24239 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
24240 WIDEN_MULT_MINUS_EXPR.
24241 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
24242 (extract_ops_from_tree_1): Adjust declaration.
24243 (gimple_assign_set_rhs_with_ops_1): Likewise.
24244 (gimple_build_assign_with_ops): Pass NULL for last operand.
24245 (gimple_build_assign_with_ops3): New macro.
24246 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
24247 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
24248 functions.
24249 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
24250 (verify_gimple_assign): Call it.
24251 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
24252 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
24253 functions for dealing with three-operand statements.
24254 * tree.c (commutative_ternary_tree_code): New function.
24255 * tree.h (commutative_ternary_tree_code): Declare it.
24256 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
24257 ternary statements.
24258 (gimple_assign_nonzero_warnv_p): Likewise.
24259 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
24260 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
24261 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
24262 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
24263 (struct hashtable_expr): New member ternary in the union.
24264 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
24265 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
24266 (iterative_hash_hashable_expr): Likewise.
24267 (print_expr_hash_elt): Handle EXPR_TERNARY.
24268 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
24269 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
24270 statements. Handle GIMPLE_TERNARY_RHS.
24271
24272 2010-06-25 Jan Hubicka <jh@suse.cz>
24273
24274 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
24275
24276 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
24277
24278 PR c/44517
24279 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
24280 parameters are not good.
24281 (c_parser_parameter_declaration): Error unknown type name if the type
24282 name can't start declaration specifiers.
24283
24284 2010-06-25 Joseph Myers <joseph@codesourcery.com>
24285
24286 * gcc.c (translate_options): Don't mention +e in comment.
24287 (process_command): Don't handle +e specially.
24288
24289 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
24290
24291 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
24292
24293 * ira-build.c (merge_hard_reg_conflicts): New function.
24294 (create_cap_allocno, copy_info_to_removed_store_destinations,
24295 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
24296 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
24297 (remove_unnecessary_allocnos, remove_low_level_allocnos)
24298 copy_nifo_to_removed_store_destination): Use them.
24299 * ira-lives.c (make_hard_regno_born): New function, split out of
24300 make_regno_born.
24301 (make_allocno_born): Likewise.
24302 (make_hard_regno_dead): New function, split out of make_regno_dead.
24303 (make_allocno_dead): Likewise.
24304 (inc_register_pressure): New function, split out of set_allocno_live.
24305 (dec_register_pressure): New function, split out of clear_allocno_live.
24306 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
24307 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
24308 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
24309 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
24310 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
24311 mark_pseudo_regno_live.
24312 (process_bb_node_lives): Use mark_pseudo_regno_live,
24313 make_hard_regno_born and make_allocno_dead.
24314 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
24315 set_allocno_live, clear_allocno_live): Delete functions.
24316
24317 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
24318 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
24319 functions.
24320 (ira_flattening): Use ira_parent_allocno.
24321 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
24322 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
24323
24324 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
24325 statement.
24326
24327 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
24328 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
24329 minmax_set_iter_cond, minmax_set_iter_next,
24330 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
24331 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
24332 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
24333 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
24334 uses changed.
24335
24336 * ira-int.h (struct live_range, live_range_t): Renamed from struct
24337 ira_allocno_live_range and allocno_live_range_t; all uses changed.
24338 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
24339 All uses changed.
24340
24341 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
24342
24343 * thumb2.md (thumb2_tlobits_cbranch): Delete.
24344 (peephole2 to convert zero_extract/compare of single bit to
24345 lshift/compare): New.
24346
24347 2010-06-24 Anatoly Sokolov <aesok@post.ru>
24348
24349 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
24350 recursive call and call to 'int_const_binop'.
24351 (build_range_check, fold_cond_expr_with_comparison, unextend,
24352 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
24353 multiple_of_p): Adjust call to const_binop.
24354
24355 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
24356
24357 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
24358 determine size of XFmode operand.
24359 (XFmode extended DFmode push splitter): Ditto.
24360 (XFmode extended SFmode push splitter): Ditto.
24361
24362 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
24363
24364 PR target/44588
24365 * config/i386/i386.md (extract_code): New.
24366 (<u>divmodqi4): Likewise.
24367 (divmodhiqi3): Likewise.
24368 (udivmodhiqi3): Likewise.
24369 (<u>divqi3): Remvoved.
24370
24371 2010-06-24 Jakub Jelinek <jakub@redhat.com>
24372
24373 PR middle-end/44492
24374 * recog.h (struct recog_data): Add is_asm field.
24375 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
24376 present in constraints of inline-asm operand and memory operand
24377 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
24378 (extract_insn): Initialize recog_data.is_asm.
24379 * doc/md.texi (Constraints): Document operand side-effect rules.
24380
24381 2010-06-24 Andi Kleen <ak@linux.intel.com>
24382
24383 * c-parser.c (c_parser_conditional_expression): Call
24384 warn_for_omitted_condop.
24385 * doc/invoke.texi: Document omitted condop warning.
24386
24387 2010-06-24 Nick Clifton<nickc@redhat.com>
24388
24389 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
24390 insn in the sequence is a jump insn before setting its label.
24391
24392 2010-06-24 Alan Modra <amodra@gmail.com>
24393
24394 * collect2.c (main): Match exactly --version and --help.
24395
24396 2010-06-24 DJ Delorie <dj@redhat.com>
24397
24398 * config/m32c/m32c-pragma.c: Don't include rtl.h.
24399
24400 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
24401
24402 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
24403 using X87MODEF mode iterator.
24404 (pushsf splitter): Macroize splitter using P mode iterator.
24405 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
24406 mode iterator.
24407
24408 (*movxf_internal): Rename from *movxf_integer.
24409 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
24410 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
24411 (*movdf_internal): Rename from *movdf_integer.
24412 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
24413 (*movsf_internal): Rename from *movdf_1.
24414
24415 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
24416
24417 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
24418 (const_gimple_seq_node): Removed typedefs.
24419
24420 * gimple.h (gimple_seq_node_d, gimple_seq_node)
24421 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
24422
24423 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
24424
24425 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
24426 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
24427 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
24428 and CODE_FOR_vec_extract_lo_v4df.
24429
24430 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
24431 Changed to define_insn_and_split.
24432 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
24433 (vec_extract_lo_v16hi): Likewise.
24434 (vec_extract_lo_v32qi): Likewise.
24435 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
24436 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
24437
24438 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
24439
24440 PR target/44640
24441 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
24442 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
24443 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
24444 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
24445 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
24446
24447 PR target/44640
24448 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
24449
24450 PR other/44644
24451 * df-core.c (struct df): Rename to df_d.
24452 * df.h (struct df): Likewise.
24453 * dse.h (struct df): Remove forward declaration.
24454 * recog.h (struct insn_data): Rename to:
24455 (struct_insn_data_d). Adjusted all users.
24456
24457 2010-06-23 Arnaud Charlet <charlet@adacore.com
24458
24459 PR ada/22220
24460 * doc/install.texi: Update requirements to build GNAT.
24461
24462 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
24463
24464 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
24465 enum type.
24466 (m68k_sched_attr_opx_type): Remove unreachable return.
24467 (m68k_sched_attr_opy_type): Likewise.
24468 (m68k_sched_attr_size): Likewise.
24469 (sched_get_opxy_mem_type): Likewise.
24470 (m68k_sched_attr_op_mem): Likewise.
24471
24472 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
24473
24474 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
24475 new statement and adjust VDEF only if necessary. Remove superfluous
24476 call to maybe_clean_or_replace_eh_stmt.
24477 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
24478 copy the flags.
24479 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
24480 * tree-inline.c (copy_bb): ...and not there.
24481
24482 2010-06-22 Cary Coutant <ccoutant@google.com>
24483
24484 * dwarf2out.c (is_nested_in_subprogram): New function.
24485 (should_move_die_to_comdat): Use it.
24486 (copy_ancestor_tree): Don't mark DIEs here.
24487 (copy_decls_walk): Start walk from root of newly-added tree;
24488 mark DIEs here instead.
24489
24490 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
24491
24492 * config/i386/i386.md (unit): Also check sseishft1.
24493
24494 2010-06-22 Jan Hubicka <jh@suse.cz>
24495
24496 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
24497 enabled.
24498
24499 2010-06-22 Jan Hubicka <jh@suse.cz>
24500
24501 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
24502 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
24503 Return true if something changed.
24504 * df.h (df_confluence_function_n): Return bool.
24505 * df-core.c (df_worklist_propagate_forward,
24506 df_worklist_propagate_backward): Track changes and ages.
24507 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
24508 track ages.
24509 * dse.c (dse_confluence_n): Return always true.
24510
24511 2010-06-22 Jan Hubicka <jh@suse.cz>
24512
24513 * bitmap.c (bitmap_clear_bit): Micro optimize.
24514
24515 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
24516
24517 * config/i386/i386.md (SWI1248x): New mode iterator.
24518 (SWI48x): Ditto.
24519 (SWI12): Ditto.
24520 (SWI24): Ditto.
24521
24522 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
24523 SWI1248x mode iterator.
24524 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
24525 using SWI124 mode iterator.
24526 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
24527 mode iterator.
24528 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
24529 *pushdi2_prologue_rex64 using P mode iterator.
24530 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
24531 using SWI48 mode iterator.
24532 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
24533 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
24534 using SWI1248x mode iterator.
24535 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
24536 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
24537 SWI48 mode iterator.
24538 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
24539 iterator.
24540 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
24541 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
24542 SWI12 mode iterator.
24543 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
24544 SWI12 mode iterator.
24545 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
24546 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
24547 SWI24 mode iterator.
24548 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
24549 SWI48 mode iterator.
24550 (mov<mode>_insn_1): New expander.
24551 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
24552 using SWI48x mode iterator.
24553
24554 (*movoi_internal_avx): Rename from *movoi_internal.
24555 (*movti_internal_rex64): Rename from *movti_rex64.
24556 (*movti_internal_sse): Rename from *movti_sse.
24557 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
24558 (*movdi_internal): Rename from *movdi_2.
24559 (*movsi_internal): Rename from *movsi_1.
24560 (*movhi_internal): Rename from *movhi_1.
24561 (*movqi_internal): Rename from *movqi_1.
24562
24563 (insv): Update the call to gen_movsi_insv_1 for rename.
24564 * config/i386/i386.c (promote_duplicated_reg): Ditto.
24565
24566 2010-06-22 Jan Hubicka <jh@suse.cz>
24567
24568 * passes.c (execute_function_todo): Move call of statistics_fini_pass
24569 to ...
24570 (execute_todo) ... this one.
24571
24572 2010-06-22 Alan Modra <amodra@gmail.com>
24573
24574 PR target/44364
24575 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24576 * caller-save.c (insert_restore, insert_save): Use non-validate
24577 form of adjust_address.
24578
24579 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24580
24581 PR target/39690
24582 * config/pa/pa.c (override_options): Disable
24583 -freorder-blocks-and-partition.
24584
24585 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
24586
24587 PR target/44615
24588 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
24589
24590 * config/i386/i386.md (type): Add sseishft1
24591
24592 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
24593 (ppro_insn_load): Likewise.
24594 (ppro_insn_store): Likewise.
24595 (ppro_insn_both): Likewise.
24596
24597 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
24598 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
24599 for type.
24600 (*vec_extractv2di_1_avx): Likewise.
24601 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
24602 type. Remove atom_unit.
24603 (*vec_extractv2di_1_sse2): Likewise.
24604
24605 2010-06-21 DJ Delorie <dj@redhat.com>
24606
24607 * diagnostic.h (diagnostic_classification_change_t): New.
24608 (diagnostic_context): Add history and push/pop list.
24609 (diagnostic_push_diagnostics): Declare.
24610 (diagnostic_pop_diagnostics): Declare.
24611 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
24612 from pragmas in a history chain instead of the global table.
24613 (diagnostic_push_diagnostics): New.
24614 (diagnostic_pop_diagnostics): New.
24615 (diagnostic_report_diagnostic): Scan history chain to find state
24616 of diagnostics as of the diagnostic location.
24617 * opts.c (set_option): Pass UNKNOWN_LOCATION to
24618 diagnostic_classify_diagnostic.
24619 (enable_warning_as_error): Likewise.
24620 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
24621 use in the history chain.
24622 * doc/extend.texi: Document pragma GCC diagnostic changes.
24623
24624 2010-06-21 Jakub Jelinek <jakub@redhat.com>
24625
24626 * dwarf2out.c (add_linkage_name): New function. Don't add
24627 anything to DW_TAG_member DIEs.
24628 (add_name_and_src_coords_attributes): Use it.
24629 (gen_variable_die): Call it for C++ static data members if
24630 specification is DW_TAG_member.
24631
24632 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
24633 C++ char16_t and char32_t.
24634
24635 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
24636 * genattrtab.c: Include vecprim.h.
24637 (cached_attrs, cached_attr_count, attrs_seen_once,
24638 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
24639 attrs_cached_after): New variables.
24640 (find_attrs_to_cache): New function.
24641 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
24642 (write_test_expr): Add attrs_cached argument, return it too,
24643 attempt to cache non-const attributes used more than once in
24644 a single case handling.
24645 (write_attr_get): Use find_attrs_to_cache, for caching candidates
24646 emit cached_* variables. Adjust write_attr_set callers.
24647 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
24648 to find attributes that should be cached in this block. Adjust
24649 write_test_expr callers.
24650 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
24651 callers.
24652 (make_automaton_attrs): Adjust write_test_expr caller.
24653
24654 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
24655 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
24656 (make_automaton_attrs): If find_tune_attr returns non-NULL,
24657 write separate internal_dfa_insn_code_* and insn_default_latency_*
24658 functions for each attribute's value and emit init_sched_attrs
24659 function and function pointers.
24660 * genattr.c (const_attrs, reservations): New variables.
24661 (gen_attr): Add const attributes to const_attrs vector.
24662 (check_tune_attr, find_tune_attr): New functions.
24663 (main): Add reservations to reservations vector. If find_tune_attr
24664 returns true, add prototype for init_sched_attrs and make
24665 internal_dfa_insn_code and insn_default_latency function pointers,
24666 otherwise define init_sched_attrs as dummy macro.
24667 * cfgexpand.c: Include insn-attr.h.
24668 (gimple_expand_cfg): Call init_sched_attrs.
24669
24670 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
24671
24672 PR target/44575
24673 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
24674 va_arg from a set of register save slots into a temporary,
24675 if the container is bigger than type size, do the copying
24676 using smaller mode or using memcpy.
24677
24678 PR bootstrap/44426
24679 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
24680 prototype.
24681 (sel_print_to_dot): Remove macro.
24682 (sel_print): Likewise. New prototype.
24683 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
24684 (sel_print): New function.
24685
24686 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24687
24688 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
24689 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
24690
24691 2010-06-21 Nick Clifton <nickc@redhat.com>
24692
24693 * config/rx/rx.h (PTRDIFF_TYPE): Define.
24694 (SMALL_REGISTER_CLASS): Define (to zero).
24695 (PRINT_OPERAND): Delete.
24696 (PRINT_OPERAND_ADDRESS): Delete.
24697 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
24698 (rx_print_operand_address): Delete prototype.
24699 * config/rx/rx.c (rx_print_operand): Make static.
24700 Allow %H and %L to handle CONST_DOUBLEs.
24701 (rx_print_operand_address): Make static.
24702 (rx_gen_move_template): Rename local variable 'template' to
24703 out_template.
24704 (rx_function_arg): Do not pass unknown sized objects in registers.
24705 (TARGET_PRINT_OPERAND): Define.
24706 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24707
24708 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
24709
24710 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
24711
24712 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
24713
24714 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
24715 stack-alignment for simple leaf-functions.
24716
24717 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
24718
24719 * doc/install.texi: Document bootstrap-lto.
24720
24721 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
24722
24723 PR debug/44248
24724 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
24725 (input_function): Drop them here, if VTA is disabled.
24726
24727 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
24728
24729 PR target/44546
24730 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
24731 New predicate.
24732 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
24733 ix86_swapped_fp_comparsion_operator instead of
24734 ix86_fp_comparison_operator.
24735
24736 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
24737 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
24738 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
24739 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
24740 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
24741 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
24742
24743 2010-06-20 Joseph Myers <joseph@codesourcery.com>
24744
24745 PR other/32998
24746 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
24747 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
24748 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
24749 (decode_cmdline_option): Update for this return value. Set
24750 orig_option_with_args_text field. Set arg field for unknown
24751 options. Make static.
24752 (decode_cmdline_options_to_array): New.
24753 (prune_options): Update handling of find_opt return value.
24754 * opts.c (read_cmdline_option): Take decoded option. Return void.
24755 (read_cmdline_options): Take decoded options.
24756 (decode_options): Add parameters for decoded options. Use
24757 decode_cmdline_options_to_array. Use decoded options for -O
24758 scan. Use integral_argument for -O parameters. Update call to
24759 read_cmdline_options.
24760 (enable_warning_as_error): Update handling of find_opt return value.
24761 * opts.h: Update comment on unknown options.
24762 (struct cl_decoded_option): Update comments on opt_index and arg.
24763 Add orig_option_with_args_text.
24764 (decode_cmdline_option): Remove.
24765 (decode_cmdline_options_to_array): Declare.
24766 (decode_options): Update prototype.
24767 * toplev.c (save_argv): Remove.
24768 (save_decoded_options, save_decoded_options_count): New.
24769 (read_integral_parameter): Remove.
24770 (print_switch_values): Use decoded options.
24771 (toplev_main): Don't set save_argv. Update call to decode_options.
24772 * toplev.h (read_integral_parameter): Remove.
24773 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
24774
24775 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
24776
24777 PR target/44072
24778 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
24779 immediate.
24780 * constraints.md (Pw, Px): New constraints.
24781 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
24782
24783 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
24784
24785 * config/i386/sse.md (fma4modesuffixf4): Removed.
24786 (ssemodesuffixf2s): Likewise.
24787 (ssemodesuffixf4): Likewise.
24788 (ssemodesuffixf2c): Likewise.
24789 (ssescalarmodesuffix2s): Likewise.
24790 (avxmodesuffixf2c): Likewise.
24791 (ssemodesuffix): New.
24792 (ssescalarmodesuffix): Likewise.
24793 Update patterns with ssemodesuffix and ssescalarmodesuffix.
24794
24795 2010-06-19 Philip Herron <herron.philip@googlemail.com>
24796
24797 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
24798
24799 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
24800
24801 * stor-layout.c (debug_rli): Remove unused local variables.
24802
24803 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
24804
24805 PR rtl-optimization/40900
24806 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
24807 original expression for later reuse.
24808 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
24809 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
24810
24811 2010-06-18 Anatoly Sokolov <aesok@post.ru>
24812
24813 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
24814 double_int_fits_in_uhwi_p): Implement as static inline.
24815 (double_int_xor): New inline function.
24816 (double_int_lrotate, double_int_rrotate, double_int_max,
24817 double_int_umax, double_int_smax, double_int_min, double_int_umin,
24818 double_int_smin): Declare.
24819 (lrotate_double, rrotate_double): Remove declaration.
24820 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
24821 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
24822 (double_int_lrotate, double_int_rrotate, double_int_max,
24823 double_int_umax, double_int_smax, double_int_min, double_int_umin,
24824 double_int_smin): New function.
24825 * fold-const.c (int_const_binop): Clean up, use double_int_*
24826 functions.
24827 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
24828 double_int_* and immed_double_int_const functions.
24829
24830 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24831
24832 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
24833 * function.c (types_used_by_cur_var_decl): Likewise.
24834 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
24835
24836 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24837
24838 * tree.h (record_layout_info): Change type of pending_statics field
24839 to a VEC.
24840 * stor-layout.c (start_record_layout): Store NULL into
24841 pending_statics.
24842 (debug_rli): Call debug_vec_tree instead of debug_tree.
24843 (place_field): Likewise.
24844 (finish_record_layout): Likewise.
24845
24846 2010-06-18 Alan Modra <amodra@gmail.com>
24847
24848 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
24849
24850 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24851
24852 PR target/43740
24853 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
24854 for SET source operand from SET destination operand.
24855
24856 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
24857
24858 PR rtl-optimization/39871
24859 * reload1.c (init_eliminable_invariants): For flag_pic, disable
24860 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
24861 (function_invariant_p): Rule out a plus of frame or arg pointer with
24862 a SYMBOL_REF.
24863 * ira.c (find_reg_equiv_invariant_const): Likewise.
24864
24865 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
24866
24867 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
24868 print_operand_address and puts to output the operand for CONST.
24869
24870 2010-06-17 Jakub Jelinek <jakub@redhat.com>
24871
24872 PR debug/44572
24873 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
24874 hook.
24875
24876 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24877
24878 * v850-protos.h (print_operand): Delete.
24879 (print_operand_address): Delete.
24880 * v850.h (PRINT_OPERAND): Delete.
24881 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24882 (PRINT_OPERAND_ADDRESS): Delete.
24883 * v850.c (print_operand_address): Rename to...
24884 (v850_print_operand_address): ...this. Make static. Call
24885 v850_print_operand.
24886 (print_operand): Rename to...
24887 (v850_print_operand): ...this. Make static. Call
24888 v850_print_operand_address.
24889 (v850_print_operand_punct_valid_p): New function.
24890 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24891 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24892
24893 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24894
24895 * config/sh/sh-protos.h (print_operand): Delete.
24896 (print_operand_address): Delete.
24897 * config/sh/sh.h (PRINT_OPERAND): Delete.
24898 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24899 (PRINT_OPERAND_ADDRESS): Delete.
24900 * config/sh/sh.c (sh_print_operand_address): Make static.
24901 (sh_print_operand): Make static. Call sh_print_operand_address
24902 and sh_print_operand.
24903 (sh_print_operand_punct_valid_p): New function.
24904 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24905 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24906
24907 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24908
24909 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
24910 (mcore_print_operand_address): Delete.
24911 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
24912 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24913 (PRINT_OPERAND_ADDRESS): Delete.
24914 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
24915 (mcore_print_operand): Make static.
24916 (mcore_print_operand_punct_valid_p): New function.
24917 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
24918 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24919
24920 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24921
24922 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
24923 (print_operand_address): Delete.
24924 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
24925 (PRINT_OPERAND_ADDRESS): Delete.
24926 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
24927 static.
24928 (m68hc11_print_operand): Make static.
24929 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24930
24931 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24932
24933 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
24934 (m32r_print_operand_address): Delete.
24935 * config/m32r/m32r.h (m32r_punct_chars): Delete.
24936 (PRINT_OPERAND): Delete.
24937 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24938 (PRINT_OPERAND_ADDRESS): Delete.
24939 * config/m32r/m32r.c (m32r_punct_chars): Make static.
24940 (m32r_print_operand_address): Make static.
24941 (m32r_print_operand): Make static.
24942 (m32r_print_operand_punct_valid_p): New function.
24943 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24944 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24945
24946 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24947
24948 * config/iq2000/iq2000-protos.h (print_operand): Delete.
24949 (print_operand_address): Delete.
24950 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
24951 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24952 (PRINT_OPERAND_ADDRESS): Delete.
24953 (iq2000_print_operand_punct): Delete.
24954 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
24955 (iq2000_print_operand_address): Make static.
24956 (iq2000_print_operand): Make static.
24957 (iq2000_print_operand_punct_valid_p): New function.
24958 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24959 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24960
24961 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24962
24963 * config/frv/frv-protos.h (frv_print_operand): Delete.
24964 (frv_print_operand_address): Delete.
24965 * config/frv/frv.h (PRINT_OPERAND): Delete.
24966 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24967 (PRINT_OPERAND_ADDRESS): Delete.
24968 * config/frv/frv.c (frv_print_operand_address): Make static.
24969 (frv_print_operand): Make static.
24970 (frv_print_operand_punct_valid_p): New function.
24971 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24972 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24973
24974 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24975
24976 * tree.h (vec_member): Declare.
24977 * tree.c (vec_member): Define.
24978
24979 2010-06-17 Richard Guenther <rguenther@suse.de>
24980
24981 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
24982 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
24983
24984 2010-06-17 Richard Guenther <rguenther@suse.de>
24985
24986 * tree-inline.c (declare_return_variable): Remove bogus code.
24987
24988 2010-06-17 Richard Guenther <rguenther@suse.de>
24989
24990 * gimplify.c (gimplify_bind_expr): Always promote complex
24991 and vector variables to registers if possible.
24992
24993 2010-06-17 Richard Guenther <rguenther@suse.de>
24994
24995 * expr.c (get_inner_reference): Use double_int for bit_offset
24996 calculation.
24997
24998 2010-06-16 DJ Delorie <dj@redhat.com>
24999
25000 * common.opt (-fstrict-volatile-bitfields): new.
25001 * doc/invoke.texi: Document it.
25002 * fold-const.c (optimize_bit_field_compare): For volatile
25003 bitfields, use the field's type to determine the mode, not the
25004 field's size.
25005 * expr.c (expand_assignment): Likewise.
25006 (get_inner_reference): Likewise.
25007 (expand_expr_real_1): Likewise.
25008 * expmed.c (store_fixed_bit_field): Likewise.
25009 (extract_bit_field_1): Likewise.
25010 (extract_fixed_bit_field): Likewise.
25011
25012 2010-06-16 Richard Guenther <rguenther@suse.de>
25013
25014 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
25015
25016 2010-06-16 Douglas B Rupp <rupp@gnat.com>
25017
25018 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
25019 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
25020 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
25021 * debug.c: Likewise.
25022 * sdbout.c: Likewise.
25023 * vmsdbgout.c: Likewise.
25024 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
25025 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
25026 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
25027 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
25028 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
25029 * dwarf2out.c (dw_fde_struct): New fields
25030 dw_fde_vms_{end,begin}_prologue.
25031 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
25032 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
25033 (dwarf2out_vms_end_prologue): New function.
25034 (dwarf2out_vms_begin_epilogue): New function.
25035 (dw_val_struct): New value dw_val_class_vms_delta.
25036 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
25037 begin_epilogue for VMS.
25038 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
25039 new static functions.
25040 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
25041 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
25042 static functions.
25043 (print_die): New case dw_val_class_vms_delta.
25044 (attr_checksum): Likewise.
25045 (same_dw_val_p: Likewise.
25046 (size_of_die): Likewise.
25047 (value_format): Likewise.
25048 (output_die): Likewise.
25049 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
25050 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
25051 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
25052 dwarf2out_cfi_begin_epilogue
25053 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
25054
25055 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
25056
25057 * config/cris/cris-protos.h (cris_print_operand): Delete.
25058 (cris_print_operand_address): Delete.
25059 * config/cris/cris.h (PRINT_OPERAND): Delete.
25060 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25061 (PRINT_OPERAND_ADDRESS): Delete.
25062 * config/cris/cris.c (cris_print_operand_address): Make static.
25063 (cris_print_operand): Make static.
25064 (cris_print_operand_punct_valid_p): New function.
25065 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25066 (TARGET_PRINT_OPERAND_ADDRESS): Define.
25067
25068 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
25069
25070 * config/arm/arm-protos.h (arm_print_operand): Delete.
25071 (arm_print_operand_address): Delete.
25072 * config/arm/arm.h (PRINT_OPERAND): Delete.
25073 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25074 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
25075 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
25076 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
25077 (arm_print_operand): Make static.
25078 (arm_print_operand_punct_valid_p): New function.
25079 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25080 (TARGET_PRINT_OPERAND_ADDRESS): Define.
25081
25082 2010-06-16 Nick Clifton <nickc@redhat.com>
25083
25084 * config/rx/constraints.md (NEGint4): New constraint.
25085 * config/rx/rx.md (attr cc): Add set_zsc.
25086 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
25087 initialised.
25088 (cmpsf): Likewise.
25089 (call_internal): Clobber the cc0 register.
25090 (call_value_internal): Likewise.
25091 (cstoresi4): Likewise.
25092 (movsieq): Likewise.
25093 (movsine): Likewise.
25094 (addsi3): Add alternative to handle small negative constants.
25095 (sunsi3): Likewise.
25096 (addsi3): Do not set the O bit in the cc0 register.
25097 (adddi3): Likewise.
25098 (subsi3): Likewise.
25099 (subdi3): Likewise.
25100 (andsi3): Reorder alternatives to prefer shorter forms.
25101 (mulsi3): Likewise.
25102 (iorsi3): Likewise.
25103 (negsi2): Note that the cc0 flags are set.
25104 (rotlsi3): Note that only the Z and S bits are set in cc0.
25105 (lshrsi3): Likewise.
25106 (ashlsi3): Likewise.
25107 (subsf3): Use %Q for the MEM operand.
25108 (fix_truncsfsi2): Likewise.
25109 (floatsisf2): Likewise.
25110 (bitset): Remove early clobber from destination.
25111 (bitset_in_memory): Likewise.
25112 (lrintsf2): Clobber the cc0 register.
25113 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
25114 (rx_print_operand): Handle %N.
25115
25116 2010-06-16 Jan Hubicka <jh@suse.cz>
25117
25118 * df-core.c (df_compact_blocks): Free problem_temps vector.
25119
25120 2010-06-16 Martin Jambor <mjambor@suse.cz>
25121
25122 PR tree-optimization/43905
25123 * tree-sra.c: Include tree-inline.h.
25124 (create_abstract_origin): Removed.
25125 (modify_function): Version the call graph node instead of creating
25126 abstract origins and dealing with same_body aliases.
25127 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
25128 function is versionable.
25129 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
25130
25131 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
25132
25133 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
25134 (CHOOSE_DYNAMIC_LINKER): Update.
25135
25136 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
25137
25138 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
25139 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
25140 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
25141 *prefetch_3dnow_rex.
25142
25143 2010-06-15 Anatoly Sokolov <aesok@post.ru>
25144
25145 * target.h (struct asm_out):Add declare_constant_name field.
25146 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
25147 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
25148 * output.h (default_asm_declare_constant_name): Declare.
25149 (assemble_label): Update prototype.
25150 * varasm.c (assemble_constant_contents): Use
25151 targetm.asm_out.declare_constant_name target hook.
25152 (assemble_label): Add 'file' argument.
25153 (default_asm_declare_constant_name): New function.
25154 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
25155 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
25156 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
25157
25158 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
25159 * config/darwin.c (darwin_asm_declare_constant_name): New function.
25160 (machopic_output_indirection): Update assemble_label argument list.
25161 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
25162 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
25163
25164 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
25165
25166 PR middle-end/44391
25167 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
25168 size_one_node for pointer types. Do not call gmp_cst_to_tree.
25169
25170 2010-06-15 Richard Guenther <rguenther@suse.de>
25171
25172 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
25173
25174 2010-06-15 Paul Brook <paul@codesourcery.com>
25175
25176 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
25177 hard-float ABI.
25178
25179 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
25180
25181 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
25182 don't get a vector type for output.
25183
25184 2010-06-15 Jakub Jelinek <jakub@redhat.com>
25185
25186 PR fortran/44536
25187 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
25188 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
25189 (LANG_HOOKS_DECLS): Add it.
25190 * gimplify.c (omp_notice_variable): Call
25191 lang_hooks.decls.omp_report_decl.
25192
25193 2010-06-15 Martin Jambor <mjambor@suse.cz>
25194
25195 PR lto/44464
25196 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
25197 on the newly dead SSA name.
25198
25199 2010-06-15 Alan Modra <amodra@gmail.com>
25200
25201 * doc/invoke.texi: Add mcmodel to powerpc options.
25202 * configure.ac: Add HAVE_LD_LARGE_TOC test.
25203 * configure: Regenerate.
25204 * config.in: Regenerate.
25205 * config/rs6000/linux64.opt (mcmodel): New.
25206 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
25207 (TARGET_CMODEL, SET_CMODEL): Define.
25208 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
25209 select CMODEL_MEDIUM default.
25210 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
25211 (TARGET_CMODEL): Define default.
25212 * config/rs6000/rs6000.c (cmodel): New variable.
25213 (rs6000_explicit_options): Add cmodel field.
25214 (rs6000_handle_option): Handle -mcmodel.
25215 (create_TOC_reference): Add largetoc_reg param. Generate high,
25216 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
25217 (rs6000_delegitimize_address): Recognise new toc reference rtl
25218 and minimal-toc rtl.
25219 (rs6000_legitimize_reload_address): Handle new toc references.
25220 (print_operand_address): Handle legitimate_constant_pool_address_p
25221 match before lo_sum.
25222 (rs6000_eliminate_indexed_memrefs): Tidy.
25223 (rs6000_emit_move): Tweak threshold for inlining constants.
25224 Keep rs6000_emit_allocate_stack large stack frame offsets
25225 loaded into r0 inline.
25226 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
25227 (tocrel_base, tocrel_offset): New variables.
25228 (toc_relative_expr_p): Set them here.
25229 (print_operand_address): Skip over any offset on constant pool address.
25230 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
25231 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
25232 (offsettable_ok_by_alignment): New function.
25233 (rs6000_emit_move): Address suitably aligned local symbol_refs
25234 relative to the toc pointer for -mcmodel=medium.
25235 (legitimate_constant_pool_address_p): Make param const_rtx. Add
25236 strict param. Allow lo_sum version of addressing. Verify reg
25237 used for -mminimal-toc and -mcmodel != small. Update all callers.
25238 * config/rs6000/constraints.md: Update for above change.
25239 * config/rs6000/predicates.md: Likewise.
25240 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
25241 code.
25242 (tls_gd): Split for -mcmodel=medium/large.
25243 (tls_gd_high, tls_gd_low): New.
25244 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
25245 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
25246 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
25247 (largetoc_high, largetoc_low): New.
25248 (cmptf_internal2): Add clobber.
25249 * config/rs6000/rs6000-protos.h: Update.
25250
25251 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
25252
25253 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
25254 true if no prefetch is going to be generated for a given group.
25255 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
25256 estimate the prefetch_count.
25257 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
25258 prefetch count by considering the unroll_factor and prefetch_mod
25259 for is_loop_prefetching_profitable.
25260
25261 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
25262
25263 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
25264 anything if the argument is not a MEM.
25265
25266 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
25267
25268 PR debug/43650
25269 PR debug/44181
25270 PR debug/44247
25271 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
25272 debug stmts.
25273 (canonicalize_loop_ivs): Likewise.
25274
25275 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
25276
25277 PR debug/43656
25278 * haifa-sched.c (setup_insn_reg_pressure_info,
25279 update_register_pressure): Reject debug insns.
25280 (ready_sort): Don't setup reg pressure for debug insns.
25281 (schedule_insn): Don't update reg pressure for debug insns.
25282
25283 2010-06-14 Richard Guenther <rguenther@suse.de>
25284
25285 * lto-streamer.c (cached_bp): Remove.
25286 (bitpack_delete): Likewise.
25287 (bitpack_create): Likewise.
25288 (bp_get_next_word): Likewise.
25289 (bp_pack_value, bp_unpack_value): Move ...
25290 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
25291 Re-implement.
25292 (struct bitpack_d): Likewise.
25293 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
25294 New inline functions.
25295 * lto-streamer-out.c (lto_output_bitpack): Remove.
25296 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
25297 (pack_value_fields): Adjust.
25298 (lto_write_tree): Likewise.
25299 (output_gimple_stmt): Likewise.
25300 (output_function): Likewise.
25301 * lto-streamer-in.c (input_gimple_stmt): Adjust.
25302 (input_function): Likewise.
25303 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
25304 (lto_input_bitpack): Remove.
25305 (lto_materialize_tree): Adjust.
25306 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
25307 * lto-cgraph.c (lto_output_edge): Adjust.
25308 (lto_output_node): Likewise.
25309 (lto_output_varpool_node): Likewise.
25310 (lto_output_ref): Likewise.
25311 (input_node): Likewise.
25312 (input_varpool_node): Likewise.
25313 (input_ref): Likewise.
25314 (input_edge): Likewise.
25315 (output_node_opt_summary): Likewise.
25316 (input_node_opt_summary): Likewise.
25317 * ipa-pure-const.c (pure_const_write_summary): Likewise.
25318 (pure_const_read_summary): Likewise.
25319 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
25320 (ipa_read_indirect_edge_info): Likewise.
25321 (ipa_write_node_info): Likewise.
25322 (ipa_read_node_info): Likewise.
25323
25324 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
25325
25326 PR target/44534
25327 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
25328 (vec_extract_lo_v16hi): Likewise.
25329 (vec_extract_lo_v32qi): Likewise.
25330
25331 2010-06-14 Jakub Jelinek <jakub@redhat.com>
25332
25333 PR bootstrap/44426
25334 * tree.h (build_call_expr): Don't define as vararg macro, instead
25335 add a prototype.
25336 * builtins.c (build_call_nofold): Remove.
25337 (expand_builtin_int_roundingfn, expand_builtin_pow,
25338 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
25339 expand_builtin_memset_args, expand_builtin_strcmp,
25340 expand_builtin_strncmp, expand_builtin_memory_chk): Use
25341 build_call_nofold_loc instead of build_call_nofold.
25342 (build_call_expr): New function.
25343
25344 PR tree-optimization/44508
25345 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
25346 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
25347 don't eliminate trivially dead stmts.
25348 * tree-vrp.c (vrp_finalize): Pass false as last argument
25349 to substitute_and_fold.
25350 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
25351 to substitute_and_fold.
25352 * tree-ssa-ccp.c (ccp_finalize): Likewise.
25353
25354 PR bootstrap/44509
25355 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
25356
25357 2010-06-14 Ira Rosen <irar@il.ibm.com>
25358
25359 PR tree-optimization/44507
25360 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
25361 to build initial vector for BIT_AND_EXPR.
25362 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
25363
25364 2010-06-14 Jakub Jelinek <jakub@redhat.com>
25365
25366 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
25367 adjust z10prop set_attr.
25368
25369 2010-06-13 Jan Hubicka <jh@suse.cz>
25370
25371 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
25372 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
25373 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
25374 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
25375 datastructure checks into checking asserts.
25376 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
25377 * tree-ssa-sccvn.c (VN_INFO): Likewise.
25378 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
25379 df_ref_create_structure): Likewise.
25380 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
25381 pool_free): Use gcc_checking_assert.
25382 * alias.c (get_alias_set): Likewise.
25383 * var-tracking.c (variable_htab_free, shared_hash_copy,
25384 canonicalize_values_mark, variable_merge_over_cur): Likewise.
25385 * lto-streamer.c (bp_unpack_value): Likewise.
25386
25387 2010-06-13 Richard Guenther <rguenther@suse.de>
25388
25389 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
25390 Do not stream but initialize TYPE_CANONICAL to NULL.
25391 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
25392 * gimple.c (gimple_types_compatible_p): Disregard
25393 TYPE_STRUCTURAL_EQUALITY_P.
25394 (gimple_register_type): Use TYPE_CANONICAL as cache.
25395 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
25396 before registering common types.
25397 * config/i386/i386.c (ix86_function_arg_boundary): Do not
25398 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
25399 * tree.h (TYPE_CANONICAL): Clarify documentation.
25400
25401 2010-06-13 Anatoly Sokolov <aesok@post.ru>
25402
25403 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25404 LIBCALL_VALUE): Remove macros.
25405 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
25406 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25407 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25408 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
25409 (ia64_function_value): Make static. Handle receiving the function
25410 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
25411
25412 2010-06-12 Jan Hubicka <jh@suse.cz>
25413
25414 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
25415 at correct place.
25416
25417 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
25418
25419 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
25420
25421 2010-06-12 Jan Hubicka <jh@suse.cz>
25422
25423 * df-core.c (df_clear_bb_info): New function.
25424 (df_set_blocks): bb_info is always allocated.
25425 (df_get_bb_info): Use block_info_elt_size.
25426 (df_set_bb_info): Likewise.
25427 (df_compact_blocks): Update for new block_info.
25428 (grow_bb_info): New function.
25429 * df-problems.c (df_grow_bb_info): Move to df-core.c
25430 (df_rd_set_bb_info): Remove.
25431 (df_rd_free_bb_info): Do not free block pool.
25432 (df_rd_alloc): Do not create pool, use check for
25433 obstack presence instead of NULL pointer for new blocks.
25434 (df_rd_free): DO not free alloc pool; clear block_info.
25435 (problem_RD): Add size of block info structure.
25436 (df_lr_set_bb_info): Remove.
25437 (df_lr_free_bb_info): Do not free block pool.
25438 (df_lr_alloc): Do not create pool, use check for
25439 obstack presence instead of NULL pointer for new blocks.
25440 (df_lr_free): DO not free alloc pool; clear block_info.
25441 (problem_LR): Add size of block info structure.
25442 (df_live_set_bb_info): Remove.
25443 (df_live_free_bb_info): Do not free block pool.
25444 (df_live_alloc): Do not create pool, use check for
25445 obstack presence instead of NULL pointer for new blocks.
25446 (df_live_free): DO not free alloc pool; clear block_info.
25447 (problem_LIVE): Add size of block info structure.
25448 (problem_CHAIN): Add size of block info structure.
25449 (df_byte_lr_set_bb_info): Remove.
25450 (df_byte_lr_free_bb_info): Do not free block pool.
25451 (df_byte_lr_alloc): Do not create pool, use check for
25452 obstack presence instead of NULL pointer for new blocks.
25453 (df_byte_lr_free): DO not free alloc pool; clear block_info.
25454 (problem_BYTE_LR): Add size of block info structure.
25455 (problem_NOTE): Add size of block info structure.
25456 (df_byte_MD_set_bb_info): Remove.
25457 (df_byte_MD_free_bb_info): Do not free block pool.
25458 (df_byte_MD_alloc): Do not create pool, use check for
25459 obstack presence instead of NULL pointer for new blocks.
25460 (df_byte_MD_free): DO not free alloc pool; clear block_info.
25461 (problem_BD): Add size of block info structure.
25462 * df-scan.c (df_scan_free_internal): Free block pool.
25463 (df_scan_set_bb_info): Remove.
25464 (df_scan_free_bb_info): Check for artificial_defs instead
25465 of bb_info being non-NULL.
25466 (df_scan_alloc): DO not create df_scan_block pool.
25467 (problem_SCAN): Set size of block info.
25468 (df_bb_refs_record): Do not allocate bb_info.
25469 * df.h (df_problem): Add block_info_elt_size.
25470 (struct dataflow): Change block_info to void *.
25471 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
25472 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
25473 in-line structures.
25474
25475 2010-06-12 Jan Hubicka <jh@suse.cz>
25476
25477 PR tree-optimize/44485
25478 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
25479 containing use of return value of noreturn function.
25480
25481 2010-06-12 Anatoly Sokolov <aesok@post.ru>
25482
25483 * targhooks.c (default_function_value): Don't use
25484 FUNCTION_OUTGOING_VALUE.
25485 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
25486 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
25487
25488 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
25489
25490 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
25491 Add crtfastmath.o to extra_parts.
25492 * config/mips/crtfastmath.c: New.
25493 * config/mips/linux.h (ENDFILE_SPEC): New.
25494
25495 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
25496
25497 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
25498 old_type in parameter.
25499 (gcc_type_for_value): Update call to gcc_type_for_interval.
25500 (compute_type_for_level_1): Renamed compute_type_for_level.
25501 Update call to gcc_type_for_interval.
25502
25503 2010-06-11 Joseph Myers <joseph@codesourcery.com>
25504
25505 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
25506 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
25507
25508 2010-06-11 Joseph Myers <joseph@codesourcery.com>
25509
25510 * opts-common.c: Include options.h.
25511 (integral_argument): Move from opts.c.
25512 (decode_cmdline_option): New. Based on read_cmdline_option.
25513 * opts.c (integral_argument): Move to opts-common.c.
25514 (read_cmdline_option): Move most contents to
25515 decode_cmdline_option. Use %qs in diagnostics.
25516 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
25517 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
25518 decode_cmdline_option): New.
25519
25520 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
25521
25522 PR target/44481
25523 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
25524 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
25525 (partiysi2_cmp): Ditto.
25526 (*partiyhi2_cmp): Ditto.
25527 (*parityqi2_cmp): Remove.
25528
25529 2010-06-11 Jan Hubicka <jh@suse.cz>
25530
25531 * bitmap.h (bmp_iter_next_bit): New.
25532 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
25533
25534 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
25535 Eric Botcazou <ebotcazou@adacore.com>
25536
25537 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
25538 computed cost.
25539
25540 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
25541
25542 * config/i386/i386.md (unspec): New define_c_enum.
25543 (unspecv): Ditto.
25544
25545 2010-06-10 Jakub Jelinek <jakub@redhat.com>
25546
25547 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
25548
25549 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
25550
25551 PR middle-end/44483
25552 * tree-if-conv.c (bb_predicate_s): New struct.
25553 (bb_predicate_p): New.
25554 (bb_has_predicate): New.
25555 (bb_predicate): New.
25556 (set_bb_predicate): New.
25557 (bb_predicate_gimplified_stmts): New.
25558 (set_bb_predicate_gimplified_stmts): New.
25559 (add_bb_predicate_gimplified_stmts): New.
25560 (init_bb_predicate): New.
25561 (free_bb_predicate): New.
25562 (is_predicated): Use bb_predicate.
25563 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
25564 (predicate_bbs): Same. Gimplify the condition of the basic blocks
25565 before processing their successors.
25566 (clean_predicate_lists): Removed.
25567 (find_phi_replacement_condition): Use bb_predicate.
25568 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
25569 computations.
25570 (insert_gimplified_predicates): New.
25571 (combine_blocks): Call insert_gimplified_predicates.
25572 (tree_if_conversion): Call free_bb_predicate instead of
25573 clean_predicate_lists.
25574
25575 2010-10-11 Paul Brook <paul@codesourcery.com>
25576
25577 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
25578 * config/arm/arm.c (all_architectures): Change v7e-m default to
25579 cortexm4.
25580 * config/arm/arm-cores.def: Add cortex-m4.
25581 * config/arm/arm-tune.md: Regenerate.
25582
25583 2010-06-11 Jan Hubicka <jh@suse.cz>
25584
25585 * ipa-pure-const.c (special_builtlin_state): New function.
25586 (check_call): Use it instead of special casign BUILT_IN_RETURN.
25587 (propagate_pure_const): Use it.
25588
25589 2010-06-11 Jan Hubicka <jh@suse.cz>
25590
25591 * df-problems.c (df_live_scratch): Convert to bitmap_head.
25592 (df_live_alloc): Initialize df_live_scratch when initializing
25593 problem_data.
25594 (df_live_transfer_function): Update uses of df_live_scratch.
25595 (df_live_free): Free problem_data; clear df_live_scratch before
25596 releasing the obstack.
25597 (df_md_free): Free problem data.
25598
25599 2010-06-11 Jan Hubicka <jh@suse.cz>
25600
25601 * doc/invoke.texi (Wsuggest-attribute): Document.
25602 (Wmissing-noreturn): Remove.
25603 * ipa-pure-const.c (warn_function_noreturn): New function.
25604 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
25605 warn_missing_noreturn.
25606 * common.opt (Wsuggest-attribute=noreturn): New.
25607 * tree-flow.h (warn_function_noreturn): Declare.
25608 * tree-cfg.c (execute_warn_function_noreturn): Use
25609 warn_function_noreturn.
25610 (gate_warn_function_noreturn): New.
25611 (pass_warn_function_noreturn): Update.
25612
25613 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
25614
25615 * c-typeck.c (handle_warn_cast_qual): Add loc
25616 parameter. Improve warning message.
25617 (build_c_cast): Pass location to handle_warn_cast_qual.
25618
25619 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
25620
25621 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
25622 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
25623 insn mnemonic.
25624 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
25625
25626 2010-06-10 Dodji Seketeli <dodji@redhat.com>
25627
25628 Fix bootstap on mips
25629 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
25630 be naming typedefs.
25631
25632 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
25633
25634 * system.h (helper_const_non_const_cast): New inline for
25635 gcc version <= 4.0.
25636 (CONST_CAST2): For gcc version <= 4.0 use
25637 new helper to do const/non-const casting.
25638
25639 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25640
25641 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
25642 * Makefile.in (OBJS-common): Include insn-enums.o.
25643 (insn-enums.o): New rule.
25644 (simple_generated_c): Add insn-enums.c.
25645 (build/genenums.o): New rule.
25646 (genprogmd): Add "enums".
25647 * genconstants.c (print_enum_type): Declare a C string array
25648 for each enum.
25649 * genenums.c: New file.
25650 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
25651 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
25652 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
25653
25654 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25655
25656 * doc/md.texi (define_enum_attr): Document.
25657 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
25658 * read-md.h (lookup_enum_type): Declare.
25659 * read-md.c (lookup_enum_type): New function.
25660 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
25661 * genattrtab.c (attr_desc): Add an enum_name field.
25662 (evaluate_eq_attr): Take the associated attribute as argument.
25663 Get the enum prefix from the enum_name field, if defined.
25664 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
25665 (simplify_test_exp): Pass attr to evaluate_eq_attr.
25666 (add_attr_value): New function, split out from...
25667 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
25668 (write_test_expr): Pass attr to evaluate_eq_attr.
25669 (write_attr_get): Use the enum_name as the enum tag, if defined.
25670 (write_attr_valueq): Use the enum_name as a prefix, if defined.
25671 (find_attr): Initialize enum_name.
25672 (main): Handle DEFINE_ENUM_ATTR.
25673 * gensupport.c (process_rtx): Likewise.
25674 * config/mips/mips.h (mips_tune_attr): Delete.
25675 * config/mips/mips.md (cpu): Use define_attr_enum.
25676
25677 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25678
25679 * doc/md.texi (define_c_enum, define_enum): Document.
25680 * read-md.h (md_constant): Add a parent_enum field.
25681 (enum_value, enum_type): New structures.
25682 (upcase_string, traverse_enum_types): Declare.
25683 * read-md.c (enum_types): New variable.
25684 (upcase_string, add_constant): New functions.
25685 (handle_constants): Don't create the hash table here.
25686 Use add_constant.
25687 (traverse_md_constants): Don't check for a null md_constants.
25688 (decimal_string, handle_enum, traverse_enum_types): New functions.
25689 (read_md_files): Initialize md_constants and md_enums.
25690 * genconstants.c (print_md_constant): Ignore info argument.
25691 Only print constants that belong to no enum.
25692 (print_enum_type): New function.
25693 (main): Don't pass stdout to print_md_constant. Call print_enum_type
25694 for each defined enum type.
25695 * config/mips/mips.md (processor): New define_enum.
25696 (unspec): New define_c_enum.
25697 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
25698 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
25699 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
25700 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
25701 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
25702 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
25703 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
25704 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
25705 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
25706 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
25707 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
25708 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
25709 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
25710 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
25711 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
25712 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
25713 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
25714 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
25715 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
25716 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
25717 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
25718 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
25719 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
25720 (UNSPEC_RDDSP): Move to mips-dsp.md.
25721 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
25722 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
25723 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
25724 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
25725 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
25726 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
25727 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
25728 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
25729 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
25730 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
25731 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
25732 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
25733 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
25734 Moved to mips-dspr2.md.
25735 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
25736 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
25737 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
25738 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
25739 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
25740 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
25741 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
25742 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
25743 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
25744 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
25745 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
25746 UNSPEC_LOONGSON_PSADBH)
25747 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
25748 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
25749 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
25750 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
25751 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
25752 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
25753 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
25754 (cpu): Update comment.
25755 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
25756 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
25757 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
25758 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
25759 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
25760 UNSPEC_LOONGSON_PCMPEQ)
25761 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
25762 UNSPEC_LOONGSON_PINSR_0)
25763 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
25764 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
25765 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
25766 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
25767 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
25768 UNSPEC_LOONGSON_PSADBH)
25769 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
25770 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
25771 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
25772 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
25773 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
25774 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
25775 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
25776 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
25777 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
25778 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
25779 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
25780 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
25781 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
25782 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
25783 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
25784 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
25785 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
25786 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
25787 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
25788 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
25789 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
25790 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
25791 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
25792 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
25793 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
25794 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
25795 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
25796 (UNSPEC_RDDSP): Moved from mips.md.
25797 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
25798 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
25799 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
25800 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
25801 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
25802 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
25803 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
25804 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
25805 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
25806 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
25807 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
25808 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
25809 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
25810 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
25811 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
25812 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
25813 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
25814 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
25815 (UNSPEC_SCC): Moved from mips.md.
25816 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
25817 "processor_type" to "processor".
25818 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
25819 * config/mips/mips.h (processor_type): Delete.
25820 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
25821 "processor_type" to "processor".
25822
25823 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25824
25825 * configure.ac (tm_include_list): Add insn-constants.h.
25826 * configure: Regenerate.
25827 * Makefile.in (GTM_H): Move insn-constants.h here from...
25828 (TM_H): ...here.
25829 * mkconfig.sh: Remove special handling for insn-constants.h.
25830
25831 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25832
25833 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
25834 (BUILD_MD): ...this new variable.
25835 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
25836 that include the old contents of simple_generated_h and
25837 simple_generated_c.
25838 (simple_generated_h, simple_generated_c): Include them. Add
25839 insn-constants.h.
25840 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
25841 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
25842 Remove these dependencies from the main rule and include
25843 insn-conditions.md in the command line only if it appears
25844 in the dependency list.
25845 (insn-constants.h, s-constants): Delete.
25846 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
25847 or gensupport.h.
25848 (build/genmddeps.o): Likewise.
25849 (genprogrtl): New variable that contains everything from genprogmd
25850 except mddeps and constants.
25851 (genprogmd): Redefine in terms of genprogrtl. Make these programs
25852 depend on $(BUILD_MD)
25853 (genprog): New variable. Make these programs depend on
25854 $(BUILD_ERRORS).
25855 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
25856 (main): Use read_md_files instead of init_rtx_reader_args.
25857 * genconstants.c: As for genmddeps.c.
25858 * read-md.h (read_skip_construct): Declare.
25859 * read-md.c (read_skip_construct): New function.
25860 (handle_file): Allow a null handle_directive, skipping the
25861 construct if so.
25862 (parse_include): Update the comment accordingly.
25863
25864 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25865
25866 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
25867 * genmddeps.c: Include read-md.h.
25868 (main): Call init_rtx_reader_args instead of init_md_reader_args.
25869 * genattr.c (main): Likewise.
25870 * genattrtab.c (main): Likewise.
25871 * genautomata.c (main): Likewise.
25872 * gencodes.c (main): Likewise.
25873 * genconditions.c (main): Likewise.
25874 * genconfig.c (main): Likewise.
25875 * genconstants.c (main): Likewise.
25876 * genemit.c (main): Likewise.
25877 * genextract.c (main): Likewise.
25878 * genflags.c (main): Likewise.
25879 * genopinit.c (main): Likewise.
25880 * genoutput.c (main): Likewise.
25881 * genpeep.c (main): Likewise.
25882 * genrecog.c (main): Likewise.
25883 * genpreds.c (main): Likewise.
25884 * gensupport.h (in_fname): Move to read-md.h.
25885 (init_md_reader_args_cb): Rename to...
25886 (init_rtx_reader_args_cb): ...this and return a bool.
25887 (init_md_reader_args): Rename to...
25888 (init_rtx_reader_args): ...this and return a bool.
25889 (include_callback): Move to read-md.h.
25890 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
25891 (file_name_list, first_dir_md_include): Move to read-md.c
25892 (first_bracket_include): Delete unused variable.
25893 (last_dir_md_include): Move to read-md.c.
25894 (process_include): Delete, moving code to read-md.c:handle_include.
25895 (process_rtx): Don't handle INCLUDE.
25896 (save_string): Delete.
25897 (rtx_handle_directive): New function.
25898 (init_md_reader_args_cb): Rename to...
25899 (init_rtx_reader_args_cb): ...this and return a boolean success value.
25900 Use read_md_args.
25901 (init_md_reader_args): Rename to...
25902 (init_rtx_reader_args): ...this and return a boolean success value.
25903 * rtl.def (INCLUDE): Delete.
25904 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
25905 argument.
25906 * read-rtl.c (read_conditions): Don't gobble ')' here.
25907 (read_mapping): Likewise.
25908 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
25909 Handle top-level non-rtx constructs here rather than in read_rtx_1.
25910 Store the whole queue in *X. Remove call to init_md_reader.
25911 (read_rtx_1): Rename to...
25912 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
25913 Don't handle top-level non-rtx constructs here. Don't handle (nil)
25914 here.
25915 (read_nested_rtx): New function. Handle (nil) here rather than
25916 in read_rtx_code.
25917 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
25918 gobble ')' here.
25919 * read-md.h (directive_handler_t): New type.
25920 (in_fname, include_callback): Moved from read-md.h.
25921 (read_constants, init_md_reader): Delete.
25922 (read_md_files): Declare.
25923 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
25924 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
25925 from gensupport.c.
25926 (read_constants): Rename to...
25927 (handle_constants): ...this. Don't gobble ')' here.
25928 (handle_include, handle_file, handle_toplevel_file)
25929 (parse_include): New functions, mostly taken from gensupport.c.
25930 (init_md_reader): Subsume into...
25931 (read_md_files): ...this new function.
25932
25933 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25934
25935 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
25936 (unread_char): Decrement read_md_lineno after putting back '\n'.
25937 * read-md.c (fatal_with_file_and_line): Push back any characters
25938 that we decide not to add to the context.
25939 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
25940 fatal_expected_char in cases where '/' ends a line (for example).
25941 (read_name): Don't increment read_md_lineno here.
25942 (read_escape): Likewise.
25943 (read_quoted_string): Likewise.
25944 (read_braced_string): Likewise.
25945
25946 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25947
25948 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
25949 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
25950 * genconstants.c: Include read-md.h.
25951 * read-rtl.c (md_constants): Move to read-md.c.
25952 (md_name): Move to read-md.h.
25953 (initialize_iterators): Use leading_string_hash instead of def_hash
25954 and leading_string_eq_p instead of def_name_eq_p.
25955 (read_name): Move to read-md.c.
25956 (def_hash, def_name_eq_p): Delete.
25957 (read_constants, traverse_md_constants): Move to read-md.c.
25958 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
25959 * read-md.h: Include hashtab.h.
25960 (md_name): Moved from read-rtl.c.
25961 (md_constant): Moved from read-md.h.
25962 (leading_string_hash, leading_string_eq_p, read_name)
25963 (read_constants, traverse_md_constants): Declare.
25964 * read-md.c (md_constants): Moved from read-rtl.c.
25965 (leading_string_hash, leading_string_eq_p): New functions.
25966 (read_name, read_constants, traverse_md_constants): Moved from
25967 read-rtl.c.
25968
25969 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25970
25971 * read-rtl.c (md_name): New structure.
25972 (read_name): Take an md_name instead of a buffer pointer.
25973 Use the "string" field instead of strcpy when expanding constants.
25974 (read_constants): Remove the tmp_char argument. Update the calls
25975 to read_name, using two local name buffers instead of the tmp_char
25976 argument. Merge the constant-creation code.
25977 (read_conditions): Remove the tmp_char argument. Update the calls
25978 to read_name, using a local name buffer instead of the tmp_char
25979 argument.
25980 (read_mapping): Replace tmp_char variable with a local name buffer.
25981 Update the calls to read_name.
25982 (read_rtx_1): Likewise. Update the calls to read_constants and
25983 read_conditions.
25984
25985 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25986
25987 * Makefile.in (build/read-md.o): Depend on errors.h.
25988 * read-md.h (error_with_line): Declare.
25989 * read-md.c: Include errors.h.
25990 (message_with_line_1): New function, extracted from...
25991 (message_with_line): ...here.
25992 (error_with_line): New function.
25993 * genattrtab.c: If a call to message_with_line is followed by
25994 "have_error = 1;", replace both statements with a call to
25995 error_with_line.
25996 * genoutput.c: Likewise.
25997 * genpreds.c: Likewise.
25998 * genrecog.c: If a call to message_with_line is followed by
25999 "error_count++;", replace both statements with a call to
26000 error_with_line.
26001 (errorcount): Delete.
26002 (main): Don't check it.
26003 * gensupport.c: If a call to message_with_line is followed by
26004 "errors = 1;", replace both statements with a call to error_with_line.
26005 (errors): Delete.
26006 (process_define_cond_exec): Check have_error instead of errors.
26007 (init_md_reader_args_cb): Likewise. Don't set errors.
26008
26009 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
26010
26011 * read-md.h (read_md_file): Declare.
26012 (read_char, unread_char): New functions.
26013 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
26014 (read_quoted_string, read_string): Remove FILE * argument.
26015 * read-md.c (read_md_file): New variable.
26016 (read_md_filename, read_md_lineno): Update comments and remove
26017 unnecessary initialization.
26018 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
26019 (read_escape, read_quoted_string, read_braced_string, read_string):
26020 Remove FILE * argument. Update calls accordingly, using read_char
26021 and unread_char instead of getc and ungetc.
26022 * rtl.h (read_rtx): Remove FILE * argument.
26023 * read-rtl.c (iterator_group): Remove FILE * argument from
26024 "find_builtin".
26025 (iterator_traverse_data): Remove "infile" field.
26026 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
26027 (add_mapping, read_name, read_constants, read_conditions)
26028 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
26029 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
26030 Remove file arguments from all calls, using read_char and unread_char
26031 instead of getc and ungetc.
26032 * gensupport.c (process_include): Preserve read_md_file around
26033 the include. Set read_md_file to the handle of the included file.
26034 Update call to read_rtx.
26035 (init_md_reader_args_cb): Set read_md_file to the handle of the file
26036 and remove local FILE *. Update calls to read_rtx.
26037
26038 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
26039
26040 * read-md.h (read_rtx_lineno): Rename to...
26041 (read_md_lineno): ...this.
26042 (read_rtx_filename): Rename to...
26043 (read_md_filename): ...this.
26044 (copy_rtx_ptr_loc): Rename to...
26045 (copy_md_ptr_loc): ...this.
26046 (print_rtx_ptr_loc): Rename to...
26047 (print_md_ptr_loc): ...this.
26048 * read-md.c: Likewise. Update references after renaming.
26049 (string_obstack): Replace RTL with MD in comment.
26050 (set_rtx_ptr_loc): Rename to...
26051 (set_md_ptr_loc): ...this.
26052 (get_rtx_ptr_loc): Rename to...
26053 (get_md_ptr_loc): ...this.
26054 * genconditions.c: Update references after renaming.
26055 * genemit.c: Likewise.
26056 * genoutput.c: Likewise.
26057 * genpreds.c: Likewise.
26058 * gensupport.c: Likewise.
26059 * read-rtl.c: Likewise.
26060
26061 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
26062
26063 * Makefile.in (READ_MD_H): New variable.
26064 (BUILD_RTL): Add build/read-md.o.
26065 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
26066 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
26067 (build/genattrtab.o, build/genconditions.o build/genemit.o)
26068 (build/genextract.o, build/genflags.o, build/genoutput.o)
26069 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
26070 (build/read-md.o): New rule.
26071 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
26072 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
26073 * coretypes.h: ...here.
26074 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
26075 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
26076 * genattr.c: Include read-md.h.
26077 * genattrtab.c: Likewise.
26078 * genconditions.c: Likewise.
26079 * genemit.c: Likewise.
26080 * genextract.c: Likewise.
26081 * genflags.c: Likewise.
26082 * genoutput.c: Likewise.
26083 * genpreds.c: Likewise.
26084 * genrecog.c: Likewise.
26085 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
26086 (join_c_conditions, print_c_condition, read_rtx_filename)
26087 (read_rtx_lineno): Move to read-md.h.
26088 * read-rtl.c: Include read-md.h.
26089 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
26090 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
26091 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
26092 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
26093 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
26094 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
26095 (read_braced_string, read_string): Move to read-md.c.
26096 (read_rtx): Move some initialization to init_md_reader and call
26097 init_md_reader here.
26098 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
26099 Move to read-md.h.
26100 * gensupport.c: Include read-md.h.
26101 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
26102 * read-md.h, read-md.c: New files.
26103
26104 2010-06-10 Anatoly Sokolov <aesok@post.ru>
26105
26106 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26107 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26108 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
26109 * config/moxie/moxie.c (moxie_function_value): Make static.
26110 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
26111 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26112
26113 2010-06-10 Martin Jambor <mjambor@suse.cz>
26114
26115 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
26116 * dbgcnt.def (tree_sra): New counter.
26117 * tree-sra.c: Include dbgcnt.h.
26118 (gate_intra_sra): Check tree_sra debug counter.
26119
26120 2010-06-10 Martin Jambor <mjambor@suse.cz>
26121
26122 PR tree-optimization/44258
26123 * tree-sra.c (build_access_subtree): Return false iff there is a
26124 partial overlap.
26125 (build_access_trees): Likewise.
26126 (analyze_all_variable_accesses): Disqualify candidates if
26127 build_access_trees returns true for them.
26128
26129 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
26130
26131 PR debug/41371
26132 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
26133 tail-recurse into canonical node. Fast-forward over
26134 non-canonical VALUEs.
26135
26136 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
26137
26138 PR boostrap/44470
26139 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
26140 (*addsi_1_zext) <TYPE_LEA>: Likewise.
26141 (add lea splitter): Likewise.
26142 (add_zext lea splitter): Likewise.
26143
26144 2010-06-10 Joseph Myers <joseph@codesourcery.com>
26145
26146 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
26147
26148 2010-06-10 Jan Hubicka <jh@suse.cz>
26149
26150 * df-problems.c (df_live_problem_data): Add live_bitmaps.
26151 (df_live_alloc): Initialize problem data and live_osbtacks.
26152 (df_live_finalize): Remove obstack, problem data; do not
26153 clear all bitmaps.
26154 (df_live_top_dump, df_live_bottom_dump): Do not dump old
26155 data when not allocated.
26156 (df_live_verify_solution_start): Do not allocate problem data.
26157 (df_live_verify_solution_end): Check if out is allocated.
26158 (struct df_md_problem_data): New structure.
26159 (df_md_alloc): Allocate problem data.
26160 (df_md_free): Free problem data; do not clear bitmaps.
26161
26162 2010-06-10 Jan Beulich <jbeulich@novell.com>
26163
26164 PR bootstrap/37304
26165 * configure.ac: Replace $() with ${} when intending to expand
26166 variables rather than invoking commands.
26167 * configure: Re-generate.
26168
26169 2010-06-10 Jan Hubicka <jh@suse.cz>
26170
26171 PR rtl-optimization/44460
26172 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
26173 TYPE_NEEDS_CONSTRUCTING sanity check.
26174
26175 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
26176
26177 * doc/include/fdl.texi: Move to GFDL version 1.3.
26178
26179 * doc/cpp.texi: Move to GFDL version 1.3.
26180 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
26181 * doc/gccint.texi: Move to GFDL version 1.3.
26182 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
26183 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
26184 * doc/invoke.texi: Move to GFDL version 1.3.
26185
26186 2010-06-09 Jan Hubicka <jh@suse.cz>
26187
26188 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
26189 Break out from ...
26190 (propagate) ... here; swap the order.
26191
26192 2010-06-09 Jan Hubicka <jh@suse.cz>
26193
26194 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
26195 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
26196 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
26197 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
26198
26199 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
26200
26201 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
26202 Do not the gather memory reference in the outer loop if the step
26203 is not a constant.
26204
26205 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
26206
26207 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
26208 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
26209 8 to 4. Minor change of the related comments.
26210
26211 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
26212
26213 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
26214 the scev analysis when the variable is not used outside the loop
26215 in a close phi node: call compute_overall_effect_of_inner_loop.
26216
26217 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
26218
26219 * graphite-sese-to-poly.c (single_pred_cond): Renamed
26220 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
26221 (build_sese_conditions_before): Renamed call to single_pred_cond.
26222 (build_sese_conditions_after): Same.
26223
26224 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
26225
26226 * graphite-poly.h: Fix comments and indentation.
26227 * graphite-sese-to-poly.c: Same.
26228 (build_sese_conditions_before): Compute stmt and gbb only when needed.
26229 * tree-chrec.c: Fix comments and indentation.
26230 (tree-ssa-loop-niter.c): Same.
26231
26232 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
26233
26234 PR rtl-optimization/42461
26235 * dce.c (deletable_insn_p): Return true for const or pure calls again.
26236 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
26237
26238 2010-06-09 Jan Hubicka <jh@suse.cz>
26239
26240 * bitmap.c (bitmap_and): Walk array forward.
26241 (bitmap_and_compl_into): Likewise.
26242 (bitmap_xor): Likewise.
26243 (bitmap_xor_into): Likewise.
26244 (bitmap_equal_p): Likewise.
26245 (bitmap_intersect_p): Likewise.
26246 (bitmap_intersect_compl_p): Likewise.
26247 (bitmap_ior_and_into): Likewise.
26248 (bitmap_elt_copy): Likewise.
26249 (bitmap_and_compl): Likewise.
26250 (bitmap_elt_ior): Likewise.
26251
26252 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
26253
26254 * opts-common.c (prune_options): Ensure replacement argv array
26255 is correctly terminated by a NULL entry.
26256
26257 2010-06-09 Jan Hubicka <jh@suse.cz>
26258
26259 * cgraph.h (varpool_first_static_initializer,
26260 varpool_next_static_initializer): Make checking only when
26261 checking enabled.
26262 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
26263 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
26264 gcc_assert to gcc_checking_assert.
26265 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
26266 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
26267 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
26268 op_iter_init_phiuse, op_iter_init_phidef,
26269 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
26270 gcc_checking_assert.
26271 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
26272 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
26273 partition_is_global, live_on_entry, live_on_exit,
26274 live_merge_and_clear): Likewise.
26275 * system.h (gcc_checking_assert): New macro.
26276 * gimple.h (set_bb_seq): Use gcc_checking_assert.
26277
26278 2010-06-09 Jason Merrill <jason@redhat.com>
26279
26280 * Makefile.in (TAGS): Collect tags info from c-family.
26281
26282 2010-06-09 Jan Hubicka <jh@suse.cz>
26283
26284 * gimple.h (gcc_gimple_checking_assert): New macro.
26285 (gimple_set_def_ops, gimple_set_use_ops,
26286 gimple_set_vuse, gimple_set_vdef,
26287 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
26288 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
26289 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
26290 gimple_asm_output_op, gimple_asm_output_op_ptr,
26291 gimple_asm_set_output_op, gimple_asm_clobber_op,
26292 gimple_asm_set_clobber_op, gimple_asm_label_op,
26293 gimple_asm_set_label_op, gimple_try_set_kind,
26294 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
26295 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
26296 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
26297 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
26298 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
26299 gimple_omp_for_set_initial, gimple_omp_for_final,
26300 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
26301 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
26302 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
26303 conditional with ENABLE_GIMPLE_CHECKING.
26304 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
26305
26306 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
26307
26308 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
26309 (get_computation_cost_at): Use it.
26310 (determine_use_iv_cost_condition): Likewise.
26311 (determine_iv_cost): Likewise.
26312
26313 2010-06-09 Richard Guenther <rguenther@suse.de>
26314
26315 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
26316 replace constants.
26317
26318 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
26319
26320 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
26321
26322 2010-06-09 Martin Jambor <mjambor@suse.cz>
26323
26324 PR tree-optimization/44423
26325 * tree-sra.c (dump_access): Dump also grp_assignment_read.
26326 (analyze_access_subtree): Pass negative allow_replacements to children
26327 if the current type is scalar.
26328
26329 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
26330
26331 PR testsuite/42843
26332 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
26333 * doc/plugins.texi (Plugin license check): Update information
26334 on type of plugin_is_GPL_compatible.
26335 * Makefile.in (PLUGINCC): Define as $(COMPILER).
26336 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
26337
26338 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
26339
26340 * config/arm/arm.c (thumb2_reorg): New function.
26341 (arm_reorg): Call it.
26342 * config/arm/thumb2.md (define_peephole2 for flag clobbering
26343 arithmetic operations): Delete.
26344
26345 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
26346
26347 PR target/44067
26348 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
26349 e500v2 target.
26350
26351 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
26352
26353 PR plugins/44459
26354 * gcc-plugin.h: Encapsulate all declarations in extern "C".
26355
26356 2010-06-08 Jan Hubicka <jh@suse.cz>
26357
26358 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
26359 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
26360
26361 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
26362
26363 PR tree-optimization/39874
26364 PR middle-end/28685
26365 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
26366 Declare.
26367 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
26368 same_bool_result_p): New.
26369 (and_var_with_comparison, and_var_with_comparison_1,
26370 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
26371 (or_var_with_comparison, or_var_with_comparison_1,
26372 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
26373 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
26374 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
26375 of combine_comparisons.
26376 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
26377
26378 2010-06-08 Anatoly Sokolov <aesok@post.ru>
26379
26380 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26381 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26382 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
26383 pdp11_function_value_regno_p): New functions.
26384 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26385 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26386
26387 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
26388
26389 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
26390 Thumb-2 in the MINUS case.
26391
26392 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26393
26394 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
26395
26396 * doc/gty.texi (GTY Options): Document typed GC allocation and
26397 variable_size GTY option.
26398
26399 * ggc-internal.h: New.
26400
26401 * ggc.h: Update copyright year.
26402 (digit_string): Move to stringpool.c.
26403 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
26404 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
26405 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
26406 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
26407 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
26408 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
26409 (ggc_force_collect, ggc_get_size, ggc_statistics)
26410 (ggc_print_common_statistics): Move to ggc-internal.h.
26411 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
26412 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
26413 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
26414 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
26415 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
26416 (ggc_alloc_zone_pass_stat): Remove.
26417 (ggc_internal_alloc_stat, ggc_internal_alloc)
26418 (ggc_internal_cleared_alloc_stat): New.
26419 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
26420 (ggc_internal_vec_alloc_stat)
26421 (ggc_internal_cleared_vec_alloc_stat)
26422 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
26423 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
26424 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
26425 (ggc_cleared_alloc_ptr_array_two_args): New.
26426 (htab_create_ggc, splay_tree_new_ggc): Redefine.
26427 (ggc_splay_alloc): Change the type of the first argument to
26428 enum gt_types_enum.
26429 (ggc_alloc_string): Make macro.
26430 (ggc_alloc_string_stat): New.
26431 (ggc_strdup): Redefine.
26432 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
26433 (ggc_alloc_rtvec_sized): New.
26434 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
26435 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
26436 (ggc_internal_cleared_alloc_zone_stat)
26437 (ggc_internal_zone_alloc_stat)
26438 (ggc_internal_zone_cleared_alloc_stat)
26439 (ggc_internal_zone_vec_alloc_stat)
26440 (ggc_alloc_zone_rtx_def_stat)
26441 (ggc_alloc_zone_tree_node_stat)
26442 (ggc_alloc_zone_cleared_tree_node_stat)
26443 (ggc_alloc_cleared_gimple_statement_d_stat): New.
26444
26445 * ggc-common.c: Include ggc-internal.h.
26446 (ggc_internal_cleared_alloc_stat): Rename from
26447 ggc_alloc_cleared_stat.
26448 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
26449 (ggc_calloc): Remove.
26450 (ggc_cleared_alloc_htab_ignore_args): New.
26451 (ggc_cleared_alloc_ptr_array_two_args): New.
26452 (ggc_splay_alloc): Add obj_type parameter.
26453 (init_ggc_heuristics): Formatting fixes.
26454
26455 * ggc-none.c: Update copyright year.
26456 (ggc_alloc_stat): Rename to ggc_alloc_stat.
26457 (ggc_alloc_cleared_stat): Rename to
26458 ggc_internal_cleared_alloc_stat.
26459 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
26460
26461 * ggc-page.c: Update copyright year. Include ggc-internal.h.
26462 Remove references to ggc_alloc in comments.
26463 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
26464 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
26465 (new_ggc_zone, destroy_ggc_zone): Remove.
26466 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
26467
26468 * ggc-zone.c: Include ggc-internal.h. Remove references to
26469 ggc_alloc in comments.
26470 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
26471 (ggc_internal_alloc_zone_pass_stat): New.
26472 (ggc_internal_cleared_alloc_zone_stat): New.
26473 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
26474 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
26475 (new_ggc_zone, destroy_ggc_zone): Remove.
26476
26477 * stringpool.c: Update copyright year. Include ggc-internal.h
26478 (digit_vector): Make static.
26479 (digit_string): Moved from ggc.h.
26480 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
26481 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
26482
26483 * Makefile.in (GGC_INTERNAL_H): New.
26484 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
26485 $(GGC_INTERNAL_H) to dependencies.
26486
26487 * gengtype.c: Update copyright year.
26488 (walk_type): Accept variable_size GTY option.
26489 (USED_BY_TYPED_GC_P): New macro.
26490 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
26491 whitespace at the end of strings.
26492 (get_type_specifier, variable_size_p): New functions.
26493 (alloc_quantity, alloc_zone): New enums.
26494 (write_typed_alloc_def): New function.
26495 (write_typed_struct_alloc_def): Likewise.
26496 (write_typed_typed_typedef_alloc_def): Likewise.
26497 (write_typed_alloc_defns): Likewise.
26498 (output_typename, write_splay_tree_allocator_def): Likewise.
26499 (write_splay_tree_allocators): Likewise.
26500 (main): Call write_typed_alloc_defns and
26501 write_splay_tree_allocators.
26502
26503 * lto-streamer.h (lto_file_decl_data_ptr): New.
26504
26505 * passes.c (order): Define using cgraph_node_ptr.
26506
26507 * strinpool.c (struct string_pool_data): Declare nested_ptr using
26508 ht_identifier_ptr.
26509
26510 * gimple.h (union gimple_statement_d): Likewise.
26511
26512 * rtl.h (struct rtx_def): Likewise.
26513 (struct rtvec_def): Likewise.
26514
26515 * tree.h (union tree_node): Likewise.
26516
26517 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
26518
26519 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
26520
26521 * tree-scalar-evolution.c (scev_initialize): Likewise.
26522
26523 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
26524
26525 * dwarf2asm.c (dw2_force_const_mem): Likewise.
26526
26527 * omp-low.c (lower_omp_critical): Likewise.
26528
26529 * bitmap.h (struct bitmap_head_def): Update comment to not
26530 reference ggc_alloc.
26531
26532 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
26533
26534 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
26535
26536 * ipa-prop.c (duplicate_ggc_array): Rename to
26537 duplicate_ipa_jump_func_array. Use typed GC allocation.
26538 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
26539
26540 * gimple.c (gimple_alloc_stat): Use
26541 ggc_alloc_cleared_gimple_statement_d_stat.
26542
26543 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
26544
26545 * tree.c (make_node_stat): Use
26546 ggc_alloc_zone_cleared_tree_node_stat.
26547 (make_tree_vec_stat): Likewise.
26548 (build_vl_exp_stat): Likewise.
26549 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
26550 (make_tree_binfo_stat): Likewise.
26551 (tree_cons_stat): Likewise.
26552
26553 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
26554 (shallow_copy_rtx_stat): Likewise.
26555 (make_node_stat): Likewise.
26556
26557 * lto-symtab.c: Fix comment.
26558
26559 * tree-cfg.c (create_bb): Update comment to not reference
26560 ggc_alloc_cleared.
26561 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
26562
26563 * varpool.c (varpool_node): Use typed GC allocation.
26564 (varpool_extra_name_alias): Likewise.
26565
26566 * varasm.c (emutls_decl): Likewise.
26567 (get_unnamed_section): Likewise.
26568 (get_noswitch_section): Likewise.
26569 (get_section): Likewise.
26570 (get_block_for_section): Likewise.
26571 (build_constant_desc): Likewise.
26572 (create_constant_pool): Likewise.
26573 (force_const_mem): Likewise.
26574
26575 * tree.c (build_vl_exp_stat): Likewise.
26576 (build_real): Likewise.
26577 (build_string): Likewise.
26578 (decl_debug_expr_insert): Likewise.
26579 (decl_value_expr_insert): Likewise.
26580 (type_hash_add): Likewise.
26581 (build_omp_clause): Likewise.
26582
26583 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
26584
26585 * tree-ssa.c (init_tree_ssa): Likewise.
26586
26587 * tree-ssa-structalias.c (heapvar_insert): Likewise.
26588
26589 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
26590
26591 * tree-ssa-loop-niter.c (record_estimate): Likewise.
26592
26593 * tree-ssa-alias.c (get_ptr_info): Likewise.
26594
26595 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
26596
26597 * tree-phinodes.c (allocate_phi_node): Likewise.
26598
26599 * tree-iterator.c (tsi_link_before): Likewise.
26600 (tsi_link_after): Likewise.
26601
26602 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
26603
26604 * tree-dfa.c (create_var_ann): Likewise.
26605
26606 * tree-cfg.c (create_bb): Likewise.
26607
26608 * toplev.c (alloc_for_identifier_to_locale): Likewise.
26609 (general_init): Likewise.
26610
26611 * stringpool.c (stringpool_ggc_alloc): Likewise.
26612 (gt_pch_save_stringpool): Likewise.
26613
26614 * sese.c (if_region_set_false_region): Likewise.
26615
26616 * passes.c (do_per_function_toporder): Likewise.
26617
26618 * optabs.c (set_optab_libfunc): Likewise.
26619 (set_conv_libfunc): Likewise.
26620
26621 * lto-symtab.c (lto_symtab_register_decl): Likewise.
26622
26623 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
26624 (input_eh_region): Likewise.
26625 (input_eh_lp): Likewise.
26626 (make_new_block): Likewise.
26627 (unpack_ts_real_cst_value_fields): Likewise.
26628
26629 * lto-section-in.c (lto_new_in_decl_state): Likewise.
26630
26631 * lto-cgraph.c (input_node_opt_summary): Likewise.
26632
26633 * loop-init.c (loop_optimizer_init): Likewise.
26634
26635 * lambda.h (lambda_vector_new): Likewise.
26636
26637 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
26638
26639 * ira.c (update_equiv_regs): Likewise.
26640
26641 * ipa.c (cgraph_node_set_new): Likewise.
26642 (cgraph_node_set_add): Likewise.
26643 (varpool_node_set_new): Likewise.
26644 (varpool_node_set_add): Likewise.
26645
26646 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
26647 (duplicate_ipa_jump_func_array): Likewise.
26648 (ipa_read_node_info): Likewise.
26649
26650 * ipa-cp.c (ipcp_create_replace_map): Likewise.
26651
26652 * integrate.c (get_hard_reg_initial_val): Likewise.
26653
26654 * gimple.c (gimple_alloc_stat): Likewise.
26655 (gimple_build_omp_for): Likewise.
26656 (gimple_seq_alloc): Likewise.
26657 (gimple_copy): Likewise.
26658
26659 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
26660 (gsi_insert_after_without_update): Likewise.
26661
26662 * function.c (add_frame_space): Likewise.
26663 (insert_temp_slot_address): Likewise.
26664 (assign_stack_temp_for_type): Likewise.
26665 (allocate_struct_function): Likewise.
26666 (types_used_by_var_decl_insert): Likewise.
26667
26668 * except.c (init_eh_for_function): Likewise.
26669 (gen_eh_region): Likewise.
26670 (gen_eh_region_catch): Likewise.
26671 (gen_eh_landing_pad): Likewise.
26672 (add_call_site): Likewise.
26673
26674 * emit-rtl.c (get_mem_attrs): Likewise.
26675 (get_reg_attrs): Likewise.
26676 (start_sequence): Likewise.
26677 (init_emit): Likewise.
26678
26679 * dwarf2out.c (new_cfi): Likewise.
26680 (queue_reg_save): Likewise.
26681 (dwarf2out_frame_init): Likewise.
26682 (new_loc_descr): Likewise.
26683 (find_AT_string): Likewise.
26684 (new_die): Likewise.
26685 (add_var_loc_to_decl): Likewise.
26686 (clone_die): Likewise.
26687 (clone_as_declaration): Likewise.
26688 (break_out_comdat_types): Likewise.
26689 (new_loc_list): Likewise.
26690 (loc_descriptor): Likewise.
26691 (add_loc_descr_to_each): Likewise.
26692 (add_const_value_attribute): Likewise.
26693 (tree_add_const_value_attribute): Likewise.
26694 (add_comp_dir_attribute): Likewise.
26695 (add_name_and_src_coords_attributes): Likewise.
26696 (lookup_filename): Likewise.
26697 (store_vcall_insn): Likewise.
26698 (dwarf2out_init): Likewise.
26699
26700 * dbxout.c (dbxout_init): Likewise.
26701
26702 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
26703
26704 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
26705
26706 * config/score/score7.c (score7_output_external): Likewise.
26707
26708 * config/score/score3.c (score3_output_external): Likewise.
26709
26710 * config/s390/s390.c (s390_init_machine_status): Likewise.
26711
26712 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
26713 (rs6000_init_machine_status): Likewise.
26714 (output_toc): Likewise.
26715
26716 * config/pa/pa.c (pa_init_machine_status): Likewise.
26717 (get_deferred_plabel): Likewise.
26718
26719 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
26720
26721 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
26722
26723 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
26724
26725 * config/mep/mep.c (mep_init_machine_status): Likewise.
26726 (mep_note_pragma_flag): Likewise.
26727
26728 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
26729
26730 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
26731
26732 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
26733
26734 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
26735 (i386_pe_maybe_record_exported_symbol): Likewise.
26736
26737 * config/i386/i386.c (get_dllimport_decl): Likewise.
26738 (ix86_init_machine_status): Likewise.
26739 (assign_386_stack_local): Likewise.
26740
26741 * config/frv/frv.c (frv_init_machine_status): Likewise.
26742
26743 * config/darwin.c (machopic_indirection_name): Likewise.
26744
26745 * config/cris/cris.c (cris_init_machine_status): Likewise.
26746
26747 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
26748
26749 * config/avr/avr.c (avr_init_machine_status): Likewise.
26750
26751 * config/arm/arm.c (arm_init_machine_status): Likewise.
26752
26753 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
26754 (alpha_need_linkage): Likewise.
26755 (alpha_use_linkage): Likewise.
26756
26757 * cgraph.c (cgraph_allocate_node): Likewise.
26758 (cgraph_create_edge_1): Likewise.
26759 (cgraph_create_indirect_edge): Likewise.
26760 (cgraph_add_asm_node): Likewise.
26761
26762 * cfgrtl.c (init_rtl_bb_info): Likewise.
26763
26764 * cfgloop.c (alloc_loop): Likewise.
26765 (rescan_loop_exit): Likewise.
26766
26767 * cfg.c (init_flow): Likewise.
26768 (alloc_block): Likewise.
26769 (unchecked_make_edge): Likewise.
26770
26771 * c-parser.c (c_parse_init): Likewise.
26772 (c_parse_file): Likewise.
26773
26774 * c-decl.c (bind): Likewise.
26775 (record_inline_static): Likewise.
26776 (push_scope): Likewise.
26777 (make_label): Likewise.
26778 (lookup_label_for_goto): Likewise.
26779 (finish_struct): Likewise.
26780 (finish_enum): Likewise.
26781 (c_push_function_context): Likewise.
26782
26783 * bitmap.c (bitmap_element_allocate): Likewise.
26784 (bitmap_gc_alloc_stat): Likewise.
26785
26786 * alias.c (record_alias_subset): Likewise.
26787 (init_alias_analysis): Likewise.
26788
26789 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
26790
26791 * fold-const.c (fold_comparison): Remove redundant parenthesis.
26792 * tree-inline.c (expand_call_inline): Pass translated return value of
26793 cgraph_inline_failed_string to diagnostic function.
26794
26795 2010-06-08 Andrew Pinski <pinskia@gmail.com>
26796 Shujing Zhao <pearly.zhao@oracle.com>
26797
26798 PR c/37724
26799 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
26800 implicit bad conversions is initialization.
26801 (error_init): Use gmsgid instead of msgid for argument name and change
26802 the call for error.
26803 (pedwarn_init): Use gmsgid instead of msgid for argument name and
26804 change the call for pedwarn.
26805 (warning_init): Use gmsgid instead of msgid for argument name and
26806 change the call for warning.
26807
26808 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
26809
26810 * config/mips/mips-protos.h (mips_print_operand): Delete.
26811 (mips_print_operand_address): Delete.
26812 * config/mips/mips.h (mips_print_operand_punct): Delete.
26813 (PRINT_OPERAND): Delete.
26814 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26815 (PRINT_OPERAND_ADDRESS): Delete.
26816 * config/mips/mips.c (mips_print_operand_punct): Make static.
26817 (mips_print_operand_address): Make static.
26818 (mips_print_operand): Make static. Call
26819 mips_print_operand_punct_valid_p.
26820 (mips_print_operand_punct_valid_p): New function.
26821 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26822 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26823
26824 2010-06-07 Jan Hubicka <jh@suse.cz>
26825
26826 PR middle-end/44454
26827 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
26828 are allocated.
26829
26830 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
26831
26832 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
26833 name of RECORD.
26834
26835 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26836
26837 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26838 attributes): Document gas.
26839
26840 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
26841
26842 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
26843 <TYPE_LEA>: Split instruction.
26844 <default>: Remove alternative 2 handling.
26845 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
26846 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
26847 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
26848
26849 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
26850 (ashift_zext lea splitter): Use DImode for multiplication.
26851
26852 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
26853 to generate addition.
26854
26855 2010-06-07 Joseph Myers <joseph@codesourcery.com>
26856
26857 * common.opt (fira-verbose): Use Var.
26858 (fpcc-struct-return): Use Init instead of VarExists.
26859 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
26860 toplev.c.
26861 * flags.h (flag_signed_char, flag_short_enums,
26862 flag_pcc_struct_return, flag_ira_verbose,
26863 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
26864 * toplev.c (flag_detailed_statistics, flag_signed_char,
26865 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
26866 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
26867 * toplev.h (flag_crossjumping, flag_if_conversion,
26868 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
26869 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
26870 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
26871 flag_cprop_registers, time_report, flag_ira_loop_pressure,
26872 flag_ira_coalesce, flag_ira_move_spills,
26873 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
26874
26875 2010-06-07 Jan Hubicka <jh@suse.cz>
26876
26877 * df-core.c (df_analyze_problem): Do verification after allocation.
26878
26879 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
26880 (df_lr_alloc): Initialize problem data; move bitmaps to
26881 lr_bitmaps obstack.
26882 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
26883 (df_lr_verify_solution_start): Do not initialize problem data;
26884 allocate bitmaps in lr_bitmaps.
26885 (df_lr_verify_solution_end): Do not free problem data.
26886
26887 2010-06-07 Jan Hubicka <jh@suse.cz>
26888
26889 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
26890 if caller is noreturn.
26891 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
26892 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
26893 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
26894 * ipa-pure-const.c (check_decl): Add IPA parameter.
26895 (state_from_flags): New function.
26896 (better_state, worse_state): New functions.
26897 (check_call): When in IPA mode, do not care about callees.
26898 (check_load, check_store): Update.
26899 (check_ipa_load, check_ipa_store): New.
26900 (check_stmt): When in IPA mode, use IPA checkers.
26901 (analyze_function): Use state_from_flags.
26902 (propagate): Check indirect edges and references.
26903
26904 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
26905
26906 PR rtl-optimization/44404
26907 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
26908 of count_occurrences to see if it's safe to modify mem_insn.
26909
26910 2010-06-07 Richard Guenther <rguenther@suse.de>
26911
26912 * gimplify.c (gimplify_cleanup_point_expr): For empty body
26913 and EH-only cleanup drop the cleanup instead of inserting it
26914 unconditionally.
26915
26916 2010-06-07 Ira Rosen <irar@il.ibm.com>
26917
26918 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
26919 documentation.
26920 * targhooks.c (default_builtin_vectorization_cost): New function.
26921 * targhooks.h (default_builtin_vectorization_cost): Declare.
26922 * target.h (enum vect_cost_for_stmt): Define.
26923 (builtin_vectorization_cost): Change argument and comment.
26924 * tree-vectorizer.h: Remove cost model macros.
26925 * tree-vect-loop.c: Include target.h.
26926 (vect_get_cost): New function.
26927 (vect_estimate_min_profitable_iters): Replace cost model macros with
26928 calls to vect_get_cost.
26929 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
26930 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
26931 default implementation.
26932 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
26933 calls to target hook builtin_vectorization_cost.
26934 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
26935 Likewise.
26936 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
26937 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
26938 implementation to return costs.
26939 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
26940 * config/spu/spu.h: Remove vectorizer cost model macros.
26941 * config/i386/i386.h: Likewise.
26942 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
26943 a call to target hook builtin_vectorization_cost.
26944
26945 2010-06-06 Sriraman Tallam <tmsriram@google.com>
26946
26947 PR target/44319
26948 * config/i386/i386.c (override_options): Turn zee pass on for level 2
26949 and above and defer till target is known.
26950 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
26951 turn off otherwise.
26952
26953 2010-05-25 Jan Hubicka <jh@suse.cz>
26954
26955 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
26956 (df_compact_blocks): Likewise.
26957 * df.h (struct df): Turn hardware_regs_used,
26958 regular_block_artificial_uses, eh_block_artificial_uses,
26959 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
26960 bitmap_head.
26961 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
26962 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
26963 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
26964 df_scan_blocks, df_insn_delete, df_insn_rescan,
26965 df_insn_rescan_debug_internal, df_insn_rescan_all,
26966 df_process_deferred_rescans, df_process_deferred_rescans,
26967 df_notes_rescan, df_get_call_refs, df_get_call_refs,
26968 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
26969 df_record_entry_block_defs, df_record_exit_block_uses,
26970 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
26971 df_scan_verify): Update.
26972
26973 2010-05-25 Dodji Seketeli <dodji@redhat.com>
26974
26975 PR c++/44188
26976 * c-common.c (is_typedef_decl): Move this definition ...
26977 * tree.c (is_typedef_decl): ... here.
26978 (typdef_variant_p): Move definition here from cp/tree.c.
26979 * c-common.h (is_typedef_decl): Move this declaration ...
26980 * tree.h (is_typedef_decl): ... here.
26981 (typedef_variant_p): Move declaration here from cp/cp-tree.h
26982 * dwarf2out.c (is_naming_typedef_decl): New function.
26983 (gen_tagged_type_die): Split out of ...
26984 (gen_type_die_with_usage): ... this function. When an anonymous
26985 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26986 is emitted for the typedef.
26987 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26988 anonymous tagged types.
26989
26990 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
26991
26992 PR c/20000
26993 * c-decl.c (grokdeclarator): Delete warning.
26994
26995 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
26996
26997 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
26998 newly built CALL_EXPR.
26999 * tree-profile.c (tree_profiling): Don't profile functions produced
27000 for built-in stuff.
27001
27002 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
27003
27004 PR bootstrap/44427
27005 PR bootstrap/44428
27006 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
27007 endianness-independent.
27008
27009 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
27010
27011 * c-common.c: Move to c-family/.
27012 * c-common.def: Likewise.
27013 * c-common.h: Likewise.
27014 * c-cppbuiltin.c: Likewise.
27015 * c-dump.c: Likewise.
27016 * c-format.c: Likewise.
27017 * c-format.h : Likewise.
27018 * c-gimplify.c: Likewise.
27019 * c-lex.c: Likewise.
27020 * c-omp.c: Likewise.
27021 * c.opt: Likewise.
27022 * c-opts.c: Likewise.
27023 * c-pch.c: Likewise.
27024 * c-ppoutput.c: Likewise.
27025 * c-pragma.c: Likewise.
27026 * c-pragma.h: Likewise.
27027 * c-pretty-print.c: Likewise.
27028 * c-pretty-print.h: Likewise.
27029 * c-semantics.c: Likewise.
27030 * stub-objc.c: Likewise.
27031
27032 * gengtype.c (get_file_langdir): Special-case files in c-family/.
27033 (get_output_file_with_visibility): Fix name for c-common.h.
27034 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
27035
27036 * c-tree.h: Update include path for moved files.
27037 * c-lang.c: Likewise.
27038 * c-lang.h: Likewise.
27039 * c-parser.c: Likewise.
27040 * c-convert.c: Likewise.
27041 * c-decl.c: Likewise.
27042 * c-objc-common.c: Likewise.
27043 * configure.ac: Make sure c-family/ exists in the build directory.
27044 * configure: Regenerate.
27045 * Makefile.in: Update paths for moved files. Regroup files per
27046 location and update dependencies. Move generated_files down after
27047 ALL_GTFILES_H.
27048
27049 * config/spu/spu-c.c: Update paths for moved files.
27050 * config/mep/mep-pragma.c: Likewise.
27051 * config/darwin-c.c: Likewise.
27052 * config/i386/msformat-c.c: Likewise.
27053 * config/i386/i386-c.c: Likewise.
27054 * config/avr/avr-c.c: Likewise.
27055 * config/sol2-c.c: Likewise.
27056 * config/ia64/ia64-c.c: Likewise.
27057 * config/rs6000/rs6000-c.c: Likewise.
27058 * config/arm/arm.c: Likewise.
27059 * config/arm/arm-c.c: Likewise.
27060 * config/h8300/h8300.c: Likewise.
27061 * config/v850/v850-c.c: Likewise.
27062
27063 * config/t-darwin: Fix dependencies for moved files.
27064 * config/t-sol2: Fix dependencies for moved files.
27065 * config/mep/t-mep: Fix dependencies for moved files.
27066 * config/ia64/t-ia64: Fix dependencies for moved files.
27067 * config/rs6000/t-rs6000: Fix dependencies for moved files.
27068 * config/v850/t-v850: Fix dependencies for moved files.
27069 * config/v850/t-v850e: Fix dependencies for moved files.
27070
27071 * config/m32c/m32c-pragma.c
27072
27073 * po/exgettext: Look in c-family/ also.
27074
27075 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
27076
27077 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
27078 (mark_control_dependent_edges_necessary): Call it instead of marking
27079 the last statement manually.
27080 (propagate_necessity): Likewise.
27081
27082 2010-06-05 Jan Hubicka <jh@suse.cz>
27083
27084 * basic-block.h (compute_dominance_frontiers): Updated.
27085 (compute_idf): Likewise.
27086
27087 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
27088 for dominance frontiers.
27089 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
27090 (insert_updated_phi_nodes_for): Likewise.
27091 (update_ssa): Likewise.
27092 * cfganal.c (compute_dominance_frontiers_1): Likewise.
27093 (compute_dominance_frontiers): Likewise.
27094 (compute_idf): Likewise.
27095 * df-problems.c (df_md_local_compute): Likewise.
27096
27097 2010-06-05 Anatoly Sokolov <aesok@post.ru>
27098
27099 * target.h (struct gcc_target): Add memory_move_cost field.
27100 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
27101 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
27102 * targhooks.c (default_memory_move_cost): New function.
27103 * targhooks.h (default_memory_move_cost): Declare function.
27104 * reload.h (memory_move_cost): Declare.
27105 (memory_move_secondary_cost): Change type of 'in' argument to bool.
27106 * reginfo.c (memory_move_cost): New function.
27107 (memory_move_secondary_cost): Change type of 'in' argument to bool.
27108 * ira.h (ira_memory_move_cost): Update comment.
27109 * ira.c (ira_memory_move_cost): Update comment.
27110 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
27111 with memory_move_cost.
27112 * postreload.c (reload_cse_simplify_set): (Ditto.).
27113 * reload1.c (choose_reload_regs): (Ditto.).
27114 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
27115 (MEMORY_MOVE_COST): Revise documentation.
27116
27117 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
27118 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
27119 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
27120 type of 'in' argument to bool.
27121 (TARGET_MEMORY_MOVE_COST): Define.
27122
27123 2010-06-05 Jan Hubicka <jh@suse.cz>
27124
27125 * ipa-pure-const.c (propagate): Fix typo in handling of functions
27126 that cannot return. Be more careful when merging the results with
27127 previously known ones.
27128
27129 2010-06-05 Matthias Klose <doko@ubuntu.com>
27130
27131 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
27132 function to add the -iplugindir option.
27133 (find_plugindir_spec_function): Add new declaration and function.
27134 (static_spec_func): Use it for "find-plugindir".
27135
27136 2010-06-05 Jakub Jelinek <jakub@redhat.com>
27137
27138 PR c++/44361
27139 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
27140 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
27141 statement expression.
27142
27143 2010-06-05 Jan Hubicka <jh@suse.cz>
27144
27145 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
27146 (df_rd_problem_data): Convert sparse_invalidated_by_call,
27147 dense_invalidated_by_call to bitmap head.
27148 (df_rd_alloc, df_rd_bb_local_compute_process_def,
27149 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
27150 df_rd_start_dump, df_lr_verify_transfer_functions,
27151 df_live_verify_transfer_functions, df_chain_create_bb,
27152 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
27153 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
27154 df_simulate_one_insn_forwards, df_md_alloc,
27155 df_md_bb_local_compute_process_def,
27156 df_md_bb_local_compute_process_def, df_md_local_compute,
27157 df_md_transfer_function df_md_free): Update.
27158
27159 2010-06-05 Joseph Myers <joseph@codesourcery.com>
27160
27161 PR c/44322
27162 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
27163 target type for ADDR_EXPR; require no changes to qualifiers except
27164 for function types.
27165 * c-tree.h (c_build_type_variant): Remove.
27166
27167 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
27168
27169 * genautomata.c (get_excl_set): Do work per element, not per char.
27170 (check_presence_pattern_sets): Similar.
27171 (check_absence_pattern_sets): Similar.
27172
27173 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
27174
27175 * genautomata.c (curr_state_pass_num): Delete.
27176 (min_issue_delay_pass_states): Delete.
27177 (min_issue_delay): Delete.
27178 (initiate_min_issue_delay_pass_states): Delete.
27179 (output_min_issue_delay_table): Compute min_issue_delay_vect
27180 using a breadth-first search variant.
27181 (output_tables): Don't call initiate_min_issue_delay_pass_states.
27182
27183 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
27184
27185 PR boostrap/44421
27186 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
27187 (df_byte_lr_bb_local_compute): Likewise.
27188
27189 2010-06-03 Jason Merrill <jason@redhat.com>
27190
27191 Implement noexcept operator (5.3.7)
27192 * c-common.c (c_common_reswords): Add noexcept.
27193 * c-common.h (enum rid): Add RID_NOEXCEPT.
27194
27195 2010-06-04 Joseph Myers <joseph@codesourcery.com>
27196
27197 * config/darwin-driver.c (darwin_default_min_version): Use
27198 GCC-specific formats in diagnostics.
27199 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
27200 diagnostics.
27201 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
27202 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
27203 eval_spec_function, handle_braces, process_brace_body, main,
27204 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
27205 getenv_spec_function, compare_version_strings,
27206 version_compare_spec_function): Use GCC-specific formats in
27207 diagnostics.
27208
27209 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
27210
27211 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
27212 that operand 0 and operand 1 are equal.
27213 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
27214 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
27215 and operand 1 are equal.
27216 <default>: Ditto. Remove ??? comment.
27217 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
27218 and operand 1 are equal.
27219 <default>: Ditto. Remove ??? comment.
27220 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
27221 are equal.
27222 (*add<mode>_4) <default>: Ditto.
27223 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
27224
27225 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
27226
27227 * config/i386/i386-protos.h (ix86_print_operand): Declare.
27228 * config/i386/i386.c (ix86_print_operand): Make non-static.
27229 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
27230 * output.h (output_operand): Declare.
27231 * final.c (output_operand): Make non-static.
27232
27233 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
27234
27235 PR rtl-optimization/44013
27236 * sched-deps.c (add_dependence_list_and_free): Don't free lists
27237 when processing debug insns.
27238
27239 PR debug/41371
27240 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
27241 recursing. Check that recursion is bounded. Rename inner var
27242 to avoid hiding incoming argument.
27243
27244 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
27245
27246 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
27247 operands[2] == 255.
27248 (*addqi_3): Ditto.
27249 (*addqi_4): Ditto.
27250 (*addqi_5): Ditto.
27251 (*addqi_ext_1_rex64): Ditto.
27252 (*addqi_ext_1): Ditto.
27253
27254 (*addqi_4): Check for incdec_operand in QImode.
27255
27256 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
27257 using SWI mode iterator.
27258 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
27259 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
27260 mode iterator.
27261 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
27262 using SWI mode iterator.
27263
27264 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
27265
27266 PR c/25880
27267 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
27268 * c-format.c (gcc_diag_flag_specs): Add hash.
27269 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
27270 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
27271 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
27272 pp_c_cv_qualifiers. Handle qualifiers spelling here.
27273 (pp_c_type_qualifier_list): Call the function above.
27274 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
27275 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
27276 (WARN_FOR_QUALIFIERS): New macro.
27277 (convert_for_assignment): Use it.
27278
27279 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
27280
27281 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
27282
27283 2010-06-04 Jan Hubicka <jh@suse.cz>
27284
27285 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
27286 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
27287 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
27288 DF_BYTE_LR_OUT): Update for embedded bitmaps.
27289 * fwprop.c (single_def_use_enter_block): Likewise.
27290 * ddg.c (create_ddg_dep_from_intra_loop_link,
27291 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
27292 * loop-iv.c (latch_dominating_def): Likewise.
27293 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
27294 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
27295 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
27296 df_rd_transfer_function, df_rd_top_dump,
27297 df_rd_bottom_dump): Update.
27298 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
27299 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
27300 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
27301 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
27302 df_lr_verify_solution_start, df_lr_verify_solution_end,
27303 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
27304 df_live_free_bb_info, df_live_alloc, df_live_reset,
27305 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
27306 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
27307 df_live_verify_solution_start, df_live_verify_solution_end,
27308 df_live_verify_transfer_functions, df_chain_create_bb,
27309 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
27310 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
27311 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
27312 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
27313 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
27314 df_byte_lr_transfer_function, df_byte_lr_top_dump,
27315 df_byte_lr_bottom_dump, df_create_unused_note,
27316 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
27317 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
27318 df_md_transfer_function, df_md_init, df_md_confluence_0,
27319 df_md_confluence_n,
27320 df_md_top_dump, df_md_bottom_dump): Update.
27321 (struct df_lr_problem_data): Embedd bitmap headers.
27322
27323 2010-06-04 Jan Hubicka <jh@suse.cz>
27324
27325 * dce.c (dce_process_block): Do not re-scan already marked
27326 instructions.
27327
27328 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
27329
27330 PR rtl-optimization/39871
27331 PR rtl-optimization/40615
27332 PR rtl-optimization/42500
27333 PR rtl-optimization/42502
27334 * ira.c (init_reg_equiv_memory_loc: New function.
27335 (ira): Call it twice.
27336 * reload.h (calculate_elim_costs_all_insns): Declare.
27337 * ira-costs.c: Include "reload.h".
27338 (regno_equiv_gains): New static variable.
27339 (init_costs): Allocate it.
27340 (finish_costs): Free it.
27341 (ira_costs): Call calculate_elim_costs_all_insns.
27342 (find_costs_and_classes): Take estimated elimination costs
27343 into account.
27344 (ira_adjust_equiv_reg_cost): New function.
27345 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
27346 * reload1.c (init_eliminable_invariants, free_reg_equiv,
27347 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
27348 (elim_bb): New static variable.
27349 (reload): Move code out of here into init_eliminable_invariants and
27350 free_reg_equiv. Call them.
27351 (calculate_elim_costs_all_insns): New function.
27352 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
27353 all callers changed. If FOR_COSTS is true, don't call alter_reg,
27354 but call note_reg_elim_costly if we turned a valid memory address
27355 into an invalid one.
27356 * Makefile.in (ira-costs.o): Depend on reload.h.
27357
27358 2010-06-04 Julian Brown <julian@codesourcery.com>
27359
27360 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
27361 for pool ranges.
27362
27363 2010-06-04 Richard Guenther <rguenther@suse.de>
27364
27365 PR lto/41584
27366 * cgraph.h (struct varpool_node): Add lto_file_data field.
27367 * lto-cgraph.c (input_varpool_node): Initialize it.
27368
27369 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
27370
27371 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
27372 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
27373 predicate in "type" attribute calculation.
27374 (*addsi_1_zext): Ditto.
27375 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
27376 (*addsi_2_zext): Ditto.
27377 (*add<mode>_3): Ditto.
27378 (*addsi_3_zext): Ditto.
27379 (*add<mode>_5): Ditto.
27380
27381 2010-06-03 Jan Hubicka <jh@suse.cz>
27382
27383 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
27384 of bitmap_bit_p.
27385 * cfganal.c (compute_dominance_frontiers_1): Likewise.
27386
27387 2010-06-03 Jan Hubicka <jh@suse.cz>
27388
27389 * df-problems.c (df_create_unused_note, df_note_bb_compute):
27390 micro-optimize the checks when to add new note.
27391
27392 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
27393
27394 * final.c (output_asm_insn): Call
27395 targetm.asm_out.print_operand_punct_valid_p. Update comments.
27396 (output_operand): Call targetm.asm_out.print_operand. Update comments.
27397 (output_address): Call targetm.asm_out.print_operand_address.
27398 Update comments.
27399 * target.h (struct gcc_target): Add print_operand,
27400 print_operand_address, and print_operand_punct_valid_p fields.
27401 * targhooks.h (default_print_operand): Declare.
27402 (default_print_operand_address): Declare.
27403 (default_print_operand_punct_valid_p): Declare.
27404 * targhooks.c (default_print_operand): Define.
27405 (default_print_operand_address): Define.
27406 (default_print_operand_punct_valid_p): Define.
27407 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
27408 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
27409 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
27410 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
27411 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
27412 * vmsdbgout.c (addr_const_to_string): Update comment.
27413 * config/i386/i386.c (print_operand): Rename to...
27414 (ix86_print_operand): ...this. Make static.
27415 (print_operand_address): Rename to...
27416 (ix86_print_operand_address): ...this. Make static. Call
27417 ix86_print_operand instead of PRINT_OPERAND.
27418 (ix86_print_operand_punct_valid_p): New function.
27419 (TARGET_PRINT_OPERAND): Define.
27420 (TARGET_PRINT_OPERAND_ADDRESS): Define.
27421 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
27422 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
27423 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
27424 (PRINT_OPERAND): Delete.
27425 (PRINT_OPERAND_ADDRESS): Delete.
27426 * config/i386/i386-protos.h (print_operand): Delete prototype.
27427 (print_operand_address): Delete prototype.
27428
27429 2010-06-03 Richard Guenther <rguenther@suse.de>
27430
27431 PR tree-optimization/44403
27432 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27433 Preserve pointer qualifiers.
27434 (vect_create_data_ref_ptr): Likewise.
27435
27436 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
27437
27438 PR c++/44294
27439 * defaults.h (MAX_FIXED_MODE_SIZE): New.
27440
27441 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
27442
27443 2010-06-03 Jakub Jelinek <jakub@redhat.com>
27444
27445 PR debug/44375
27446 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
27447 return false if merging the bbs would lead to goto_locus
27448 location being lost from the IL.
27449
27450 2010-06-03 Jan Hubicka <jh@suse.cz>
27451 Jakub Jelinek <jakub@redhat.com>
27452
27453 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
27454 set->regs[i] is NULL or has just one entry.
27455
27456 2010-06-03 Jan Hubicka <jh@suse.cz>
27457
27458 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
27459 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
27460
27461 2010-06-03 Paul Brook <paul@codesourcery.com>
27462
27463 * config/arm/arm.c (FL_TUNE): Define.
27464 (arm_default_cpu, arm_cpu_select): Remove.
27465 (all_cores): Populate core field.
27466 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
27467 (arm_find_cpu): New function.
27468 (arm_handle_option): Lookup cpu/architecture names.
27469 (arm_override_options): Cleanup mcpu/march/mtune handling.
27470 (arm_file_start): Ditto.
27471
27472 2010-06-03 Alan Modra <amodra@gmail.com>
27473
27474 PR target/44169
27475 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
27476 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
27477 rtx to gen_load_toc_v4_PIC_1b. Tidy.
27478 (rs6000_emit_load_toc_table): Likewise.
27479
27480 2010-06-02 Jan Hubicka <jh@suse.cz>
27481
27482 * passes.c (init_optimization_passes): Put ipa reference
27483 after ipa pure-const.
27484
27485 2010-06-02 Jan Hubicka <jh@suse.cz>
27486
27487 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
27488 calls_read_all and calls_write_all.
27489 (get_reference_optimization_summary): Fix formatting.
27490 (is_proper_for_analysis): Check that decl is not readonly.
27491 (propagate_bits): Check CONST/PURE/noreturn flags.
27492 (ipa_init): Move all_module_statics to optimization_summary_obstack.
27493 (analyze_function): Ignore indirect edges.
27494 (copy_global_bitmap): For all module statics, do nothing.
27495 (generate_summary): Do not print calls_read_all/calls_write_all.
27496 (read_write_all_from_decl): Take node as argument; check
27497 cgraph_node_cannot_return.
27498 (propagate): Reorganize read_all/write_all computation;
27499 check indirect edges; check ecf flags; use all_module_statics
27500 in the results; do not free all_module_statics.
27501 (stream_out_bitmap): Handle all_module_statics.
27502 (ipa_reference_write_optimization_summary): Likewise; use
27503 varpool/cgraph encoders to get boundaries.
27504 (ipa_reference_read_optimization_summary): Read in all_module_statics;
27505 use it when possible.
27506
27507 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27508
27509 PR target/44218
27510 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
27511 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
27512
27513 * doc/extend.texi (powerpc builtins): Document vec_recip,
27514 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
27515
27516 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
27517 (rs6000_emit_swrsqrt): Ditto.
27518 (rs6000_emit_swdivsf): Delete.
27519 (rs6000_emit_swdivdf): Ditto.
27520 (rs6000_emit_swrsqrtsf): Ditto.
27521
27522 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
27523 describe the reciprocal estimate support for each type.
27524 (recip_options): Map -mrecip=<opt> into option bits.
27525 (gen_2arg_fn_t): New typedef for binary rtx gen function.
27526 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
27527 reciprocal estimate instructions.
27528 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
27529 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
27530 Set up rs6000_recip_bits based on the -mrecip* options. Print the
27531 cost information if -mdebug=cost or -mdebug=reg.
27532 (rs6000_override_options): Set -mrecip-precision for power6, and
27533 power7 machines. If -mvsx or -mdfp, enable various options that
27534 came in previous instruction set ISAs, unless the option was
27535 explicitly disabled by the command line option. Parse
27536 -mrecip=<opt> options.
27537 (rs6000_builtin_vectorized_function): Add support for vectorizing
27538 the reciprocal estimate builtins and expansions.
27539 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
27540 (bdesc_2arg): Add reciprocal estimate builtins.
27541 (bdesc_1arg): Add reciprocal square root estimate builtins.
27542 (rs6000_expand_builtin): Rewrite to use a switch statement,
27543 instead of multiple if/then/elses. Add reciprocal estimate builtins.
27544 (rs6000_init_builtins): Create declarations for reciprocal
27545 estimate builtins.
27546 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
27547 sized, prefer traditional floating point registers, if integer
27548 vector types, prefer altivec registers. Don't actually look at
27549 the memory address any more.
27550 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
27551 builtins.
27552 (rs6000_load_constant_and_splat): New helper function to load up
27553 the constant for reciprocal estimate instructions.
27554 (rs6000_emit_madd): New helper function for generating
27555 multiply/add type instructions, based on the current switches.
27556 (rs6000_emit_msub): Ditto.
27557 (rs6000_emit_mnsub): Ditto.
27558 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
27559 replace a divide with a reciprocal estimate and fixup, adding
27560 support for machines with high precision and vectors.
27561 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
27562 low precision machines.
27563 (rs6000_emit_swdiv): New common function to be called to replace a
27564 division with reciprocal estimate and fixup.
27565 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
27566 for double and vector types. Add support for high precision machines.
27567
27568 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
27569 the reciprocal estimate instructions can be generated.
27570 (TARGET_FRE): Ditto.
27571 (TARGET_FRSQRTES): Ditto.
27572 (TARGET_FRSQRTE): Ditto.
27573 (RS6000_RECIP_*): New macros for reciprocal estimate support.
27574
27575 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
27576 square root estimate on vectors.
27577 (re<mode>2): New insn for reciprocal division estimate on vectors.
27578
27579 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
27580 New builtin.
27581 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
27582 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
27583 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
27584 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
27585 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
27586 (RS6000_BUILTIN_RSQRT): Ditto.
27587 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
27588 floating point builtin.
27589
27590 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
27591 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
27592 __RECIP_PRECISION__ based on the command line switches.
27593 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
27594
27595 * config/rs6000/rs6000.opt (-mrecip): Document add support for
27596 replacing division instructions with reciprocal estimate and fixup.
27597 (-mrecip=<opt>): New option.
27598 (-mrecip-precision): Ditto.
27599
27600 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
27601 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
27602 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
27603 precision scalar.
27604
27605 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
27606 (UNSPEC_VREFP): Ditto.
27607 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
27608 conterparts with regard to support of -mno-fused-madd and -ffast-math.
27609 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
27610 reciprocal estimate instructions to be generated.
27611 (altivec_vrefp): Ditto.
27612
27613 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
27614 estimate support.
27615 (rreg): New mode attribute for reciprocal estimate support.
27616 (recip<mode>3): New insn for division using reciprocal estimate
27617 and fixup builtins.
27618 (divide define_split): New define_split to convert floating point
27619 division to use reciprocal estimate if the user used the
27620 appropriate options and the split is run when we can add new
27621 pseudo registers for the fixup.
27622 (rsqrt<mode>2): New insn for reciprocal square root support.
27623 (recipsf3): Move into recip<mode>3.
27624 (recipdf3): Ditto.
27625 (fres): Use TARGET_FRES.
27626 (rsqrtsf2): Move into rsqrt<mode>2.
27627 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
27628 (copysignsf3): Add support for VSX.
27629 (fred): Use TARGET_FRE.
27630 (fred_fpr): Ditto.
27631 (rsqrtdf_internal1): New function for frsqrte instruciton.
27632
27633 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
27634 (vec_rsqrt): Ditto.
27635
27636 2010-06-03 Richard Guenther <rguenther@suse.de>
27637
27638 PR middle-end/44291
27639 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
27640 (set_user_assembler_libfunc): Likewise.
27641
27642 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
27643
27644 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
27645 defaults.h.
27646 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
27647 to defaults.h
27648 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
27649 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
27650 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
27651 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
27652 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
27653 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
27654 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
27655 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
27656 * defaults.h: Updated for above mentioned changes.
27657
27658 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
27659
27660 * c-common.c: Remove header include of tm_p.h.
27661 * Makefile.in (c-common.o): Remove TM_P_H dependency.
27662
27663 2010-06-02 Jakub Jelinek <jakub@redhat.com>
27664
27665 * tree.h (struct tree_decl_map): New type.
27666 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
27667 (tree_decl_map_hash): New prototype.
27668 (debug_expr_for_decl, value_expr_for_decl): Change into
27669 tree_decl_map hashtab from tree_map.
27670 (init_ttree): Adjust initialization.
27671 (tree_decl_map_hash): New function.
27672 (decl_debug_expr_lookup, decl_debug_expr_insert,
27673 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
27674
27675 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27676
27677 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
27678 linker emulations.
27679 * configure: Regenerate.
27680 * config.in: Regenerate.
27681
27682 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
27683 (X86_64_EMULATION): Define.
27684 (TARGET_LD_EMULATION): Use them.
27685
27686 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
27687 (SPARC64_EMULATION): Define.
27688 (LINK_ARCH_SPEC): Use them.
27689
27690 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
27691
27692 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
27693 smallest_mode_for_size for computing the precision types of new
27694 graphite IVs. Do not call lang_hooks.types.type_for_size.
27695
27696 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
27697
27698 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
27699 information.
27700 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
27701
27702 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
27703
27704 PR middle-end/44363
27705 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
27706 return false instead.
27707
27708 2010-06-02 Jan Hubicka <jh@suse.cz>
27709
27710 PR middle-end/44295
27711 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
27712 create new cgraph node to check callee.
27713
27714 2010-06-02 Richard Guenther <rguenther@suse.de>
27715
27716 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
27717
27718 2010-06-02 Richard Guenther <rguenther@suse.de>
27719
27720 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
27721 (lto_wrapper_cleanup): ... this. Do not exit.
27722 (fatal): Adjust. Exit here.
27723 (fatal_perror): Likewise.
27724 (fatal_signal): New function.
27725 (main): Set up signal handlers to cleanup temporary files.
27726 * Makefile.in (lto-wrapper.o): Adjust dependencies.
27727
27728 2010-06-02 Richard Guenther <rguenther@suse.de>
27729
27730 PR tree-optimization/44377
27731 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
27732
27733 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27734
27735 * config/s390/2097.md (z10_fhex): Remove insn reservation.
27736 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
27737 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
27738 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
27739 instruction.
27740 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
27741
27742 2010-06-02 Jan Hubicka <jh@suse.cz>
27743
27744 * bitmap.c (bitmap_descriptor): Add search_iter.
27745 (bitmap_find_bit): Increment it.
27746 (print_statistics): Print it.
27747
27748 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
27749
27750 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
27751 instead of gimple_build_call_vec. Delete unnecessary local variable.
27752
27753 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
27754
27755 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
27756 change from yesterday.
27757
27758 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
27759
27760 * c-ada-spec.c: Clean up redundant includes.
27761
27762 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
27763
27764 * gimplify.c: Do not include except.h and optabs.h.
27765 (gimplify_body): Do not initialize RTL profiling.
27766 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
27767 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
27768 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
27769 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
27770 langhooks.h.
27771
27772 * tree-pretty-print.h: Include pretty-print.h.
27773 * gimple-pretty-print.h: Include pretty-print.h.
27774
27775 * tree-pretty-print.c: Do not include diagnostic.h.
27776 * tree-vrp.c: Likewise.
27777 * tree-tailcall.c: Likewise
27778 * tree-scalar-evolution.c: Likewise
27779 * tree-ssa-dse.c: Likewise
27780 * tree-chrec.c: Likewise
27781 * tree-ssa-sccvn.c: Likewise
27782 * tree-ssa-copyrename.c: Likewise
27783 * tree-nomudflap.c: Likewise
27784 * tree-call-cdce.c: Likewise
27785 * tree-stdarg.c: Likewise
27786 * tree-ssa-math-opts.c: Likewise
27787 * tree-nrv.c: Likewise
27788 * tree-ssa-sink.c: Likewise
27789 * tree-browser.c: Likewise
27790 * tree-ssa-loop-ivcanon.c: Likewise
27791 * tree-ssa-loop.c: Likewise
27792 * tree-parloops.c: Likewise
27793 * tree-ssa-address.c: Likewise
27794 * tree-ssa-ifcombine.c: Likewise
27795 * tree-if-conv.c: Likewise
27796 * tree-data-ref.c: Likewise
27797 * tree-affine.c: Likewise
27798 * tree-ssa-phiopt.c: Likewise
27799 * tree-ssa-coalesce.c: Likewise
27800 * tree-ssa-pre.c: Likewise
27801 * tree-ssa-live.c: Likewise
27802 * tree-predcom.c: Likewise
27803 * tree-ssa-forwprop.c: Likewise
27804 * tree-ssa-dce.c: Likewise
27805 * tree-ssa-ter.c: Likewise
27806 * tree-ssa-loop-prefetch.c: Likewise
27807 * tree-optimize.c: Likewise
27808 * tree-ssa-phiprop.c: Likewise
27809 * tree-object-size.c: Likewise
27810 * tree-outof-ssa.c: Likewise
27811 * tree-ssa-structalias.c: Likewise
27812 * tree-switch-conversion.c: Likewise
27813 * tree-ssa-reassoc.c: Likewise
27814 * tree-ssa-operands.c: Likewise
27815 * tree-vectorizer.c: Likewise
27816 * tree-vect-data-refs.c: Likewise
27817 * tree-vect-generic.c: Likewise
27818 * tree-vect-stmts.c: Likewise
27819 * tree-vect-patterns.c: Likewise
27820 * tree-vect-slp.c: Likewise
27821 * tree-vect-loop.c: Likewise
27822 * tree-ssa-loop-ivopts.c: Likewise
27823 * tree-ssa-loop-im.c: Likewise
27824 * tree-ssa-loop-niter.c: Likewise
27825 * tree-ssa-loop-unswitch.c: Likewise
27826 * tree-ssa-loop-manip.c: Likewise
27827 * tree-ssa-loop-ch.c: Likewise
27828 * tree-dump.c: Likewise
27829 * tree-complex.c: Likewise
27830
27831 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
27832 * tree-ssa-uninit.c: Likewise
27833 * tree-ssa-threadupdate.c: Likewise
27834 * tree-ssa-uncprop.c: Likewise
27835 * tree-ssa-ccp.c: Likewise
27836 * tree-ssa-dom.c: Likewise
27837 * tree-ssa-propagate.c: Likewise
27838 * tree-ssa-alias.c: Likewise
27839 * tree-dfa.c: Likewise
27840 * tree-cfgcleanup.c: Likewise
27841 * tree-sra.c: Likewise
27842 * tree-ssa-copy.c: Likewise
27843 * tree-ssa.c: Likewise
27844 * tree-profile.c: Likewise
27845 * tree-cfg.c: Likewise
27846 * tree-ssa-threadedge.c: Likewise
27847 * tree-vect-loop-manip.c: Likewise
27848
27849 * tree-inline.c: Do not include diagnostic.h and expr.h.
27850 Include rtl.h.
27851 (copy_decl_for_dup_finish): Do not use NULL_RTX.
27852
27853 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
27854 * tree-loop-distribution.c: Likewise.
27855
27856 2010-06-01 Jan Hubicka <jh@suse.cz>
27857
27858 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
27859
27860 2010-06-01 Jan Hubicka <jh@suse.cz>
27861
27862 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
27863 remove return value.
27864 (split_bbs_on_noreturn_calls) .... here.
27865 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
27866 * tree-flow.h (fixup_noreturn_call): New.
27867
27868 2010-06-01 Jan Hubicka <jh@suse.cz>
27869
27870 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
27871
27872 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
27873
27874 * tree.h (build_nt_call_list): Delete.
27875 * tree.c (build_nt_call_list): Delete.
27876
27877 2010-06-01 Jan Hubicka <jh@suse.cz>
27878
27879 * fwprop.c: Make emit-rtl.h include last.
27880 * rtlanal.c: Include emit-rtl.h.
27881 * genautomata.c: Output emit-rtl include into insn-automata.c
27882 * df-scan.c: Include emit-rtl.h.
27883 * haifa-sched.c: Indlude emit-rtl.h.
27884 * mode-switching.c: Indlude emit-rtl.h.
27885 * graph.c: Indlude emit-rtl.h.
27886 * sel-sched.c: Include emit-rtl.h.
27887 * sel-sched-ir.c: Include emit-rtl.h.
27888 * ira-build.c: Include emit-rtl.h.
27889 * emit-rtl.c (first_insn, last_insn): Remove defines.
27890 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
27891 Move to emit-rtl.h.
27892 (set_new_first_and_last_insn, get_last_insn_anywhere,
27893 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
27894 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
27895 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
27896 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
27897 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
27898 Use accessor functions.
27899 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27900 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27901 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27902 mem_expr_equal_p): Move here from rtl.h.
27903 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
27904 Move here from emit-rtl.c; make inline.
27905 * cfglayout.h: Include emit-rtl.h.
27906 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27907 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27908 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27909 mem_expr_equal_p, get_insns, set_first-insn,
27910 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
27911 * reg-stack.c: Include emit-rtl.h.
27912 * dce.c: Likewise.
27913
27914 2010-06-01 Jan Hubicka <jh@suse.cz>
27915
27916 * cgraph.h (tree_function_versioning): Update prototype.
27917 (cgraph_function_versioning): Update prototype.
27918 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
27919 bitmap.
27920 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
27921 (cgraph_materialize_clone, save_inline_function_body): Update use of
27922 tree_function_versioning.
27923 * tree-inline.c (copy_bb): Look for previous copied block to link
27924 after; fix debug output.
27925 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
27926 (copy_body): Likewise.
27927 (expand_call_inline): Update use of copy_body.
27928 (tree_function_versioning): Update use of copy body; accept
27929 blocks_to_copy and new_entry.
27930
27931 2010-06-01 Jan Hubicka <jh@suse.cz>
27932
27933 * gegenrtl.c: Remove unnecesary prototypes.
27934 (gendecl): Remove.
27935 (gendef): Produce static inline.
27936 (gencode): Remove.
27937 (main): Do not decode parameters; generate header only.
27938 * Makefile.in (genrtl.c): Remove.
27939
27940 2010-06-01 Jan Hubicka <jh@suse.cz>
27941
27942 * tree-switch-conversion.c (build_one_array): Make it readonly.
27943
27944 2010-06-01 Richard Guenther <rguenther@suse.de>
27945
27946 * optabs.c (init_optabs): Guard all accesses to reinit.
27947 * ipa-pure-const.c (propagate): Fix another typo.
27948 * opts.c (common_handle_option): Split assignment to bool.
27949 * c-opts.c (c_common_handle_option): Likewise.
27950
27951 2010-06-01 Arnaud Charlet <charlet@adacore.com>
27952 Matthew Gingell <gingell@adacore.com>
27953
27954 * doc/invoke.texi: Mention -fdump-ada-spec.
27955 * tree-dump.c (dump_files): Add ada-spec.
27956 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
27957 * tree-pass.h (tree_dump_index): Add TDI_ada.
27958 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
27959 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
27960 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
27961 * c-decl.c: Include c-ada-spec.h.
27962 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
27963 functions.
27964 (c_write_global_declarations): Add handling of -fdump-ada-spec.
27965 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
27966 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
27967 * c-ada-spec.h, c-ada-spec.c: New files.
27968
27969 2010-06-01 Richard Guenther <rguenther@suse.de>
27970
27971 PR lto/43853
27972 * ipa-pure-const.c (get_function_state): Hand back varying state
27973 if we do not have one.
27974 (has_function_state): New function.
27975 (duplicate_node_data): Adjust.
27976 (remove_node_data): Likewise.
27977 (pure_const_write_summary): Likewise.
27978 (propagate): Likewise. Fix typo.
27979
27980 2010-06-01 Jan Hubicka <jh@suse.cz>
27981
27982 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
27983 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
27984 (execute_all_ipa_transforms): Do not play with the states.
27985
27986 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
27987
27988 * config/arm/t-linux-androideabi: New.
27989 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
27990
27991 2010-06-01 Jan Hubicka <jh@suse.cz>
27992
27993 * tree-inline.c (estimate_num_insns): For stdarg functions look
27994 into call statement to count cost of argument passing.
27995
27996 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
27997
27998 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
27999 argument for fprintf.
28000 (ix86_output_addr_diff_elt): Likewise.
28001 (x86_function_profiler): Likewise.
28002 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
28003 (LPREFIX): Likewise.
28004 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
28005
28006 2010-05-31 Jakub Jelinek <jakub@redhat.com>
28007
28008 PR target/44338
28009 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
28010 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
28011 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
28012 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
28013 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
28014 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
28015 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
28016 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
28017 TARGET_FUSED_MADD.
28018
28019 2010-05-31 Jan Hubicka <jh@suse.cz>
28020
28021 * tree.h (tree_range_check_failed): Declare noreturn.
28022
28023 2010-05-31 Jan Hubicka <jh@suse.cz>
28024
28025 * gimple.c (gimple_call_builtin_p): New function.
28026 * gimple.h (gimple_call_builtin_p): Declare.
28027 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
28028 to exit.
28029 (execute_warn_function_return): BUILT_IN_RETURN is return.
28030 (split_critical_edges): Return edges are not critical.
28031 (is_ctrl_altering_stmt): Builtin_in_return is altering.
28032 (gimple_verify_flow_info): Handle built_in_return.
28033 (execute_warn_function_return): Handle built_in_return.
28034 * ipa-pure-const.c (check_call): Ignore builtin_return.
28035
28036 2010-05-31 Jakub Jelinek <jakub@redhat.com>
28037
28038 PR middle-end/44337
28039 * expr.c (expand_assignment): Don't store anything for out-of-bounds
28040 array accesses with non-MEM.
28041
28042 PR tree-optimization/44182
28043 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
28044 newly needs to end a bb is followed by debug stmts, instead return
28045 true from the function at the end.
28046 (maybe_move_debug_stmts_to_successors): New function.
28047 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
28048
28049 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
28050
28051 PR target/44161
28052 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
28053
28054 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
28055
28056 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
28057 for nested functions in non-optimized compilation.
28058
28059 2010-05-31 Richard Guenther <rguenther@suse.de>
28060
28061 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
28062
28063 2010-05-30 Jan Hubicka <jh@suse.cz>
28064
28065 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
28066
28067 2010-05-30 Richard Guenther <rguenther@suse.de>
28068
28069 PR lto/42975
28070 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
28071 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
28072 no longer needed.
28073
28074 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
28075
28076 * config/darwin.c (output_objc_section_asm_op): Add comment.
28077 (name_needs_quotes): Add '_' to list of valid comment chars.
28078 (machopic_output_function_base_name): Remove unneeded quotes.
28079 (darwin_encode_section_info): Adjust asm whitespace.
28080 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
28081 (ASM_OUTPUT_LOCAL): Ditto.
28082 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
28083 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
28084 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
28085
28086 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
28087
28088 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
28089 RS6000_OUTPUT_BASENAME unconditionally.
28090 (rs6000_output_function_epilogue): Likewise.
28091
28092 2010-05-30 Jan Hubicka <jh@suse.cz>
28093
28094 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
28095 nodes.
28096
28097 2010-05-30 Richard Guenther <rguenther@suse.de>
28098
28099 * tree-cfg.c (verify_gimple_assign_single): Implement
28100 verification for COND_EXPR rhs.
28101
28102 2010-05-30 Jan Hubicka <jh@suse.cz>
28103
28104 * cgraph.h (cgraph_dump_file): Declare.
28105 * cgraphunit.c (cgraph_dump_file): Export.
28106 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
28107
28108 2010-05-30 Jan Hubicka <jh@suse.cz>
28109
28110 * dwarf2out.c (reference_to_unused,
28111 premark_types_used_by_global_vars_helper): Avoid creation of new
28112 varpool nodes.
28113
28114 2010-05-30 Jan Hubicka <jh@suse.cz>
28115
28116 * cgraph.h (cgraph_node_cannot_return,
28117 cgraph_edge_cannot_lead_to_return): New functions.
28118 * cgraph.c (cgraph_node_cannot_return,
28119 cgraph_edge_cannot_lead_to_return): Use them.
28120 * ipa-pure-const.c (pure_const_names): New static var.
28121 (check_call): Handle calls not leading to return.
28122 (pure_const_read_summary): Dump info read.
28123 (propagate): Dump info about propagation process; ignore side effects
28124 of functions not leading to exit; fix handling of pure functions.
28125
28126 2010-05-30 Jan Hubicka <jh@suse.cz>
28127
28128 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
28129 for tail call epilogues.
28130
28131 2010-05-30 Jan Hubicka <jh@suse.cz>
28132
28133 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
28134 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
28135 dump files.
28136
28137 2010-05-29 Jan Hubicka <jh@suse.cz>
28138
28139 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
28140 node; remove references in node we no longer keep in cgrpah but need
28141 body of.
28142
28143 2010-05-29 Jan Hubicka <jh@suse.cz>
28144
28145 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
28146
28147 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28148
28149 PR target/44165
28150 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
28151
28152 2010-05-29 Jan Hubicka <jh@suse.cz>
28153
28154 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
28155 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
28156 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
28157 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
28158 debug_names_replaced_by, debug_update_ssa): Likewise.
28159 * sbitmap.c (debug_sbitmap): Likewise.
28160 * genrecog.c (debug_decision, debug_decision_list): Likewise.
28161 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
28162 debug_tree_chain): Likewise.
28163 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
28164 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
28165 * optabs.c (debug_optab_libfuncs): Likewise.
28166 (verify_loop_closed_ssa): Likewise.
28167 * value-prof.c (verify_histograms): Likewise.
28168 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
28169 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
28170 * cfghooks.c (verify_flow_info): Likewise.
28171 * fold-const.c (debug_fold_checksum): Likewise.
28172 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
28173 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
28174 Likewise.
28175 * omega.c (debug_omega_problem): Likewise.
28176 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
28177 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
28178 * dominance.c (verify_dominators, debug_dominance_info,
28179 debug_dominance_tree): Likewise.
28180 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
28181 * df_regno_debug, df_ref_debug,
28182 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
28183 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
28184 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
28185 * sel-sched.c (debug_state): Likewise.
28186 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
28187 Likewise.
28188 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
28189 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
28190 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
28191 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
28192 Likewise.
28193 * c-pretty-print.c (debug_c_tree): Likewise.
28194 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
28195 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
28196 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
28197 * ebitmap.c (debug_ebitmap): Likewise.
28198 * function.c (debug_find_var_in_block_tree): Likewise.
28199 * print-rtl.c (debug_rtx): Likewise.
28200 (debug_rtx_count): Likewise.
28201 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
28202 * stor-layout.c (debug_rli): Likewise.
28203 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
28204 * tree-data-ref.c (debug_data_references,
28205 debug_data_dependence_relations, debug_data_reference,
28206 debug_data_dependence_relation, debug_rdg_vertex,
28207 debug_rdg_component, debug_rdg): Likewise.
28208 * tree-affine.c (debug_aff): Likewise.
28209 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
28210 Likewise.
28211 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
28212 * emit-rtl.c (verify_rtl_sharing): Likewise.
28213 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
28214 debug_value_expressions): Likewise.
28215 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
28216 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
28217 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
28218 * cfglayout.c (verify_insn_chain): Likewise.
28219 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
28220 debug_clast_stmt, debug_generated_program): Likewise.
28221 * ggc-page.c (debug_print_page_list): Likewise.
28222 * tree-ssa-ter.c (debug_ter): Likewise.
28223 * graphite-dependences.c (debug_pddr): Likewise.
28224 * sched-deps.c (debug_ds): Likewise.
28225 * tree-ssa.c (verify_ssa): Likewise.
28226 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
28227 debug_scattering_functions, debug_iteration_domains, debug_pdr,
28228 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
28229 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
28230 * tree-inline.c (debug_find_tree): Likewise.
28231 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
28232 debug_ppl_powerset_matrix): Likewise.
28233 * var-tracking.c (debug_dv): Likewise.
28234 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
28235 * cfgloop.c (verify_loop_structure): Likewise.
28236 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
28237 * c-common.c (verify_sequence_points): Likewise.
28238 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
28239 debug_candidates, debug_rgn_dependencies): Likewise.
28240 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
28241 * debug_constraint_graph, debug_solution_for_var,
28242 debug_sa_points_to_info): Likewise.
28243 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
28244 Likewie.
28245 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
28246 debug_loops, debug_loop, debug_loop_num): Likewise.
28247 * passes.c (debug_pass): Likewise.
28248 (dump_properties): Likewise; add cfglayout property.
28249 (debug_properties): Likewise.
28250 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
28251 * varpool.c (debug_varpool): Likewise.
28252 * regcprop.c (debug_value_data): Likewise.
28253 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
28254 debug_immediate_uses_for): Likewise.
28255
28256 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
28257
28258 PR bootstrap/44315
28259 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
28260 Filter out insn-flags.h.
28261
28262 2010-05-29 Jan Hubicka <jh@suse.cz>
28263
28264 * cgraph.h (struct varpool_node_set_def,
28265 struct cgraph_node_set_def): Remove unused AUX pointer.
28266 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
28267 VEC_empty macro.
28268
28269 2010-05-29 Jan Hubicka <jh@suse.cz>
28270
28271 PR middle-end/44324
28272 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
28273
28274 2010-05-29 Richard Guenther <rguenther@suse.de>
28275
28276 * lto-streamer.c (cached_bp): New global variable.
28277 (bitpack_create): Return the cached bitpack, if available.
28278 (bitpack_delete): Clear and cache the bitpack, if appropriate.
28279 (bp_pack_value): Remove redundant asserts.
28280
28281 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
28282
28283 PR middle-end/44306
28284 * tree-if-conv.c (is_true_predicate): New.
28285 (is_predicated): Use is_true_predicate.
28286 (add_to_predicate_list): Same. Do not use unshare_expr.
28287 (add_to_dst_predicate_list): Same.
28288
28289 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
28290
28291 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
28292 field on edges.
28293 (predicate_bbs): Same.
28294 (clean_predicate_lists): Same.
28295 (find_phi_replacement_condition): Do not AND the predicate from
28296 edge->aux.
28297
28298 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
28299
28300 PR bootstrap/44315
28301 * Makefile.in (build/gencondmd.o): Add a missing `\'.
28302
28303 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28304
28305 PR target/44261
28306 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
28307 (negdf2): Adjust expander pattern and use negdf2_slow.
28308 (negsf2): Likewise.
28309
28310 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
28311
28312 * basic-block.h (struct control_flow_graph): Move last_label_uid field
28313 up.
28314 * df.h (struct df_base_ref): Move regno field up.
28315 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
28316 * expr.h (struct separate_ops): Move location field up.
28317 * optabs.h (struct optab_d): Move libcall_basename field down.
28318 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
28319 * config/i386/i386.h (struct machine_function): Convert call_abi field
28320 into a bitfield. Move cfa field to the end of the structure.
28321
28322 2010-05-29 Jan Hubicka <jh@suse.cz>
28323
28324 * varpool.c (varpool_get_node): Fix lookup.
28325
28326 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28327
28328 * config/spu/spu-protos.h: Do not include rtl.h. Protect
28329 RTL specific prototypes with #ifdef RTX_CODE.
28330 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
28331 * config/spu/t-spu-elf: Fix dependencies.
28332
28333 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
28334
28335 2010-05-29 Mike Stump <mikestump@comcast.net>
28336
28337 PR bootstrap/44315
28338 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
28339 TM_H when building to avoid dependency loops.
28340
28341 2010-05-29 Jan Hubicka <jh@suse.cz>
28342
28343 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
28344 refs and body; not the whole node for masters of materialized clones.
28345
28346 2010-05-29 Mike Stump <mikestump@comcast.net>
28347
28348 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
28349
28350 2010-05-29 Jan Hubicka <jh@suse.cz>
28351
28352 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
28353 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
28354 use of clone_function_name.
28355 * cgraph.h (cgraph_create_virtual_clone,
28356 cgraph_function_versioning): update prototypes.
28357 (clone_function_name): Declare.
28358 * ipa-cp.c (ipcp_insert_stage): Update call of
28359 cgraph_create_virtual_clone.
28360 * omp-low.c (create_omp_child_function_name): Use
28361 cgraph_create_virtual_clone.
28362 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
28363 (cgraph_function_versioning): Take SUFFIX argument; produce new name
28364 and make decl local.
28365
28366 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28367
28368 * vec.h: Include statistics.h
28369 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
28370 with VEC_H.
28371
28372 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28373
28374 * c-lex.c: Do not include c-tree.h.
28375 * c-pretty-print.c: Likewise.
28376 * c-opts.c: Likewise.
28377 * c-gimplify.c: Likewise.
28378 * c-common.c: Likewise.
28379 * c-dump.c: Likewise. Include c-common.h.
28380
28381 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28382
28383 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
28384 before including diagnostic-core.h.
28385 (c_cpp_error): New prototype moved from c-tree.h.
28386 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
28387 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
28388 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
28389 (c_cpp_error): Prototype moved to c-common.h.
28390 * Makefile.in: Update dependency for C_COMMON_H.
28391
28392 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
28393
28394 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
28395 * c-common.c (c_register_addr_space): Remove here.
28396 * c-decl.c (c_register_addr_space): Re-add here.
28397
28398 2010-05-28 Mike Stump <mikestump@comcast.net>
28399
28400 * config/darwin-c.c: Remove c-tree.h include.
28401
28402 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28403
28404 * gcc.c: Include diagnostic.h.
28405 (error_count): Remove. All users changed to use errorcount.
28406 (programname): Remove. All users changed to use progname.
28407 (fancy_abort, internal_error, fatal_error, error, warning, inform,
28408 fnotice): Remove.
28409 (execute): Don't include "Internal error" and bug reporting
28410 information in argument of internal_error call.
28411 (process_command): Don't increment error_count after calling
28412 perror_with_name.
28413 (input_filename): Rename to gcc_input_filename. All users
28414 changed.
28415 (main): Call diagnostic_initialize. Register delete_temp_files
28416 with atexit. Use seen_error to test for errors.
28417 * gcc.h: Include diagnostic-core.h.
28418 (fatal_error, error, warning): Remove.
28419 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
28420 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
28421 (gcc.o): Update dependencies.
28422
28423 2010-05-28 Jeff Law <law@redhat.com>
28424
28425 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
28426 functions.
28427 * ira.h (ira_bad_reload_regno): Declare
28428 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
28429
28430 * ira-color.c (update_curr_costs): Free updated hard reg costs.
28431 (ira_reassign_conflict_allocnos): Remove bogus asserts.
28432 (allocno_reload_assign): Likewise.
28433
28434 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
28435
28436 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
28437 build1_stat.
28438
28439 2010-05-28 Richard Guenther <rguenther@suse.de>
28440
28441 PR lto/44312
28442 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
28443 Stream fixed-point constants mode.
28444 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
28445 and TYPE_PRECISION.
28446 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
28447 Stream fixed-point constants mode.
28448 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
28449 and TYPE_PRECISION.
28450
28451 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
28452
28453 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
28454 only place it was called from.
28455 (number_of_latch_executions): Do not return chrec_dont_know when the
28456 may_be_zero is a runtime condition: instead, return a COND_EXPR
28457 including the may_be_zero condition.
28458 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
28459 of nb_iterations.
28460 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
28461 COND_EXPRs.
28462
28463 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
28464
28465 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
28466 generate COND_EXPRs for degenerate_phi_result.
28467
28468 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
28469
28470 PR middle-end/44293
28471 * tree-if-conv.c (if_convertible_loop_p): Check the
28472 if-convertibility of phi nodes in non predicated BBs.
28473
28474 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28475
28476 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
28477
28478 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28479
28480 PR driver/15303
28481 * gcc.c (inform, warning, inform): New functions.
28482 (fatal_ice): Rename to internal_error; change cmsgid parameter to
28483 gmsgid. All callers changed.
28484 (notice): Rename to fnotice; add parameter fp. All callers changed.
28485 (fatal_error): Rename to fatal_signal. All users changed.
28486 (fatal): Rename to fatal_error; change cmsgid parameter to
28487 gmsgid. All callers changed.
28488 (process_command): Use warning instead of error for warnings.
28489 (end_going_arg): Don't use _() around argument of error.
28490 (do_spec_1): Use inform for message from %n specs. Use warning
28491 instead of error for warnings.
28492 (main): Use inform for comparison messages. Use warning for
28493 message about unused linker input.
28494 (error): Increment error_count. Print "error: ".
28495 * gcc.h (fatal): Change to fatal_error.
28496 (warning): Declare.
28497 * config/darwin-driver.c (darwin_default_min_version): Use warning
28498 instead of fprintf for warnings.
28499 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
28500
28501 2010-05-28 Julian Brown <julian@codesourcery.com>
28502
28503 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
28504 (*thumb2_addsi3_compare0_scratch): New.
28505 * config/arm/constraints.md (Pv): New.
28506 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
28507 for ARM mode only.
28508 (*addsi3_compare0_scratch): Likewise.
28509
28510 2010-05-28 Jan Hubicka <jh@suse.cz>
28511
28512 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
28513 check.
28514 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
28515 only on local statics.
28516
28517 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
28518
28519 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
28520
28521 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
28522
28523 PR bootstrap/44314
28524 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
28525 (OPTION_GLIBC): Define.
28526
28527 2010-05-28 Jakub Jelinek <jakub@redhat.com>
28528
28529 PR debug/41048
28530 * dwarf2out.c (double_int_type_size_in_bits): New function.
28531 (round_up_to_align): Change first argument and return value to
28532 double_int.
28533 (field_byte_offset): Work internally on double_ints.
28534
28535 PR target/43636
28536 * builtins.c (expand_movstr): Use a temporary pseudo instead
28537 of target even when target is not NULL and not const0_rtx, but
28538 fails movstr predicate.
28539 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
28540
28541 2010-05-28 Joseph Myers <joseph@codesourcery.com>
28542
28543 * final.c (rest_of_clean_state): Use %m in errors instead of
28544 strerror (errno).
28545 * gengtype.c (read_input_list, close_output_files): Use xstrerror
28546 instead of strerror.
28547 * toplev.c (process_options): Use %m in errors instead of strerror
28548 (errno).
28549 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
28550 (errno).
28551
28552 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
28553
28554 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
28555 (ix86_canonical_va_list_type): Make static. Add declaration.
28556 (ix86_enum_va_list): Make static. Reindent.
28557 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
28558 (ix86_canonical_va_list_type): Ditto.
28559 (ix86_enum_va_list): Ditto.
28560
28561 2010-05-28 Richard Guenther <rguenther@suse.de>
28562
28563 * lto-wrapper.c (run_gcc): With -save-temps generate a
28564 user-visible ltrans filename. Fixup ltrans unit numbering.
28565
28566 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
28567
28568 * c-common.c (c_common_nodes_and_builtins): Replace use
28569 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
28570 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
28571 to ix86_enum_va_list.
28572 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
28573 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
28574 (TARGET_ENUM_VA_LIST_P): Add hook description.
28575 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
28576 * target.h (gcc_target): Add enum_va_list hook.
28577
28578 PR bootstrap/44299
28579 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
28580 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
28581 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
28582
28583 2010-05-28 Alan Modra <amodra@gmail.com>
28584
28585 PR target/44266
28586 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
28587 emit_library_call machinery to set up __tls_get_addr calls.
28588
28589 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28590
28591 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
28592
28593 2010-05-28 Dodji Seketeli <dodji@redhat.com>
28594
28595 Revert fix for PR c++/44188
28596 * c-common.c (is_typedef_decl): Revert the moving of this
28597 definition ...
28598 * tree.c (is_typedef_decl): ... here.
28599 (typdef_variant_p): Revert the moving of this definition
28600 here from cp/tree.c.
28601 * c-common.h (is_typedef_decl): Revert the moving of this
28602 declaration ...
28603 * tree.h (is_typedef_decl): ... here.
28604 (typedef_variant_p): Revert the moving of this declaration here
28605 from cp/cp-tree.h
28606 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
28607 (gen_tagged_type_die): Revert the splitting out of ...
28608 (gen_type_die_with_usage): ... this function. Revert the anonymous
28609 tagged type handling.
28610 (gen_typedef_die): Revert emitting DW_TAG_typedef for
28611 typedefs naming anonymous tagged types.
28612
28613 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
28614
28615 * config/rs6000/rs6000-modes.def (PSImode): Delete.
28616
28617 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
28618
28619 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
28620 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
28621 throughout.
28622 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
28623 "xer" to "ca".
28624 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
28625 XER_REGS to CA_REGS throughout.
28626 * config/rs6000/rs6000.h: Same.
28627 (ADDITIONAL_REGISTER_NAMES): Add "xer".
28628 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
28629 that mode_iterator "P" is the size for arithmetic carries as well.
28630 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
28631
28632 2010-05-28 Jakub Jelinek <jakub@redhat.com>
28633
28634 PR bootstrap/44255
28635 * combine.c (struct rtx_subst_pair): Define unconditionally.
28636 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
28637 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
28638 Call make_compound_operation on pair->to.
28639 (propagate_for_debug): Don't call make_compound_operation here.
28640 Always use simplify_replace_fn_rtx.
28641
28642 2010-05-27 Sterling Augustine <sterling@tensilica.com>
28643
28644 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
28645 * config/xtensa/xtensa.c (override_options): Check
28646 TARGET_FORCE_NO_PIC and set flag_pic.
28647 * config/xtensa/xtensa.opt: Document -mforce-no-pic
28648
28649 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
28650
28651 PR bootstrap/44299
28652 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
28653 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
28654
28655 2010-05-27 Joseph Myers <joseph@codesourcery.com>
28656
28657 * diagnostic-core.h: New. Contents moved from diagnostic.h and
28658 toplev.h.
28659 * diagnostic.c: Don't include toplev.h.
28660 (progname): Define. Moved from toplev.c.
28661 (seen_error): New function.
28662 * diagnostic.h: Include diagnostic-core.h.
28663 (diagnostic_t, emit_diagnostic): Don't declare here.
28664 * toplev.c (progname): Move to toplev.c.
28665 (emit_debug_global_declarations, compile_file, finalize,
28666 do_compile, toplev_main): Use seen_error.
28667 * toplev.h: Include diagnostic-core.h.
28668 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
28669 internal_error, warning, warning_at, error, error_n, error_at,
28670 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
28671 verbatim, fnotice, progname): Move to diagnostic-core.h.
28672 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
28673 (expand_builtin_expect): Use seen_error.
28674 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
28675 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
28676 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
28677 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
28678 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
28679 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
28680 errorcount for errors.
28681 * c-opts.c (c_common_finish): Use seen_error.
28682 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
28683 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
28684 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
28685 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
28686 (get_coverage_counts): Use seen_error.
28687 * dwarf2out.c (dwarf2out_finish): Use seen_error.
28688 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
28689 gimplify_body): Use seen_error.
28690 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
28691 * ipa-pure-const.c (gate_pure_const): Use seen_error.
28692 * ipa-reference.c (gate_reference): Use seen_error.
28693 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
28694 * lambda-code.c: Include diagnostic-core.h instead of
28695 diagnostic.h.
28696 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
28697 * lto-compress.c: Include diagnostic-core.h instead of
28698 diagnostic.h.
28699 * lto-section-in.c: Include diagnostic-core.h instead of
28700 diagnostic.h.
28701 * lto-streamer-out.c: Include diagnostic-core.h instead of
28702 diagnostic.h.
28703 * lto-streamer.c: Include diagnostic-core.h instead of
28704 diagnostic.h.
28705 (gate_lto_out): Use seen_error.
28706 * matrix-reorg.c: Include diagnostic-core.h instead of
28707 diagnostic.h.
28708 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
28709 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
28710 (gate_expand_omp, lower_omp_1): Use seen_error.
28711 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
28712 (rest_of_decl_compilation, rest_of_type_compilation,
28713 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
28714 * tree-cfg.c (label_to_block_fn): Use seen_error.
28715 * tree-inline.c (optimize_inline_calls): Use seen_error.
28716 * tree-mudflap.c (mudflap_finish_file): Use
28717 seen_error.
28718 * tree-optimize.c (gate_all_optimizations,
28719 gate_all_early_local_passes, gate_all_early_optimizations): Use
28720 seen_error.
28721 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
28722 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
28723 (varpool_remove_unreferenced_decls,
28724 varpool_assemble_pending_decls): Use seen_error.
28725 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
28726 (TOPLEV_H, DIAGNOSTIC_H): Update.
28727 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
28728 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
28729 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
28730 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
28731 coverage.o, lambda-code.o): Update dependencies.
28732
28733 2010-05-25 Dodji Seketeli <dodji@redhat.com>
28734
28735 PR c++/44188
28736 * c-common.c (is_typedef_decl): Move this definition ...
28737 * tree.c (is_typedef_decl): ... here.
28738 (typdef_variant_p): Move definition here from cp/tree.c.
28739 * c-common.h (is_typedef_decl): Move this declaration ...
28740 * tree.h (is_typedef_decl): ... here.
28741 (typedef_variant_p): Move declaration here from cp/cp-tree.h
28742 * dwarf2out.c (is_naming_typedef_decl): New function.
28743 (gen_tagged_type_die): Split out of ...
28744 (gen_type_die_with_usage): ... this function. When an anonymous
28745 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
28746 is emitted for the typedef.
28747 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
28748 anonymous tagged types.
28749
28750 2010-05-27 Jason Merrill <jason@redhat.com>
28751
28752 * print-tree.c (debug_vec_tree): New fn.
28753 (print_vec_tree): New fn.
28754 * tree.h: Declare them.
28755 * gdbinit.in (pvt): New command.
28756
28757 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
28758
28759 * gdbinit.in (pdd): New command.
28760
28761 2010-05-27 Jan Hubicka <jh@suse.cz>
28762
28763 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
28764 (update_caller_keys): Return early if there are no callers;
28765 only update fibheap when decresing the key.
28766 (update_callee_keys): Avoid recursion.
28767 (decide_inlining_of_small_functions): When badness does not match;
28768 re-insert into fibheap.
28769
28770 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
28771
28772 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
28773 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
28774 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
28775 (ALL_HOST_OBJS): Now a union of the above two.
28776 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
28777 all files in ALL_HOST_FRONTEND_OBJS.
28778 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
28779
28780 * c-common.c: Pretend to be a backend file by undefining
28781 IN_GCC_FRONTEND (still need rtl.h here).
28782
28783 2010-05-27 Jan Hubicka <jh@suse.cz>
28784
28785 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
28786 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
28787
28788 2010-05-27 Jan Hubicka <jh@suse.cz>
28789
28790 * sched-ebb.c: Rename struct deps to struct deps_desc.
28791 * ddg.c: Likewise.
28792 * sel-sched-ir.c: Likewise.
28793 * sched-deps.c: Likewise.
28794 * sched-int.h: Likewise.
28795 * sched-rgn.c: Likewise.
28796
28797 2010-05-27 Jon Beniston <jon@beniston.com>
28798
28799 PR 43726
28800 * config/lm32/lm32.h: Remove definition of
28801 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
28802
28803 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
28804
28805 PR lto/44230
28806 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
28807
28808 2010-05-27 Richard Guenther <rguenther@suse.de>
28809
28810 PR tree-optimization/44284
28811 * tree-vect-stmts.c (vectorizable_assignment): Handle
28812 sign-changing conversions as simple copy.
28813
28814 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28815
28816 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
28817 Bionic C library.
28818 (__gthread_active_p): Check for pthread_create if compiling against
28819 Bionic C library.
28820
28821 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28822
28823 Support compilation for Android platform. Reimplement -mandroid.
28824
28825 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
28826 (*android*): Set ANDROID_DEFAULT.
28827 (arm*-*-linux*): Include linux-android.h.
28828 (arm*-*-eabi*): Don't include previous -mandroid implementation.
28829 * config/arm/eabi.h: Remove, move Android-specific parts ...
28830 * config/linux-android.h: ... here. New file.
28831 * config/arm/eabi.opt: Rename to ...
28832 * config/linux-android.opt: ... this.
28833 (mandroid): Allow -mno-android option. Initialize based on
28834 ANDROID_DEFAULT.
28835 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
28836 Move logic to corresponding LINUX_TARGET_* macros.
28837 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
28838 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
28839 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
28840 Android definitions.
28841 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
28842 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
28843 Document.
28844
28845 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28846
28847 Add support for Bionic C library
28848
28849 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
28850 macro.
28851 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
28852 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
28853
28854 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
28855 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
28856 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
28857 to support multiple C libraries. Handle Bionic.
28858 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
28859 (BIONIC_DYNAMIC_LINKER64): Define.
28860 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
28861 Update.
28862 (TARGET_HAS_SINCOS): Enable for Bionic.
28863
28864 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
28865 the last option specified on command line take effect.
28866 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
28867 (mbionic): New.
28868 (mglibc, muclibc): Update.
28869
28870 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
28871 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
28872 DEFAULT_LIBC.
28873
28874 * doc/invoke.texi (-mglibc, -muclibc): Update.
28875 (-mbionic): Document.
28876
28877 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28878
28879 * c-common.h (c_register_addr_space): Add prototype.
28880 (ADDR_SPACE_KEYWORD): Remove.
28881 * c-common.c (c_register_addr_space): New function.
28882 (c_addr_space_name): Reimplement.
28883 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
28884
28885 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
28886 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
28887
28888 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
28889 Remove TARGET_ADDR_SPACE_KEYWORDS.
28890
28891 2010-05-27 Joseph Myers <joseph@codesourcery.com>
28892
28893 * input.c: New file.
28894 * input.h (main_input_filename): Move declaration to toplev.h.
28895 * toplev.c (input_location, line_table): Move to input.c
28896 * toplev.h (main_input_filename): Move declaration from input.h.
28897 * tree.c (expand_location): Move to input.c.
28898 * Makefile.in (OBJS-common): Add input.o.
28899 (input.o): Add dependencies.
28900
28901 2010-05-27 Richard Guenther <rguenther@suse.de>
28902
28903 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
28904 for non-existant files.
28905 (fork_execute): Mark args_name file as deleted.
28906
28907 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
28908
28909 PR bootstrp/44287
28910 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
28911 (narrow_signed_type): Likewise.
28912
28913 2010-05-26 Jan Hubicka <jh@suse.cz>
28914
28915 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
28916 edge only when checking is enabled; check using former_clone_of;
28917 check inline clones too.
28918 (cgraph_materialize_clone): Record former_clone_of pointer.
28919 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
28920 combining redirections; dump args_to_skip bitmap
28921 (cgraph_materialize_all_clones): Do no redirection here.
28922 * ipa-inline.c (inline_transform): Do redirection here.
28923 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
28924 cheking only).
28925
28926 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28927
28928 * config/avr/avr-c.c: Do not include regs.h.
28929 Include cpplib.h for cpp_define and tree.h for c-common.h.
28930 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
28931 * config/avr/t-avr: Fix dependencies for avr-c.o.
28932
28933 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28934
28935 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
28936 string instead of SYMBOL_REF rtx.
28937 * rtl.h (set_stack_check_libfunc): Move prototype from here...
28938 * libfuncs.h: ...to here. Adjust for explow.c change.
28939
28940 2010-05-26 Joseph Myers <joseph@codesourcery.com>
28941
28942 * pretty-print.c: Don't include ggc.h.
28943 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
28944 (identifier_to_locale): Use them for allocation.
28945 * pretty-print.h (identifier_to_locale_alloc,
28946 identifier_to_locale_free): Declare.
28947 * toplev.c (alloc_for_identifier_to_locale): New.
28948 (general_init): Set identifier_to_locale_alloc and
28949 identifier_to_locale_free.
28950 * Makefile.in (pretty-print.o): Update dependencies.
28951
28952 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28953
28954 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
28955 pointer types if they have different alignment or mode.
28956
28957 2010-05-26 Anatoly Sokolov <aesok@post.ru>
28958
28959 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28960 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28961 * config/sparc/sparc-protos.h (function_value): Remove declaration.
28962 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
28963 sparc_function_value_regno_p): New functions.
28964 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28965 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28966 (function_value): Rename to...
28967 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
28968 argument to 'outgoing'.
28969 (function_arg_record_value, function_arg_union_value,
28970 function_arg_vector_value): Update comment.
28971
28972 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28973
28974 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
28975 (fde_needed_for_eh_p): New predicate.
28976 (output_call_frame_info): Use it throughout to decide whether FDEs
28977 are needed for EH purpose.
28978 (dwarf2out_begin_prologue): Reorder assignments.
28979
28980 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28981
28982 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
28983 special case loop->header.
28984 (is_predicated): New.
28985 (if_convertible_loop_p): Call it.
28986
28987 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28988
28989 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
28990 iterator in parameter. Do not generate code during the analysis.
28991 (tree_if_convert_cond_stmt): Removed.
28992 (tree_if_convert_stmt): Removed.
28993 (predicate_bbs): New.
28994 (if_convertible_loop_p): Call predicate_bbs.
28995 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
28996 now contains all the analysis part.
28997
28998 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28999
29000 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
29001 statements in the analysis part.
29002 (tree_if_convert_stmt): Update comment.
29003 (remove_conditions_and_labels): New.
29004 (combine_blocks): Call remove_conditions_and_labels.
29005 (tree_if_conversion): Update comment.
29006
29007 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
29008
29009 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
29010 than 2 predecessors or more than 2 successors.
29011
29012 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
29013
29014 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
29015 of loops in which the data dependence analysis fails.
29016
29017 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
29018
29019 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
29020 CDI_POST_DOMINATORS.
29021 (tree_if_conversion): Same.
29022
29023 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
29024
29025 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
29026
29027 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
29028
29029 * tree-if-conv.c: Update copyright years. Fix comments.
29030 Fix indentation.
29031
29032 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
29033
29034 * builtin-types.def (BT_INT128): New primitive type.
29035 (BT_UINT128): Likewise.
29036 * c-common.c (c_common_r): Add __int128 keyword.
29037 (c_common_type_for_size): Handle __int128.
29038 (c_common_type_for_mode): Likewise.
29039 (c_common_signed_or_unsigned_type): Likewise.
29040 (c_common_nodes_and_builtins): Add builtin type
29041 if target supports 128-bit integer scalar.
29042 * c-common.h (enum rid): Add RID_INT128.
29043 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
29044 if target supports 128-bit integer scalar.
29045 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
29046 (finish_declspecs): Likewise.
29047 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
29048 (c_token_starts_declspecs): Likewise.
29049 (c_parser_declspecs): Likewise.
29050 (c_parser_attributes): Likewise.
29051 (c_parser_objc_selector): Likewise.
29052 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
29053 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
29054 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
29055 * tree.c (make_or_reuse_type): Likewise.
29056 (make_unsigned_type): Likewise.
29057 (build_common_tree_nodes_2): Likewise.
29058 * tree.h (enum integer_type_kind): Add itk_int128 and
29059 itk_unsigned_int128.
29060 (int128_integer_type_node): New define.
29061 (int128_unsigned_type_node): New define.
29062 * doc/extend.texi: Add documentation about __int128 type.
29063
29064 2010-05-26 Richard Guenther <rguenther@suse.de>
29065
29066 * tree-ssa-sccvn.c (copy_nary): Adjust.
29067 (copy_phis): Rename to ...
29068 (copy_phi): ... this. Adjust.
29069 (copy_references): Rename to ...
29070 (copy_reference): ... this. Adjust.
29071 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
29072 result into the valid table.
29073
29074 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
29075
29076 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
29077 insn-config.h, insn-codes.h, recog.h, and optabs.h.
29078
29079 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29080
29081 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
29082
29083 2010-05-26 Richard Guenther <rguenther@suse.de>
29084
29085 * opts.c (common_handle_option): Handle OPT_Ofast.
29086
29087 2010-05-26 Joseph Myers <joseph@codesourcery.com>
29088
29089 * diagnostic.c: Don't include opts.h.
29090 (permissive_error_option): Define.
29091 (diagnostic_initialize): Take n_opts parameter. Allocate memory
29092 for classify_diagnostic. Don't use memset for
29093 classify_diagnostic. Initialize new and recently added fields.
29094 (diagnostic_classify_diagnostic): Use context->n_opts instead of
29095 N_OPTS.
29096 (diagnostic_report_diagnostic): Pass context parameter to
29097 diagnostic_report_warnings_p. Use option_enabled and option_name
29098 hooks from context.
29099 (emit_diagnostic): Use permissive_error_option.
29100 (permerror): Likewise.
29101 * diagnostic.h: Don't include options.h.
29102 (struct diagnostic_context): Add n_opts, opt_permissive,
29103 inhibit_warnings, warn_system_headers, option_enabled and
29104 option_name fields. Change classify_diagnostic to a pointer.
29105 * opts-diagnostic.h: New file.
29106 * opts.c: Include opts-diagnostic.h.
29107 (common_handle_option): Set global_dc fields for -Wfatal-errors,
29108 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
29109 (option_name): New function.
29110 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
29111 (c_common_handle_option): Set global_dc->permissive for
29112 -fpermissive.
29113 * c-common.c (c_cpp_error): Save and restore
29114 global_dc->warn_system_headers, not variable warn_system_headers.
29115 * toplev.c: Include opts-diagnostic.h.
29116 (general_init): Update call to diagnostic_initialize. Set
29117 global_dc->show_column, global_dc->option_enabled and
29118 global_dc->option_name.
29119 (process_options): Don't set global_dc fields here.
29120 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
29121 (diagnostic.o, opts.o, toplev.o): Update dependencies.
29122
29123 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29124
29125 * config/picochip/picochip.md (movsi): Split a movsi from a
29126 const after reload.
29127
29128 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29129
29130 * ggc-zone.c: Update copyright year.
29131 (poison_region): Mark memory for Valgrind as undefined before
29132 memset () call and inaccessible afterwards.
29133 (ggc_pch_total_size): Change type of i to int.
29134
29135 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29136
29137 * ggc-common.c (ggc_free_overhead): Allow empty slot.
29138
29139 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29140
29141 * ggc-common.c: Update copyright year.
29142 (ggc_rlimit_bound): Remove prototype. Compile only if
29143 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
29144 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
29145 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
29146 (ggc_min_heapsize_heuristic): Likewise.
29147
29148 2010-05-26 Richard Guenther <rguenther@suse.de>
29149
29150 PR rtl-optimization/44164
29151 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
29152 no-common access-path disambiguation.
29153 (indirect_ref_may_alias_decl_p): Adjust.
29154 (indirect_refs_may_alias_p): Likewise.
29155 (refs_may_alias_p_1): Likewise.
29156
29157 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
29158
29159 * c-typeck.c: Do not include expr.h.
29160
29161 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
29162
29163 * rtl.h (decl_default_tls_model): Move prototype from here...
29164 * output.h: ...to here.
29165 * c-decl.c: Do not include rtl.h.
29166 * c-pragma.c: Likewise.
29167 * c-parser.c: Likewise.
29168 * c-gimplify.c: Likewise. And also not hard-reg-set.
29169 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
29170 FIXME note for it. Add a FIXME note for expr.h.
29171 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
29172 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
29173 defined.
29174
29175 2010-05-26 Jakub Jelinek <jakub@redhat.com>
29176
29177 PR target/44199
29178 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
29179 or total_size is larger than red zone size for non-V4 ABI, emit a
29180 stack_tie resp. frame_tie insn before stack pointer restore.
29181 * config/rs6000/rs6000.md (frame_tie): New insn.
29182
29183 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
29184
29185 * function.h (struct function): Add can_throw_non_call_exceptions bit.
29186 * lto-streamer-in.c (input_function): Stream it in.
29187 * lto-streamer-out.c (output_function): Stream it out.
29188 * function.c (allocate_struct_function): Set it.
29189 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
29190 for flag_non_call_exceptions.
29191 * cfgbuild.c (control_flow_insn_p): Likewise.
29192 (make_edges): Likewise.
29193 * cfgexpand.c (expand_stack_alignment): Likewise.
29194 * combine.c (distribute_notes): Likewise.
29195 * cse.c (cse_extended_basic_block): Likewise.
29196 * except.c (insn_could_throw_p): Likewise.
29197 * gcse.c (simple_mem): Likewise.
29198 * ipa-pure-const.c (check_call): Likewise.
29199 (check_stmt ): Likewise.
29200 * lower-subreg.c (lower-subreg.c): Likewise.
29201 * optabs.c (emit_libcall_block): Likewise.
29202 (prepare_cmp_insn): Likewise.
29203 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
29204 * postreload.c (rest_of_handle_postreload): Likewise.
29205 * reload1.c (reload_as_needed): Likewise.
29206 (emit_input_reload_insns): Likewise.
29207 (emit_output_reload_insns): Likewise.
29208 (fixup_abnormal_edges): Likewise.
29209 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
29210 * store-motion.c (find_moveable_store): Likewise.
29211 * tree-eh.c (stmt_could_throw_p): Likewise.
29212 (tree_could_throw_p): Likewise.
29213 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
29214 * config/arm/arm.c (arm_expand_prologue): Likewise.
29215 (thumb1_expand_prologue): Likewise.
29216 * config/rx/rx.md (cbranchsf4): Likewise.
29217 (cmpsf): Likewise.
29218 * config/s390/s390.c (s390_emit_prologue): Likewise.
29219 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
29220 (inline_forbidden_into_p): New predicate.
29221 (expand_call_inline): Use it to forbid inlining.
29222 (tree_can_inline_p): Likewise.
29223
29224 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
29225
29226 * config/i386/i386-c.c: Do not include rtl.h.
29227 * config/i386/t-i386: Update dependencies.
29228
29229 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
29230
29231 * attribs.c: Do not include rtl.h.
29232 * Makefile.in: Update dependencies.
29233
29234 2010-05-25 Anatoly Sokolov <aesok@post.ru>
29235
29236 * double-int.h (double_int_and): New.
29237 * combine.c (try_combine): Clean up, use double_int_* and
29238 immed_double_int_const functions.
29239
29240 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29241
29242 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
29243 stderr to /dev/null instead of grep -q.
29244 * configure: Regenerate.
29245
29246 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
29247
29248 * Makefile.in (EXCEPT_H): Fix typo.
29249
29250 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
29251
29252 * ira-build.c (update_conflict_hard_reg_costs): New.
29253 (ira_build): Call update_conflict_hard_reg_costs.
29254
29255 2010-05-25 Jakub Jelinek <jakub@redhat.com>
29256
29257 PR debug/41371
29258 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
29259 ENABLE_CHECKING.
29260 (intersect_loc_chains): Walk the s2var's loc_chain together
29261 with s1node chain as long as the locations are equal, don't
29262 call find_loc_in_1pdv in that case.
29263
29264 PR debug/42801
29265 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
29266 (copy_bind_expr): ... instead of here.
29267 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
29268 if the block hasn't been remapped.
29269 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
29270 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
29271
29272 2010-05-25 Richard Guenther <rguenther@suse.de>
29273
29274 PR middle-end/44069
29275 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
29276 out-of-bounds array accesses.
29277
29278 2010-05-25 Richard Guenther <rguenther@suse.de>
29279
29280 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
29281 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
29282 (run_gcc): Re-organize to make cleanup easier.
29283
29284 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29285
29286 * config/s390/s390.c (optimization_options): Fix and move the
29287 flag_prefetch_loop_arrays override ...
29288 (override_options): ... here.
29289
29290 2010-05-25 Joseph Myers <joseph@codesourcery.com>
29291
29292 * diagnostic.c: Don't include plugin.h.
29293 (diagnostic_report_diagnostic): Don't handle plugins specially
29294 here. Pass context to internal_error callback.
29295 * diagnostic.h (struct diagnostic_context): Add context parameter
29296 to internal_error callback.
29297 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
29298 * plugin.h (struct diagnostic_context): Declare.
29299 (warn_if_plugins, plugins_internal_error_function): Declare.
29300 * toplev.c (general_init): Set global_dc->internal_error.
29301 * Makefile.in (diagnostic.o): Update dependencies.
29302
29303 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
29304
29305 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
29306 * config/rs6000/t-darwin64: New.
29307 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
29308 build crt2.
29309
29310 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
29311
29312 PR 44203
29313 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
29314 match the original (and intended) behaviour before r159557. This
29315 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
29316 in two ways.
29317
29318 2010-05-25 Richard Guenther <rguenther@suse.de>
29319
29320 * doc/invoke.texi: Document -Ofast.
29321 * target.h (struct gcc_target): Add handle_ofast.
29322 * target-def.h (TARGET_HANDLE_OFAST): Add.
29323 (TARGET_INITIALIZER): Adjust.
29324 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
29325 * common.opt (Ofast): Add.
29326
29327 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
29328
29329 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
29330 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
29331
29332 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
29333
29334 PR target/43610
29335 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
29336 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
29337 false_rtx. Use false_rtx to compute the correct *ptest for reversed
29338 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
29339
29340 2010-05-25 Jakub Jelinek <jakub@redhat.com>
29341
29342 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
29343 DW_OP_minus with negated offset instead of DW_OP_plus.
29344 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
29345
29346 2010-05-25 Wei Guozhi <carrot@google.com>
29347
29348 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
29349 tst instruction and a new alternative.
29350 * config/arm/constraints.md (Pu): New constraint.
29351
29352 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
29353
29354 * function.c (assign_stack_local_1): Initialize variable
29355 to avoid warning when bootstrapping at -O3.
29356
29357 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
29358
29359 * configure.ac (all_lang_makefiles): Remove everything related to it.
29360 * configure: Regenerate.
29361 * Makefile.in: Fix reference to ada Make-lang.in.
29362 Remove support for LANG_MAKEFILES.
29363
29364 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
29365 Sandra Loosemore <sandra@codesourcery.com>
29366
29367 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
29368 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
29369 description. Add arm_neon_fp16_ok.
29370 (Add Options): Add arm_neon and arm_neon_fp16.
29371
29372 2010-05-24 Joseph Myers <joseph@codesourcery.com>
29373
29374 * diagnostic.c: Don't include flags.h.
29375 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
29376 context parameters. Check flags in the context passed as a parameter.
29377 (diagnostic_build_prefix): Add context parameter. Check
29378 show_column flag in context.
29379 (diagnostic_action_after_output): Check fatal_errors flag in context.
29380 (diagnostic_report_current_module): Check show_column flag in context.
29381 (default_diagnostic_starter): Update call to
29382 diagnostic_build_prefix.
29383 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
29384 (emit_diagnostic): Pass context to permissive_error_kind.
29385 (permerror): Pass context to permissive_error_kind.
29386 * diagnostic.h (struct diagnostic_context): Add show_column,
29387 pedantic_errors, permissive and fatal_errors fields.
29388 (diagnostic_build_prefix): Update prototype.
29389 * langhooks.c
29390 * toplev.c (process_options): Set flags in global_dc from
29391 flag_show_column, flag_pedantic_errors, flag_permissive,
29392 flag_fatal_errors.
29393 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
29394 to diagnostic_build_prefix.
29395 * Makefile.in (diagnostic.o): Update dependencies.
29396
29397 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
29398
29399 * config/i386/ia32intrin.h (__crc32q): Define only if
29400 __SSE4_2__ is defined.
29401
29402 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
29403
29404 PR target/44132
29405 PR middle-end/43602
29406 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
29407 DECL_VISIBILITY_SPECIFIED.
29408 (emutls_decl): Set DECL_PRESERVE_P and copy
29409 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
29410 (emutls_finalize_control_var): New callback.
29411 (emutls_finish): Finalize emutls control variables.
29412 * toplev.c (compile_file): Move the call to emutls_finish ()
29413 before varpool_assemble_pending_decls ().
29414
29415 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
29416
29417 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
29418 added to the preprocessor condition.
29419
29420 2010-05-24 Paul Brook <paul@codesourcery.com>
29421
29422 * gengtype-lex.l: Add HARD_REG_SET.
29423 * expr.c (expand_expr_real_1): Record writes to hard registers.
29424 * function.c (rtl_data): Add asm_clobbers.
29425 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
29426 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
29427 Use crtl->asm_clobbers.
29428
29429 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29430
29431 * doc/makefile.texi (Makefile): Mention stages 'profile'
29432 and 'feedback' for profiledbootstrap.
29433
29434 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
29435
29436 PR target/44245
29437 * config/i386/i386.c (def_builtin): Properly check
29438 OPTION_MASK_ISA_64BIT.
29439
29440 2010-05-23 Joseph Myers <joseph@codesourcery.com>
29441
29442 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
29443 typedefs with different but compatible types. Allow duplicate
29444 typedefs with the same type except for pedantic non-C1X, but give
29445 warning for variably modified types.
29446 * c-typeck.c (tagged_types_tu_compatible_p,
29447 function_types_compatible_p, type_lists_compatible_p,
29448 comptypes_internal): Add parameter different_types_p; set
29449 *different_types_p for different but compatible types. All
29450 callers changed.
29451 (comptypes_check_different_types): New.
29452 * c-tree.h (comptypes_check_different_types): Declare.
29453
29454 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
29455
29456 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
29457 * jump.c: Include basic-block.h.
29458 * profile.c: Likewise.
29459 * tree-profile.c: Likewise.
29460 * coverage.c: Likewise.
29461 * basic-block.h (optimize_function_for_size_p): Move to function.h.
29462 (optimize_function_for_speed_p): Likewise.
29463 * function.h (optimize_function_for_size_p,
29464 optimize_function_for_speed_p): Moved here from basic-block.h.
29465 * Makefile.in: Update dependencies.
29466
29467 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29468
29469 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
29470 before calling make; allow override through $MAKE.
29471 * doc/invoke.texi (Optimize Options): Document override.
29472
29473 2010-05-23 Anatoly Sokolov <aesok@post.ru>
29474
29475 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
29476 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29477 (rs6000_mode_dependent_address_ptr): Make static.
29478 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29479 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
29480 Remove.
29481
29482 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
29483
29484 PR target/43869
29485 * config/i386/i386.c: Make sure that the correct regparm is passed.
29486
29487 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
29488
29489 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
29490 * sbitmap.c: ...to here to internalize sbitmap element access.
29491 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
29492 Explain why basic-block.h is included.
29493 * function.h: Include tm.h for CUMULATIVE_ARGS.
29494 * Makefile.in: Update dependencies.
29495
29496 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
29497
29498 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
29499 New core types.
29500 * sbitmap.h (struct sbitmap_def): Do not typedef here.
29501 * sbitmap.c: Include sbitmap.h.
29502 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
29503 hard-reg-set.h. Split everything related to regsets out from here...
29504 * regset.h: ...to here. New file.
29505 * df.h: Include regset.h and sbitmap.h.
29506 * tree-flow.h: Likewise.
29507 * cfgloop.h: Likewise.
29508 * except.h: Do not include sbitmap.h. Include hashtab.h.
29509 * cgraph.h: Include vec.h and function.h.
29510 * reload.h (struct insn_chain): Change types of live_throughout
29511 and dead_or_set from regset_head to bitmap_head.
29512 (compute_use_by_pseudos): Be defined also if regset.h is not included.
29513 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
29514 spilled_regs from regset_head to bitmap_head to avoid dependency
29515 in regset.h.
29516 * sel-sched-ir.h: Include regset.h.
29517 * reload.c: Include df.h before reload.h.
29518 * caller-save.c: Likewise.
29519 * reload1.c: Likewise.
29520 * ira.c: Likewise.
29521 (mark_elimination): Update type of r to bitmap, consistent with
29522 DF_LR_IN.
29523 * dominance.c: Include bitmap.h.
29524 * modulo-sched.c: Include df.h.
29525 * cfganal.c: Include bitmap.h and sbitmap.h.
29526 * cfgbuild.c: Include sbitmap.h.
29527 * lcm.c: Include sbitmap.h.
29528 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
29529 * domwalk.c: Include sbitmap.h, exclude ggc.h.
29530 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
29531 * cselib.c: Include bitmap.h.
29532 * tree-optimize.c: Include regset.h.
29533 * stmt.c: Include bitmap.h.
29534 * Makefile.in: Update dependencies.
29535
29536 2010-05-22 Jan Hubicka <jh@suse.cz>
29537
29538 * cgraph.h (struct varpool_node): Add same_comdat_group.
29539 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
29540 pointer.
29541 (output_varpool): Update call of lto_output_varpool_node.
29542 (input_varpool): Read same_comdat_group pointer.
29543 (input_varpool_1): Fixup same_comdat_group pointer.
29544 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
29545 group is needed, all are.
29546 * varpool.c (varpool_remove_node): Remove node from same comdat group
29547 linklist too.
29548 (varpool_analyze_pending_decls): Walk same comdat groups.
29549
29550 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
29551
29552 * rtl.h (union rtunion_def): Remove rt_bit member.
29553 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
29554 * print-rtl (print_rtx): Do not print the member.
29555 * gengtype.c (adjust_field_rtx_def): Do not handle it.
29556 * gengenrtl.c (type_from_format): Likewise.
29557 (accessor_from_format): Likewise.
29558
29559 2010-05-22 Joseph Myers <joseph@codesourcery.com>
29560
29561 * dbgcnt.c: Include toplev.h instead of errors.h.
29562 * ira-emit.c: Don't include errors.h.
29563 * ira.c: Include toplev.h instead of errors.h.
29564 * lto-compress.c: Include toplev.h instead of errors.h.
29565 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
29566 ira.o, dbgcnt.o): Update dependencies.
29567
29568 2010-05-22 Richard Guenther <rguenther@suse.de>
29569
29570 * gimple.c (gimple_types_compatible_p): Check type qualifications
29571 before merging pointer to complete and pointer to incomplete type.
29572 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
29573 we use our own resolution algorithm. The gold linker plugin
29574 doesn't do the job we want it to do here.
29575
29576 2010-05-22 Anatoly Sokolov <aesok@post.ru>
29577
29578 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29579 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29580 (sparc_mode_dependent_address_p): New function.
29581
29582 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29583
29584 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
29585
29586 * timevar.c: Do not include any core headers.
29587 (timevar_print): De-i18n-ize.
29588 (print_time): Likewise.
29589 * timevar.h (timevar_push, timevar_pop): Make inline functions.
29590
29591 2010-05-21 Joseph Myers <joseph@codesourcery.com>
29592
29593 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
29594 langhooks-def.h.
29595 (diagnostic_initialize): Initialize x_data not last_function.
29596 (diagnostic_report_current_function): Move to tree-diagnostic.c.
29597 (default_diagnostic_starter): Call
29598 diagnostic_report_current_module not
29599 diagnostic_report_current_function.
29600 (diagnostic_report_diagnostic): Initialize x_data not
29601 abstract_origin.
29602 (verbatim): Likewise.
29603 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
29604 x_data.
29605 (struct diagnostic_context): Change last_function to x_data.
29606 (diagnostic_auxiliary_data): Replace with
29607 diagnostic_context_auxiliary_data and
29608 diagnostic_info_auxiliary_data.
29609 (diagnostic_last_function_changed, diagnostic_set_last_function,
29610 diagnostic_report_current_function): Move to tree-diagnostic.h.
29611 (print_declaration, dump_generic_node, print_generic_stmt,
29612 print_generic_stmt_indented, print_generic_expr,
29613 print_generic_decl, debug_c_tree, dump_omp_clauses,
29614 print_call_name, debug_generic_expr, debug_generic_stmt,
29615 debug_tree_chain, default_tree_printer): Move to
29616 tree-pretty-print.h.
29617 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
29618 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
29619 gimple-pretty-print.h.
29620 * pretty-print.c: Don't include tree.h
29621 (pp_base_format): Don't handle %K here.
29622 (pp_base_tree_identifier): Move to tree-pretty-print.c.
29623 * pretty-print.h (text_info): Change abstract_origin to x_data.
29624 (pp_tree_identifier, pp_unsupported_tree,
29625 pp_base_tree_identifier): Move to tree-pretty-print.h.
29626 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
29627 tree-pretty-print.h: New files.
29628 * tree-pretty-print.c: Include tree-pretty-print.h.
29629 (percent_K_format): New. Moved from pretty-print.c.
29630 (pp_base_tree_identifier): Move from pretty-print.c.
29631 * c-objc-common.c: Include tree-pretty-print.h.
29632 (c_tree_printer): Handle %K here.
29633 * langhooks.c: Include tree-diagnostic.h.
29634 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
29635 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
29636 (default_tree_printer): Handle %K using percent_K_format.
29637 (general_init): Use default_tree_diagnostic_starter.
29638 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
29639 (free_lang_data): Use default_tree_diagnostic_starter.
29640 * c-pretty-print.c: Include tree-pretty-print.h.
29641 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29642 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29643 * dwarf2out.c: Include tree-pretty-print.h.
29644 * except.c: Include tree-pretty-print.h.
29645 * gimple-pretty-print.c: Include tree-pretty-print.h and
29646 gimple-pretty-print.h.
29647 * gimplify.c: Include tree-pretty-print.h.
29648 * graphite-poly.c: Include tree-pretty-print.h and
29649 gimple-pretty-print.h.
29650 * ipa-cp.c: Include tree-pretty-print.h.
29651 * ipa-inline.c: Include gimple-pretty-print.h.
29652 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29653 * ipa-pure-const.c: Include gimple-pretty-print.h.
29654 * ipa-struct-reorg.c: Include tree-pretty-print.h and
29655 gimple-pretty-print.h.
29656 * ipa-type-escape.c: Include tree-pretty-print.h.
29657 * print-rtl.c: Include tree-pretty-print.h.
29658 * print-tree.c: Include gimple-pretty-print.h.
29659 * sese.c: Include tree-pretty-print.h.
29660 * tree-affine.c: Include tree-pretty-print.h.
29661 * tree-browser.c: Include tree-pretty-print.h.
29662 * tree-call-cdce.c: Include gimple-pretty-print.h.
29663 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
29664 * tree-chrec.c: Include tree-pretty-print.h.
29665 * tree-data-ref.c: Include tree-pretty-print.h and
29666 gimple-pretty-print.h.
29667 * tree-dfa.c: Include tree-pretty-print.h.
29668 * tree-if-conv.c: Include tree-pretty-print.h and
29669 gimple-pretty-print.h.
29670 * tree-inline.c: Include tree-pretty-print.h.
29671 * tree-into-ssa.c: Include tree-pretty-print.h and
29672 gimple-pretty-print.h.
29673 * tree-nrv.c: Include tree-pretty-print.h.
29674 * tree-object-size.c: Include tree-pretty-print.h and
29675 gimple-pretty-print.h.
29676 * tree-outof-ssa.c: Include tree-pretty-print.h and
29677 gimple-pretty-print.h.
29678 * tree-parloops.c: Include tree-pretty-print.h and
29679 gimple-pretty-print.h.
29680 * tree-predcom.c: Include tree-pretty-print.h and
29681 gimple-pretty-print.h.
29682 * tree-scalar-evolution.c: Include tree-pretty-print.h and
29683 gimple-pretty-print.h.
29684 * tree-sra.c: Include tree-pretty-print.h.
29685 * tree-ssa-address.c: Include tree-pretty-print.h.
29686 * tree-ssa-alias.c: Include tree-pretty-print.h.
29687 * tree-ssa-ccp.c: Include tree-pretty-print.h and
29688 gimple-pretty-print.h.
29689 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
29690 * tree-ssa-copy.c: Include tree-pretty-print.h and
29691 gimple-pretty-print.h.
29692 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
29693 * tree-ssa-dce.c: Include tree-pretty-print.h and
29694 gimple-pretty-print.h.
29695 * tree-ssa-dom.c: Include tree-pretty-print.h and
29696 gimple-pretty-print.h.
29697 * tree-ssa-dse.c: Include gimple-pretty-print.h.
29698 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
29699 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
29700 * tree-ssa-live.c: Include tree-pretty-print.h and
29701 gimple-pretty-print.h.
29702 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
29703 gimple-pretty-print.h.
29704 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
29705 gimple-pretty-print.h.
29706 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
29707 gimple-pretty-print.h.
29708 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
29709 gimple-pretty-print.h.
29710 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
29711 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
29712 * tree-ssa-operands.c: Include tree-pretty-print.h and
29713 gimple-pretty-print.h.
29714 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
29715 gimple-pretty-print.h.
29716 * tree-ssa-pre.c: Include tree-pretty-print.h and
29717 gimple-pretty-print.h.
29718 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
29719 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
29720 gimple-pretty-print.h.
29721 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
29722 gimple-pretty-print.h.
29723 * tree-ssa-sink.c: Include gimple-pretty-print.h.
29724 * tree-ssa-ter.c: Include tree-pretty-print.h and
29725 gimple-pretty-print.h.
29726 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
29727 * tree-ssa.c: Include tree-pretty-print.h and
29728 gimple-pretty-print.h.
29729 * tree-stdarg.c: Include gimple-pretty-print.h.
29730 * tree-switch-conversion.c: Include gimple-pretty-print.h.
29731 * tree-tailcall.c: Include tree-pretty-print.h and
29732 gimple-pretty-print.h.
29733 * tree-vect-data-refs.c: Include tree-pretty-print.h and
29734 gimple-pretty-print.h.
29735 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
29736 gimple-pretty-print.h.
29737 * tree-vect-loop.c: Include tree-pretty-print.h and
29738 gimple-pretty-print.h.
29739 * tree-vect-patterns.c: Include gimple-pretty-print.h.
29740 * tree-vect-slp.c: Include tree-pretty-print.h and
29741 gimple-pretty-print.h.
29742 * tree-vect-stmts.c: Include tree-pretty-print.h and
29743 gimple-pretty-print.h.
29744 * tree-vectorizer.c: Include tree-pretty-print.h.
29745 * tree-vrp.c: Include tree-pretty-print.h and
29746 gimple-pretty-print.h.
29747 * value-prof.c: Include tree-pretty-print.h and
29748 gimple-pretty-print.h.
29749 * var-tracking.c: Include tree-pretty-print.h.
29750 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
29751 (tree-diagnostic.o): New dependencies.
29752 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
29753 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
29754 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
29755 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
29756 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
29757 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
29758 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
29759 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
29760 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
29761 tree-ssa-address.o, tree-ssa-loop-niter.o,
29762 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
29763 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
29764 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
29765 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
29766 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
29767 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
29768 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
29769 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
29770 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
29771 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
29772 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
29773 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
29774 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
29775 tree-switch-conversion.o, var-tracking.o, value-prof.o,
29776 cfgexpand.o, pretty-print.o): Update dependencies.
29777
29778 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
29779
29780 * tree-ssa-structalias.c: Remove tm_p.h from include.
29781
29782 2010-05-21 Jeff Law <law@redhat.com>
29783
29784 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
29785
29786 2010-05-21 Jason Merrill <jason@redhat.com>
29787
29788 * tree-eh.c (cleanup_is_dead_in): New.
29789 (lower_try_finally): Don't generate a dead cleanup region.
29790 (lower_cleanup): Likewise.
29791
29792 2010-05-21 Jakub Jelinek <jakub@redhat.com>
29793
29794 PR debug/44223
29795 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
29796 unchain each use from the cyclic next_regno_use chain first.
29797
29798 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29799
29800 * real: Do not include gmp.h, mpfr.h, and mpc.h.
29801 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
29802 (real_value_negate, real_value_abs): New prototypes.
29803 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
29804 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
29805 new include file for interface between MPFR and REAL_VALUE_TYPE.
29806 * real.c: Include realmpfr.h.
29807 (real_arithmetic2): Remove legacy function.
29808 (real_value_negate): New.
29809 (real_value_abs): New.
29810 (mfpr_from_real, real_from_mpfr): Move from here...
29811 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
29812 * builtins.c: Include realmpfr.h.
29813 * fold-const.c: Include realmpfr.h.
29814 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
29815 (fold_negate_const): Likewise.
29816 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
29817 * toplev.c: Include realmpfr.h.
29818 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
29819 and real_value_negate.
29820 * fixed-value.c (check_real_for_fixed_mode): Likewise.
29821 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
29822 (vfp3_const_double_index): Likewise.
29823 (arm_print_operand): Likewise.
29824 * Makefile.in: Update dependencies.
29825
29826 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29827
29828 * config/s390/s390.c (override_options): Increase the default
29829 of max-completely-peel-times.
29830
29831 2010-05-21 Julian Brown <julian@codesourcery.com>
29832 Mark Mitchell <mark@codesourcery.com>
29833
29834 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
29835 sibling calls for Thumb-1.
29836 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
29837 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
29838 Thumb-2.
29839 (*call_insn, *call_value_insn): Don't use for Thumb-2.
29840 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
29841 for Thumb-2.
29842 (return): New expander.
29843 (*arm_return): New name for ARM return insn.
29844 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
29845
29846 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
29847
29848 * config.gcc (sparc64-*-rtems*): New target.
29849
29850 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29851
29852 * tree.c (build_function_decl_skip_args): Fix grammar.
29853 (build_function_type_list_1): Fix typos, adjust formatting.
29854
29855 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29856
29857 * tree.h: Include real.h and fixed-value.h as basic datatypes.
29858 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
29859 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
29860 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
29861 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
29862 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
29863 tree-pretty-print.c, tree-loop-distribution.c,
29864 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
29865 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
29866 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
29867 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
29868 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
29869 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
29870 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
29871 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
29872 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
29873 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
29874 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
29875 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
29876 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
29877 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
29878 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
29879 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
29880 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
29881 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
29882 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
29883 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
29884 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
29885 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
29886 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
29887 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
29888 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
29889 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
29890 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
29891 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
29892 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
29893 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
29894 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
29895 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
29896 config/score/score7.c, config/score/score.c, config/arm/arm.c,
29897 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
29898 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
29899 config/bfin/bfin.c: Clean up redundant includes.
29900 * Makefile.in: Update accordingly.
29901
29902 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29903
29904 PR middle-end/44204
29905 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
29906 statement has no arguments.
29907
29908 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
29909
29910 PR/44139
29911 * varasm.c (emutls_decl): Merge attributes to new decl.
29912
29913 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
29914
29915 PR middle-end/44101
29916 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
29917 around the uniquized constructor if its type requires a conversion.
29918
29919 2010-05-21 Jakub Jelinek <jakub@redhat.com>
29920
29921 PR debug/44205
29922 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
29923 at -O0 goto_locus of any of the incoming edges differs from
29924 goto_locus of outgoing edge, or gimple_location of any of the
29925 labels differs.
29926
29927 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
29928
29929 * ira.c (ira_non_ordered_class_hard_regs): Define.
29930 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
29931 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
29932 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
29933 cost of unaligned hard regs when allocating multi-reg pseudos.
29934
29935 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
29936
29937 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
29938 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
29939 for TARGET_NO_FLOAT.
29940 * config/mips/mips.c (mips_file_start): Expand conditional expression
29941 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
29942 (mips_override_options): Move -mno-float override -msoft-float and
29943 -mhard-float.
29944 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
29945 Condition(TARGET_SUPPORTS_NO_FLOAT).
29946 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
29947 __mips_no_float here.
29948 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
29949 (TARGET_SUPPORTS_NO_FLOAT): Define.
29950 * config/mips/sdemtk.opt: Delete.
29951
29952 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
29953
29954 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
29955
29956 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
29957
29958 PR target/43733
29959 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
29960 * configure: Regenerate.
29961 * config.in: Regenerate.
29962 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
29963 instead of sahf only for 64bit targets.
29964
29965 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29966
29967 PR debug/44178
29968 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
29969 setup_ref_regs for DEBUG_INSNs.
29970
29971 2010-05-20 Jan Hubicka <jh@suse.cz>
29972
29973 PR middle-end/44197
29974 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
29975
29976 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
29977
29978 PR bootstrap/43870
29979 * df-scan.c (df_ref_compare): Stabilize sort.
29980
29981 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29982
29983 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
29984 argument. Don't use DW_OP_piece if offset is non-zero,
29985 put offset into second DW_OP_bit_piece argument.
29986 (dw_sra_loc_expr): Adjust callers. For memory expressions
29987 compute offset.
29988
29989 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
29990
29991 PR target/44202
29992 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
29993 settings for 16-bit-constant "addo" alternative.
29994
29995 2010-05-19 James E. Wilson <wilson@codesourcery.com>
29996
29997 * config/mips/mips-dsp.md (add<DSPV:mode>3,
29998 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
29999
30000 PR target/43764
30001 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
30002 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
30003 Use it.
30004
30005 2010-05-19 Joseph Myers <joseph@codesourcery.com>
30006
30007 * diagnostic.c (FLOAT, FFS): Don't undefine.
30008 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
30009 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
30010 include ordering.
30011
30012 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30013
30014 * combine.c (propagate_for_debug): Call make_compound_operation
30015 on the source value.
30016 (try_combine): When implementing a split chosen by find_split_point,
30017 either copy i2src or set it to null. Assert that i2src is not null
30018 before substituting into CALL_INSN_FUNCTION_USAGE.
30019
30020 2010-05-19 Anatoly Sokolov <aesok@post.ru>
30021
30022 * double-int.h (double_int_ior): New function.
30023 * tree.h (build_int_cst_wide_type): Remove.
30024 * tree.c (build_int_cst_wide_type): Remove.
30025 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
30026 of build_int_cst_wide_type.
30027 * stor-layout.c (set_sizetype): (Ditto.).
30028 * dojump.c (do_jump): Use build_int_cstu instead of
30029 build_int_cst_wide_type.
30030
30031 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
30032
30033 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
30034 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
30035 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
30036 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
30037 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
30038 propagate the 'data' argument to copy_tree_r.
30039 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
30040 Propagate 'data' argument to walk_tree.
30041 (copy_if_shared): New function.
30042 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
30043 (unmark_visited): New function.
30044 (unshare_body): Call copy_if_shared instead of doing it manually.
30045 (unvisit_body): Call unmark_visited instead of doing it manually.
30046
30047 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
30048
30049 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
30050 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
30051 * hooks.c: Likewise.
30052 * target-def.h (TARGET_FOLD_BUILTIN): Define to
30053 hook_tree_tree_int_treep_bool_null.
30054 * target.h (struct gcc_target): Update signature of fold_builtin
30055 field.
30056 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
30057 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
30058 instead of the call expression.
30059 (fold_builtin_call_array): Pass n and argarray directly.
30060 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
30061 consing a list.
30062 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
30063 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
30064 `i' and use it in place of `arity'.
30065 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
30066 Dereference `args' directly.
30067 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
30068
30069 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30070
30071 * doc/sourcebuild.texi (Effective-Target Keywords): Document
30072 3dnow, sse3, sse2.
30073 (Directives): Document optional dg-require-effective-target
30074 selector.
30075
30076 2010-05-19 Richard Guenther <rguenther@suse.de>
30077
30078 PR lto/44196
30079 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
30080
30081 2010-05-19 Richard Guenther <rguenther@suse.de>
30082
30083 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
30084 * common.opt (fwhopr=): New.
30085 * opts.c (common_handle_option): Handle OPT_fwhopr.
30086 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
30087 * collect2.c (main): Match -fwhopr*.
30088 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
30089 Execute ltrans stage in parallel when jobs is bigger than 1.
30090
30091 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30092
30093 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
30094 pentiumpro on Solaris 8/x86 with Sun as.
30095 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
30096 hidden alias bug.
30097 (gcc_cv_as_ix86_quad): Check for .quad directive.
30098 * configure: Regenerate.
30099 * config.in: Regenerate.
30100 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
30101
30102 2010-05-19 Martin Jambor <mjambor@suse.cz>
30103
30104 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
30105 also for indirect edges. Actual printing moved...
30106 (ipa_print_node_jump_functions_for_edge): ...here.
30107 (ipa_compute_jump_functions): Renamed to
30108 ipa_compute_jump_functions_for_edge and made static.
30109 (ipa_compute_jump_functions): New function.
30110 (make_edge_direct_to_target): Check if the number of arguments on
30111 the newly direct edge is the same as the number of parametrs of
30112 the callee.
30113 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
30114 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
30115 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
30116 analysis functions unconditionally, call the new
30117 ipa_analyze_params_uses on the node instead of every edge.
30118
30119 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
30120
30121 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
30122 to tree.
30123 (dump_mem_ref): Adopt debug code to handle a tree as step. This
30124 also checks for a constant int vs. non-constant but
30125 loop-invariant steps.
30126 (find_or_create_group): Change the sort algorithm to only consider
30127 steps that are constant ints.
30128 (idx_analyze_ref): Adopt code to handle a tree instead of a
30129 HOST_WIDE_INT for step.
30130 (gather_memory_references_ref): Handle tree instead of int and be
30131 prepared to see a NULL_TREE.
30132 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
30133 prefetches if the step cannot be calculated at compile time.
30134 (issue_prefetch_ref): Issue prefetches for non-constant but
30135 loop-invariant steps.
30136
30137 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
30138
30139 Revert:
30140 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
30141
30142 * tree.h (build_call_list): Remove.
30143 * tree.c (build_call_list): Remove.
30144
30145 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
30146
30147 * tree.h (build_call_list): Remove.
30148 * tree.c (build_call_list): Remove.
30149
30150 2010-05-18 Jan Hubicka <jh@suse.cz>
30151
30152 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
30153
30154 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
30155
30156 PR rtl-optimization/43332
30157 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
30158
30159 2010-05-18 Anatoly Sokolov <aesok@post.ru>
30160
30161 * tree.h (build_int_cstu): Implement as static inline.
30162 * tree.c (build_int_cstu): Remove function.
30163 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
30164 sign extended.
30165
30166 2010-05-18 Richard Guenther <rguenther@suse.de>
30167
30168 PR lto/44143
30169 * lto-wrapper.c (verbose): New variable. Initialize from -v.
30170 (debug): Initialize from -save-temps.
30171 (collect_execute): Print command-line when verbose.
30172 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
30173 for ltrans invocation. Produce -dumpbase flag again.
30174 (process_args): Remove.
30175 (main): Simplify.
30176 * collect2.c (maybe_run_lto_and_relink): Only pass object
30177 files to lto-wrapper.
30178 * gcc.c (LINK_COMMAND_SPEC): Likewise.
30179
30180 2010-05-18 Jan Hubicka <jh@suse.cz>
30181
30182 * opts.c (decode_options): Do not disable whopr at ipa_cp.
30183 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
30184
30185 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
30186
30187 PR lto/44184
30188 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
30189 in a GIMPLE_ASM.
30190 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
30191 in a GIMPLE_ASM.
30192
30193 2010-05-18 Jakub Jelinek <jakub@redhat.com>
30194
30195 PR debug/41371
30196 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
30197 rtx_equal_p inline.
30198
30199 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
30200
30201 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
30202 lto-macho as lto_binary_reader.
30203
30204 * darwin.c (darwin_asm_named_section): Do not add assembler comment
30205 after .section directive; just print it before the directive instead.
30206
30207 2010-05-17 Jan Hubicka <jh@suse.cz>
30208
30209 * cgraph.c (cgraph_create_virtual_clone): Only check
30210 versionable_function_p when not in wpa and checking is enabled.
30211 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
30212 there are no more functions to materialize.
30213
30214 2010-05-17 Jan Hubicka <jh@suse.cz>
30215
30216 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
30217 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
30218 New functions.
30219 (output_cgraph): Call output_cgraph_opt_summary.
30220 (input_cgrpah): Call input_cgraph_opt_summary.
30221 (output_cgraph_opt_summary_p, output_node_opt_summary,
30222 input_node_opt_summary, input_cgraph_opt_section): New functions.
30223 * lto-section-in.c (lto_section_name): Add cgraphopt.
30224 * tree-inline.c (tree_function_versioning): Handle parm_num.
30225 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
30226 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
30227
30228 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
30229
30230 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
30231 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
30232 the insn to prefetch ratio heuristic to loops with known trip count.
30233
30234 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
30235
30236 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
30237 (schedule_prefetches): Do not generate a prefetch if the unroll factor
30238 is far from what is required by the prefetch.
30239
30240 2010-05-17 Jan Hubicka <jh@suse.cz>
30241
30242 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
30243 (ipcp_estimate_growth): Likewise.
30244 (ipcp_const_param_count): Likewise.
30245 (ipcp_insert_stage): Likewise.
30246 * ipa-prop.c (visit_load_for_mod_analysis): New function.
30247 (visit_store_addr_for_mod_analysis): Set used flag.
30248 (ipa_detect_param_modifications): Set used flag for SSE params;
30249 update use of walk_stmt_load_store_addr_ops.
30250 (ipa_print_node_params): Print used flag.
30251 (ipa_write_node_info): Stream used flag.
30252 (ipa_read_node_info): Likewise.
30253 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
30254 (ipa_is_param_used): New function.
30255 (lto_ipa_fixup_call_notes): Remove unused declaration.
30256
30257 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30258
30259 PR target/44074
30260 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
30261 * configure: Regenerate.
30262 * config.in: Regenerate.
30263 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
30264 !HAVE_AS_IX86_REP_LOCK_PREFIX.
30265 Don't emit whitespace.
30266 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
30267 (*rep_movsi): Likewise.
30268 (*rep_movsi_rex64): Likewise.
30269 (*rep_movqi): Likewise.
30270 (*rep_movqi_rex64): Likewise.
30271 (*rep_stosdi_rex64): Likewise.
30272 (*rep_stossi): Likewise.
30273 (*rep_stossi_rex64): Likewise.
30274 (*rep_stosqi): Likewise.
30275 (*rep_stosqi_rex64): Likewise.
30276 (*cmpstrnqi_nz_1): Use {%;} after repz.
30277 (*cmpstrnqi_nz_rex_1): Likewise.
30278 (*cmpstrnqi_1): Likewise.
30279 (*cmpstrnqi_rex_1): Likewise.
30280 (*strlenqi_1): Use {%;} after repnz.
30281 (*strlenqi_rex_1): Likewise.
30282 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
30283 (*sync_compare_and_swap<mode>): Likewise.
30284 (sync_double_compare_and_swap<mode>): Likewise.
30285 (*sync_double_compare_and_swapdi_pic): Likewise.
30286 (sync_old_add<mode>): Likewise.
30287 (sync_add<mode>): Likewise.
30288 (sync_sub<mode>): Likewise.
30289 (sync_<code><mode>): Likewise.
30290
30291 2010-05-17 Martin Jambor <mjambor@suse.cz>
30292
30293 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
30294 otr_token and polymorphic.
30295 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
30296 (cgraph_clone_edge): Copy the above fields.
30297 * tree.c (get_binfo_at_offset): New function.
30298 * tree.h (get_binfo_at_offset): Declare.
30299 * ipa-prop.h (enum jump_func_type): Added known_type jump function
30300 type, reordered items, updated comments.
30301 (union jump_func_value): Added base_type field, reordered fields.
30302 (enum ipa_lattice_type): Moved down in the file.
30303 (struct ipa_param_descriptor): New field polymorphic.
30304 (ipa_is_param_polymorphic): New function.
30305 * ipa-prop.c: Include gimple.h and gimple-fold.h.
30306 (ipa_print_node_jump_functions): Print known type jump functions.
30307 (compute_complex_pass_through): Renamed to...
30308 (compute_complex_assign_jump_func): this.
30309 (compute_complex_ancestor_jump_func): New function.
30310 (compute_known_type_jump_func): Likewise.
30311 (compute_scalar_jump_functions): Create known type and complex ancestor
30312 jump functions.
30313 (ipa_note_param_call): New parameter polymorphic, set the corresponding
30314 flag in the call note accordingly.
30315 (ipa_analyze_call_uses): Renamed to...
30316 (ipa_analyze_indirect_call_uses): this. New parameter target, define
30317 variable var only in the block where it is used.
30318 (ipa_analyze_virtual_call_uses): New function.
30319 (ipa_analyze_call_uses): Likewise.
30320 (combine_known_type_and_ancestor_jfs): Likewise.
30321 (update_jump_functions_after_inlining): Implemented handling of a
30322 number of new jump function types combination.
30323 (print_edge_addition_message): Removed.
30324 (make_edge_direct_to_target): New function.
30325 (try_make_edge_direct_simple_call): Likewise.
30326 (try_make_edge_direct_virtual_call): Likewise.
30327 (update_call_notes_after_inlining): Renamed to...
30328 (update_indirect_edges_after_inlining): this. Moved edge creation for
30329 indirect calls to try_make_edge_direct_simple_call, also calls
30330 try_make_edge_direct_virtual_call for virtual calls.
30331 (ipa_print_node_params): Changed the header message.
30332 (ipa_write_jump_function): Stream also known type jump functions.
30333 (ipa_read_jump_function): Likewise.
30334 (ipa_write_indirect_edge_info): Stream new fields in
30335 cgraph_indirect_call_info.
30336 (ipa_read_indirect_edge_info): Likewise.
30337 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
30338 GIMPLE_FOLD_H.
30339
30340 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30341
30342 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
30343
30344 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
30345
30346 * tree.h (CALL_EXPR_ARGS): Delete.
30347 (call_expr_arglist): Delete.
30348 * tree.c (call_expr_arglist): Delete.
30349 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
30350 targetm.fold_builtin.
30351 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
30352 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
30353 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
30354 arglist parameter. Use CALL_EXPR_ARG.
30355 (picochip_expand_builtin_3op): Likewise.
30356 (picochip_expand_builtin_2opvoid): Likewise.
30357 (picochip_expand_array_get): Likewise.
30358 (picochip_expand_array_put): Likewise.
30359 (picochip_expand_array_testport): Likewise.
30360 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
30361 rather than arglist.
30362 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
30363 CALL_EXPR_ARGS.
30364 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
30365 than TREE_VALUE and TREE_CHAIN.
30366 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
30367 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
30368 the arglist.
30369
30370 2010-05-17 Jakub Jelinek <jakub@redhat.com>
30371
30372 PR bootstrap/42347
30373 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
30374 to have no fallthru edge.
30375
30376 PR middle-end/44102
30377 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
30378 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
30379 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
30380 add BARRIER after previous bb if needed.
30381
30382 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
30383
30384 * tree.c (build_function_type_list_1): Remove bogus assert condition.
30385
30386 2010-05-17 Alan Modra <amodra@gmail.com>
30387
30388 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
30389 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
30390 with copy_reg rtx param.
30391 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
30392 Correct cases where code for ABI_V4 did not initialise the reg
30393 used to access frame. Also leave frame_reg_rtx as sp for large
30394 frames that save no regs.
30395
30396 2010-05-17 Martin Jambor <mjambor@suse.cz>
30397
30398 PR middle-end/44133
30399 * tree-sra.c (create_access_replacement): New parameter rename, mark
30400 the replaement for renaming only when it is true.
30401 (get_access_replacement): Pass true in the rename parameter of
30402 create_access_replacement.
30403 (get_unrenamed_access_replacement): New function.
30404 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
30405 replacement declaration from it.
30406
30407 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
30408
30409 * function.c (try_fit_stack_local, add_frame_space): New static
30410 functions.
30411 (assign_stack_local_1): Use them. Look for opportunities to use
30412 space previously wasted on alignment.
30413 * function.h (struct frame_space): New.
30414 (struct rtl_data): Add FRAME_SPACE_LIST member.
30415 * reload1.c (something_was_spilled): New static variable.
30416 (alter_reg): Set it.
30417 (reload): Test it in addition to testing if the frame size changed.
30418
30419 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
30420
30421 * config/s390/s390.c: Define sane prefetch settings and activate
30422 flag_prefetch_loop_arrays on -O3.
30423 * config/s390/s390.h: Declare that read can use write prefetch.
30424
30425 2010-05-17 Jakub Jelinek <jakub@redhat.com>
30426
30427 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
30428 build.
30429
30430 2010-05-16 Jan Hubicka <jh@suse.cz>
30431
30432 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
30433 function body; do not check stdarg field of struct function.
30434
30435 2010-05-16 Jan Hubicka <jh@suse.cz>
30436
30437 * cgraph.c (dump_cgraph_node): Dump versionable flag.
30438 * cgraph.h (cgraph_local_info): Add versionable flag.
30439 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
30440 (ipcp_versionable_function_p): Use it.
30441 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30442 versionable flag.
30443
30444 2010-05-16 Jan Hubicka <jh@suse.cz>
30445
30446 * cgraph.c (cgraph_clone_node): Take decl argument and insert
30447 clone into hash when it is different from orig.
30448 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
30449 * cgraph.h (cgraph_clone_node): Update prototype.
30450 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
30451 (lto_cgraph_encoder_delete): Delete body map.
30452 (lto_cgraph_encoder_size): Move to header.
30453 (lto_cgraph_encoder_encode_body_p,
30454 lto_set_cgraph_encoder_encode_body): New.
30455 (lto_output_node): Do not take written_decls argument; output clone_of
30456 pointer.
30457 (add_node_to): Add include_body_argument; call
30458 lto_set_cgraph_encoder_encode_body on master of the clone.
30459 (add_references): Update use of add_node_to.
30460 (compute_ltrans_boundary): Likewise.
30461 (output_cgraph): Do not create written_decls bitmap.
30462 (input_node): Take nodes argument; stream in clone_of correctly.
30463 (input_cgraph_1): Update use of input_node.
30464 * lto-streamer-out.c (lto_output): Use encoder info to decide
30465 what bodies to output.
30466 * ipa-inline.c (cgraph_clone_inlined_nodes,
30467 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
30468 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
30469 (lto_cgraph_encoder_size): Define here.
30470 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
30471 Declare.
30472
30473 2010-05-16 Richard Guenther <rguenther@suse.de>
30474
30475 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
30476 -fipa-type-escape.
30477 * ipa-type-escape.c (gate_type_escape_vars): Run when
30478 -fipa-struct-reorg runs.
30479 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
30480 * common.opt (fipa-type-escape): Remove.
30481
30482 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
30483
30484 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
30485 (decode_options): Likewise.
30486 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
30487
30488 2010-05-16 Jan Hubicka <jh@suse.cz>
30489
30490 * ipa.c (function_and_variable_visibility): Also bring local all
30491 aliases.
30492
30493 2010-05-16 Richard Guenther <rguenther@suse.de>
30494
30495 * alias.c (nonoverlapping_memrefs_p): Remove use of
30496 IPA type-escape information.
30497
30498 2010-05-16 Joseph Myers <joseph@codesourcery.com>
30499
30500 * c-common.c (c_common_reswords): Add _Static_assert for C.
30501 * c-parser.c (c_token_starts_declaration,
30502 c_parser_next_token_starts_declaration,
30503 c_parser_static_assert_declaration_no_semi,
30504 c_parser_static_assert_declaration): New.
30505 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
30506 Handle static assertions if static_assert_ok.
30507 (c_parser_external_declaration, c_parser_declaration_or_fndef,
30508 c_parser_compound_statement_nostart, c_parser_label,
30509 c_parser_for_statement, c_parser_objc_methodprotolist,
30510 c_parser_omp_for_loop): All callers of
30511 c_parser_declaration_or_fndef changed.
30512 (c_parser_struct_declaration): Handle static assertions.
30513 (c_parser_compound_statement_nostart): Use
30514 c_parser_next_token_starts_declaration and
30515 c_token_starts_declaration to detect start of declarations.
30516 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
30517 Likewise.
30518
30519 2010-05-16 Anatoly Sokolov <aesok@post.ru>
30520
30521 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
30522 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
30523 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30524 TARGET_FUNCTION_VALUE_REGNO_P): Define.
30525 (mmix_function_outgoing_value): Rename to...
30526 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
30527 (mmix_function_value_regno_p): Make static.
30528 (mmix_libcall_value): New function.
30529 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
30530 mmix_function_value_regno_p): Remove declaration.
30531
30532 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
30533
30534 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
30535 BUILT_IN_ALLOCA if stack checking is enabled.
30536
30537 2010-05-16 Richard Guenther <rguenther@suse.de>
30538
30539 * var-tracking.c (vars_copy_1): Inline ...
30540 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
30541 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
30542 (variable_merge_over_cur): Adjust. Merge asserts.
30543 (variable_merge_over_src): Likewise.
30544 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
30545 (variable_post_merge_new_vals): Merge asserts.
30546 (variable_post_merge_perm_vals): Likewise.
30547 (find_mem_expr_in_1pdv): Likewise.
30548 (dataflow_set_different_value): Remove.
30549 (onepart_variable_different_p): Merge asserts.
30550 (variable_different_p): Likewise.
30551 (dataflow_set_different_1): Inline ...
30552 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
30553 (emit_notes_for_differences_1): Merge asserts.
30554
30555 2010-05-16 Richard Guenther <rguenther@suse.de>
30556
30557 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
30558 * optabs.c (libfunc_decl_hash): Likewise.
30559 * varasm.c (emutls_decl): Likewise.
30560
30561 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
30562
30563 * c-decl.c: Don't include gimple.h.
30564 (merge_decls): Do not copy gimple_body.
30565
30566 2010-05-15 Jason Merrill <jason@redhat.com>
30567
30568 * c.opt: Add -fnothrow-opt.
30569
30570 2010-05-15 Jan Hubicka <jh@suse.cz>
30571
30572 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
30573 analyzed.
30574 * passes.c (ipa_write_summaries): Write all analyzed nodes.
30575
30576 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
30577
30578 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
30579 * Makefile.in: Add it.
30580 Fix all other Makefile dependencies for changes below.
30581 * tree.h: Include it instead of defining VEC primitives here.
30582 * gimple.h: Likewise.
30583 * rtl.h: Likewise.
30584 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
30585 * except.h: Include vecir.h, break dependence on tree.h.
30586
30587 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
30588 Move from here...
30589 * tree-iterator.c: ...to here.
30590 * tree-iterator.h: Fix file introduction comment. Add extern markers.
30591
30592 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
30593 tm_p.h.
30594 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
30595 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
30596 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
30597 tree-mudflap.h, and target.h.
30598 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
30599 predict.h, tree-inline.h, gimple.h, and langhooks.h.
30600 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
30601 Add FIXME for why gimple.h is still included (should be unnecessary
30602 since GCC 4.5 gimplification unit-at-a-time).
30603 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
30604 * c-pragma.c: Add FIXME for why function.h needs to be included just
30605 for cfun, at front-end level.
30606 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
30607 Do not include ggc.h, but include vecprim.h for VEC(char).
30608 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
30609 Explain why target.h is included.
30610 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
30611 Explain why gimple.h is included.
30612 * c-ppoutput.c: Do not include tm.h.
30613 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
30614 * c-parses.c: Explain why rtl.h is included, and that this (and only
30615 this) is also why tm.h must be included.
30616 Do not include except.h.
30617 * c-lang.c: Do not include ggc.h.
30618
30619 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
30620
30621 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
30622
30623 2010-05-15 Joseph Myers <joseph@codesourcery.com>
30624
30625 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
30626 unions by default if those structs and unions have no tags. Do
30627 not condition anonymous struct and unions handling on flag_iso.
30628 Allow anonymous structs and unions for C1X.
30629 (finish_struct): Do not diagnose lack of named fields when
30630 anonymous structs and unions present for C1X. Accept flexible
30631 array members in structure with anonymous structs or unions but no
30632 directly named fields.
30633 * doc/extend.texi (Unnamed Fields): Update.
30634
30635 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
30636
30637 * gimple.h (compare_field_offset): Rename into...
30638 (gimple_compare_field_offset): ...this.
30639 * gimple.c (compare_field_offset): Rename into...
30640 (gimple_compare_field_offset): ...this. Compare the full access if
30641 the offset is self-referential.
30642 (gimple_types_compatible_p): Adjust for above renaming.
30643 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
30644 DECL_NONADDRESSABLE_P flag of fields before merging them.
30645
30646 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
30647
30648 * tree.h (ctor_to_list): Delete.
30649 * tree.c (ctor_to_list): Delete.
30650
30651 2010-05-15 Jan Hubicka <jh@suse.cz>
30652
30653 * ipa-reference.c: Include toplev.h
30654 (is_proper_for_analysis): Only add to all_module_statics
30655 if it is allocated.
30656 (write_node_summary_p, stream_out_bitmap,
30657 ipa_reference_write_optimization_summary,
30658 ipa_reference_read_optimization_summary): New.
30659 (struct ipa_opt_pass_d pass_ipa_reference): Add
30660 optimization summary streaming.
30661 * lto-cgraph.c (referenced_from_this_partition_p,
30662 reachable_from_this_partition_p): New functions.
30663 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
30664 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
30665 * opts.c (decode_options): Enable ipa_reference.
30666 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
30667 * lto-streamer.h (referenced_from_this_partition_p,
30668 reachable_from_this_partition_p): Declare.
30669
30670 2010-05-15 Richard Guenther <rguenther@suse.de>
30671
30672 PR tree-optimization/44038
30673 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
30674 taking the address of a V_C_E of a constant.
30675
30676 2010-05-14 Jan Hubicka <jh@suse.cz>
30677
30678 * tree.h (memory_identifier_string): Remove.
30679 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
30680 (ipa_reference_global_vars_info_d): Remove statics_not_read and
30681 statics_not_written.
30682 (ipa_reference_optimization_summary_d): New structure.
30683 (ipa_reference_optimization_summary_t): New type and vector.
30684 (ipa_reference_vars_info_d): Embedd structures instead of using
30685 pointers.
30686 (reference_vars_to_consider): Remove out of GGC space.
30687 (module_statics_escape): Remove.
30688 (global_info_obstack): Rename to ...
30689 (optimization_summary_obstack): ... this one.
30690 (initialization_status_t): Remove.
30691 (memory_identifier_string): Remove.
30692 (get_reference_vars_info): Fix indenting.
30693 (set_reference_vars_info): Likewise.
30694 (get_reference_optimization_summary): New.
30695 (set_reference_optimization_summary): New.
30696 (get_global_reference_vars_info): Remove.
30697 (ipa_reference_get_read_global): Remove.
30698 (ipa_reference_get_written_global): Remove.
30699 (ipa_reference_get_not_read_global): Update.
30700 (ipa_reference_get_not_written_global): Update.
30701 (is_proper_for_analysis): Outlaw addressable.
30702 (propagate_bits): Update for new datastructures.
30703 (analyze_variable): Remove.
30704 (init_function_info): Update for new datastructures.
30705 (clean_function_local_data): Remove.
30706 (clean_function): Remove.
30707 (copy_global_bitmap): Use optimizations_summary_obstack.
30708 (duplicate_node_data): Duplicate optimization summary only.
30709 (remove_node_data): Remove optimization summary only.
30710 (generate_summary): Do not analyze variables; do not compute
30711 module_statics_escape; do not prune solutions by it.
30712 (read_write_all_from_decl): Fix typos in comments.
30713 (propagate): Doscover readonly and nonaddressable first;
30714 update for new datastructures; share global bitmaps.
30715 * ipa-reference.h (ipa_reference_get_read_global,
30716 ipa_reference_get_written_global): Remove.
30717 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
30718 * Makefile.in: Remove ipa-refereference from GT files.
30719
30720 2010-05-14 Jakub Jelinek <jakub@redhat.com>
30721
30722 PR debug/44112
30723 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
30724 for all SYMBOL_REF_DECLs.
30725
30726 2010-05-14 Jan Hubicka <jh@suse.cz>
30727
30728 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
30729 (varpool_all_refs_explicit_p): New inline function.
30730 * ipa-reference.c: Update comment.
30731 (module_statics_written): Remove.
30732 (get_static_decl): Remove.
30733 (ipa_init): Do not initialize module_statics_written.
30734 (analyze_function): Likewise.
30735 (generate_summary): Likewise; do not compute module_statics_readonly
30736 and do not update variable flags.
30737 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
30738 * ipa.c: Inlucde flags.h
30739 (cgraph_local_node_p): New.
30740 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
30741 promote functions to local.
30742 (ipa_discover_readonly_nonaddressable_vars): New function.
30743 (function_and_variable_visibility): Use cgraph_local_node_p.
30744 * varpool.c (varpool_finalize_decl): Set force_output for
30745 DECL_PRESERVE_P vars.
30746
30747 2010-05-14 Jan Hubicka <jh@suse.cz>
30748
30749 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
30750
30751 2010-05-14 Richard Guenther <rguenther@suse.de>
30752
30753 PR tree-optimization/44119
30754 * tree-ssa-pre.c (eliminate): Properly mark replacement of
30755 a PHI node necessary.
30756
30757 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
30758
30759 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
30760
30761 2010-05-14 Jason Merrill <jason@redhat.com>
30762
30763 PR c++/44127
30764 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
30765 (gimple_call_set_nothrow): New.
30766 * gimple.c (gimple_build_call_from_tree): Call it.
30767 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
30768
30769 PR c++/44127
30770 * gimplify.c (gimplify_seq_add_stmt): No longer static.
30771 * gimple.h: Declare it.
30772 * gimple.c (gimple_build_eh_filter): No ops.
30773
30774 2010-05-14 Jan Hubicka <jh@suse.cz>
30775
30776 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
30777 nodes already in queue.
30778 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
30779 re-enqueueing node.
30780
30781 2010-05-14 Jakub Jelinek <jakub@redhat.com>
30782
30783 PR debug/44136
30784 * cfgexpand.c (expand_debug_expr): If non-memory op0
30785 has BLKmode, return NULL.
30786
30787 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
30788
30789 * config.gcc: Add support for --with-cpu option for bdver1.
30790 * config/i386/i386.h (TARGET_BDVER1): New macro.
30791 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
30792 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30793 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
30794 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30795 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
30796 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
30797 (processor_type): Add PROCESSOR_BDVER1.
30798 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
30799 processor_type in config/i386/i386.h.
30800 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
30801 movaps <reg, reg> instead of movapd <reg, reg> when replacing
30802 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
30803 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
30804 to emit packed xor instead of packed double/packed integer
30805 xor for SSE and AVX when moving a zero value.
30806 * config/i386/sse.md: Add check for
30807 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
30808 movapd/movdqa for SSE and AVX.
30809 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
30810 single logical operations i.e and, or and xor instead of packed double
30811 logical operations for SSE and AVX.
30812 * config/i386/i386-c.c (ix86_target_macros_internal):
30813 Add PROCESSOR_BDVER1.
30814 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
30815 (has_fma4, has_xop): New.
30816 * config/i386/i386.c (bdver1_cost): New variable.
30817 (m_BDVER1): New macro.
30818 (m_AMD_MULTIPLE): Add m_BDVER1.
30819 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
30820 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
30821 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
30822 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
30823 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
30824 x86_tune_sse_partial_reg_dependency,
30825 x86_tune_sse_unaligned_load_optimal,
30826 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
30827 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
30828 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
30829 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
30830 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
30831 Enable/disable for bdver1.
30832 (processor_target_table): Add bdver1_cost.
30833 (cpu_names): Add bdver1.
30834 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
30835 processor_alias_table.
30836 (ix86_expand_vector_move_misalign): Change.
30837 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
30838 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
30839 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
30840 of movupd/movdqu for SSE and AVX.
30841 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
30842 (ix86_tune_adjust_cost): Add code for bdver1.
30843 (standard_sse_constant_opcode): Add check for
30844 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
30845 of packed double xor for SSE and AVX.
30846
30847 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
30848
30849 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
30850 result to unsigned.
30851
30852 2010-05-14 Tristan Gingold <gingold@adacore.com>
30853
30854 * toplev.c (default_debug_hooks): Remove this variable.
30855 (process_options): Remove assignments to default_debug_hooks.
30856
30857 2010-05-14 Martin Jambor <mjambor@suse.cz>
30858
30859 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
30860 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
30861 * langhooks.h (struct lang_hooks_for_decls): Removed field
30862 fold_obj_type_ref.
30863 * tree.c (free_lang_data): Remove assignment to
30864 lang_hooks.fold_obj_type_ref.
30865 * tree.def (OBJ_TYPE_REF): Update comment.
30866
30867 2010-05-14 Richard Guenther <rguenther@suse.de>
30868
30869 PR tree-optimization/44124
30870 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
30871
30872 2010-05-14 Alan Modra <amodra@gmail.com>
30873
30874 PR target/44075
30875 * config/rs6000/rs6000.c (struct machine_function): Reorder
30876 fields for better packing. Add lr_save_state.
30877 (rs6000_ra_ever_killed): Return lr_save_state if set.
30878 (rs6000_emit_eh_reg_restore): Set lr_save_state.
30879
30880 2010-05-13 Jan Hubicka <jh@suse.cz>
30881
30882 * varpool.c (decide_is_variable_needed): Drop code checking
30883 TREE_SYMBOL_REFERENCED.
30884
30885 2010-05-13 Jan Hubicka <jh@suse.cz>
30886
30887 * final.c (output_addr_const): Do not call mark_decl_referenced.
30888 * cgraphunit.c (process_function_and_variable_attributes): Use
30889 mark_needed_node dirrectly.
30890 (assemble_thunk): Do not call mark_decl_referenced.
30891
30892 2010-05-13 Anatoly Sokolov <aesok@post.ru>
30893
30894 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
30895
30896 2010-05-13 Jeff Law <law@redhat.com>
30897
30898 * ira-conflicts.c (print_allocno_conflicts): New function broken out
30899 from...
30900 (print_conflicts): Call print_allocno_conflicts.
30901
30902 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30903
30904 PR debug/44104
30905 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
30906 if it is NULL.
30907
30908 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
30909
30910 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
30911 t-mingw-w64 or t-mingw-w32 for multilib configuration.
30912 * config/i386/t-mingw-w32: New.
30913 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
30914
30915 2010-05-13 Martin Jambor <mjambor@suse.cz>
30916
30917 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
30918 gimple-fold.c).
30919 * gimple-fold.c (get_base_binfo_for_type): New function.
30920 (gimple_get_relevant_ref_binfo): Likewise.
30921 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30922 (gimple_fold_obj_type_ref): Likewise.
30923 (fold_gimple_call): Simplify condition for folding virtual calls
30924 and call gimple_fold_obj_type_ref.
30925 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
30926 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30927
30928 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
30929
30930 * config/rs6000/rs6000-protos.h
30931 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
30932 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
30933 (rs6000_debug_mode_dependent_address)
30934 (rs6000_mode_dependent_address_ptr): Likewise.
30935
30936 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30937
30938 PR debug/43983
30939 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
30940 by SRA.
30941 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
30942 * tree-sra.c (create_access_replacement): Call unshare_expr before
30943 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
30944 * dwarf2out.c: Include tree-flow.h.
30945 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
30946 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
30947 Handle DW_OP_bit_piece.
30948 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
30949 construct_piece_list, adjust_piece_list): New functions.
30950 (add_var_loc_to_decl): Handle SRA optimized variables.
30951 Adjust for var_loc_note to loc field renaming.
30952 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
30953 in VAR_LOCATION note.
30954 (new_loc_descr_op_bit_piece): New function.
30955 (dw_sra_loc_expr): New function.
30956 (dw_loc_list): Use it. Don't handle the last range after the
30957 loop, handle it inside of the loop. Adjust for var_loc_note
30958 to loc field renaming.
30959 (add_location_or_const_value_attribute): Only special case
30960 single entry loc lists if loc is NOTE_P. Adjust for
30961 var_loc_note to loc field renaming.
30962 (dwarf2out_var_location): Don't set newloc->var_loc_note
30963 and newloc->next here.
30964
30965 2010-05-12 Jan Hubicka <jh@suse.cz>
30966
30967 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
30968 flag.
30969 * cgraph.h (cgraph_only_called_directly_p,
30970 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
30971 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
30972 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
30973 (assemble
30974 * ipa.c (cgraph_remove_unreachable_nodes): Use
30975 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
30976 flags.
30977 * tree-inline.c (copy_bb): Check address_taken flag.
30978 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
30979 externally_visible flag.
30980
30981 2010-05-12 Jason Merrill <jason@redhat.com>
30982
30983 PR bootstrap/44048
30984 PR target/44099
30985 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
30986 * sdbout.c (plain_type_1): Likewise.
30987 * dwarf2out.c (is_base_type): Likewise.
30988 (gen_type_die_with_usage): Likewise. Generate
30989 DW_TAG_unspecified_type for any LANG_TYPE.
30990
30991 2010-05-12 Jan Hubicka <jh@suse.cz>
30992
30993 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
30994 indrect edges too.
30995 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
30996 (cgraph_clone_edge): Update.
30997 (cgraph_node_remove_callees): Remove indirect calls too.
30998 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
30999 (cgraph_create_indirect_edge): Update prototype.
31000 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
31001 is_proper_for_analysis.
31002 (add_new_function, visited_nodes, function_insertion_hook_holder,
31003 get_local_reference_vars_info, mark_address_taken, mark_address,
31004 mark_load, mark_store, check_asm_memory_clobber, check_call,
31005 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
31006 (ipa_init): Do not initialize visited_nodes;
31007 function_insertion_hook_holder.
31008 (analyze_variable): Rewrite.
31009 (analyze_function): Rewrite.
31010 (copy_local_bitmap): Remove.
31011 (duplicate_node_dat): Do not duplicate local info.
31012 (generate_summary): Simplify to only walk cgraph.
31013 (write_node_summary_p, ipa_reference_write_summary,
31014 ipa_reference_read_summary): Remove.
31015 (propagate): Do not remove function insertion;
31016 generate summary.
31017 (pass_ipa_reference): NULLify summary handling fields.
31018 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
31019 (input_edge): Input ecf_flags.
31020 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
31021 (update_indirect_edges_after_inlining): Ignore edges with unknown
31022 param.
31023
31024 2010-05-12 Sriraman Tallam <tmsriram@google.com>
31025
31026 * implicit-zee.c: New file.
31027 * tree-pass.h (pass_implicit_zee): Declare.
31028 * passes.c (init_optimization_passes): Add zee pass.
31029 * common.opt (fzee): New flag.
31030 * timevar.def (TV_ZEE): Define.
31031 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
31032 and beyond.
31033 * Makefile.in (implicit-zee.o): Add new build file.
31034
31035 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
31036 Nathan Froyd <froydnj@codesourcery.com>
31037
31038 * c-common.c (sync_resolve_params): Remove write-only variable.
31039
31040 2010-05-12 Anatoly Sokolov <aesok@post.ru>
31041
31042 * target.h (struct gcc_target): Add mode_dependent_address_p field.
31043 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
31044 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
31045 * targhooks.c (default_mode_dependent_address_p): New function.
31046 * targhooks.h (default_mode_dependent_address_p): Declare function.
31047 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
31048 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
31049 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
31050 target hook. Change return type to bool.
31051 * recog.h (mode_dependent_address_p): Change return type to bool.
31052
31053 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
31054 Nathan Froyd <froydnj@codesourcery.com>
31055
31056 * tree-mudflap.c (build_function_type_0, build_function_type_1,
31057 build_function_type_2, build_function_type_3): Remove.
31058 (mudflap_init): Use build_function_type_list.
31059
31060 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
31061 Nathan Froyd <froydnj@codesourcery.com>
31062
31063 * coverage.c (build_fn_info_value): Call build_constructor instead of
31064 build_constructor_from_list.
31065 (build_ctr_info_value): Likewise.
31066 (build_gcov_info): Likewise.
31067
31068 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
31069
31070 * tree.c (build_constructor): Compute TREE_CONSTANT for the
31071 resultant constructor.
31072 (build_constructor_single): Don't set TREE_CONSTANT.
31073 (build_constructor_from_list): Don't compute TREE_CONSTANT.
31074
31075 2010-05-12 Jan Hubicka <jh@suse.cz>
31076
31077 * cgraph.h (struct varpool_node): Add aux.
31078 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
31079 * varpool.c (varpool_remove_node): Do not remove initializer.
31080 (varpool_reset_queue): Export.
31081 (varpool_finalize_decl): Volatile vars are forced to be output.
31082 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
31083 replaced decl.
31084 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
31085 process_references, varpool_can_remove_if_no_refs): New functions.
31086 (cgraph_remove_unreachable_nodes): Handle variables too.
31087
31088 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
31089
31090 PR target/44088
31091 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
31092
31093 2010-05-12 Jakub Jelinek <jakub@redhat.com>
31094
31095 PR middle-end/44085
31096 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
31097 change value of ORT_TASK.
31098 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
31099 (omp_notice_threadprivate_variable): New function.
31100 (omp_notice_variable): Call it for threadprivate variables.
31101 If enclosing ctx is a task, print enclosing task rather than
31102 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
31103 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
31104 if task has untied clause.
31105
31106 PR debug/42278
31107 * dwarf2out.c (base_type_die): Don't add name attribute here.
31108 (modified_type_die): Instead of sizetype use
31109 its underlying original type. If a DW_TAG_base_type doesn't
31110 have name added, add __unknown__.
31111 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
31112 always call force_type_die instead.
31113
31114 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
31115
31116 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
31117 for __stack_chk_guard.
31118
31119 2010-05-11 Jakub Jelinek <jakub@redhat.com>
31120
31121 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
31122 don't call start_source_file debug hook here...
31123 (finish_options): ... but here, after outputting predefined and
31124 command line defines and undefs.
31125
31126 PR middle-end/44071
31127 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
31128 no fallthru edge.
31129 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
31130 optimizing away empty bb with no successors, move over its
31131 footer chain to fallthru predecessor.
31132 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
31133 (rtl_split_edge): For asm goto call patch_jump_insn even if
31134 splitting fallthru edge.
31135
31136 PR c++/44059
31137 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
31138 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
31139 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
31140 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
31141 on DW.ref.* decls.
31142
31143 PR c++/44062
31144 * c-parser.c (c_parser_expression): Mark LHS of a comma
31145 expression as read if it is a decl, handled component or
31146 COMPOUND_EXPR with that on the RHS.
31147 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
31148 if it is a decl or handled component.
31149
31150 2010-05-11 Jan Hubicka <jh@suse.cz>
31151
31152 * lto-symtab.c (lto_symtab_free): New function.
31153 * lto-streamer.h (lto_symtab_free): Declare.
31154
31155 2010-05-11 Jan Hubicka <jh@suse.cz>
31156
31157 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
31158 that if function is needed it is reachable.
31159 (lto_output_node): See if it the function is reachable or referenced.
31160 (output_cgraph): Update call of lto_output_node.
31161 * lto-streamer.h (reachable_from_other_partition_p): Declare.
31162
31163 2010-05-11 Jan Hubicka <jh@suse.cz>
31164
31165 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
31166 Mark as used.
31167
31168 2010-05-11 Jan Hubicka <jh@suse.cz>
31169
31170 PR tree-optimize/44063
31171 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
31172 queue.
31173 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
31174 limits.
31175 (estimate_function_body_sizes): Compute sizes even when disregarding.
31176
31177 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
31178
31179 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
31180
31181 2010-05-11 Jan Hubicka <jh@suse.cz>
31182
31183 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
31184 into every boundary.
31185
31186 2010-05-11 Jan Hubicka <jh@suse.cz>
31187
31188 * matrix-reorg.c (matrix_reorg): Rebuild edges.
31189
31190 2010-05-11 Jan Hubicka <jh@suse.cz>
31191
31192 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
31193 lto_streamer_cache_delete): Put nodes into heap.
31194 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
31195 heap.
31196
31197 2010-05-11 Jan Hubicka <jh@suse.cz>
31198
31199 * cgraphbuild.c (cgraph_rebuild_references): New.
31200 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
31201 out extern inlines.
31202 * cgraph.h (cgraph_rebuild_references): Declare.
31203 * tree-inline.c (tree_function_versioning): Use it.
31204 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
31205
31206 2010-05-11 Jan Hubicka <jh@suse.cz>
31207
31208 * cgraph.c: Include ipa-utils.h
31209 (cgraph_create_virtual_clone): Update references.
31210 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
31211
31212 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
31213
31214 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
31215 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
31216 cache size.
31217
31218 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
31219
31220 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
31221
31222 2010-05-11 Jakub Jelinek <jakub@redhat.com>
31223
31224 * gcc.c (execute): For -### don't quote arguments that
31225 contain just alphanumerics and _/-. characters.
31226 * doc/invoke.texi: Document that change for -###.
31227
31228 PR debug/44023
31229 * df-problems.c (struct dead_debug): Add to_rescan field.
31230 (dead_debug_init): Clear to_rescan field.
31231 (dead_debug_finish): Rescan all debug insns in to_rescan
31232 bitmap and free the bitmap.
31233 (dead_debug_insert_before): Instead of rescanning debug insns
31234 immediately queue their rescanning until dead_debug_finish.
31235 (df_note_bb_compute): After dead_debug_add do continue instead
31236 of break.
31237
31238 2010-05-10 Jakub Jelinek <jakub@redhat.com>
31239
31240 PR debug/44028
31241 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
31242 clear also INSN_REG_USE_LIST.
31243
31244 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31245
31246 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
31247
31248 2010-05-10 Jan Hubicka <jh@suse.cz>
31249
31250 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
31251 commited change.
31252
31253 2010-05-10 Jan Hubicka <jh@suse.cz>
31254
31255 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
31256 Allocate encoders.
31257 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
31258 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
31259 (lto_streamer_cache_create): Init alloc pool.
31260 (lto_streamer_cache_delete): Free alloc pool.
31261 * lto-streamer.h: Include alloc pool.
31262 (lto_streamer_cache_d): Use alloc pool.
31263 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
31264
31265 2010-05-10 Jan Hubicka <jh@suse.cz>
31266
31267 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
31268 * cgraphbuild.c: Include except.h
31269 (record_type_list, record_eh_tables): New function.
31270 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
31271
31272 2010-05-10 Jan Hubicka <jh@suse.cz>
31273
31274 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
31275 __frame_dummy_init_array_entry, force_to_data): Attribute as used
31276 rather than unused.
31277
31278 2010-05-10 Michael Matz <matz@suse.de>
31279
31280 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
31281 (can_reassociate_p): Use FLOAT_TYPE_P.
31282 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
31283 (vect_force_simple_reduction): ... this.
31284 * tree-parloops.c (gather_scalar_reductions): Use
31285 vect_force_simple_reduction.
31286 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
31287 vect_is_simple_reduction, add modify argument, if true rewrite
31288 "a-b" into "a+(-b)".
31289 (vect_is_simple_reduction, vect_force_simple_reduction): New
31290 functions.
31291 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
31292
31293 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
31294 Vladimir Makarov <vmakarov@redhat.com>
31295
31296 PR rtl-optimization/44012
31297 * ira-build.c (remove_unnecessary_allocnos): Nullify
31298 regno_allocno_map of the removed allocno.
31299
31300 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31301
31302 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
31303 to /dev/null.
31304 * configure: Regenerate.
31305
31306 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31307
31308 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
31309 unused.
31310 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
31311 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
31312 support in Sun ld.
31313 * configure: Regenerate.
31314
31315 2010-05-10 Richard Guenther <rguenther@suse.de>
31316
31317 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
31318 marked if the entry identifier is marked.
31319
31320 2010-05-10 Richard Guenther <rguenther@suse.de>
31321
31322 * c-common.c (struct c_common_attributes): Add fnspec attribute.
31323 (handle_fnspec_attribute): New function.
31324 * gimple.h (gimple_call_return_flags): Declare.
31325 (gimple_call_arg_flags): Likewise.
31326 * gimple.c (gimple_call_arg_flags): New function.
31327 (gimple_call_return_flags): Likewise.
31328 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
31329 New argument flags.
31330 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
31331 return value flags.
31332 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
31333 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
31334 main work to ...
31335 (make_heapvar_for): ... this new function.
31336 (handle_rhs_call): Handle fnspec attribute argument specifiers.
31337 (handle_lhs_call): Likewise.
31338 (find_func_aliases): Adjust.
31339
31340 2010-05-10 Richard Guenther <rguenther@suse.de>
31341
31342 PR tree-optimization/44050
31343 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
31344
31345 2010-05-10 Wei Guozhi <carrot@google.com>
31346
31347 PR target/42879
31348 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
31349
31350 2010-05-09 Joseph Myers <joseph@codesourcery.com>
31351
31352 PR c/10676
31353 * c-typeck.c (lookup_field): Take a type directly. Update
31354 recursive calls.
31355 (build_component_ref): Update call to lookup_field.
31356 (set_init_label): Use lookup_field to find initialized field.
31357 Handle returned list of fields like a sequence of designators.
31358
31359 2010-05-09 Richard Guenther <rguenther@suse.de>
31360
31361 PR middle-end/44024
31362 * fold-const.c (tree_single_nonzero_warnv_p): Properly
31363 handle &FUNCTION_DECL.
31364
31365 2010-05-09 Joseph Myers <joseph@codesourcery.com>
31366
31367 PR c/4784
31368 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
31369 structures and unions recursively.
31370 (detect_field_duplicates): Move duplicate detection with a hash to
31371 detect_field_duplicates_hash. Always use a hash if anonymous
31372 structures or unions are present.
31373 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
31374 give errors.
31375
31376 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
31377
31378 PR target/44046
31379 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
31380 detect Atom, Core 2 and Core i7.
31381
31382 2010-05-09 Richard Guenther <rguenther@suse.de>
31383
31384 * gcc.c (store_arg): Handle temporary file deletion for
31385 joined arguments.
31386
31387 2010-05-09 Richard Guenther <rguenther@suse.de>
31388
31389 PR middle-end/44043
31390 * ipa-inline.c (estimate_function_body_sizes): Return after
31391 disregarding inline limits.
31392
31393 2010-05-09 Richard Guenther <rguenther@suse.de>
31394
31395 * gcc.c (store_arg): Revert last change.
31396
31397 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
31398
31399 PR middle-end/28685
31400 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
31401 (optimize_ops_list): Call it.
31402
31403 2010-05-08 Richard Guenther <rguenther@suse.de>
31404
31405 PR tree-optimization/44030
31406 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
31407 NECESSARY flag if we propagate from a inserted expression.
31408
31409 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
31410
31411 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
31412 domain types as equal if they are both PLACEHOLDER_EXPRs.
31413
31414 2010-05-08 Richard Guenther <rguenther@suse.de>
31415
31416 * lto-wrapper.c (run_gcc): Remove linker output from
31417 command line for LTRANS invocation.
31418
31419 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
31420
31421 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
31422 lto-macho as lto_binary_reader.
31423 * target.h (struct gcc_target): New hooks lto_start and lto_end.
31424 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
31425 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
31426 in lto_start and lto_end calls.
31427 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
31428 magic numbers.
31429 (scan_prog_file): Update is_elf_or_coff call.
31430 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
31431
31432 * collect2.c (main): Fix enum comparison.
31433
31434 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
31435 Add prototypes.
31436 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
31437 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
31438 and TARGET_ASM_LTO_END.
31439 * darwin.c: Include obstack.h and lto-streamer.h.
31440 (lto_section_names_offset, lto_section_names_obstack,
31441 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
31442 global variables.
31443 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
31444 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
31445 to a temporary file.
31446 (darwin_asm_lto_end): New function. Restore asm_out_file.
31447 (darwin_asm_named_section): For LTO sections, replace the name with
31448 the offset of the section name in a string table, and build this
31449 table.
31450 (darwin_file_start): Initialize global vars for LTO support.
31451 (darwin_file_end): If output to asm_out_file was redirected, append it
31452 to the proper asm_out_file here. Add the section names section.
31453
31454 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
31455
31456 * c-pragma.c (pending_weak_d, pending_weak): New.
31457 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
31458 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
31459 handle_pragma_weak): Update the uses of pending_weaks.
31460
31461 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31462
31463 PR documentation/44016
31464 * doc/standards.texi (Standards): Link to unversioned
31465 cxx0x_status.html page.
31466
31467 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
31468
31469 PR target/43708
31470 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
31471 in addition to TREE_USED, to avoid "set but unused" warnings.
31472
31473 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
31474
31475 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
31476 (is_loop_prefetching_profitable): Do not insert prefetches
31477 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
31478 times the prefetch ahead distance.
31479
31480 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
31481
31482 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
31483 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
31484 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
31485 the unroll_factor.
31486
31487 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
31488
31489 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
31490 a diagnostic info when the insn-to-mem ratio is too small.
31491
31492 2010-05-07 Richard Guenther <rguenther@suse.de>
31493
31494 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
31495 the linker plugin.
31496 (store_arg): Queue temp_filename for deletion instead of
31497 the whole argument.
31498
31499 2010-05-07 Richard Guenther <rguenther@suse.de>
31500
31501 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
31502 (run_gcc): Handle LTRANS phase invocation.
31503 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
31504
31505 2010-05-07 Jakub Jelinek <jakub@redhat.com>
31506
31507 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
31508 this is also meaningful on PARM_DECLs and RESULT_DECLs.
31509
31510 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31511
31512 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
31513
31514 2010-05-07 Richard Guenther <rguenther@suse.de>
31515
31516 PR tree-optimization/44020
31517 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
31518 code when PRE is not yet initialized.
31519
31520 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31521
31522 * config/mips/dbxmdebug.h: Remove.
31523 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
31524
31525 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
31526
31527 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
31528 with null pointer and also warn about ordered comparison of zero with
31529 pointer if -Wextra.
31530
31531 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
31532
31533 * graphite-blocking.c
31534 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
31535 * graphite-clast-to-gimple.c
31536 (clast_to_gcc_expression): Same.
31537 (precision_for_value): Same.
31538 (precision_for_interval): Same.
31539 (gcc_type_for_interval): Same.
31540 (graphite_create_new_guard): Same.
31541 (compute_bounds_for_level): Same.
31542 (graphite_create_new_loop_guard): Same.
31543 * graphite-interchange.c
31544 (build_linearized_memory_access): Same.
31545 (pdr_stride_in_loop): Same.
31546 (memory_strides_in_loop_1): Same.
31547 (memory_strides_in_loop): Same.
31548 (extend_scattering): Same.
31549 (psct_scattering_dim_for_loop_depth): Same.
31550 (pbb_number_of_iterations): Same.
31551 * graphite-poly.h
31552 (debug_iteration_domains): Same.
31553 * graphite-ppl.c
31554 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
31555 (ppl_set_inhomogeneous_gmp): Same.
31556 (ppl_strip_loop): Same.
31557 (ppl_lexico_compare_linear_expressions): Same.
31558 (ppl_read_polyhedron_matrix): Same.
31559 (ppl_max_for_le_pointset): Same.
31560 * graphite-ppl.h
31561 (ppl_read_polyhedron_matrix): Same.
31562 (tree_int_to_gmp): Same.
31563 (gmp_cst_to_tree): Same.
31564 (ppl_set_inhomogeneous): Same.
31565 (ppl_set_inhomogeneous_tree): Same.
31566 (ppl_set_coef): Same.
31567 (ppl_set_coef_tree): Same.
31568 * graphite-sese-to-poly.c
31569 (build_pbb_scattering_polyhedrons): Same.
31570 (build_scop_scattering): Same.
31571 (scan_tree_for_params_right_scev): Same.
31572 (scan_tree_for_params): Same.
31573 (find_params_in_bb): Same.
31574 (find_scop_parameters): Same.
31575 (add_upper_bounds_from_estimated_nit): Same.
31576 (build_loop_iteration_domains): Same.
31577 (add_condition_to_domain): Same.
31578 (pdr_add_memory_accesses): Same.
31579
31580 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
31581
31582 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
31583 CLooG's value_* macros to their respective mpz_* counterparts.
31584 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
31585 (graphite_create_new_loop_guard): Same.
31586 * graphite-interchange.c (build_linearized_memory_access): Same.
31587 (pdr_stride_in_loop): Same.
31588 (memory_strides_in_loop_1): Same.
31589 (1st_interchange_profitable_p): Same.
31590 * graphite-poly.c (extend_scattering): Same.
31591 (psct_scattering_dim_for_loop_depth): Same.
31592 (pbb_number_of_iterations): Same.
31593 (pbb_number_of_iterations_at_time): Same.
31594 * graphite-poly.h (new_1st_loop): Same.
31595 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
31596 (oppose_constraint): Same.
31597 (insert_constraint_into_matrix): Same.
31598 (ppl_set_inhomogeneous_gmp): Same.
31599 (ppl_set_coef_gmp): Same.
31600 (ppl_strip_loop): Same.
31601 (ppl_lexico_compare_linear_expressions): Same.
31602 (ppl_max_for_le_pointset): Same.
31603 (ppl_min_for_le_pointset): Same.
31604 (ppl_build_realtion): Same.
31605 * graphite-ppl.h (gmp_cst_to_tree): Same.
31606 (ppl_set_inhomogeneous): Same.
31607 (ppl_set_inhomogeneous_tree): Same.
31608 (ppl_set_coef): Same.
31609 (ppl_set_coef_tree): Same.
31610 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
31611 (build_scop_scattering): Same.
31612 (add_value_to_dim): Same.
31613 (scan_tree_for_params_right_scev): Same.
31614 (scan_tree_for_params_int): Same.
31615 (scan_tree_for_params): Same.
31616 (find_params_in_bb): Same.
31617 (find_scop_parameters): Same.
31618 (add_upper_bounds_from_estimated_nit): Same.
31619 (build_loop_iteration_domains): Same.
31620 (create_linear_expr_from_tree): Same.
31621 (add_condition_to_domain): Same.
31622 (pdr_add_memory_accesses): Same.
31623
31624 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
31625 Jason Merrill <jason@redhat.com>
31626
31627 * c-common.c (c_common_reswords): Add nullptr.
31628 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
31629 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
31630 (gen_type_die_with_usage): Likewise.
31631 * dbxout.c (dbxout_type): Likewise.
31632 * sdbout.c (plain_type_1): Likewise.
31633
31634 2010-05-06 Jason Merrill <jason@redhat.com>
31635
31636 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
31637 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
31638 ret appropriately.
31639 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
31640
31641 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
31642 stripping WITH_SIZE_EXPR.
31643 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
31644 change.
31645
31646 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31647
31648 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
31649 list of obsolete configurations.
31650 Disabled check for obsolete configurations.
31651 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
31652 Removed support for previous versions.
31653 * config/mips/iris.h: Removed.
31654 * config/mips/iris5.h: Removed.
31655 * config/mips/iris6.h: Merged old iris.h contents.
31656 (TARGET_IRIX): Removed.
31657 (DRIVER_SELF_SPECS): Removed mabi=32.
31658 (IDENT_ASM_OP): Removed undef.
31659 (STARTFILE_SPEC): Removed mabi=32.
31660 (ENDFILE_SPEC): Likewise.
31661 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
31662 (MACHINE_TYPE): Update for IRIX 6.5.
31663 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
31664 TARGET_IRIX by TARGET_IRIX6.
31665 (mips_file_start): Likewise.
31666 (mips_output_external): Remove IRIX 5/6 O32 support.
31667 (mips_output_function_prologue): Likewise.
31668 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
31669 TARGET_IRIX6.
31670 (TARGET_CPU_CPP_BUILTINS): Likewise.
31671 (TARGET_IRIX): Removed.
31672 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
31673 (MULTILIB_DIRNAMES): Removed 32.
31674 (MULTILIB_OSDIRNAMES): Removed ../lib.
31675 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
31676 (Specific, mips-sgi-irix5): Document removal.
31677 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
31678 Remove references to older IRIX 6 releases and the O32 ABI.
31679
31680 2010-05-06 Jakub Jelinek <jakub@redhat.com>
31681
31682 PR bootstrap/43994
31683 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
31684 instead of DF_REF_REAL_REG.
31685
31686 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
31687
31688 PR target/43888
31689 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
31690 handling to still return true for x64 targets.
31691
31692 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
31693
31694 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
31695
31696 2010-05-06 Jan Hubicka <jh@suse.cz>
31697
31698 PR tree-optimization/43791
31699 * ipa-inline.c (update_caller_keys): Remove bogus
31700 disregard_inline_limits check.
31701
31702 2010-05-06 Michael Matz <matz@suse.de>
31703
31704 PR tree-optimization/43984
31705 * tree-ssa-pre.c (inserted_phi_names): Remove.
31706 (inserted_exprs): Change to bitmap.
31707 (create_expression_by_pieces): Set bits, don't append to vector.
31708 (insert_into_preds_of_block): Don't handle inserted_phi_names.
31709 (eliminate): Don't look at inserted_phi_names, remove deleted
31710 insns from inserted_exprs.
31711 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
31712 (init_pre, fini_pre): Allocate and free bitmaps.
31713 (execute_pre): Insert insns on edges before elimination.
31714
31715 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
31716
31717 * tree.c (initializer_zerop): Handle STRING_CST.
31718
31719 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
31720
31721 PR 40989
31722 * doc/invoke.texi (Wimplicit): Document as C only.
31723 * opts.c (common_handle_option): Add argument kind.
31724 (handle_option): Rename as read_cmdline_option. Factor out code to...
31725 (handle_option): ... here. New.
31726 (handle_options): Rename as read_cmdline_options.
31727 (decode_options): Update call.
31728 (set_option): Use option index instead of option pointer. Classify
31729 diagnostics correctly.
31730 (enable_warning_as_error): Call handle_option.
31731 * opts.h (set_option): Update declaration.
31732 (handle_option): Declare.
31733 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
31734 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
31735 * c-opts.c (set_Wimplicit): Delete.
31736 (c_family_lang_mask): New static constant.
31737 (c_common_handle_option): Add argument kind. Use handle_option
31738 instead of set_Wimplicit.
31739 (c_common_post_options): warn_implicit and warn_implicit_int
31740 are disabled by default.
31741 * c-common.c (warn_implicit): Do not define here.
31742 * c-common.h (warn_implicit): Do not declare here.
31743 (c_common_handle_option): Update declaration.
31744 * lto-opts.c (lto_reissue_options): Update call to set_option.
31745
31746 2010-05-06 Richard Guenther <rguenther@suse.de>
31747
31748 PR tree-optimization/43571
31749 * domwalk.c (walk_dominator_tree): Walk the dominator
31750 sons in more optimal order.
31751
31752 2010-05-06 Richard Guenther <rguenther@suse.de>
31753
31754 PR tree-optimization/43934
31755 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
31756 (stmt_cost): Likewise.
31757 (extract_true_false_args_from_phi): New helper.
31758 (determine_max_movement): For PHI nodes verify we can hoist them
31759 and compute their cost.
31760 (determine_invariantness_stmt): Handle PHI nodes.
31761 (move_computations_stmt): Likewise. Hoist PHI nodes in
31762 if-converted form using COND_EXPRs.
31763 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
31764 (tree_ssa_lim): Likewise.
31765 * tree-flow.h (tree_ssa_lim): Adjust prototype.
31766 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
31767
31768 2010-05-06 Richard Guenther <rguenther@suse.de>
31769
31770 PR tree-optimization/43987
31771 * tree-ssa-structalias.c (could_have_pointers): For possibly
31772 address-taken variables force pointers to be recorded.
31773 (create_variable_info_for_1): Likewise.
31774 (push_fields_onto_fieldstack): Pass in wheter all fields
31775 must have pointers.
31776 (find_func_aliases): Query types instead of vars whether
31777 they contain pointers where appropriate.
31778
31779 2010-05-06 Jan Hubicka <jh@suse.cz>
31780
31781 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
31782 (record_reference, mark_address, mark_load, mark_store): Record
31783 references.
31784 (record_references_in_initializer): Update call of record_references.
31785 (rebuild_cgraph_edges): Remove all references before rebuiding.
31786 * cgraph.c (cgraph_create_node): Clear ref list.
31787 (cgraph_remove_node): Remove references.
31788 (dump_cgraph_node): Dump references.
31789 (cgraph_clone_node): Clone references.
31790 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
31791 (struct cgraph_node, varpool_node): Add ref_lst.
31792 * ipa-ref.c: New file.
31793 * ipa-ref.h: New file.
31794 * ipa-ref-inline.h: New file.
31795 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
31796 (referenced_from_other_partition_p): New function.
31797 (lto_output_varpool_node): Take set arugment; call
31798 referenced_from_other_partition.
31799 (lto_output_ref): New.
31800 (add_references): New.
31801 (output_refs): New.
31802 (output_cgraph): Compute boundary based on references; output refs.
31803 (output_varpool): Accept cgraph_node_set argument.
31804 (input_ref): New.
31805 (input_refs): New.
31806 (input_cgraph): Call input_refs.
31807 * lto-section-in.c (lto_section_name): Add refs.
31808 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
31809 (ipa-ref.o): New file.
31810 * varpool.c (varpool_node): Clear ipa ref list.
31811 (varpool_remove_node): Remove references.
31812 (dump_varpool_node): Dump references.
31813 (varpool_assemble_decl): Only compile finalized ones.
31814 (varpool_extra_name_alias): Initialize ref list.
31815 * lto-streamer.c (lto-get_section_name): Add .refs section.
31816 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
31817 (referenced_from_other_partition_p): Declared.
31818
31819 2010-05-06 Ira Rosen <irar@il.ibm.com>
31820
31821 PR tree-optimization/43901
31822 * tree-vect-stmts.c (vectorizable_call): Assert that vector
31823 type is not NULL if it's transformation phase, and return
31824 FALSE if it's analysis.
31825 (vectorizable_conversion, vectorizable_operation,
31826 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
31827
31828 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
31829
31830 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31831 Delete.
31832 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31833 New define.
31834 * config/mips/mips-protos.h
31835 (mips_small_register_classes_for_mode_p): Delete prototype.
31836
31837 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
31838
31839 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
31840 * config/arm/arm.c (multiple_operation_profitable_p,
31841 compute_offset_order): New static functions.
31842 (load_multiple_sequence, store_multiple_sequence): Use them.
31843 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
31844 memory offsets, not register numbers.
31845 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
31846
31847 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
31848
31849 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
31850 (get_pending_sizes, put_pending_size, put_pending_sizes):
31851 Update the uses of pending_sizes.
31852 * c-decl.c (store_parm_decls): Likewise.
31853 * c-tree.h (struct c_arg_info): Likewise.
31854 * tree.h: Update the prototype for get_pending_sizes and
31855 put_pending_sizes.
31856
31857 2010-05-05 Jason Merrill <jason@redhat.com>
31858
31859 PR debug/43370
31860 * c-common.c (handle_aligned_attribute): Respect
31861 ATTR_FLAG_TYPE_IN_PLACE.
31862
31863 PR testsuite/43758
31864 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
31865 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31866 (TARGET_INITIALIZER): Use it.
31867 * c-common.c (attribute_takes_identifier_p): Call it.
31868 * c-common.h: Update prototype.
31869 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
31870 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31871
31872 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31873
31874 PR debug/43950
31875 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
31876 DW_ID_down_case for Fortran compilation units.
31877
31878 2010-05-05 Jan Hubicka <jh@suse.cz>
31879
31880 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
31881 handle aliases.
31882
31883 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
31884
31885 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
31886 a variable-sized RESULT_DECL.
31887
31888 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
31889
31890 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
31891
31892 2010-05-05 Jason Merrill <jason@redhat.com>
31893
31894 PR c++/43787
31895 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
31896 returns GS_OK.
31897 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
31898
31899 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
31900 Jakub Jelinek <jakub@redhat.com>
31901
31902 PR debug/43478
31903 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
31904 (dead_debug_init, dead_debug_finish): New functions.
31905 (dead_debug_add, dead_debug_insert_before): Likewise.
31906 (df_note_bb_compute): Initialize a dead_debug object, add dead
31907 debug uses to it, insert debug bind insns before death insns,
31908 reset debug insns that refer to pending uses at the end.
31909 * rtl.h (make_debug_expr_from_rtl): New prototype.
31910 * varasm.c (make_debug_expr_from_rtl): New function.
31911
31912 2010-05-05 Jan Hubicka <jh@suse.cz>
31913
31914 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
31915 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
31916 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
31917 lto_varpool_encoder_deref, lto_varpool_encoder_size,
31918 lto_varpool_encoder_encode_initializer_p,
31919 lto_set_varpool_encoder_encode_initializer): New functions.
31920 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
31921 call output_varpool.
31922 (input_varpool_node): Do not always set analyzed.
31923 (input_cgraph_1): Return vector of cgraph nodes.
31924 (input_varpool_1): Return vector of varpools.
31925 (input_cgraph): Free the vectors.
31926 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31927 output only initializers needed.
31928 (lto_output): Only call output_cgraph.
31929 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
31930 * lto-section-out.c (lto_new_out_decl_state): Initialize
31931 state->varpool_node_encoder.
31932 * lto-streamer.h (lto_varpool_encoder_d): New.
31933 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
31934 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
31935 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
31936 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
31937 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
31938 Declare.
31939 (output_varpool, input_varpool): Remove declarations.
31940
31941 2010-05-05 Jan Hubicka <jh@suse.cz>
31942
31943 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
31944 with body can prevail.
31945
31946 2010-05-05 Jan Hubicka <jh@suse.cz>
31947
31948 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
31949 size.
31950
31951 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
31952
31953 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
31954
31955 * gengtype.h (erro_at_line): Constify pos argument.
31956
31957 * gengtype.c: Include hashtab.h.
31958 (enum gc_used): Document GC_MAYBE_POINTED_TO.
31959 (error_at_line): Constify pos argument.
31960 (do_typedef): Initialize p->opt field.
31961 (get_file_gtfilename): Fix comment typo.
31962 (struct walk_type_data): Constify line field.
31963 (get_output_file_for_structure): New function.
31964 (write_local_func_for_structure): Constify orig_s argument.
31965 Use get_output_file_for_structure.
31966 (write_func_for_structure): Use get_output_file_for_structure.
31967 (INDENT): New define.
31968 (dump_pair, dump_type, dump_type_list, dump_typekind)
31969 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
31970 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
31971 functions.
31972 (seen_types): New variable.
31973 (main): New variable do_dump. Process "-d" command line option.
31974 Call dump_everything if dump requested.
31975
31976 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31977
31978 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
31979 in a temporary instead of invoking the macro multiple times.
31980 (track_expr_p): Likewise.
31981
31982 2010-05-04 Neil Vachharajani <nvachhar@google.com>
31983
31984 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
31985 per new semantics.
31986 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
31987 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
31988 conditions for printing notes.
31989 * common.opt (-Wcoverage-mismatch): Allow negative, default to
31990 true, update documentation.
31991 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
31992
31993 2010-05-04 Jakub Jelinek <jakub@redhat.com>
31994
31995 PR c/43981
31996 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
31997 on dimen.
31998
31999 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
32000
32001 PR target/43799
32002 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
32003 (*sse_prologue_save_insn1): Likewise.
32004 (SSE prologue save splitter): Likewise.
32005
32006 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
32007
32008 * tree.c (free_lang_data_in_one_sizepos): New inline function.
32009 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
32010 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
32011 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
32012 all decls. Call it on DECL_FIELD_OFFSET of fields.
32013 (find_decls_types_r): Follow DECL_VALUE_EXPR.
32014 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
32015
32016 2010-05-04 Martin Jambor <mjambor@suse.cz>
32017
32018 * tree-sra.c (build_access_from_expr_1): The first parameter type
32019 changed to simple tree.
32020 (build_access_from_expr): Likewise, gsi parameter was eliminated.
32021 (scan_assign_result): Renamed to assignment_mod_result, enum elements
32022 renamed as well.
32023 (build_accesses_from_assign): Removed all parameters except for a
32024 simple gimple statement. Now returns a simple bool.
32025 (scan_function): All non-analysis parts moved to separate functions
32026 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
32027 parameters and updated both callers.
32028 (sra_modify_expr): Removed parameter data.
32029 (sra_modify_function_body): New function.
32030 (perform_intra_sra): Call sra_modify_function_body to modify the
32031 function body.
32032 (replace_removed_params_ssa_names): Parameter data changed into
32033 adjustments vector.
32034 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
32035 changed the parameter dont_convert to convert with the opposite
32036 meaning.
32037 (sra_ipa_modify_assign): Parameter data changed into adjustments
32038 vector, return value changed to bool.
32039 (ipa_sra_modify_function_body): New function.
32040 (sra_ipa_reset_debug_stmts): Updated a comment.
32041 (modify_function): Use ipa_sra_modify_function_body to modify function
32042 body.
32043
32044 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
32045
32046 PR middle-end/43671
32047 * alias.c (true_dependence): Handle the same VALUE in x and mem.
32048 (canon_true_dependence): Likewise.
32049 (write_dependence_p): Likewise.
32050
32051 2010-05-04 Jan Hubicka <jh@suse.cz>
32052
32053 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
32054 * cgraphbuild.c: Include ipa-utils.h
32055 (record_reference_ctx): New struct.
32056 (record_reference): Simplify to work on initializers; not statements.
32057 (mark_address, mark_load, mark_store): New.
32058 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
32059 walk PHI nodes too.
32060 (record_references_in_initializer): Update use of record_reference.
32061 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
32062 walk PHI nodes too.
32063
32064 2010-05-04 Jan Hubicka <jh@suse.cz>
32065
32066 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
32067 node will be removed anyway.
32068 (lto_varpool_replace_node): Allow also unanalyzed nodes;
32069 relink aliases of node into prevailing node.
32070 * varpool.c (varpool_remove_node): Remove aliases properly;
32071 when removing node, remove all its aliases too; remove DECL_INITIAL
32072 of removed node; ggc_free the varpool node.
32073
32074 2010-05-04 Richard Guenther <rguenther@suse.de>
32075
32076 PR tree-optimization/43879
32077 * tree-ssa-structalias.c (alias_get_name): Use
32078 DECL_ASSEMBLER_NAME if available.
32079 (create_function_info_for): Return the varinfo node.
32080 (ipa_pta_execute): Associate same-body aliases and extra names
32081 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
32082
32083 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
32084
32085 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
32086
32087 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
32088
32089 PR bootstrap/43964
32090 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
32091 only if HONOR_REG_ALLOC_ORDER is not defined.
32092
32093 2010-05-04 Richard Guenther <rguenther@suse.de>
32094
32095 PR tree-optimization/43949
32096 * tree-vrp.c (extract_range_from_binary_expr): Only handle
32097 TRUNC_MOD_EXPR.
32098
32099 2010-04-26 Jason Merrill <jason@redhat.com>
32100
32101 * c.opt (-fstrict-enums): New.
32102 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
32103
32104 2010-05-03 David Ung <davidu@mips.com>
32105 James E. Wilson <wilson@codesourcery.com>
32106
32107 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
32108 emit the trap instruction before the divide for TUNE_74K.
32109
32110 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
32111
32112 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
32113 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
32114 based on the above, for new target hook.
32115
32116 * hooks.c (hook_bool_mode_true): New generic hook.
32117 * hooks.h (hook_bool_mode_true): Add prototype.
32118
32119 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
32120 target hook.
32121 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
32122 target hook, set to hook_bool_mode_false.
32123 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
32124 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
32125 with targetm.small_register_classes_for_mode_p.
32126 (find_reusable_reload): Likewise.
32127 (combine_reloads): Likewise.
32128 * reload1.c (reload_as_needed): Likewise.
32129 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
32130 * ifcvt.c (noce_process_if_block, check_cond_move_block,
32131 dead_or_predicable): Likewise.
32132 * regmove.c (optimize_reg_copy_1): Likewise.
32133 * calls.c (prepare_call_address): Likewise.
32134 (precompute_register_parameters): Likewise.
32135
32136 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
32137 hook definition.
32138 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
32139 implementation of the hook that considers all register classes
32140 small except for SH64.
32141 (sh_override_options): Use the new hook.
32142 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
32143 Add prototype.
32144
32145 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
32146 hook definition.
32147 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
32148 implementation of the hook that considers all register classes
32149 small for THUMB1.
32150 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
32151 Add prototype.
32152
32153 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
32154 hook definition.
32155 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
32156 implementation of the hook that considers all register classes
32157 small for MIPS16.
32158 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
32159 Add prototype.
32160
32161 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
32162 hook definition.
32163 * config/m32c/m32c.h: Likewise.
32164 * config/pdp11/pdp11.h: Likewise.
32165 * config/avr/avr.h: Likewise.
32166 * config/xtensa/xtensa.h: Likewise.
32167 * config/m68hc11/m68hc11.h: Likewise.
32168 * config/mn10300/mn10300.h: Likewise.
32169 * config/mcore/mcore.h: Likewise.
32170 * config/h8300/h8300.h: Likewise.
32171 * config/bfin/bfin.h: Likewise.
32172
32173 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
32174 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
32175
32176 2010-05-03 Anatoly Sokolov <aesok@post.ru>
32177
32178 * double-int.h (tree_to_double_int): Remove macro.
32179 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
32180 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
32181 (tree_to_double_int): New function.
32182 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
32183 Move ...
32184 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
32185
32186 2010-05-03 Richard Guenther <rguenther@suse.de>
32187
32188 PR tree-optimization/43971
32189 * tree-ssa-structalias.c (get_constraint_for_1): Fix
32190 constraints in the !flag_delete_null_pointer_checks case.
32191
32192 2010-05-03 Jakub Jelinek <jakub@redhat.com>
32193
32194 PR debug/43972
32195 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
32196 result mode matches original rtl mode.
32197
32198 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
32199
32200 PR target/43888
32201 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
32202
32203 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32204
32205 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
32206 when processing flag options.
32207
32208 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32209
32210 * gcov-iov.c (main): Change format string placeholder
32211 from %#08x to 0x%08x.
32212 * genchecksum.c (dosum): Change format string placeholder
32213 from %#02x to 0x%02x.
32214
32215 2010-05-02 Richard Guenther <rguenther@suse.de>
32216
32217 PR tree-optimization/43879
32218 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
32219
32220 2010-05-02 Bruno Haible <bruno@clisp.org>
32221
32222 * doc/extend.texi (Function Attributes): Fix a typo.
32223
32224 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32225
32226 Revert:
32227 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
32228 placeholder from 0x%x to %#x.
32229 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
32230 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
32231 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
32232 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
32233 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
32234 * config/i386/i386.c (ix86_target_string): Ditto.
32235 * config/i386/i386.c (output_pic_addr_const): Ditto.
32236 (print_operand): Ditto.
32237
32238 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
32239
32240 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
32241 placeholder from 0x%x to %#x.
32242 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
32243 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
32244 (ASM_OUTPUT_DEBUG_DATA): Ditto.
32245 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
32246 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
32247 * optc-gen.awk: Ditto.
32248 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
32249 (HOST_WIDE_INT_PRINT_HEX): Ditto.
32250 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
32251 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
32252
32253 2010-05-01 Anatoly Sokolov <aesok@post.ru>
32254
32255 * target.h (struct calls): Add function_value_regno_p field.
32256 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
32257 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
32258 * targhooks.c (default_function_value_regno_p): New function.
32259 * targhooks.h (default_function_value_regno_p): Declare function.
32260 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
32261 * builtins.c. (apply_result_size): (Ditto.).
32262 * combine.c. (likely_spilled_retval_p): (Ditto.).
32263 * mode-switching.c. Include 'target.h'.
32264 (create_pre_exit): Use function_value_regno_p hook.
32265 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
32266 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
32267 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
32268
32269 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
32270 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
32271 (ix86_function_value_regno_p): Declare as static, change argument
32272 type to const unsigned int.
32273 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
32274
32275 2010-05-01 Richard Guenther <rguenther@suse.de>
32276
32277 PR tree-optimization/43949
32278 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
32279 types.
32280 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
32281
32282 2010-05-01 Anatoly Sokolov <aesok@post.ru>
32283
32284 * rtl.h (CONST_DOUBLE_P): Define.
32285 (rtx_to_double_int): Declare.
32286 * emit-rtl.c (rtx_to_double_int): New function.
32287 * dwarf2out.c (insert_double): New function.
32288 (loc_descriptor, add_const_value_attribute): Clean up, use
32289 rtx_to_double_int and insert_double functions.
32290
32291 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
32292
32293 * doc/extend.texi (Inline): Add missing return keyword to examples.
32294 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
32295 "command-line".
32296
32297 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
32298
32299 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
32300 the variable part of the offset as well. Use highest_pow2_factor for
32301 all alignment checks.
32302
32303 2010-04-30 Richard Guenther <rguenther@suse.de>
32304
32305 PR tree-optimization/43879
32306 * tree-ssa-structalias.c (type_could_have_pointers): Functions
32307 can have pointers.
32308
32309 2010-04-30 Jan Hubicka <jh@suse.cz>
32310
32311 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
32312 varpool.
32313 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
32314
32315 2010-04-30 Jan Hubicka <jh@suse.cz>
32316
32317 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
32318 New.
32319 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
32320 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
32321 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
32322 cgraph_node_set_needs_ltrans_p): Remove.
32323
32324 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
32325
32326 * sdbout.c: Include vec.h, do not include varray.h.
32327 (deferred_global_decls, sdbout_global_decl,
32328 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
32329 * toplev.c: Do not include varray.h.
32330 (dump_memory_report): Do not dump VARRAY statistics.
32331 * gengtype.c (open_base_file): Ignore varray.h.
32332 * Makefile.in: Update for abovementioned changes.
32333 Remove all traces of varray.c and varray.h.
32334 * varray.c: Remove file.
32335 * varray.h: Remove file.
32336
32337 2010-04-30 Jan Hubicka <jh@suse.cz>
32338
32339 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
32340 references.
32341
32342 2010-04-30 Jan Hubicka <jh@suse.cz>
32343
32344 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
32345 needed.
32346
32347 2010-04-30 Richard Guenther <rguenther@suse.de>
32348
32349 * tree-ssa-structalias.c (get_constraint_for_1): Generate
32350 constraints for CONSTRUCTOR.
32351
32352 2010-04-30 Richard Guenther <rguenther@suse.de>
32353
32354 PR lto/43946
32355 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
32356 first after all lowering passes.
32357
32358 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
32359
32360 * toplev.c: Include varray.h for statistics dumping.
32361 * tree.h: Do not declare varray_head_tag.
32362 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
32363 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
32364 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
32365 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
32366 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
32367 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
32368 c-common.c, c-common.h, reg-stack.c, basic-block.h,
32369 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
32370 include varray.h.
32371 * Makefile.in: Update for abovementioned changes.
32372
32373 2010-04-30 Jakub Jelinek <jakub@redhat.com>
32374
32375 PR debug/43942
32376 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
32377
32378 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
32379
32380 * config/picochip/picochip.c (picochip_legitimize_address): Define.
32381 Use this function to do machine-specific conversion.
32382 (picochip_legitimize_reload_address): Likewise.
32383 (picochip_legitimate_address_p): Check valid base register only if
32384 strict.
32385 (picochip_check_conditional_copy): Check for modw only if opnd is
32386 register.
32387 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
32388 to call the function in c.
32389 * config/picochip/picochip-protos.h
32390 (picochip_legitimize_reload_address): Define.
32391 * config/picochip/picochip.md (supported_compare1): Define.
32392
32393 2010-04-30 Jan Hubicka <jh@suse.cz>
32394
32395 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
32396 (cgraph_global_info): Remove inlined.
32397 (LTO_cgraph_tag_names): Remove.
32398 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
32399 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
32400 simplify cgraph tags and document.
32401 (lto_output_node): Use only LTO_cgraph_unavail_node and
32402 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
32403 for_functions_valid, global info, process and output flags.
32404 (input_overwrite_node): Initialize estimated stack size and
32405 estimated growth. Do not read flags we no longer store.
32406 (input_node): Likewise do not read info no longer stored.
32407 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
32408 flag.
32409
32410 2010-04-30 Richard Guenther <rguenther@suse.de>
32411
32412 PR tree-optimization/43879
32413 * tree-ssa-structalias.c (get_constraint_for_1): Properly
32414 handle non-zero initializers.
32415
32416 2010-04-30 Richard Guenther <rguenther@suse.de>
32417
32418 * builtins.c (fold_builtin_1): Delete free (0).
32419
32420 2010-04-29 Jan Hubicka <jh@suse.cz>
32421
32422 * gengtype.c (open_base_files): Add lto-streamer.h
32423 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
32424 (pass_ipa_cp): GGC collect.
32425 * toplev. (compile_file): Do not output symbols.
32426 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
32427 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
32428 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
32429 * lto-section-in.c: Include ggc.h
32430 (lto_new_in_decl_state): Alloc in GGC.
32431 (lto_delete_in_decl_state): Likewise.
32432 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
32433 Collect.
32434
32435 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
32436
32437 PR target/42895
32438 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
32439 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
32440 (HONOR_REG_ALLOC_ORDER): Describe new macro.
32441 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
32442 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
32443 account only if HONOR_REG_ALLOC_ORDER is not defined.
32444 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
32445 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
32446
32447 2010-04-29 Jon Grant <04@jguk.org>
32448
32449 * collect2.c (vflag): Change type from int to bool.
32450 (debug): Likewise.
32451 (helpflag): New global bool.
32452 (main): Set vflag and debug with boolean, not integer truth values.
32453 Accept new "--help" option and output usage text if found.
32454 * collect2.h (vflag): Update prototype.
32455 (debug): Likewise.
32456
32457 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
32458
32459 PR bootstrap/43936
32460 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
32461
32462 2010-04-29 Richard Guenther <rguenther@suse.de>
32463
32464 PR bootstrap/43935
32465 * plugin.h (invoke_plugin_callbacks): Annotate arguments
32466 with ATTRIBUTE_UNUSED.
32467
32468 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
32469
32470 PR target/43921
32471 * config/i386/i386.c (get_some_local_dynamic_name): Replace
32472 INSN_P with NONDEBUG_INSN_P.
32473 (distance_non_agu_define): Likewise.
32474 (distance_agu_use): Likewise.
32475
32476 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
32477
32478 From Dominique d'Humieres <dominiq@lps.ens.fr>
32479 PR bootstrap/43858
32480 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
32481 test_set.
32482
32483 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
32484
32485 * plugin.h (invoke_plugin_callbacks): New inline function.
32486 * plugin.c (flag_plugin_added): New global flag.
32487 (add_new_plugin): Initialize above flag.
32488 (invoke_plugin_callbacks): Rename to ...
32489 (invoke_plugin_callbacks_full): ... this.
32490
32491 2010-04-28 Jan Hubicka <jh@suse.cz>
32492
32493 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
32494 (lto_varpool_replace_node): New.
32495 (lto_symtab_resolve_symbols): Resolve varpool nodes.
32496 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
32497 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
32498 * cgraph.h (varpool_node_ptr): New type.
32499 (varpool_node_ptr): New vector.
32500 (varpool_node_set_def): New structure.
32501 (varpool_node_set): New type.
32502 (varpool_node_set): New vector.
32503 (varpool_node_set_element_def): New structure.
32504 (varpool_node_set_element, const_varpool_node_set_element): New types.
32505 (varpool_node_set_iterator): New type.
32506 (varpool_node): Add prev pointers, add used_from_other_partition,
32507 in_other_partition.
32508 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
32509 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
32510 varpool_get_node, varpool_remove_node): Declare.
32511 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
32512 varpool_node_set_size): New inlines.
32513 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
32514 * tree-pass.h (varpool_node_set_def): Forward declare.
32515 (ipa_opt_pass_d): Summary writting takes vnode sets too.
32516 (ipa_write_optimization_summaries): Update prototype.
32517 * ipa-cp.c (ipcp_write_summary): Update.
32518 * ipa-reference.c (ipa_reference_write_summary): Update.
32519 * lto-cgraph.c (lto_output_varpool_node): New static function.
32520 (output_varpool): New function.
32521 (input_varpool_node): New static function.
32522 (input_varpool_1): New function.
32523 (input_cgraph): Input varpool.
32524 * ipa-pure-const.c (pure_const_write_summary): Update.
32525 * lto-streamer-out.c (lto_output): Update, output varpool too.
32526 (write_global_stream): Kill WPA hack.
32527 (produce_asm_for_decls): Update.
32528 (output_alias_pair_p): Handle variables.
32529 (output_unreferenced_globals): Output only needed partition of varpool.
32530 * ipa-inline.c (inline_write_summary): Update.
32531 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
32532 cgraph.
32533 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
32534 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
32535 varpool_node_set_new, varpool_node_set_add,
32536 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
32537 debug_varpool_node_set): New functions.
32538 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
32539 (execute_one_pass): Process new decls too.
32540 (ipa_write_summaries_2): Pass around vsets.
32541 (ipa_write_summaries_1): Likewise.
32542 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
32543 to add.
32544 (ipa_write_optimization_summaries_1): Pass around vsets.
32545 (ipa_write_optimization_summaries): Likewise.
32546 * varpool.c (varpool_get_node): New.
32547 (varpool_node): Update doubly linked lists.
32548 (varpool_remove_node): New.
32549 (dump_varpool_node): More dumping.
32550 (varpool_enqueue_needed_node): Update doubly linked lists.
32551 (decide_is_variable_needed): Kill ltrans hack.
32552 (varpool_finalize_decl): Kill lto hack.
32553 (varpool_assemble_decl): Skip decls in other partitions.
32554 (varpool_assemble_pending_decls): Update doubly linkes lists.
32555 (varpool_empty_needed_queue): Likewise.
32556 (varpool_extra_name_alias): Likewise.
32557 * lto-streamer.c (lto_get_section_name): Add vars section.
32558 * lto-streamer.h (lto_section_type): Update.
32559 (output_varpool, input_varpool): Declare.
32560
32561 2010-04-28 Mike Stump <mikestump@comcast.net>
32562
32563 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
32564
32565 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
32566
32567 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
32568 record or union type with RECORD_OR_UNION_TYPE_P predicate.
32569 (lto_input_ts_type_tree_pointers): Likewise.
32570 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
32571 (lto_output_ts_type_tree_pointers): Likewise.
32572
32573 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
32574
32575 Uniquization of constants at the Tree level
32576 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
32577 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
32578 bit to the end.
32579 (tree_output_constant_def): Declare.
32580 * gimplify.c (gimplify_init_constructor): When using block copy, first
32581 uniquize the constant constructor on the RHS.
32582 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
32583 DECL_IN_CONSTANT_POOL flag.
32584 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
32585 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
32586 constant pool.
32587 (assemble_variable): Deal with symbols belonging to the tree constant
32588 pool.
32589 (get_constant_section): Add ALIGN parameter and simplify.
32590 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
32591 (assemble_constant_contents): Use the expression of the VAR_DECL.
32592 (output_constant_def_contents): Use the alignment of the VAR_DECL.
32593 (tree_output_constant_def): New global function.
32594 (mark_constant): Use the expression of the VAR_DECL.
32595 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
32596 its expression.
32597 (output_object_block): Likewise and assemble the expression.
32598
32599 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
32600
32601 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
32602 hash_tree, eq_tree): New tree hash table.
32603 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
32604 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
32605 lto_orig_address_remove): Reimplement.
32606
32607 2010-04-28 Xinliang David Li <davidxl@google.com>
32608
32609 PR c/42643
32610 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
32611 (compute_uninit_opnds_pos): New function.
32612 (is_non_loop_exit_postdominating): New function.
32613 (compute_control_dep_chain): New function.
32614 (find_pdom): New function.
32615 (convert_control_dep_chain_into_preds): New function.
32616 (find_predicates): New function.
32617 (find_control_equiv_block): New function.
32618 (collect_phi_def_edges): New function.
32619 (find_def_preds): New function.
32620 (find_dom): New function.
32621 (dump_predicates): New function.
32622 (get_cmp_code): New function.
32623 (is_value_included_in): New function.
32624 (find_matching_predicate_in_rest_chains): New function.
32625 (use_pred_not_overlap_with_undef_path_pred): New function.
32626 (is_use_properly_guarded): New function.
32627 (normalize_cond_1): New function.
32628 (is_and_or_or): New function.
32629 (normalize_cond): New function.
32630 (is_gcond_subset_of): New function.
32631 (is_subset_of_any): New function.
32632 (is_or_set_subset_of): New function.
32633 (is_and_set_subset_of): New function.
32634 (is_norm_cond_subset_of): New function.
32635 (is_pred_expr_subset_of): New function.
32636 (is_pred_chain_subset_of): New function.
32637 (is_included_in): New function.
32638 (is_superset_of): New function.
32639 (find_uninit_use): New function.
32640 (warn_uninitialized_phi): New function.
32641 (compute_possibly_undefined_names): New function.
32642 (ssa_undefined_value_p): New function.
32643 (execute_late_warn_uninitialized): New function.
32644 * tree-ssa.c (ssa_undefined_value_p): Removed.
32645 (warn_uninit): Changed to extern.
32646 (warn_uninitialized_phi): Removed.
32647 (warn_uninitialized_vars): Changed to extern.
32648 (execute_late_warn_uninitialized): Removed
32649 * tree-flow.h: Add new prototypes.
32650 * timevar.def: Add new time variable.
32651 * Makefile.in: Add new build file.
32652
32653 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
32654
32655 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
32656 type if available.
32657
32658 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32659
32660 PR target/22224
32661 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
32662
32663 2010-04-28 Martin Jambor <mjambor@suse.cz>
32664
32665 * cgraph.h (struct cgraph_node): New field indirect_calls.
32666 (struct cgraph_indirect_call_info): New type.
32667 (struct cgraph_edge): Removed field indirect_call. New fields
32668 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
32669 (cgraph_create_indirect_edge): Declare.
32670 (cgraph_make_edge_direct): Likewise.
32671 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
32672 * ipa-prop.h (struct ipa_param_call_note): Removed.
32673 (struct ipa_node_params): Removed field param_calls.
32674 (ipa_create_all_structures_for_iinln): Declare.
32675 * cgraph.c: Described indirect edges and uids in initial comment.
32676 (cgraph_add_edge_to_call_site_hash): New function.
32677 (cgraph_edge): Search also among the indirect edges, use
32678 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
32679 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
32680 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
32681 site hash.
32682 (initialize_inline_failed): Assign a reason to indirect edges.
32683 (cgraph_create_edge_1): New function.
32684 (cgraph_create_edge): Moved some functionality to
32685 cgraph_create_edge_1.
32686 (cgraph_create_indirect_edge): New function.
32687 (cgraph_edge_remove_callee): Add an assert checking for
32688 non-indirectness.
32689 (cgraph_edge_remove_caller): Special-case indirect edges.
32690 (cgraph_remove_edge): Likewise.
32691 (cgraph_set_edge_callee): New function.
32692 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
32693 (cgraph_make_edge_direct): New function.
32694 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
32695 the declaration of the call statement matches.
32696 (cgraph_node_remove_callees): Special-case indirect edges.
32697 (cgraph_clone_edge): Likewise.
32698 (cgraph_clone_node): Clone also the indirect edges.
32699 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
32700 indirect_call, dump count of indirect_calls edges.
32701 * ipa-prop.c (iinlining_processed_edges): New variable.
32702 (ipa_note_param_call): Create indirect edges instead of
32703 creating notes. New parameter node.
32704 (ipa_analyze_call_uses): New parameter node, pass it on to
32705 ipa_note_param_call.
32706 (ipa_analyze_stmt_uses): Likewise.
32707 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
32708 (print_edge_addition_message): Work on edges rather than on notes.
32709 (update_call_notes_after_inlining): Likewise, renamed to
32710 update_indirect_edges_after_inlining.
32711 (ipa_create_all_structures_for_iinln): New function.
32712 (ipa_free_node_params_substructures): Do not free notes.
32713 (ipa_edge_duplication_hook): Propagate bits within
32714 iinlining_processed_edges bitmap.
32715 (ipa_node_duplication_hook): Do not duplicate notes.
32716 (free_all_ipa_structures_after_ipa_cp): Renamed to
32717 ipa_free_all_structures_after_ipa_cp.
32718 (free_all_ipa_structures_after_iinln): Renamed to
32719 ipa_free_all_structures_after_iinln.
32720 (ipa_write_param_call_note): Removed.
32721 (ipa_read_param_call_note): Removed.
32722 (ipa_write_indirect_edge_info): New function.
32723 (ipa_read_indirect_edge_info): Likewise.
32724 (ipa_write_node_info): Do not stream notes, do stream information
32725 in indirect edges.
32726 (ipa_read_node_info): Likewise.
32727 (lto_ipa_fixup_call_notes): Removed.
32728 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
32729 * ipa-inline.c (pass_ipa_inline): Likewise.
32730 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
32731 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
32732 * tree-inline.c (copy_bb): Removed an unnecessary double check for
32733 is_gimple_call.
32734 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
32735 edges.
32736 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
32737 (output_cgraph): Stream also indirect edges.
32738 (lto_output_edge): Added capability to stream indirect edges.
32739 (input_edge): Likewise.
32740 (input_cgraph_1): Likewise.
32741 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
32742 of indirect edges.
32743
32744 2010-04-28 Richard Guenther <rguenther@suse.de>
32745
32746 PR tree-optimization/43879
32747 PR tree-optimization/43909
32748 * tree-ssa-structalias.c (struct variable_info): Add
32749 only_restrict_pointers flag.
32750 (new_var_info): Initialize it. Increment stats.total_vars here.
32751 (create_function_info_for): Do not increment stats.total_vars here.
32752 (get_function_part_constraint): Fix build with C++.
32753 (insert_into_field_list): Remove.
32754 (push_fields_onto_fieldstack): Properly merge fields.
32755 (create_variable_info_for): Split and simplify.
32756 (create_variable_info_for_1): New piece.
32757 (intra_create_variable_infos): Properly make restrict constraints
32758 from parameters.
32759
32760 2010-04-28 Richard Guenther <rguenther@suse.de>
32761
32762 PR c++/43880
32763 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
32764
32765 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
32766 Jan Hubicka <hubicka@ucw.cz>
32767
32768 * doc/invoke.texi (-Wsuggest-attribute=const,
32769 -Wsuggest-attribute=pure): Document.
32770 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
32771 (function_always_visible_to_compiler_p,
32772 suggest_attribute, warn_function_pure, warn_function_const):
32773 New functions.
32774 (check_call): Improve debug info.
32775 (analyze_function): Do not check availability.
32776 (add_new_function): Check availability.
32777 (propagate): Output warnings.
32778 (skip_function_for_local_pure_const): New function.
32779 (local_pure_const): Use it; output warnings.
32780 * common.opt (Wsuggest-attribute=const,
32781 Wsuggest-attribute=pure): New.
32782
32783 2010-04-27 Jakub Jelinek <jakub@redhat.com>
32784
32785 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
32786 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
32787 or DW_CFA_def_cfa_offset{,_sf}.
32788
32789 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
32790
32791 * tree.h: Fix truncated long macros.
32792
32793 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
32794
32795 * collect2.c (TARGET_64BIT): Redefine to target's default.
32796 * tlink.c: Likewise.
32797 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
32798 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
32799 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
32800 for underscoring __USER_LABEL_PREFIX__.
32801 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
32802 (SUB_LINK_ENTRY32): New.
32803 (SUB_LINK_ENTRY64): New.
32804 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
32805 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
32806 (SUB_LINK_ENTRY64): New.
32807 (SUB_LINK_ENTRY): New.
32808 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
32809 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
32810 x64 target is choosen.
32811 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
32812 * configure: Regenerated.
32813 * configure.ac (leading-mingw64-underscores): Option added.
32814
32815 2010-04-27 Jan Hubicka <jh@suse.cz>
32816
32817 * doc/invoke.texi (-fipa-profile): Document.
32818 * opts.c (decode_options): Enable ipa-profile at -O1.
32819 * timevar.def (TV_IPA_PROFILE): Define.
32820 * common.opt (fipa-profile): Add.
32821 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
32822 flag for clones.
32823 (cgraph_propagate_frequency): Handle only local ones.
32824 * tree-pass.h (pass_ipa_profile): Declare.
32825 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
32826 (pass_ipa_profile): Use TV_IPA_PROFILE.
32827 * ipa.c (ipa_profile): New function.
32828 (gate_ipa_profile): Likewise.
32829 (pass_ipa_profile): New global variable.
32830 * passes.c (pass_ipa_profile): New.
32831
32832 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
32833
32834 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
32835
32836 2010-04-27 Martin Jambor <mjambor@suse.cz>
32837
32838 PR middle-end/43812
32839 * ipa.c (dissolve_same_comdat_group_list): New function.
32840 (function_and_variable_visibility): Call
32841 dissolve_same_comdat_group_list when comdat group contains external or
32842 newly local nodes.
32843 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
32844 lists are circular and that they contain only DECL_ONE_ONLY nodes.
32845
32846 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
32847
32848 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
32849 (const_hash_1) <VECTOR_CST>: New case.
32850 (compare_constant) <VECTOR_CST>: Likewise.
32851 <ADDR_EXPR>: Deal with LABEL_REFs.
32852 (copy_constant) <VECTOR_CST>: New case.
32853
32854 2010-04-27 Jan Hubicka <jh@suse.cz>
32855
32856 * cgraph.c (cgraph_propagate_frequency): New function.
32857 * cgraph.h (cgraph_propagate_frequency): Declare.
32858 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
32859 cgraph_propagate_frequency.
32860
32861 2010-04-27 Jakub Jelinek <jakub@redhat.com>
32862
32863 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
32864
32865 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
32866
32867 PR target/40657
32868 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
32869 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
32870 here to determine which regs to push and how much stack to reserve.
32871
32872 2010-04-27 Jie Zhang <jie@codesourcery.com>
32873
32874 * doc/gimple.texi (gimple_statement_with_ops): Remove
32875 addresses_taken field.
32876 (gimple_statement_with_memory_ops): Likewise.
32877
32878 2010-04-27 Jan Hubicka <jh@suse.cz>
32879
32880 * tree-inline.c (eni_inlining_weights): Remove.
32881 (estimate_num_insns): Special case more builtins.
32882
32883 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
32884
32885 PR c/32207
32886 * c-typeck.c (build_binary_op): Move forward check for comparison
32887 pointer with null pointer constant and adjust the diagnostic message.
32888
32889 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
32890
32891 PR lto/42776
32892 * configure.ac (gcc_cv_as_section_has_align): Set if installed
32893 binutils supports extended .section directive needed by LTO, or
32894 warn if older binutils found.
32895 (LTO_BINARY_READER): New AC_SUBST'd variable.
32896 (LTO_USE_LIBELF): Likewise.
32897 * config.gcc (lto_binary_reader): New target-specific configure
32898 variable.
32899 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
32900 (LTO_USE_LIBELF): Likewise.
32901 * configure: Regenerate.
32902
32903 * collect2.c (is_elf): Rename from this ...
32904 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
32905 object files in addition to ELF-formatted ones.
32906 (scan_prog_file): Caller updated. Also allow for LTO info marker
32907 symbol to be prefixed or not by an extra underscore.
32908
32909 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
32910 * config/i386/winnt.c: Also #include lto-streamer.h
32911 (i386_pe_asm_named_section): Specify 1-byte section alignment for
32912 LTO named sections.
32913 (i386_pe_asm_output_aligned_decl_common): Add comment.
32914 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
32915
32916 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
32917
32918 PR target/43889
32919 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
32920 Add missing earlyclobber for second alternative.
32921
32922 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
32923
32924 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
32925 bits for artificial defs at the top of the block.
32926 * fwprop.c (single_def_use_enter_block): Don't call it.
32927
32928 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
32929
32930 PR 43715
32931 * configure.ac: Use "$gcc_cv_nm -g" on darwin
32932 instead of "$gcc_cv_objdump -T".
32933 Use "-undefined dynamic_lookup" on darwin.
32934 * configure: Regenerate.
32935
32936 2010-04-26 Jakub Jelinek <jakub@redhat.com>
32937
32938 PR c/43893
32939 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
32940
32941 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32942
32943 * c-parser.c (struct c_token): Move location field up.
32944 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
32945 (struct c_declspecs): Convert typespec_word, storage_class, and
32946 default_int_p into bitfields.
32947 (struct c_declarator): Move loc field up.
32948
32949 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32950
32951 * cfgloop.h (struct loop): Move can_be_parallel field up.
32952 * ipa-prop.h (struct ip_node_params): Move bitfields up.
32953 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
32954 down.
32955 (struct iv_cand): Convert pos field into a bitfield.
32956 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
32957 field up.
32958 (struct _stmt_vec_info): Shuffle fields for better packing.
32959
32960 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32961
32962 * varasm.c (IN_NAMED_SECTION): Remove guard.
32963 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
32964 (IN_NAMED_SECTION_P): ...this.
32965 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
32966 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
32967
32968 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32969
32970 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
32971 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
32972 of shadowing it. Fix comments.
32973
32974 2010-04-26 Jan Hubicka <jh@suse.cz>
32975
32976 * cgraph.c (cgraph_create_node): Set node frequency to normal.
32977 (cgraph_clone_node): Copy function frequency.
32978 * cgraph.h (node_frequency): New enum
32979 (struct cgraph_node): Add.
32980 * final.c (rest_of_clean_state): Update.
32981 * lto-cgraph.c (lto_output_node): Output node frequency.
32982 (input_overwrite_node): Input node frequency.
32983 * tre-ssa-loop-ivopts (computation_cost): Update.
32984 * lto-streamer-out.c (output_function): Do not output function
32985 frequency.
32986 * predict.c (maybe_hot_frequency_p): Update and handle functions
32987 executed once.
32988 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
32989 attribute lookup.
32990 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
32991 (compute_function_frequency): Set noreturn functions to be executed
32992 once.
32993 (choose_function_section): Update.
32994 * lto-streamer-in.c (input_function): Do not input function frequency.
32995 * function.c (allocate_struct_function): Do not initialize function
32996 frequency.
32997 * function.h (function_frequency): Remove.
32998 (struct function): Remove function frequency.
32999 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
33000 (try_update): Update.
33001 * tree-inline.c (initialize_cfun): Do not update function frequency.
33002 * passes.c (pass_init_dump_file): Update.
33003 * i386.c (ix86_compute_frame_layout): Update.
33004 (ix86_pad_returns): Update.
33005
33006 2010-04-26 Jie Zhang <jie@codesourcery.com>
33007
33008 PR tree-optimization/43833
33009 * tree-vrp.c (range_int_cst_p): New.
33010 (range_int_cst_singleton_p): New.
33011 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
33012 when both operands are constants. Use range_int_cst_p in
33013 BIT_IOR_EXPR case.
33014
33015 2010-04-26 Jan Hubicka <jh@suse.cz>
33016
33017 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
33018
33019 2010-04-26 Richard Guenther <rguenther@suse.de>
33020
33021 PR lto/43080
33022 * gimple.c (gimple_decl_printable_name): Deal gracefully
33023 with a NULL DECL_NAME.
33024
33025 2010-04-26 Richard Guenther <rguenther@suse.de>
33026
33027 PR lto/42425
33028 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
33029 if emitting debug information and it is either a function
33030 or a namespace decl.
33031
33032 2010-04-26 Ira Rosen <irar@il.ibm.com>
33033
33034 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
33035 determine if the statement is vectorizable, and a macro to access it.
33036 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33037 Skip statements that can't be vectorized. If the analysis fails,
33038 mark the statement as unvectorizable if vectorizing basic block.
33039 (vect_compute_data_refs_alignment): Likewise.
33040 (vect_verify_datarefs_alignment): Skip statements marked as
33041 unvectorizable. Add print.
33042 (vect_analyze_group_access): Skip statements that can't be
33043 vectorized. If the analysis fails, mark the statement as
33044 unvectorizable if vectorizing basic block.
33045 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
33046 * tree-vect-stmts.c (vectorizable_store): Fix the number of
33047 generated stmts for SLP.
33048 (new_stmt_vec_info): Initialize the new field.
33049 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
33050 statements marked as unvectorizable.
33051
33052 2010-04-25 Joseph Myers <joseph@codesourcery.com>
33053
33054 * c-common.c (flag_isoc1x): New.
33055 (flag_isoc99): Update comment.
33056 * c-common.h (flag_isoc1x): New.
33057 (flag_isoc99): Update comment.
33058 * c-cppbuiltin.c (builtin_define_float_constants): Also define
33059 __<type>_DECIMAL_DIG__.
33060 * c-opts.c (set_std_c1x): New.
33061 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
33062 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
33063 * c.opt (-std=c1x, -std=gnu1x): New options.
33064 * doc/cpp.texi: Mention -std=c1x.
33065 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
33066 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
33067 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
33068 * doc/standards.texi: Mention C1X.
33069 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
33070 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
33071 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
33072 Define for C1X.
33073
33074 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
33075
33076 * config/i386/gmon-sol2.c (_mcleanup): Change format string
33077 placeholder from 0x%x to %#x.
33078 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
33079 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
33080 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
33081 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
33082 * config/i386/i386.c (ix86_target_string): Ditto.
33083 (output_pic_addr_const): Ditto.
33084 (print_operand): Ditto.
33085
33086 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
33087
33088 * combine.c (find_split_point): Add third argument. Use it
33089 to find nested multiply-accumulate instructions. Adjust calls.
33090 (try_combine): Adjust call to find_split_point.
33091
33092 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
33093
33094 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
33095
33096 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
33097
33098 PR tree-optimization/41442
33099 * fold-const.c (merge_truthop_with_opposite_arm): New function.
33100 (fold_binary_loc): Call it.
33101
33102 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
33103
33104 * toplev.c (general_init): Set default for fdiagnostics-show-option.
33105 * opts.c (common_handle_option): Allow disabling it.
33106 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
33107
33108 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
33109
33110 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
33111 between modes if both types are integral.
33112
33113 2010-04-23 Richard Guenther <rguenther@suse.de>
33114
33115 PR tree-optimization/43572
33116 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
33117
33118 2010-04-23 Richard Guenther <rguenther@suse.de>
33119
33120 PR lto/43455
33121 * tree-inline.c (tree_can_inline_p): Also check compatibility
33122 of return types.
33123
33124 2010-04-23 Martin Jambor <mjambor@suse.cz>
33125
33126 PR tree-optimization/43846
33127 * tree-sra.c (struct access): New flag grp_assignment_read.
33128 (build_accesses_from_assign): Set grp_assignment_read.
33129 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
33130 (enum mark_read_status): New type.
33131 (analyze_access_subtree): Propagate grp_assignment_read, create
33132 accesses also if both direct_read and root->grp_assignment_read.
33133
33134 2010-04-23 Martin Jambor <mjambor@suse.cz>
33135
33136 PR middle-end/43835
33137 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
33138 function does not have type attributes.
33139
33140 2010-04-23 Richard Guenther <rguenther@suse.de>
33141
33142 PR lto/42653
33143 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
33144 of FUNCTION_DECLs.
33145
33146 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
33147
33148 * sese.h (create_if_region_on_edge): Remove.
33149
33150 * sese.c (create_if_region_on_edge): Make static.
33151
33152 * tree-inline.c: Do not include ggc.h.
33153
33154 * expr.c: Do not include ggc.h.
33155
33156 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
33157 dependencies.
33158
33159 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
33160
33161 PR target/43744
33162 * config/sh/sh.c (find_barrier): Don't emit a constant pool
33163 in the middle of insns for casesi_worker_2.
33164
33165 2010-04-22 David Edelsohn <edelsohn@gnu.org>
33166
33167 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
33168
33169 2010-04-22 Ira Rosen <irar@il.ibm.com>
33170
33171 PR tree-optimization/43842
33172 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
33173 loop unrolling in update of exit phis. Fix comment.
33174 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
33175 least two reduction statements in the loop before starting SLP
33176 analysis.
33177
33178 2010-04-22 Nick Clifton <nickc@redhat.com>
33179
33180 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
33181
33182 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
33183
33184 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
33185 to simplify a + ~a.
33186
33187 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
33188
33189 * tree-parloops.c (loop_parallel_p): New argument
33190 parloop_obstack. Pass it down.
33191 (parallelize_loops): New variable parloop_obstack. Initialize it,
33192 pass it down, free it.
33193
33194 * tree-loop-linear.c (linear_transform_loops): Pass down
33195 lambda_obstack.
33196
33197 * tree-data-ref.h (lambda_compute_access_matrices): New argument
33198 of type struct obstack *.
33199
33200 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
33201 scratch_obstack. Initialize it, pass down, free it.
33202
33203 * lambda.h (lambda_loop_new): Remove.
33204 (lambda_matrix_new, lambda_matrix_inverse)
33205 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
33206 argument of type struct obstack *.
33207
33208 * lambda-trans.c (lambda_trans_matrix_new): New argument
33209 lambda_obstack. Pass it down, use obstack allocation for ret.
33210 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
33211 it down.
33212
33213 * lambda-mat.c (lambda_matrix_get_column)
33214 (lambda_matrix_project_to_null): Remove.
33215 (lambda_matrix_new): New argument lambda_obstack. Use obstack
33216 allocation for mat.
33217 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
33218 lambda_obstack.
33219
33220 * lambda-code.c (lambda_loop_new): New function.
33221 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
33222 (lambda_compute_auxillary_space, lambda_compute_target_space)
33223 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
33224 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
33225 (build_access_matrix): New argument lambda_obstack. Use obstack
33226 allocation for am.
33227 (lambda_compute_step_signs, lambda_compute_access_matrices): New
33228 argument lambda_obstack. Pass it down.
33229
33230 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
33231
33232 * optabs.h (expand_widening_mult): Declare.
33233
33234 2010-04-22 Richard Guenther <rguenther@suse.de>
33235
33236 PR tree-optimization/43845
33237 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
33238 lookup the CALL_EXPR function and arguments.
33239
33240 2010-04-22 Nick Clifton <nickc@redhat.com>
33241
33242 * config/stormy16/stormy16.c
33243 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
33244 * config/stormy16/stormy16.h: Tidy up formatting.
33245 (DONT_USE_BUILTIN_SETJMP): Remove definition.
33246 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
33247 (ineqbranchsi): Delete pattern.
33248 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
33249 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
33250 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
33251 stormy16-lib2-ucmpsi2.c.
33252
33253 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
33254
33255 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
33256 df_simulate_find_noclobber_defs as appropriate. Keep track of an
33257 extra set merge_set_noclobber, and use it to relax the final test
33258 slightly.
33259 * df.h (df_simulate_find_noclobber_defs): Declare.
33260 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
33261 conditional defs.
33262 (df_simulate_find_noclobber_defs): New function.
33263
33264 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
33265
33266 * config/i386/i386.md: Use {} around multi-line preparation statements.
33267
33268 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
33269
33270 * c-tree.h (push_init_level, pop_init_level, set_init_index)
33271 (process_init_element): New argument of type struct obstack *.
33272
33273 * c-typeck.c (push_init_level, pop_init_level, set_designator)
33274 (set_init_index, set_init_label, set_nonincremental_init)
33275 (set_nonincremental_init_from_string, find_init_member)
33276 (output_init_element, output_pending_init_elements)
33277 (process_init_element): New argument braced_init_obstack. Pass it
33278 down.
33279 (push_range_stack, add_pending_init): New argument
33280 braced_init_obstack. Use obstack allocation.
33281
33282 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
33283 braced_init_obstack. Pass it down.
33284 (c_parser_braced_init): New variables ret, braced_init_obstack.
33285 Initialize obstack, pass it down and finally free it.
33286
33287 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
33288
33289 PR middle-end/29274
33290 * tree-pass.h (pass_optimize_widening_mul): Declare.
33291 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
33292 gate_optimize_widening_mul): New static functions.
33293 (pass_optimize_widening_mul): New.
33294 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
33295 <case MULT_EXPR>: Remove support for widening multiplies.
33296 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
33297 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
33298 simplify_gen_unary rather than directly building extensions.
33299 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
33300 WIDEN_MULT_EXPR.
33301 * expmed.c (expand_widening_mult): New function.
33302 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
33303
33304 2010-04-21 Jan Hubicka <jh@suse.cz>
33305
33306 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
33307 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
33308 * lto-wpa-fixup.c: Remove.
33309 * Makefile.in (lto-wpa-fixup.o): Remove.
33310 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
33311 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
33312 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
33313
33314 2010-04-21 Jan Hubicka <jh@suse.cz>
33315
33316 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
33317 add write_optimization_summary, read_optimization_summary.
33318 (ipa_write_summaries_of_cgraph_node_set): Remove.
33319 (ipa_write_optimization_summaries): Declare.
33320 (ipa_read_optimization_summaries): Declare.
33321 * ipa-cp.c (pass_ipa_cp): Update.
33322 * ipa-reference.c (pass_ipa_reference): Update.
33323 * ipa-pure-const.c (pass_ipa_pure_const): Update.
33324 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
33325 Update.
33326 * ipa-inline.c (pass_ipa_inline): Update.
33327 * ipa.c (pass_ipa_whole_program): Update.
33328 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
33329 * passes.c (ipa_write_summaries_1): Do not test wpa.
33330 (ipa_write_optimization_summaries_1): New.
33331 (ipa_write_optimization_summaries): New.
33332 (ipa_read_summaries): Do not test ltrans.
33333 (ipa_read_optimization_summaries_1): New.
33334 (ipa_read_optimization_summaries): New.
33335
33336 2010-04-21 Jan Hubicka <jh@suse.cz>
33337
33338 * lto-cgraph.c (lto_output_node): Do not output comdat groups
33339 for boundary nodes.
33340 (output_cgraph): Do not arrange comdat groups for boundary nodes.
33341
33342 2010-04-21 Jakub Jelinek <jakub@redhat.com>
33343
33344 PR debug/40040
33345 * dwarf2out.c (add_name_and_src_coords_attributes): Add
33346 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
33347
33348 2010-04-21 Jan Hubicka <jh@suse.cz>
33349
33350 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
33351
33352 2010-04-21 Jan Hubicka <jh@suse.cz>
33353
33354 * varpool.c (decide_is_variable_needed): Variable is always needed
33355 during ltrans.
33356
33357 2010-04-21 Jan Hubicka <jh@suse.cz>
33358
33359 * opts.c (decode_options): Enable pure-const pass for whopr.
33360
33361 2010-04-21 Jan Hubicka <jh@suse.cz>
33362
33363 * cgraph.c (dump_cgraph_node): Dump also assembler name.
33364 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
33365 at WPA dumping.
33366 (cgraph_decide_inlining): Do not expect callee to be removed in all
33367 cases.
33368
33369 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
33370
33371 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
33372
33373 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
33374
33375 * config/i386/i386.md (x86_shrd): Add athlon_decode and
33376 amdfam10_decode attributes.
33377
33378 2010-04-21 Jakub Jelinek <jakub@redhat.com>
33379
33380 PR middle-end/43570
33381 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
33382 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
33383 (lower_copyprivate_clauses): Use private var in outer
33384 context instead of original var. Make sure the types
33385 are correct for VLAs.
33386
33387 2010-04-21 Richard Guenther <rguenther@suse.de>
33388
33389 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
33390 to non-pointer objects.
33391
33392 2010-04-21 Jakub Jelinek <jakub@redhat.com>
33393
33394 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
33395 last chain entry if it starts with the still current label.
33396 (add_location_or_const_value_attribute): Check that
33397 loc_list->first->next is NULL instead of comparing ->first with ->last.
33398 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
33399 to add_var_loc_to_decl.
33400
33401 * dwarf2out.c (output_call_frame_info): For dw_cie_version
33402 >= 4 add also address size and segment size fields into CIE header.
33403
33404 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
33405 long as address size is the same as sizeof (void *) and
33406 segment size is 0.
33407 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
33408 address size or segment size is unexpected, return DW_EH_PE_omit.
33409 (classify_object_over_fdes): If get_cie_encoding returned
33410 DW_EH_PE_omit, return -1.
33411 (init_object): If classify_object_over_fdes returned -1,
33412 pretend there were no FDEs at all.
33413
33414 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
33415
33416 * config/i386/i386.md (bswap<mode>2): Macroize expander from
33417 bswap{si,di}2 using SWI48 mode iterator.
33418 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
33419 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
33420 set modrm attribute of bswap insn to 0 and remove length attribute.
33421 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
33422 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
33423 set mode attribute to <MODE> and remove length attribute.
33424
33425 2010-04-20 James E. Wilson <wilson@codesourcery.com>
33426
33427 PR rtl-optimization/43520
33428 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
33429 zero available registers.
33430
33431 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33432
33433 * builtins.c (fold_builtin_cproj): Fold more cases.
33434
33435 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33436
33437 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
33438 (fold_builtin_1): Fold builtin cproj.
33439 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
33440 Use ATTR_CONST_NOTHROW_LIST.
33441
33442 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
33443
33444 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
33445 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
33446 ffsi2_no_cmove for !TARGET_CMOVE.
33447 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
33448 (ffssi2): Remove expander.
33449 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
33450 mode iterator.
33451 (ctz<mode>2): Ditto from ctz{si,di}2.
33452 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
33453 mode iterator.
33454 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
33455 mode iterator.
33456
33457 2010-04-20 Jakub Jelinek <jakub@redhat.com>
33458
33459 * dwarf2out.c (AT_linkage_name): Define.
33460 (clone_as_declaration): Handle DW_AT_linkage_name.
33461 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
33462 of DW_AT_MIPS_linkage_name.
33463 (move_linkage_attr): Likewise.
33464 (dwarf2out_finish): Likewise.
33465
33466 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
33467
33468 PR middle-end/41952
33469 * fold-const.c (fold_comparison): New folding rule.
33470
33471 2010-04-20 Anatoly Sokolov <aesok@post.ru>
33472
33473 * double-int.h (double_int_setbit): Declare.
33474 * double-int.c (double_int_setbit): New function.
33475 * rtl.h (immed_double_int_const): Declare.
33476 * emit-rtl.c (immed_double_int_const): New function.
33477 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
33478 and immed_double_int_const functions.
33479 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
33480 expand_copysign_bit): (Ditto.).
33481 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
33482 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
33483 * dojump.c (prefer_and_bit_test): (Ditto.).
33484 * expr.c (convert_modes, reduce_to_bit_field_precision,
33485 const_vector_from_tree): (Ditto.).
33486 * expmed.c (mask_rtx, lshift_value): (Ditto.).
33487
33488 2010-04-20 Jan Hubicka <jh@suse.cz>
33489
33490 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
33491 (dump_cgraph_node): Dump new flags.
33492 * cgraph.h (struct cgraph_node): Add flags
33493 reachable_from_other_partition and in_other_partition.
33494 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
33495 other partition can not be removed.
33496 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
33497 the other partition must be output; silence sanity checking on
33498 leaking functions bodies from other paritition.
33499 * lto-cgraph.c (reachable_from_other_partition_p): New function.
33500 (lto_output_node): Output new flags; do not sanity check that inline
33501 clones are output; drop lto_forced_extern_inline_p code; do not mock
33502 visibility flags at partition boundaries.
33503 (add_node_to): New function.
33504 (output_cgraph): Use it to sort functions so masters appear before
33505 clones.
33506 (input_overwrite_node): Input new flags.
33507 * passes.c (ipa_write_summaries): Do not call
33508 lto_new_extern_inline_states.
33509 * lto-section-out.c (forced_extern_inline,
33510 lto_new_extern_inline_states lto_delete_extern_inline_states,
33511 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
33512 * lto-streamer.h (lto_new_extern_inline_states,
33513 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
33514 lto_forced_extern_inline_p): Kill.
33515
33516 2010-04-20 Richard Guenther <rguenther@suse.de>
33517
33518 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
33519 from vars that can have pointers.
33520 (process_constraint): Dump useless constraints.
33521
33522 2010-04-20 Richard Guenther <rguenther@suse.de>
33523
33524 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
33525 (dump_sa_points_to_info): Remove asserts.
33526 (init_base_vars): nothing_id isn't an escape point nor does it
33527 have pointers.
33528
33529 2010-04-20 Jakub Jelinek <jakub@redhat.com>
33530
33531 * tree.h (TYPE_REF_IS_RVALUE): Define.
33532 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
33533 should_move_die_to_comdat, prune_unused_types_walk): Handle
33534 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
33535 (modified_type_die, gen_reference_type_die): Emit
33536 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
33537 if TYPE_REF_IS_RVALUE and -gdwarf-4.
33538
33539 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33540
33541 PR target/43635
33542 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
33543 calls for -fpic -m31 if they have been sibcall optimized.
33544
33545 2010-04-19 James E. Wilson <wilson@codesourcery.com>
33546
33547 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
33548 ar.lc fixed and call-used.
33549
33550 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
33551
33552 2010-04-19 Jan Hubicka <jh@suse.cz>
33553
33554 * opts.c (decode_options): Disable whpr incompatible passes.
33555 * lto/lto.c (lto_1_to_1_map): Skip clones.
33556 (read_cgraph_and_symbols): Do not mark everything as needed.
33557 (do_whole_program_analysis): Do map only after optimizing;
33558 set proper cgraph_state; use passmanager.
33559
33560 2010-04-19 DJ Delorie <dj@redhat.com>
33561
33562 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
33563 POINTER_PLUS_EXPR and fix them.
33564
33565 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
33566
33567 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
33568 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
33569 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
33570 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
33571 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
33572 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
33573 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
33574 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
33575 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
33576 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
33577 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
33578
33579 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
33580
33581 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
33582 (check_cond_move_block): Likewise.
33583 (cond_move_process_if_block): Likewise.
33584 (noce_find_if_block): Improve formatting.
33585 (find_if_header): Pass 0 to memset and tweak conditions.
33586 (cond_exec_find_if_block): Fix long lines and tweak conditions.
33587
33588 2010-04-19 Jakub Jelinek <jakub@redhat.com>
33589
33590 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
33591 for -gdwarf-4.
33592
33593 PR middle-end/43337
33594 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
33595 with non-local decl doesn't need chain.
33596
33597 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
33598
33599 * ira-color.c (allocno_reload_assign): Avoid accumulating
33600 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
33601
33602 2010-04-19 Martin Jambor <mjambor@suse.cz>
33603
33604 * gimple.h (create_tmp_reg): Declare.
33605 * gimplify.c (create_tmp_reg): New function.
33606 (gimplify_return_expr): Use create_tmp_reg.
33607 (gimplify_omp_atomic): Likewise.
33608 (gimple_regimplify_operands): Likewise.
33609 * tree-dfa.c (make_rename_temp): Likewise.
33610 * tree-predcom.c (predcom_tmp_var): Likewise.
33611 (reassociate_to_the_same_stmt): Likewise.
33612 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
33613 (get_replaced_param_substitute): Likewise.
33614 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
33615 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
33616 * tree-ssa-pre.c (get_representative_for): Likewise.
33617 (create_expression_by_pieces): Likewise.
33618 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
33619 (create_tailcall_accumulator): Likewise.
33620
33621 2010-04-19 Martin Jambor <mjambor@suse.cz>
33622
33623 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
33624 new_stmt.
33625 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
33626
33627 2010-04-19 Richard Guenther <rguenther@suse.de>
33628
33629 PR tree-optimization/43796
33630 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
33631 from SCEV in the lattice.
33632 (vrp_visit_phi_node): Dump change.
33633
33634 2010-04-19 Richard Guenther <rguenther@suse.de>
33635
33636 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
33637 * configure: Re-generated.
33638
33639 2010-04-19 Richard Guenther <rguenther@suse.de>
33640
33641 PR tree-optimization/43783
33642 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
33643 constant ARRAY_REF operands two and three if possible.
33644
33645 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
33646
33647 PR target/43766
33648 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
33649
33650 2010-04-19 Jie Zhang <jie@codesourcery.com>
33651
33652 PR target/43662
33653 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
33654
33655 2010-04-19 Ira Rosen <irar@il.ibm.com>
33656
33657 PR tree-optimization/37027
33658 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
33659 and macro to access it.
33660 (vectorizable_reduction): Add argument.
33661 (vect_get_slp_defs): Likewise.
33662 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
33663 statements for possible use in SLP.
33664 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
33665 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
33666 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
33667 add new argument.
33668 (vectorizable_reduction): Likewise.
33669 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
33670 vect_get_slp_defs.
33671 (vectorizable_type_demotion, vectorizable_type_promotion,
33672 vectorizable_store): Likewise.
33673 (vect_analyze_stmt): Update call to vectorizable_reduction.
33674 (vect_transform_stmt): Likewise.
33675 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
33676 (vect_build_slp_tree): Fix indentation. Check that there are no loads
33677 from different interleaving chains in same node.
33678 (vect_slp_rearrange_stmts): New function.
33679 (vect_supported_load_permutation_p): Allow load permutations for
33680 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
33681 inside SLP nodes if necessary.
33682 (vect_analyze_slp_instance): Handle reductions.
33683 (vect_analyze_slp): Try to build SLP instances originating from groups
33684 of reductions.
33685 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
33686 (vect_get_constant_vectors): Create initial vectors for reductions
33687 according to reduction code. Add new argument.
33688 (vect_get_slp_defs): Add new argument, pass it to
33689 vect_get_constant_vectors.
33690 (vect_schedule_slp_instance): Remove SLP tree root statements.
33691
33692 2010-04-19 Jakub Jelinek <jakub@redhat.com>
33693
33694 * tree.h (ENUM_IS_SCOPED): Define.
33695 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
33696 for ENUM_IS_SCOPED enums.
33697
33698 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
33699
33700 * fold-const.c (fold_comparison): Use ssizetype.
33701 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
33702 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
33703 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
33704 * tree-object-size.c (compute_object_sizes): Use size_type_node.
33705
33706 * tree.h (initialize_sizetypes): Remove parameter.
33707 (build_common_tree_nodes): Remove second parameter.
33708 * stor-layout.c (initialize_sizetypes): Remove parameter.
33709 Always create an unsigned type.
33710 (set_sizetype): Assert that the passed type is unsigned and simplify.
33711 * tree.c (build_common_tree_nodes): Remove second parameter.
33712 Adjust call to initialize_sizetypes.
33713 * c-decl.c (c_init_decl_processing): Remove second argument in call to
33714 build_common_tree_nodes.
33715
33716 2010-04-18 Matthias Klose <doko@ubuntu.com>
33717
33718 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
33719
33720 2010-04-18 Ira Rosen <irar@il.ibm.com>
33721
33722 PR tree-optimization/43771
33723 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
33724 load permutation doesn't have gaps.
33725
33726 2010-04-18 Jan Hubicka <jh@suse.cz>
33727
33728 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
33729 (sse_prologue_save_insn expander): Use new pattern.
33730 (sse_prologue_save_insn1): New pattern and splitter.
33731 (sse_prologue_save_insn): Update to deal also with 64bit aligned
33732 blocks.
33733 * i386.c (setup_incoming_varargs_64): Do not compute jump
33734 destination here.
33735 (ix86_gimplify_va_arg): Update alignment needed.
33736 (ix86_local_alignment): Do not align all local arrays to 128bit.
33737
33738 2010-04-17 Jan Hubicka <jh@suse.cz>
33739
33740 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
33741
33742 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
33743
33744 * arm.md (negdi2): Remove redundant code to force values into a
33745 register.
33746
33747 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
33748
33749 * arm/bpabi.S: Add EABI alignment attributes to objects.
33750 * arm/bpabi-v6m.S: Likewise.
33751 * arm/crti.asm: Likewise.
33752 * arm/crtn.asm: Likewise.
33753 * arm/lib1funcs.asm: Likewise.
33754 * arm/libunwind.S: Likewise.
33755
33756 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
33757
33758 * arm-protos.h (tune_params): New structure.
33759 * arm.c (current_tune): New variable.
33760 (arm_constant_limit): Delete.
33761 (struct processors): Add pointer to the tune parameters.
33762 (arm_slowmul_tune): New tuning option.
33763 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
33764 (all_cores): Adjust to pick up the tuning model.
33765 (arm_constant_limit): New function.
33766 (arm_override_options): Select the appropriate tuning model. Delete
33767 initialization of arm_const_limit.
33768 (arm_split_constant): Use the new constant-limit model.
33769 (arm_rtx_costs): Pick up the current tuning model.
33770 * arm.md (is_strongarm, is_xscale): Delete.
33771 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
33772 for Xscale variant architectures.
33773 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
33774
33775 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33776
33777 * config/arm/arm.c (arm_gen_constant): Remove unused variable
33778 can_shift.
33779 (arm_rtx_costs_1): Remove unused variable extra_cost.
33780 (arm_unwind_emit_set): Use variable offset.
33781 (thumb1_output_casesi): Remove unused variable flags.
33782
33783 2010-04-16 Jeff Law <law@redhat.com>
33784
33785 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
33786 needing assignment rather than doing a two-phase assignment. Remove
33787 unused variable 'm'.
33788
33789 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33790
33791 PR bootstrap/43767
33792 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
33793
33794 2010-04-16 Doug Kwan <dougkwan@google.com>
33795
33796 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
33797 (next_operand_entry_id): New static variable.
33798 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
33799 (add_to_ops_vec): Assigned unique ID to operand entry.
33800 (struct oecount_s): New field ID.
33801 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
33802 (undistribute_ops_list): Assign unique IDs to oecounts.
33803 (init_reassoc): reset next_operand_entry_id.
33804
33805 2010-04-16 Doug Kwan <dougkwan@google.com>
33806
33807 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
33808 missing left parenthesis.
33809
33810 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
33811
33812 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
33813 *btdi_rex64 using SWI48 mode iterator.
33814 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
33815 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
33816 *jcc_btdi_mask_rex64.
33817
33818 2010-04-16 Anatoly Sokolov <aesok@post.ru>
33819
33820 * double-int.h (tree_to_double_int): Convert to macro.
33821 * double-int.c (tree_to_double_int): Remove.
33822
33823 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33824
33825 PR debug/43762
33826 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
33827 with want_address 2 and in case a single element list might be
33828 possible, call it again with want_address 0.
33829
33830 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
33831
33832 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
33833 case 'W' print operands for HI mode.
33834 * config/h8300/h8300.h (Y0, Y2) : New constraints.
33835 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
33836 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
33837 * config/h8300/predicate.md (bit_register_indirect_operand): New.
33838
33839 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
33840
33841 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
33842 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
33843 #xx:3 and #xx:4 mode.
33844
33845 * config/h8300/h8300.md (inverted load with HImode dest): Add
33846 support for H8300SX.
33847
33848 * config/h8300/predicate.md (bit_operand): Allow immediate values that
33849 satisfy 'U' constraint.
33850
33851 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33852
33853 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
33854 * configure: Regenerate.
33855 * config.in: Regenerate.
33856 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
33857 works.
33858
33859 2010-04-16 Richard Guenther <rguenther@suse.de>
33860
33861 * tree.h (struct tree_decl_minimal): Move pt_uid ...
33862 (struct tree_decl_common): ... here.
33863 (DECL_PT_UID): Adjust.
33864 (SET_DECL_PT_UID): Likewise.
33865 (DECL_PT_UID_SET_P): Likewise.
33866
33867 2010-04-16 Richard Guenther <rguenther@suse.de>
33868
33869 PR tree-optimization/43572
33870 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
33871 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
33872 * tree-flow.h (is_call_clobbered): Remove.
33873 * tree-flow-inline.h (is_call_clobbered): Likewise.
33874 * tree-dfa.c (dump_variable): Do not dump call clobber state.
33875 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
33876 (execute_return_slot_opt): Adjust.
33877 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
33878 check for call clobbered vars here.
33879 (find_tail_calls): Move tailcall verification to the
33880 proper place.
33881
33882 2010-04-16 Diego Novillo <dnovillo@google.com>
33883
33884 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
33885
33886 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33887
33888 PR target/40603
33889 * config/arm/arm.md (cbranchqi4): New pattern.
33890 * config/arm/predicates.md (const0_operand,
33891 cbranchqi4_comparison_operator): New predicates.
33892
33893 2010-04-16 Richard Guenther <rguenther@suse.de>
33894
33895 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
33896 (dump_gimple_stmt): Likewise.
33897
33898 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33899
33900 * recog.h (struct recog_data): New field is_operator.
33901 (struct insn_operand_data): New field is_operator.
33902 * recog.c (extract_insn): Set recog_data.is_operator.
33903 * genoutput.c (output_operand_data): Emit code to set the
33904 is_operator field.
33905 * reload.c (find_reloads): Use it rather than testing for an
33906 empty constraint string.
33907
33908 PR target/41514
33909 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
33910 If the previous insn is a cbranchsi4_insn with the same arguments,
33911 omit the compare instruction.
33912
33913 * config/arm/arm.md (addsi3_cbranch): If destination is a high
33914 register, inputs must be low registers and we need a low register
33915 scratch. Handle alternative 2 like alternative 3.
33916
33917 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33918
33919 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
33920 don't call get_addr on both. If one expression is a VALUE and
33921 the other a REG, check VALUE's locs if the REG isn't among them.
33922
33923 2010-04-16 Christian Bruel <christian.bruel@st.com>
33924
33925 * config/sh/sh.h (sh_frame_pointer_required): New function.
33926 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
33927 (flag_omit_frame_pointer) Set.
33928 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
33929 (rounded_frame_size): Adjust size with outgoing_args_size.
33930 (sh_set_return_address): Must return from stack pointer.
33931 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
33932 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
33933 (ACCUMULATE_OUTGOING_ARGS): Define.
33934 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
33935 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
33936
33937 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
33938
33939 PR target/43471
33940 * config/sh/sh.c (sh_legitimize_reload_address): Use
33941 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
33942 Remove a unneeded check for offset_base.
33943
33944 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
33945
33946 * configure: Regenerated.
33947
33948 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33949
33950 * config/s390/s390.c (s390_call_save_register_used): Switch back
33951 to HARD_REGNO_NREGS.
33952
33953 2010-04-15 Richard Guenther <rguenther@suse.de>
33954
33955 * alias.c (alias_set_subset_of): Handle alias-set zero
33956 child properly.
33957
33958 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
33959 Julian Brown <julian@codesourcery.com>
33960
33961 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
33962 alternatives according to use of high and low regs.
33963 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
33964 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
33965 optimizing for size on Thumb-2.
33966
33967 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
33968
33969 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
33970
33971 2010-04-15 Richard Guenther <rguenther@suse.de>
33972
33973 * tree-ssa-structalias.c (struct variable_info): Add
33974 is_fn_info flag.
33975 (new_var_info): Initialize it.
33976 (dump_constraints): Support printing last added constraints.
33977 (debug_constraints): Adjust.
33978 (dump_constraint_graph): Likewise.
33979 (make_heapvar_for): Check for NULL cfun.
33980 (get_function_part_constraint): New function.
33981 (get_fi_for_callee): Likewise.
33982 (find_func_aliases): Properly implement IPA PTA constraints.
33983 (process_ipa_clobber): New function.
33984 (find_func_clobbers): Likewise.
33985 (insert_into_field_list_sorted): Remove.
33986 (create_function_info_for): Properly allocate vars for IPA mode.
33987 Do not use insert_into_field_list_sorted.
33988 (create_variable_info_for): Properly generate constraints for
33989 global vars in IPA mode.
33990 (dump_solution_for_var): Always dump the solution.
33991 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
33992 (find_what_var_points_to): Adjust.
33993 (pt_solution_set): Change.
33994 (pt_solution_ior_into): New function.
33995 (pt_solution_empty_p): Export.
33996 (pt_solution_includes_global): Adjust.
33997 (pt_solution_includes_1): Likewise.
33998 (pt_solutions_intersect_1): Likewise.
33999 (dump_sa_points_to_info): Check some invariants.
34000 (solve_constraints): Move constraint dumping ...
34001 (compute_points_to_sets): ... here.
34002 (ipa_pta_execute): ... and here.
34003 (compute_may_aliases): Do not re-compute points-to info
34004 locally if IPA info is available.
34005 (ipa_escaped_pt): New global var.
34006 (ipa_pta_execute): Properly implement IPA PTA.
34007 * tree-into-ssa.c (dump_decl_set): Support dumping
34008 decls not in referenced-vars.
34009 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
34010 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
34011 (dump_points_to_solution): Likewise.
34012 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
34013 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
34014 (remap_gimple_stmt): Reset call clobber/use information if necessary.
34015 (copy_decl_to_var): Copy DECL_PT_UID.
34016 (copy_result_decl_to_var): Likewise.
34017 * tree.c (make_node_stat): Initialize DECL_PT_UID.
34018 (copy_node_stat): Copy it.
34019 * tree.h (DECL_PT_UID): New macro.
34020 (SET_DECL_PT_UID): Likewise.
34021 (DECL_PT_UID_SET_P): Likewise.
34022 (struct tree_decl_minimal): Add pt_uid member.
34023 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
34024 (pt_solution_empty_p): Declare.
34025 (pt_solution_set): Adjust.
34026 (ipa_escaped_pt): Declare.
34027 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
34028 * gimple-pretty-print.c (pp_points_to_solution): New function.
34029 (dump_gimple_call): Dump call clobber/use information.
34030 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
34031 * tree-pass.h (TDF_ALIAS): New dump option.
34032 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
34033 * doc/invoke.texi (-fipa-pta): Update documentation.
34034
34035 2010-04-15 Richard Guenther <rguenther@suse.de>
34036
34037 * Makefile.in (OBJS-common): Add gimple-fold.o.
34038 (gimple-fold.o): New rule.
34039 * tree.h (maybe_fold_offset_to_reference,
34040 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
34041 prototypes ...
34042 * gimple.h: ... here.
34043 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
34044 may_propagate_address_into_dereference): Move prototypes ...
34045 * gimple.h: ... here.
34046 * tree-ssa-ccp.c (get_symbol_constant_value,
34047 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
34048 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
34049 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
34050 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
34051 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
34052 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
34053 gimplify_and_update_call_from_tree): Move ...
34054 * gimple-fold.c: ... here. New file.
34055 (ccp_fold_builtin): Rename to ...
34056 (gimple_fold_builtin): ... this.
34057 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
34058
34059 2010-04-15 Richard Guenther <rguenther@suse.de>
34060
34061 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
34062 fit_double_type, force_fit_type_double, add_double_with_sign,
34063 neg_double, mul_double_with_sign, lshift_double, rshift_double,
34064 lrotate_double, rrotate_double, div_and_round_double): Move ...
34065 * double-int.c: ... here.
34066 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
34067 add_double, neg_double, mul_double_with_sign, mul_double,
34068 lshift_double, rshift_double, lrotate_double, rrotate_double,
34069 div_and_round_double): Move prototypes ...
34070 * double-int.h: ... here.
34071
34072 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
34073
34074 PR target/43742
34075 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
34076 matching constraints to ensure inputs match the output.
34077
34078 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
34079
34080 PR target/43742
34081 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
34082 in an input-only operand.
34083
34084 2010-04-15 Anatoly Sokolov <aesok@post.ru>
34085
34086 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
34087 (double_int_not, double_int_lshift, double_int_rshift): Declare.
34088 (double_int_negative_p): Convert to static inline function.
34089 * double-int.c (double_int_lshift, double_int_lshift): New functions.
34090 (double_int_negative_p): Remove.
34091 * tree.h (lshift_double, rshift_double):
34092 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
34093 * fold-const.c (fold_convert_const_int_from_real,
34094 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
34095 (lshift_double): Change type of arith argument to bool.
34096 (rshift_double): Change type of arith argument to bool. Correct
34097 comment.
34098 * expmed.c (mask_rtx, lshift_value): (Ditto.).
34099
34100 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
34101
34102 PR target/21803
34103 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
34104 at the start and end of the then/else blocks, and omit them from the
34105 conversion.
34106 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
34107 argument; all callers changed. Pass zero to old_insns_match_p instead.
34108 (flow_find_head_matching_sequence): New function.
34109 (old_insns_match_p): Check REG_EH_REGION notes for calls.
34110 * basic-block.h (flow_find_cross_jump,
34111 flow_find_head_matching_sequence): Declare functions.
34112
34113 2010-04-14 Jason Merrill <jason@redhat.com>
34114
34115 PR c++/36625
34116 * c-common.c (attribute_takes_identifier_p): New fn.
34117 * c-common.h: Declare it.
34118
34119 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34120
34121 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
34122 splitter condition.
34123 (*udivmod<mode>4): Ditto.
34124
34125 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34126
34127 * config/i386/i386.md (maxmin_int): Rename code attribute from
34128 maxminiprefix and update all users.
34129 (maxmin_float): Ditto from maxminfprefix.
34130 (logic): Ditto from logicprefix.
34131 (absneg_mnemonic): Ditto from absnegprefix.
34132 * config/i386/mmx.md: Update all users of maxminiprefix,
34133 maxminfprefix and logicprefix for rename.
34134 * config/i386/sse.md: Ditto.
34135 * config/i386/sync.md (sync_<code><mode>): Update for
34136 logicprefix rename.
34137
34138 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
34139
34140 PR 42966
34141 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
34142 warnings converted to errors.
34143
34144 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34145
34146 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
34147 used insn_type variable.
34148 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
34149 to avoid set-but-not-used warning.
34150
34151 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34152
34153 * df-core.c (df_ref_debug): Change format string placeholder
34154 from 0x%x to %#x.
34155 * dwarf2asm.c (dw2_asm_output_data_raw,
34156 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
34157 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
34158 * dwarf2out.c (output_cfi, output_cfi_directive,
34159 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
34160 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
34161 Ditto.
34162 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
34163 * print-rtl.c (print_rtx): Ditto.
34164
34165 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34166
34167 PR middle-end/42694
34168 * builtins.c (expand_builtin_pow_root): New function to expand pow
34169 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
34170 series of sqrt and cbrt calls under -ffast-math.
34171 (expand_builtin_pow): Call it.
34172
34173 2010-04-14 Michael Matz <matz@suse.de>
34174
34175 PR tree-optimization/42963
34176 * tree-cfg.c (touched_switch_bbs): New static variable.
34177 (group_case_labels_stmt): New function broken out from ...
34178 (group_case_labels): ... here, use the above.
34179 (start_recording_case_labels): Allocate touched_switch_bbs.
34180 (end_recording_case_labels): Deallocate it, call
34181 group_case_labels_stmt.
34182 (gimple_redirect_edge_and_branch): Remember index of affected BB.
34183
34184 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34185
34186 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
34187 from insn template.
34188
34189 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34190
34191 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
34192
34193 2010-04-13 Jan Hubicka <jh@suse.cz>
34194
34195 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
34196 of optimized out static functions.
34197 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
34198 cost computation. Also sanity check for overflows.
34199 (update_caller_keys): Update cgraph_edge_badness call; properly
34200 update fibheap and sanity check that it is up to date.
34201 (add_new_edges_to_heap): Update cgraph_edge_badness.
34202 (cgraph_decide_inlining_of_small_function): Likewise;
34203 add sanity checking that badness in heap is up to date;
34204 improve dumping of reason; Update badness of calls to the
34205 offline copy of function currently inlined; dump badness
34206 of functions not inlined because of unit growth limits.
34207
34208 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
34209
34210 PR middle-end/32628
34211 * c-common.c (pointer_int_sum): Disregard overflow that occured only
34212 because of sign-extension change when converting to sizetype here...
34213 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
34214
34215 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
34216 the folding to constants. Remove redundant final conversion.
34217 (fold_binary) <associate>: Do not associate if the re-association of
34218 constants alone overflows.
34219 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
34220 to the end of the list.
34221 (multiple_of_p) <COND_EXPR>: New case.
34222
34223 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
34224
34225 * opt-functions.awk (opt_sanitized_name): New.
34226 (opt_enum): New.
34227 * optc-gen.awk: Use it
34228 * opth-gen.awk: Use it.
34229
34230 2010-04-13 Martin Jambor <mjambor@suse.cz>
34231
34232 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
34233 (sra_modify_assign): Delete stmts loading dead data even if racc has no
34234 children. Call replace_uses_with_default_def_ssa_name to handle
34235 SSA_NAES on lhs.
34236
34237 2010-04-13 Michael Matz <matz@suse.de>
34238
34239 PR middle-end/43730
34240 * builtins.c (expand_builtin_interclass_mathfn): Also create
34241 a register if the predicate doesn't match.
34242
34243 2010-04-13 Diego Novillo <dnovillo@google.com>
34244
34245 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
34246 * c-pch.c: Include timevar.h.
34247 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
34248 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
34249 * ggc-common.c: Include timevar.h.
34250 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
34251 * timevar.def (TV_PCH_SAVE): Define.
34252 (TV_PCH_CPP_SAVE): Define.
34253 (TV_PCH_PTR_REALLOC): Define.
34254 (TV_PCH_PTR_SORT): Define.
34255 (TV_PCH_RESTORE): Define.
34256 (TV_PCH_CPP_RESTORE): Define.
34257
34258 2010-04-13 Michael Matz <matz@suse.de>
34259
34260 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
34261 into MINUS_EXPRs.
34262 (can_reassociate_p): New function.
34263 (break_up_subtract_bb, reassociate_bb): Use it.
34264
34265 2010-04-13 Richard Guenther <rguenther@suse.de>
34266
34267 PR bootstrap/43737
34268 * builtins.c (c_readstr): Fix assert.
34269
34270 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
34271
34272 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
34273 when generating cltd insn.
34274
34275 (*ashl<mode>3_1): Remove special handling for register operand 2.
34276 (*ashlsi3_1_zext): Ditto.
34277 (*ashlhi3_1): Ditto.
34278 (*ashlhi3_1_lea): Ditto.
34279 (*ashlqi3_1): Ditto.
34280 (*ashlqi3_1_lea): Ditto.
34281 (*<shiftrt_insn><mode>3_1): Ditto.
34282 (*<shiftrt_insn>si3_1_zext): Ditto.
34283 (*<shiftrt_insn>qi3_1_slp): Ditto.
34284 (*<rotate_insn><mode>3_1): Ditto.
34285 (*<rotate_insn>si3_1_zext): Ditto.
34286 (*<rotate_insn>qi3_1_slp): Ditto.
34287
34288 2010-04-13 Richard Guenther <rguenther@suse.de>
34289
34290 * tree-ssa-structalias.c (callused_id): Remove.
34291 (call_stmt_vars): New.
34292 (get_call_vi): Likewise.
34293 (lookup_call_use_vi): Likewise.
34294 (lookup_call_clobber_vi): Likewise.
34295 (get_call_use_vi): Likewise.
34296 (get_call_clobber_vi): Likewise.
34297 (make_transitive_closure_constraints): Likewise.
34298 (handle_const_call): Adjust to do per-call call-used handling.
34299 (handle_pure_call): Likewise.
34300 (find_what_var_points_to): Remove general callused handling.
34301 (init_base_vars): Likewise.
34302 (init_alias_vars): Initialize call_stmt_vars.
34303 (compute_points_to_sets): Process call-used and call-clobbered
34304 vars for call statements.
34305 (delete_points_to_sets): Free call_stmt_vars.
34306
34307 2010-04-13 Richard Guenther <rguenther@suse.de>
34308
34309 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
34310 Only add RW dependence for dependence distance zero.
34311 Adjust maximal vectorization factor according to dependences.
34312 Move alignment handling ...
34313 (vect_find_same_alignment_drs): ... here. New function.
34314 (vect_analyze_data_ref_dependences): Adjust.
34315 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
34316 (vect_analyze_data_refs): Adjust minimal vectorization factor
34317 according to data references.
34318 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
34319 dependences before determining the vectorization factor.
34320 Analyze alignment after determining the vectorization factor.
34321 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
34322 dependences before alignment.
34323 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
34324 Adjust prototype.
34325 (vect_analyze_data_refs): Likewise.
34326 (MAX_VECTORIZATION_FACTOR): New define.
34327
34328 2010-04-13 Duncan Sands <baldrick@free.fr>
34329
34330 * except.h (lang_eh_type_covers): Remove.
34331 * except.c (lang_eh_type_covers): Likewise.
34332
34333 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34334 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34335
34336 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
34337 * config/s390/s390.c: Replace UNTIS_PER_WORD with
34338 UNITS_PER_LONG where it is ABI relevant.
34339 (s390_return_addr_rtx): Likewise.
34340 (s390_back_chain_rtx): Likewise.
34341 (s390_frame_area): Likewise.
34342 (s390_frame_info): Likewise.
34343 (s390_initial_elimination_offset): Likewise.
34344 (save_gprs): Likewise.
34345 (s390_emit_prologue): Likewise.
34346 (s390_emit_epilogue): Likewise.
34347 (s390_function_arg_advance): Likewise.
34348 (s390_function_arg): Likewise.
34349 (s390_va_start): Likewise.
34350 (s390_gimplify_va_arg): Likewise.
34351 (s390_function_profiler): Likewise.
34352 (s390_optimize_prologue): Likewise.
34353 (s390_rtx_costs): Likewise.
34354 (s390_secondary_reload): Likewise.
34355 (s390_promote_function_mode): Likewise.
34356 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
34357 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
34358 registers available.
34359 (s390_unwind_word_mode): New function.
34360 (s390_function_value): Split 64 bit values into register pair if
34361 used as return value.
34362 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
34363 function call parameters. Handle parallels.
34364 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
34365 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
34366 (DWARF_CIE_DATA_ALIGNMENT): New macro.
34367 (s390_expand_setmem): Remove unused variable src_addr.
34368 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
34369 deal with 64 bit registers.
34370 * config/s390/s390.h: Define __zarch__ predefined macro.
34371 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
34372 (UNITS_PER_LONG): New macro.
34373 * libjava/include/s390-signal.h: Define extended ucontext
34374 structure containing the upper halfs of the 64 bit registers.
34375
34376 2010-04-13 Simon Baldwin <simonb@google.com>
34377
34378 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
34379
34380 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
34381
34382 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
34383 rvalue on the RHS if the LHS is of a non-renamable type.
34384 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
34385
34386 2010-04-13 Matthias Klose <doko@ubuntu.com>
34387
34388 * gcc.c (cc1_options): Handle -iplugindir before processing
34389 the cc1 spec. Only add -iplugindir once.
34390 (cpp_unique_options): Add -iplugindir option if -fplugin* options
34391 found.
34392 * common.opt (iplugindir): Remove `Separate' property, initialize.
34393 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
34394 option.
34395 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
34396 (distclean): Remove plugin dir.
34397 * doc/invoke.texi: Document -iplugindir.
34398
34399 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
34400
34401 * doc/plugins.texi (Loading Plugins): Document short
34402 -fplugin=foo option.
34403 (Plugin API): Mention default_plugin_dir_name function.
34404
34405 * gcc.c (find_file_spec_function): Add new declaration.
34406 (static_spec_func): Use it for "find-file".
34407 (find_file_spec_function): Add new function.
34408 (cc1_options): Add -iplugindir option if -fplugin* options found.
34409
34410 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
34411
34412 * plugin.c (add_new_plugin): Updated comment, and handle short
34413 plugin name.
34414 (default_plugin_dir_name): Added new function.
34415
34416 * common.opt (iplugindir): New option to set the plugin directory.
34417
34418 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
34419
34420 * config/i386/i386.md (any_rotate): New code iterator.
34421 (rotate_insn): New code attribute.
34422 (rotate): Ditto.
34423 (SWIM124): New mode iterator.
34424 (<rotate_insn>ti3): New expander.
34425 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
34426 any_rotate code iterator.
34427 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
34428 using any_rotate code iterator and SWIM124 mode iterator.
34429 (ix86_rotlti3): New insn_and_split pattern.
34430 (ix86_rotrti3): Ditto.
34431 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
34432 ix86_rotl{di,ti}3 patterns.
34433 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
34434 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
34435 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
34436 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
34437 code iterator and SWI mode iterator.
34438 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
34439 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
34440 code iterator.
34441 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
34442 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
34443 (bswap rotatert splitter): Add splitter.
34444 (bswap splitter): Macroize splitter using any_rotate code iterator.
34445 Add insn predicate to split only for TARGET_USE_XCHGB or when
34446 optimizing function for size.
34447
34448 2010-04-12 Steve Ellcey <sje@cup.hp.com>
34449
34450 * config/pa/pa.c (emit_move_sequence): Remove use of
34451 deleted variable flag_argument_noalias.
34452
34453 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34454
34455 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
34456 configurations.
34457 Add to unsupported targets list.
34458 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
34459 sparc*-sun-solaris2.[567]* from target lists.
34460 * configure: Regenerate.
34461 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
34462 removal.
34463 Remove Solaris 7 patch references.
34464 (Specific, sparc-sun-solaris2.7): Removed.
34465 (sparc-sun-solaris2*): Update Solaris 7 example.
34466 (sparc64-*-solaris2*): Likewise.
34467
34468 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34469
34470 * config.build (alpha*-dec-osf4*): Remove.
34471 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
34472 of obsolete configurations.
34473 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
34474 support.
34475 * config/alpha/t-osf4: Renamed to ...
34476 * config/alpha/t-osf5: ... this.
34477 * config/alpha/osf.h: Renamed to ...
34478 * config/alpha/osf5.h: ... this.
34479 Merged old osf5.h contents.
34480 Update comments.
34481 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
34482 (EXTRA_SPECS): Removed.
34483 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
34484 reflect removal of Tru64 UNIX V4.0/V5.0 support.
34485 Document that.
34486
34487 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34488
34489 * doc/contrib.texi (Contributors, Rainer Orth): Update.
34490
34491 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
34492
34493 PR/43702
34494 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
34495 __thiscall convention.
34496
34497 2010-04-12 Steve Ellcey <sje@cup.hp.com>
34498
34499 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
34500 orig_base.
34501 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
34502
34503 2010-04-12 Steve Ellcey <sje@cup.hp.com>
34504
34505 * function.c (assign_parms_initialize_all): Add unused attribute
34506 to fntype.
34507
34508 2010-04-12 Richard Guenther <rguenther@suse.de>
34509
34510 * gsstruct.def (GSS_CALL): New.
34511 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
34512 * gimple.h: Include tree-ssa-alias.h.
34513 (struct gimple_statement_call): New.
34514 (union gimple_statement_struct_d): Add gimple_call member.
34515 (gimple_call_reset_alias_info): Declare.
34516 (gimple_call_use_set): New function.
34517 (gimple_call_clobber_set): Likewise.
34518 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
34519 * gimple.c (gimple_call_reset_alias_info): New function.
34520 (gimple_build_call_1): Call it.
34521 * lto-streamer-in.c (input_gimple_stmt): Likewise.
34522 * tree-inline.c (remap_gimple_stmt): Likewise.
34523 (expand_call_inline): Remove callused handling.
34524 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
34525 * tree-dfa.c (dump_variable): Likewise.
34526 * tree-parloops.c (parallelize_loops): Likewise.
34527 * tree-ssa.c (init_tree_ssa): Likewise.
34528 (delete_tree_ssa): Likewise.
34529 * tree-flow-inline.h (is_call_used): Remove.
34530 * tree-flow.h (struct gimple_df): Remove callused member.
34531 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
34532 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
34533 (ref_maybe_used_by_call_p_1): Simplify.
34534 (call_may_clobber_ref_p_1): Likewise.
34535 * tree-ssa-structalias.c (compute_points_to_sets): Set
34536 the call stmt used and clobbered sets.
34537 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
34538 (find_tail_calls): Verify the tail call.
34539
34540 2010-04-12 Richard Guenther <rguenther@suse.de>
34541
34542 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
34543 single-iteration always-inline inlining.
34544 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
34545 (cgraph_decide_inlining): Do not handle always-inline specially.
34546 (try_inline): Remove always-inline cycle detection special case.
34547 Do not recurse on always-inlines.
34548 (cgraph_early_inlining): Do not iterate if not optimizing.
34549 (cgraph_gate_early_inlining): remove.
34550 (pass_early_inline): Run unconditionally.
34551 (gate_cgraph_decide_inlining): New function.
34552 (pass_ipa_inline): Use it. Do not run the IPA inliner if
34553 not inlining or optimizing.
34554 (cgraph_decide_inlining_of_small_functions): Also consider
34555 always-inline functions.
34556 (cgraph_default_inline_p): Return true for nodes which should
34557 disregard inline limits.
34558 (estimate_function_body_sizes): Assume zero size and time for
34559 nodes which are marked as disregarding inline limits.
34560 (cgraph_decide_recursive_inlining): Do not perform recursive
34561 inlining on always-inline nodes.
34562
34563 2010-04-12 Jakub Jelinek <jakub@redhat.com>
34564
34565 PR bootstrap/43699
34566 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
34567 for exprs satisfying handled_component_p.
34568
34569 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
34570
34571 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
34572 non-constant aggregate elements.
34573
34574 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
34575 is a real initialization.
34576
34577 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
34578
34579 PR c/36774
34580 * c-decl.c (start_function): Move forward check for nested function.
34581
34582 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
34583
34584 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
34585 * config/sh/sh.c: Include reload.h.
34586 (sh_legitimize_reload_address): New.
34587 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
34588 sh_legitimize_reload_address.
34589
34590 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
34591
34592 * config/sh/sh.md (*movqi_pop): New insn pattern.
34593 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
34594
34595 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
34596
34597 * config/i386/i386.md (any_shiftrt): New code iterator.
34598 (shiftrt_insn): New code attribute.
34599 (shiftrt): Ditto.
34600 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
34601 using any_shiftrt code iterator.
34602 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
34603 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
34604 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
34605 pattern from corresponding peephole2 patterns.
34606 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
34607 using any_shiftrt code iterator.
34608 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
34609 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
34610 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
34611 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
34612 *{ashr,lshr}<mode>3_cmp_zext.
34613 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
34614
34615 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
34616
34617 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
34618 scratch register.
34619 (*lshr<mode>3_cconly): Ditto.
34620
34621 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
34622
34623 * config/i386/i386.md (lshr<mode>3): Macroize expander from
34624 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
34625 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
34626 pattern from *lshr{di,ti}3_1 and corresponding splitters using
34627 DWI mode iterator.
34628 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
34629 from corresponding peephole2 patterns.
34630 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
34631 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
34632 and *lshrdi3_1_rex64 using SWI mode iterator.
34633 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
34634 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
34635 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
34636 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
34637 and *lshrdi3_cmp_rex64 using SWI mode iterator.
34638 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
34639 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
34640 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
34641 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
34642 SWI mode iterator.
34643
34644 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
34645
34646 * config/i386/i386.md (ashr<mode>3): Macroize expander from
34647 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
34648 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
34649 pattern from *ashr{di,ti}3_1 and corresponding splitters using
34650 DWI mode iterator.
34651 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
34652 from corresponding peephole2 patterns.
34653 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
34654 (ashrsi3_cvt): Rename from ashrsi3_31.
34655 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
34656 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
34657 and x86_64_shift_adj_3 using SWI48 mode iterator.
34658 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
34659 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
34660 and *ashrdi3_1_rex64 using SWI mode iterator.
34661 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
34662 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
34663 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
34664 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
34665 and *ashrdi3_cmp_rex64 using SWI mode iterator.
34666 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
34667 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
34668 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
34669 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
34670 SWI mode iterator.
34671 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
34672 * config/i386/i386.c (ix86_split_ashr): Update for renamed
34673 x86_shift<mode>_adj_3 expanders.
34674
34675 2010-04-10 Wei Guozhi <carrot@google.com>
34676
34677 PR target/42601
34678 * config/arm/arm.c (arm_pic_static_addr): New function.
34679 (legitimize_pic_address): Call arm_pic_static_addr when it detects
34680 a static symbol.
34681 (arm_output_addr_const_extra): Output expression for new pattern.
34682 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
34683
34684 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
34685
34686 * ira-costs.c (record_reg_classes): Ignore alternatives that are
34687 not enabled.
34688
34689 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
34690 * web.c: Include "insn-config.h" and "recog.h".
34691 (union_match_dups): New function.
34692 (web_main): Call it.
34693 (union_defs): Don't try to recognize match_dups.
34694
34695 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
34696 if doing so would replace the entire pattern.
34697
34698 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
34699
34700 PR target/43707
34701 PR target/43709
34702 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
34703 and splitter pattern. Change splitter operand 1 predicate to
34704 nonmemory_operand.
34705
34706 2010-04-09 Martin Jambor <mjambor@suse.cz>
34707
34708 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
34709 lattices are addresses of CONST_DECLs with the same initial value.
34710 (ipcp_print_all_lattices): Print values of CONST_DECLs.
34711 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
34712
34713 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
34714 Bernd Schmidt <bernds@codesourcery.com>
34715
34716 * loop-invariant.c (replace_uses): New static function.
34717 (move_invariant_reg): Use it to ensure we can replace the uses.
34718
34719 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
34720
34721 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
34722 function template.
34723 (picochip_override_options): Enable section anchors only above -O1.
34724 (picochip_reorg): Fixed a couple of build warnings.
34725
34726 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34727
34728 * configure.ac (plugin -rdynamic test): Log result.
34729 * configure: Regenerate.
34730 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
34731 (RDYNAMIC_SPEC): Define.
34732 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
34733
34734 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34735
34736 * configure.ac: Determine Sun ld version numbers.
34737 (comdat_group): Restrict GNU ld version checks to gld.
34738 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
34739 (enable_comdat): Support --enable-comdat.
34740 * configure: Regenerate.
34741 * doc/install.texi (Configuration): Document --enable-comdat.
34742
34743 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34744
34745 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
34746 * config/sol2-gld.h: ... here.
34747 * config.gcc (sparc*-*-solaris2*): Reflect this.
34748 (i[34567]86-*-solaris2*): Use it.
34749
34750 2010-04-09 Steve Ellcey <sje@cup.hp.com>
34751
34752 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
34753 setup_clocks_p.
34754 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
34755
34756 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
34757
34758 PR 42965
34759 * diagnostic.c (diagnostic_initialize): Initialize
34760 some_warnings_are_errors.
34761 (diagnostic_finish): New.
34762 (diagnostic_action_after_output): Call it before exiting.
34763 (diagnostic_report_diagnostic): Do not print message here. Set
34764 some_warnings_are_errors.
34765 * diagnostic.h (diagnostic_context): Delete
34766 issue_warnings_are_errors_message. Add some_warnings_are_errors.
34767 (diagnostic_finish): Declare.
34768 * toplev.c (toplev_main): Call it before exit.
34769
34770 2010-04-09 Jason Merrill <jason@redhat.com>
34771
34772 PR c++/42623
34773 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
34774 for incomplete type.
34775
34776 PR c++/41788
34777 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
34778 based on a warning flag.
34779
34780 2010-04-09 Richard Guenther <rguenther@suse.de>
34781
34782 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
34783
34784 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
34785
34786 PR bootstrap/43684
34787 * varasm.c (default_assemble_visibility): Wrap vars that are
34788 set, but unused, by targets without GAS.
34789 * config/rs6000/rs6000.c (paired_emit_vector_compare):
34790 Remove set, but unused, vars.
34791 (rs6000_legitimize_tls_address): Likewise.
34792 (altivec_expand_dst_builtin): Likewise.
34793 * config/darwin.c (machopic_classify_symbol): Likewise.
34794 (machopic_indirection_name): Likewise.
34795
34796 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
34797
34798 * config/i386/i386.md (DWI): New mode iterator.
34799 (S): New mode attribute.
34800 (shift_operand): Ditto.
34801 (shift_immediate_operand): Ditto.
34802 (ashl_input_operand): Ditto.
34803 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
34804 using SDWIM mode iterator.
34805 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
34806 pattern from *ashl{di,ti}3_1 and corresponding splitters using
34807 DWI mode iterator.
34808 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
34809 from corresponding peephole2 patterns.
34810 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
34811 and x86_64_shift_adj_1 using SWI48 mode iterator.
34812 (x86_shift<mode>_adj_2): Ditto.
34813 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
34814 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
34815 using SWI48 mode iterator.
34816 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
34817 *ashldi3_cmp_rex64 using SWI mode iterator.
34818 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
34819 *ashldi3_cconly_rex64 using SWI mode iterator.
34820 * config/i386/i386.c (ix86_split_ashl): Update for renamed
34821 x86_shift<mode>_adj_{1,2}.
34822 (ix86_split_ashr): Ditto.
34823 (ix86_split_lshr): Ditto.
34824
34825 2010-04-09 Richard Guenther <rguenther@suse.de>
34826
34827 * target.h (builtin_conversion): Pass in input and output types.
34828 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
34829 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
34830 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
34831 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
34832
34833 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
34834 Handle AVX modes.
34835 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
34836
34837 2010-04-09 Richard Guenther <rguenther@suse.de>
34838
34839 PR target/43152
34840 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
34841
34842 2010-04-09 Richard Guenther <rguenther@suse.de>
34843
34844 * tree-vectorizer.h (struct _stmt_vec_info): Document
34845 that vectype is the type of the LHS.
34846 (supportable_widening_operation, supportable_narrowing_operation):
34847 Get both input and output vector types as arguments.
34848 (vect_is_simple_use_1): Declare.
34849 (get_same_sized_vectype): Likewise.
34850 * tree-vect-loop.c (vect_determine_vectorization_factor):
34851 Set STMT_VINFO_VECTYPE to the vector type of the def.
34852 (vectorizable_reduction): Adjust.
34853 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
34854 Adjust. Specify the output vector type.
34855 (vect_pattern_recog_1): Adjust.
34856 * tree-vect-stmts.c (get_same_sized_vectype): New function.
34857 (vectorizable_call): Adjust.
34858 (vectorizable_conversion): Likewise.
34859 (vectorizable_operation): Likewise.
34860 (vectorizable_type_demotion): Likewise.
34861 (vectorizable_type_promotion): Likewise.
34862 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
34863 the def.
34864 (vect_is_simple_use_1): New function.
34865 (supportable_widening_operation): Get both input and output
34866 vector types.
34867 (supportable_narrowing_operation): Likewise.
34868 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
34869
34870 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
34871
34872 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
34873 __thiscall and _thiscall as predefined macros.
34874 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
34875 thiscall attribute handling.
34876 (ix86_comp_type_attributes): Likewise.
34877 (ix86_function_regparm): Likewise.
34878 (ix86_return_pops_args): Likewise.
34879 (init_cumulative_args): Likewise.
34880 (find_drap_reg): Likewise.
34881 (ix86_static_chain): Likewise.
34882 (x86_this_parameter): Likewise.
34883 (x86_output_mi_thunk): Likewise.
34884 (ix86_attribute_table): Add description for thiscall attribute.
34885 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
34886 * doc/extend.texi: Add documentation for thiscall.
34887
34888 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
34889
34890 PR c++/28584
34891 * c.opt (Wint-to-pointer-cast): Available in C++.
34892 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
34893
34894 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
34895
34896 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
34897 * calls.c (expand_call): Pass the function type to aggregate_value_p.
34898 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
34899 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
34900 function type instead. Reorder and simplify checks.
34901
34902 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
34903
34904 2010-04-08 Jing Yu <jingyu@google.com>
34905 Zdenek Dvorak <ook@ucw.cz>
34906
34907 PR tree-optimization/42720
34908 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
34909 loop unswitch conditions here from ...
34910 (tree_unswitch_single_loop): ... here.
34911
34912 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34913
34914 * tree-if-conv.c: Fix comments and simplify logic.
34915
34916 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34917
34918 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
34919 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
34920 (main_tree_if_conversion): Update call to tree_if_conversion.
34921
34922 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
34923
34924 PR 42485
34925 * doc/invoke.texi (-b,-V): Delete.
34926 * doc/tm.texi: Do not mention -b.
34927 * gcc.c (display_help): Delete -b and -V.
34928 (process_command): Delete -b and -V.
34929 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
34930
34931 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
34932 Wolfgang Gellerich <gellerich@de.ibm.com>
34933
34934 Implement target hook for loop unrolling
34935 * target.h (loop_unroll_adjust): Add a new target hook function.
34936 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
34937 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
34938 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
34939 (s390_loop_unroll_adjust): Implement the new target hook for s390.
34940 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
34941 target hook.
34942 (decide_unroll_stupid): Likewise.
34943
34944 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34945
34946 PR target/43643
34947 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
34948
34949 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34950
34951 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
34952 (Specific, *-*-solaris2*): Likewise.
34953 Don't prefer Sun as over GNU as.
34954
34955 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
34956
34957 * config/s390/s390.c (override_options): Adjust the z10 defaults
34958 for max-unroll-times, max-completely-peeled-insns
34959 and max-completely-peel-times.
34960
34961 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34962
34963 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
34964 instructions for z10.
34965 (s390_expand_setmem): Likewise.
34966 (s390_expand_cmpmem): Likewise.
34967
34968 2010-04-08 Richard Guenther <rguenther@suse.de>
34969
34970 PR tree-optimization/43679
34971 * tree-ssa-pre.c (eliminate): Only propagate copies.
34972
34973 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34974
34975 PR bootstrap/43681
34976 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
34977 set but not used variable warning.
34978
34979 2010-04-08 Wei Guozhi <carrot@google.com>
34980
34981 PR target/41653
34982 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
34983 (arm_size_rtx_costs): Call the new function when optimized for size.
34984
34985 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34986
34987 PR debug/43670
34988 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
34989 op0 is not a MEM, just return NULL instead of assertion
34990 failure.
34991 (discover_nonconstant_array_refs): Don't walk debug stmts.
34992
34993 2010-04-08 Doug Kwan <dougkwan@google.com>
34994
34995 * configure.ac: Recognize gold and do not use its version number
34996 to test ld features.
34997 * configure: Regenerate.
34998
34999 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
35000
35001 PR middle-end/40815
35002 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
35003 (negate_value): Move code to push elements to broken_up_substracts ...
35004 (eliminate_plus_minus_pair): ... here. Push operands that have no
35005 negative pair to plus_negates.
35006 (repropagate_negates, init_reassoc, fini_reassoc): Update.
35007
35008 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35009
35010 * doc/install.texi (Configuration): Move description of
35011 --enable-lto, --with-libelf*, --enable-gold from Java section to
35012 general section.
35013
35014 * doc/generic.texi (Working with declarations)
35015 (Function Properties, C and C++ Trees): Fix typos.
35016 * doc/sourcebuild.texi (Top Level): Likewise.
35017
35018 2010-04-07 Jakub Jelinek <jakub@redhat.com>
35019
35020 PR c/18624
35021 * tree.h (DECL_READ_P): Define.
35022 (struct tree_decl_common): Add decl_read_flag.
35023 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
35024 a set but not used warning.
35025 (merge_decls): Merge DECL_READ_P flag.
35026 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
35027 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
35028 * c-common.c (handle_used_attribute, handle_unused_attribute):
35029 Likewise.
35030 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
35031 New prototypes.
35032 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
35033 New functions.
35034 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
35035 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
35036 c_parser_binary_expression, c_parser_cast_expression,
35037 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
35038 Call default_function_array_read_conversion instead of
35039 default_function_array_conversion where needed.
35040 (c_parser_unary_expression, c_parser_conditional_expression,
35041 c_parser_postfix_expression_after_primary, c_parser_initelt):
35042 Likewise. Call mark_exp_read where needed.
35043 (c_parser_statement_after_labels, c_parser_asm_operands,
35044 c_parser_typeof_specifier, c_parser_sizeof_expression,
35045 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
35046 where needed.
35047 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
35048 New.
35049 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
35050 (warn_unused_but_set_parameter): Default to warn_unused
35051 && extra_warnings.
35052 * doc/invoke.texi: Document -Wunused-but-set-variable and
35053 -Wunused-but-set-parameter.
35054
35055 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
35056 used count variable.
35057 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
35058 when operandN variables aren't used in the body of the expander
35059 or splitter.
35060 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
35061 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
35062 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
35063 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
35064 FOR_EACH_IMM_USE_ON_STMT): Likewise.
35065 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
35066 * tree.c (PROCESS_ARG): Likewise.
35067
35068 2010-04-07 Simon Baldwin <simonb@google.com>
35069
35070 * diagnostic.h (diagnostic_override_option_index): New macro to
35071 set a diagnostic's option_index.
35072 * c-tree.h (c_cpp_error): Add warning reason argument.
35073 * opts.c (_warning_as_error_callback): New.
35074 (register_warning_as_error_callback): Store callback for
35075 warnings enabled via enable_warning_as_error.
35076 (enable_warning_as_error): Call callback, minor code tidy.
35077 * opts.h (register_warning_as_error_callback): Declare.
35078 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
35079 response to -Werror=.
35080 (c_common_init_options): Register warning_as_error_callback in opts.c.
35081 * common.opt: Add -Wno-cpp option.
35082 * c-common.c (struct reason_option_codes_t): Map cpp warning
35083 reason codes to gcc option indexes.
35084 * (c_option_controlling_cpp_error): New function, lookup the gcc
35085 option index for a cpp warning reason code.
35086 * (c_cpp_error): Add warning reason argument, call
35087 c_option_controlling_cpp_error for diagnostic_override_option_index.
35088 * doc/invoke.texi: Document -Wno-cpp.
35089
35090 2010-04-07 Richard Guenther <rguenther@suse.de>
35091
35092 * ipa-reference.c (mark_load): Use get_base_address.
35093 (mark_store): Likewise.
35094
35095 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
35096 inserting GIMPLE_NOPs into the IL.
35097 * tree-ssa-structalias.c (get_constraint_for_component_ref):
35098 Explicitly strip handled components and indirect references.
35099
35100 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
35101 folding address expressions.
35102 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
35103 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
35104 operand_equal_p to compare decls.
35105 (ptr_deref_may_alias_decl_p): Likewise.
35106 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
35107 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
35108 Handle reversed comparison ops.
35109 * tree-sra.c (asm_visit_addr): Use get_base_address.
35110 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
35111 * ipa-reference.c (mark_address): Use get_base_address.
35112
35113 2010-04-07 Richard Guenther <rguenther@suse.de>
35114
35115 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
35116 Propagate constants everywhere.
35117
35118 2010-04-07 Jakub Jelinek <jakub@redhat.com>
35119
35120 PR debug/43516
35121 * tree.c (MAX_INT_CACHED_PREC): Define.
35122 (nonstandard_integer_type_cache): New array.
35123 (build_nonstandard_integer_type): Cache results for precision
35124 <= MAX_INT_CACHED_PREC.
35125
35126 2010-04-07 Richard Guenther <rguenther@suse.de>
35127
35128 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
35129 -fargument-noalias-global, -fargument-noalias-anything): Remove.
35130 * common.opt: Likewise.
35131 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
35132 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
35133 (nonoverlapping_memrefs_p): Likewise.
35134 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
35135 * opts.c (common_handle_option): Handle OPT_fargument_alias,
35136 OPT_fargument_noalias, OPT_fargument_noalias_anything and
35137 OPT_fargument_noalias_global for backward compatibility.
35138
35139 2010-04-07 Richard Guenther <rguenther@suse.de>
35140
35141 PR tree-optimization/43270
35142 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
35143 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
35144 * tree-ssa-pre.c (phi_translate_1): Adjust.
35145 (fully_constant_expression): Split out vn_reference handling to ...
35146 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
35147 Fold reads from constant strings.
35148 (vn_reference_lookup): Handle fully constant references.
35149 (vn_reference_lookup_pieces): Likewise.
35150 * Makefile.in (expmed.o-warn): Add -Wno-error.
35151
35152 2010-04-07 Martin Jambor <mjambor@suse.cz>
35153
35154 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
35155
35156 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
35157
35158 PR driver/41594
35159 * gcc.c: Add -static-libstdc++ to list of recognized options.
35160
35161 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35162
35163 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
35164
35165 2010-04-07 Richard Guenther <rguenther@suse.de>
35166
35167 PR middle-end/42617
35168 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
35169 bases build simple mem attributes to retain points-to information.
35170
35171 2010-04-07 Richard Guenther <rguenther@suse.de>
35172
35173 PR middle-end/42617
35174 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
35175 preserve points-to related information.
35176
35177 2010-04-07 Richard Guenther <rguenther@suse.de>
35178
35179 PR middle-end/42617
35180 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
35181 discard plain indirect references.
35182 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
35183 * tree.c (tree_nop_conversion): Likewise.
35184
35185 2010-04-07 Dodji Seketeli <dodji@redhat.com>
35186
35187 PR debug/43628
35188 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
35189
35190 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
35191
35192 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
35193 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
35194
35195 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
35196
35197 * tree-if-conv.c: Fix indentation and comments.
35198
35199 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
35200
35201 * tree-if-conv.c: Sort static functions in topological order.
35202
35203 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
35204
35205 * tree-if-conv.c: Fix indentation and comments.
35206
35207 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35208
35209 PR middle-end/43519
35210 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
35211 lang_hooks.types.type_for_size instead of
35212 build_nonstandard_integer_type.
35213 When converting an unsigned type to signed, double its precision.
35214 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
35215 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
35216 (graphite_create_new_loop_guard): When ub + 1 wraps around,
35217 use lb <= ub.
35218
35219 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35220
35221 PR middle-end/43519
35222 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
35223 POINTER_PLUS_EXPR for pointer types.
35224
35225 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35226
35227 PR middle-end/43519
35228 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
35229 * graphite-clast-to-gimple.c: Include langhooks.h.
35230 (max_signed_precision_type): New.
35231 (max_precision_type): Takes two types as arguments.
35232 (precision_for_value): New.
35233 (precision_for_interval): New.
35234 (gcc_type_for_interval): New.
35235 (gcc_type_for_value): New.
35236 (gcc_type_for_clast_term): New.
35237 (gcc_type_for_clast_red): New.
35238 (gcc_type_for_clast_bin): New.
35239 (gcc_type_for_clast_expr): Split up into several functions.
35240 (gcc_type_for_clast_eq): Rewritten.
35241 (compute_bounds_for_level): New.
35242 (compute_type_for_level_1): New.
35243 (compute_type_for_level): New.
35244 (gcc_type_for_cloog_iv): Removed.
35245 (gcc_type_for_iv_of_clast_loop): Rewritten.
35246 (graphite_create_new_loop): Compute the lower and upper bound types
35247 with gcc_type_for_clast_expr.
35248 (graphite_create_new_loop_guard): Same.
35249 (find_cloog_iv_in_expr): Removed.
35250 (compute_cloog_iv_types_1): Removed.
35251 (compute_cloog_iv_types): Removed.
35252 (gloog): Do not call compute_cloog_iv_types.
35253 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
35254 GBB_CLOOG_IV_TYPES.
35255 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
35256 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
35257 (GBB_CLOOG_IV_TYPES): Removed.
35258
35259 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35260
35261 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
35262 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
35263 (detect_commutative_reduction): Same.
35264
35265 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35266
35267 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
35268 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
35269 argument.
35270 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
35271 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
35272 (rewrite_commutative_reductions_out_of_ssa): Same.
35273 * passes.c (execute_function_todo): Call verify_ssa for every pass
35274 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
35275 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
35276 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
35277 with an extra argument.
35278 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
35279 verify_ssa only when the extra argument is true.
35280 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
35281 with an extra argument.
35282 (tree_transform_and_unroll_loop): Same.
35283
35284 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
35285
35286 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
35287 for all the passes of the LNO having LOOP_CLOSED_SSA.
35288 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
35289 * tree-loop-distribution.c (pass_loop_distribution): Same.
35290 * tree-pass.h (TODO_verify_loops): Removed.
35291 * tree-ssa-loop.c (pass_tree_loop_init): Same.
35292 (pass_lim): Same.
35293 (pass_tree_unswitch): Same.
35294 (pass_predcom): Same.
35295 (pass_vectorize): Same.
35296 (pass_linear_transform): Same.
35297 (pass_graphite_transforms): Same.
35298 (pass_iv_canon): Same.
35299 (pass_complete_unroll): Same.
35300 (pass_complete_unrolli): Same.
35301 (pass_parallelize_loops): Same.
35302 (pass_loop_prefetch): Same.
35303 (pass_iv_optimize): Same.
35304
35305 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
35306
35307 PR middle-end/32824
35308 * passes.c (init_optimization_passes): Move pass_lim before
35309 pass_copy_prop and pass_dce_loop.
35310
35311 2010-04-06 Jakub Jelinek <jakub@redhat.com>
35312
35313 PR target/43667
35314 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
35315 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
35316 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
35317 MULTI_* defines for 4 argument vpermil2p* builtins.
35318
35319 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
35320
35321 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
35322 * config/i386/i386.c (x86_maybe_negate_const_int): New.
35323 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
35324 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
35325 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
35326 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
35327 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
35328 Use x86_maybe_negate_const_int to output insn mnemonic.
35329 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
35330 check from instruction predicate. Update comments.
35331 * config/i386/sync.md (sync_add<mode>): Use
35332 x86_maybe_negate_const_int to output insn mnemonic.
35333
35334 2010-04-06 Jan Hubicka <jh@suse.cz>
35335
35336 PR tree-optimization/42906
35337 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
35338 IGNORE_SELF argument. Set visited_control_parents for fully
35339 processed BBs.
35340 (find_obviously_necessary_stmts): Update call of
35341 mark_control_dependent_edges_necessary.
35342 (propagate_necessity): Likewise. Handle PHI edges more curefully.
35343
35344 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
35345
35346 * config/i386/i386.md: Remove comment about 'e' and 'E'
35347 operand modifier.
35348
35349 2010-04-06 Richard Guenther <rguenther@suse.de>
35350
35351 PR tree-optimization/43627
35352 * tree-vrp.c (extract_range_from_unary_expr): Widenings
35353 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
35354 not varying.
35355
35356 2010-04-06 Jakub Jelinek <jakub@redhat.com>
35357
35358 * BASE-VER: Change to 4.6.0.
35359
35360 PR target/43638
35361 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
35362 handling.
35363
35364 2010-04-06 Richard Guenther <rguenther@suse.de>
35365
35366 PR middle-end/43661
35367 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
35368
35369 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35370
35371 * doc/invoke.texi (Optimize Options): Document that LTO
35372 won't remove object access purely due to incompatible
35373 declarations.
35374
35375 2010-04-04 Matthias Klose <doko@ubuntu.com>
35376
35377 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
35378 Initialize variable.
35379
35380 2010-04-03 Richard Guenther <rguenther@suse.de>
35381
35382 PR middle-end/42509
35383 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
35384 require a non-NULL MEM_OFFSET.
35385
35386 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
35387
35388 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
35389 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
35390 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
35391 config/alpha/predicates.md, config/arm/arm.md,
35392 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
35393 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
35394 config/darwin9.h, config/darwin.c, config/darwin.h,
35395 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
35396 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
35397 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
35398 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
35399 config/mips/mips.md, config/mn10300/mn10300.c,
35400 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
35401 config/rs6000/aix.h, config/rs6000/dfp.md,
35402 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
35403 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
35404 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
35405 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
35406 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
35407 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
35408 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
35409 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
35410 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
35411 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
35412 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
35413 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
35414 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
35415 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
35416 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
35417 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
35418 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
35419 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
35420 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
35421 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
35422 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
35423 opt-functions.awk, opth-gen.awk, params.def, passes.c,
35424 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
35425 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
35426 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
35427 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
35428 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
35429 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
35430 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
35431 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
35432 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
35433 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
35434 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
35435 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
35436 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
35437 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
35438
35439 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35440
35441 PR other/43620
35442 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
35443 * aclocal.m4: Regenerate.
35444
35445 2010-04-02 Richard Guenther <rguenther@suse.de>
35446
35447 PR tree-optimization/43629
35448 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
35449 if we have seen a constant value.
35450
35451 2010-04-02 Joseph Myers <joseph@codesourcery.com>
35452
35453 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
35454
35455 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
35456
35457 PR target/43469
35458 * arm.c (legitimize_tls_address): Adjust call to
35459 gen_tls_load_dot_plus_four.
35460 (arm_note_pic_base): New function.
35461 (arm_cannot_copy_insn_p): Use it.
35462 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
35463 constraint.
35464
35465 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35466
35467 PR bootstrap/43531
35468
35469 Revert:
35470 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35471
35472 * Makefile.in ($(out_object_file)): Depend on
35473 gt-$(basename $(notdir $(out_file))).h.
35474
35475 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
35476
35477 * config.gcc (lm32-*-rtems*): Add t-lm32.
35478
35479 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
35480
35481 * config.gcc: Add lm32-*-rtems*.
35482 * config/lm32/rtems.h: New file.
35483
35484 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
35485
35486 PR target/42609
35487 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
35488
35489 2010-04-01 Jakub Jelinek <jakub@redhat.com>
35490
35491 * dwarf2out.c (output_compilation_unit_header): For
35492 -gdwarf-4 use version 4 instead of version 3.
35493 (output_line_info): For version 4 and above emit additional
35494 maximum ops per insn header field.
35495 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
35496
35497 * dwarf2out.c (is_c_family, is_java): Remove.
35498 (lower_bound_default): New function.
35499 (add_bound_info, gen_descr_array_type_die): Use it.
35500
35501 2010-04-01 Dodji Seketeli <dodji@redhat.com>
35502
35503 PR debug/43325
35504 * dwarf2out.c (gen_variable_die): Allow debug info for variable
35505 re-declaration when it happens in a function.
35506
35507 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
35508
35509 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
35510 (cgraph_remove_function_insertion_hook): Same.
35511 (cgraph_call_function_insertion_hooks): Same.
35512
35513 2010-04-01 Richard Guenther <rguenther@suse.de>
35514
35515 PR middle-end/43614
35516 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
35517 and TREE_THIS_VOLATILE.
35518 (copy_ref_info): Likewise.
35519 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
35520 * tree.c (build6_stat): Ignore side-effects of all but arg5
35521 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
35522 TARGET_MEM_REF.
35523
35524 2010-04-01 Richard Guenther <rguenther@suse.de>
35525
35526 PR tree-optimization/43607
35527 * ipa-type-escape.c (check_call): Do not access non-existing
35528 arguments.
35529
35530 2010-04-01 Richard Guenther <rguenther@suse.de>
35531
35532 PR middle-end/43602
35533 Revert
35534 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
35535 Jack Howarth <howarth@bromo.med.uc.edu>
35536
35537 * tree-profile.c (tree_init_ic_make_global_vars): Make static
35538 variables TLS.
35539
35540 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35541
35542 * doc/install.texi (Prerequisites): Document libelf usability on
35543 IRIX 5/6 and Solaris 2.
35544 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
35545 Update GNU as, GNU ld requirements.
35546 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
35547 Document Sun Studio compiler download.
35548 Update and simplify as, ld recommendations.
35549 (Specific, *-*-solaris2.7): Note obsoletion, removal.
35550
35551 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35552
35553 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
35554 with_tune_32 to pentium4.
35555
35556 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
35557
35558 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
35559
35560 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35561
35562 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
35563 obsoletion, removal.
35564 Update IDO URL.
35565 Document GNU as requirement.
35566 Update configure requirements.
35567 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
35568 Recomment IRIX 6.5.18+.
35569 Document IDF/IDL requirement.
35570 Document GNU as requirement.
35571 Document GNU ld bootstrap failure.
35572 Remove freeware.sgi.com reference.
35573
35574 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35575
35576 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
35577 UNIX V4.0, V5.0 obsoletion, removal.
35578 Remove --with-gc=simple reference.
35579 Update VM requirements during bootstrap.
35580 Remove -oldas bootstrap description.
35581 Update binutils reference.
35582 Remove comparison failure note.
35583
35584 2010-03-31 Richard Guenther <rguenther@suse.de>
35585 Zdenek Dvorak <ook@ucw.cz>
35586 Sebastian Pop <sebastian.pop@amd.com>
35587
35588 PR middle-end/43464
35589 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
35590 with multiple arguments.
35591 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
35592
35593 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35594
35595 * graphite-dependences.c (print_pddr): Call print_pdr with an
35596 extra argument.
35597 * graphite-poly.c (debug_pdr): Add an extra argument for the
35598 verbosity level.
35599 (print_pdr): Same.
35600 (print_pbb_domain): Same.
35601 (print_pbb): Same.
35602 (print_scop_context): Same.
35603 (print_scop): Same.
35604 (print_cloog): Same.
35605 (debug_pbb_domain): Same.
35606 (debug_pbb): Same.
35607 (print_pdrs): Same.
35608 (debug_pdrs): Same.
35609 (debug_scop_context): Same.
35610 (debug_scop): Same.
35611 (debug_cloog): Same.
35612 (print_scop_params): Same.
35613 (debug_scop_params): Same.
35614 (print_iteration_domain): Same.
35615 (print_iteration_domains): Same.
35616 (debug_iteration_domain): Same.
35617 (debug_iteration_domains): Same.
35618 (print_scattering_function): Same.
35619 (print_scattering_functions): Same.
35620 (debug_scattering_function): Same.
35621 (debug_scattering_functions): Same.
35622 * graphite-poly.h (debug_pdr): Update declaration.
35623 (print_pdr): Same.
35624 (print_pbb_domain): Same.
35625 (print_pbb): Same.
35626 (print_scop_context): Same.
35627 (print_scop): Same.
35628 (print_cloog): Same.
35629 (debug_pbb_domain): Same.
35630 (debug_pbb): Same.
35631 (print_pdrs): Same.
35632 (debug_pdrs): Same.
35633 (debug_scop_context): Same.
35634 (debug_scop): Same.
35635 (debug_cloog): Same.
35636 (print_scop_params): Same.
35637 (debug_scop_params): Same.
35638 (print_iteration_domain): Same.
35639 (print_iteration_domains): Same.
35640 (debug_iteration_domain): Same.
35641 (debug_iteration_domains): Same.
35642 (print_scattering_function): Same.
35643 (print_scattering_functions): Same.
35644 (debug_scattering_function): Same.
35645 (debug_scattering_functions): Same.
35646
35647 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35648
35649 * graphite-poly.c (print_scattering_function_1): New.
35650 (print_scattering_function): Call it.
35651 (print_scop_params): Remove spaces at the end of lines.
35652 (print_cloog): New.
35653 (debug_cloog): New.
35654 * graphite-poly.h (print_cloog): Declared.
35655 (debug_cloog): Declared.
35656
35657 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35658
35659 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
35660 in loop->header.
35661 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
35662 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
35663 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
35664 to switch between adding the IV bump in loop->latch or in loop->header.
35665
35666 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
35667
35668 * graphite-poly.c (print_scattering_function): Pretty print following
35669 the scoplib format.
35670 (print_pdr): Same.
35671 (print_pbb_domain): Same.
35672 (dump_gbb_cases): Same.
35673 (dump_gbb_conditions): Same.
35674 (print_pdrs): Same.
35675 (print_pbb): Same.
35676 (print_scop_params): Same.
35677 (print_scop_context): Same.
35678 (print_scop): Same.
35679 (print_pbb_body): New.
35680 (lst_indent_to): New.
35681 (print_lst): Start new lines with a #.
35682 * graphite-poly.h (pbb_bb): New.
35683 (pbb_index): Use pbb_bb.
35684 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
35685 disjuncts.
35686 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
35687
35688 2010-03-31 Jakub Jelinek <jakub@redhat.com>
35689
35690 * dwarf2out.c (size_of_die): For -gdwarf-4 use
35691 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
35692 and 0 instead of 1 for dw_val_class_flag.
35693 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
35694 dw_val_class_range_list, dw_val_class_loc_list,
35695 dw_val_class_lineptr and dw_val_class_macptr, use
35696 DW_FORM_flag_present for dw_val_class_flag and
35697 DW_FORM_exprloc for dw_val_class_loc.
35698 (output_die): For -gdwarf-4 print dw_val_class_loc
35699 size as uleb128 instead of 1 or 2 bytes and don't print
35700 anything for dw_val_class_flag.
35701
35702 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
35703 instead of cselib_lookup following by tweaking locs->setting_insn.
35704
35705 PR bootstrap/43596
35706 * cselib.c (cselib_process_insn): Clear cselib_current_insn
35707 even before returning from label, setjmp call or volatile asm
35708 handling.
35709
35710 2010-03-31 Richard Guenther <rguenther@suse.de>
35711
35712 PR middle-end/43600
35713 * cgraphunit.c (cgraph_output_in_order): Do not allocate
35714 temporary data on stack.
35715
35716 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35717
35718 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
35719 (PUSHSECTION_ASM_OP): Remove.
35720 (POPSECTION_ASM_OP): Remove.
35721 (PUSHSECTION_FORMAT): Remove.
35722 * config/sol2.h (PUSHSECTION_FORMAT): Define.
35723 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
35724 * config/sol2.c (solaris_output_init_fini): Use it.
35725
35726 2010-03-31 Jie Zhang <jie@codesourcery.com>
35727
35728 PR 43574
35729 * opt-functions.awk (var_type_struct): Use signed char type
35730 for simple variables.
35731
35732 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35733
35734 * config/sol2.c: Include output.h.
35735 (solaris_assemble_visibility): New function.
35736 * config/t-sol2 (sol2.o): Add output.h dependency.
35737 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
35738 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
35739 Redefine.
35740
35741 2010-03-31 Jakub Jelinek <jakub@redhat.com>
35742
35743 PR target/43580
35744 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
35745 V2SImode or XFmode on PRE_DEC.
35746
35747 PR debug/43557
35748 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
35749 BLKmode.
35750
35751 2010-03-31 Jie Zhang <jie@codesourcery.com>
35752
35753 PR 43562
35754 * reload.h (caller_save_initialized_p): Declare.
35755 * toplev.c (backend_init_target): Don't call
35756 init_caller_save but set caller_save_initialized_p to false.
35757 * caller-save.c (caller_save_initialized_p): Define.
35758 (init_caller_save): Check caller_save_initialized_p.
35759 * ira.c (ira): Call init_caller_save if flag_caller_saves.
35760
35761 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35762
35763 PR target/39048
35764 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
35765 and soft-fp/t-softfp to tmake_file.
35766 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
35767 (LIBGCC2_TF_CEXT): Define.
35768 (TF_SIZE): Define.
35769
35770 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
35771
35772 PR debug/42977
35773 * cselib.c (n_useless_values): Document handling of debug locs.
35774 (n_useless_debug_values, n_debug_values): New variables.
35775 (new_elt_loc_list): Don't add to debug values, keep count.
35776 (promote_debug_loc): New.
35777 (cselib_reset_table): Zero new variables.
35778 (entry_and_rtx_equal_p): Promote debug locs.
35779 (discard_useless_locs): Increment n_useless_debug_values for
35780 debug values.
35781 (remove_useless_values): Adjust n_useless_values and n_debug_values
35782 with n_useless_debug_values.
35783 (add_mem_for_addr): Promote debug locs.
35784 (cselib_lookup_mem): Likewise.
35785 (cselib_lookup_addr): Renamed to...
35786 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
35787 (cselib_log_lookup): ... this. Turn into...
35788 (cselib_lookup_addr): ... new wrapper.
35789 (cselib_lookup_from_insn): New.
35790 (cselib_invalidate_regno): Increment n_useless_debug_values for
35791 debug values.
35792 (cselib_invalidate_mem): Likewise.
35793 (cselib_process_insn): Take n_deleted and n_debug_values into
35794 account to guard remove_useless_value call.
35795 (cselib_finish): Zero n_useless_debug_values.
35796 * cselib.h (cselib_lookup_from_insn): Declare.
35797 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
35798 (sched_analyze_2): Likewise.
35799
35800 2010-03-30 Jakub Jelinek <jakub@redhat.com>
35801
35802 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
35803 functions.
35804 (adjust_mems): Replace narrowing SUBREG of expression containing
35805 just PLUS, MINUS, MULT and ASHIFT of registers and constants
35806 with operations in the narrower mode.
35807
35808 PR debug/43593
35809 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
35810 regs_invalidated_by_call instead all call_used_reg_set registers.
35811
35812 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
35813
35814 PR middle-end/43430
35815 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
35816 pointer comparisons with types_compatible_p.
35817 * tree-vect-stmts.c (vectorizable_call): Same.
35818 (vectorizable_condition): Same.
35819
35820 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35821
35822 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
35823 stack check if the mask would be zero.
35824
35825 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
35826 Jack Howarth <howarth@bromo.med.uc.edu>
35827
35828 * tree-profile.c (tree_init_ic_make_global_vars): Make static
35829 variables TLS.
35830
35831 2010-03-30 Joseph Myers <joseph@codesourcery.com>
35832
35833 PR other/25232
35834 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
35835 and __unordtf2.
35836 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
35837 Include ___unordxf2 and ___unordtf2.
35838 * config/i386/libgcc-glibc.ver: Do not define inheritance from
35839 GCC_4.4.0 here.
35840
35841 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
35842
35843 * config/lm32/t-lm32: New file.
35844 * config.gcc: Use the above file when targetting lm32.
35845
35846 2010-03-28 Duncan Sands <baldrick@free.fr>
35847
35848 * Makefile.in (PLUGIN_HEADERS): Add except.h.
35849
35850 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35851
35852 PR middle-end/43431
35853 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
35854 Improve vectorization cost model diagnostic.
35855
35856 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35857
35858 PR middle-end/43436
35859 * tree-vect-data-refs.c (vect_analyze_data_refs): When
35860 compute_data_dependences_for_loop returns false, early exit
35861 and output an extra diagnostic for the failed data reference
35862 analysis.
35863
35864 2010-03-29 Richard Guenther <rguenther@suse.de>
35865
35866 PR tree-optimization/43560
35867 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
35868 (can_sm_ref_p): Treat stores to readonly locations as trapping.
35869
35870 2010-03-29 Jie Zhang <jie@codesourcery.com>
35871
35872 PR 43564
35873 * toplev.c (process_options): Set optimization_default_node
35874 and optimization_current_node.
35875 * opts.c (decode_options): Don't set optimization_default_node
35876 and optimization_current_node.
35877
35878 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
35879
35880 * config/rtems.h: Abandon -qrtems_debug.
35881
35882 2010-03-28 Jan Hubicka <jh@suse.cz>
35883
35884 PR tree-optimization/43505
35885 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
35886 map should not be copied.
35887
35888 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35889
35890 PR middle-end/41674
35891 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
35892 cdtors, set DECL_PRESERVE_P.
35893 * ipa.c (cgraph_externally_visible_p): Return true if declaration
35894 should be preseved.
35895
35896 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
35897
35898 PR tree-optimization/43528
35899 * stor-layout.c (place_field): Check that constant fits into
35900 unsigned HWI when skipping calculation of MS bitfield layout.
35901
35902 2010-03-27 Jan Hubicka <jh@suse.cz>
35903
35904 PR middle-end/43391
35905 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
35906 notice_global_symbol work.
35907
35908 2010-03-27 Jakub Jelinek <jakub@redhat.com>
35909
35910 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
35911 instead of dwarf2out_decl.
35912 (struct var_loc_node): Remove section_label field.
35913 (dwarf2out_function_decl): New function.
35914 (dwarf2out_var_location): Don't set section_label field.
35915 (dwarf2out_begin_function): Don't empty decl_loc_table here.
35916
35917 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
35918
35919 PR tree-optimization/43544
35920 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35921 First argument for builtin vectorized function hook is now a
35922 tree to be able to distinguish between machine specific and
35923 standard builtins.
35924 * targhooks.c (default_builtin_vectorized_function): Ditto.
35925 * targhooks.h (default_builtin_vectorized_function): Ditto.
35926 * target.h (struct gcc_target): Ditto.
35927 * tree-vect-stmts.c (vectorizable_function): Ditto.
35928 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
35929 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
35930 Ditto.
35931
35932 2010-03-26 Joseph Myers <joseph@codesourcery.com>
35933
35934 PR c/43381
35935 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
35936 nested binding iff it is a FUNCTION_DECL.
35937 (store_parm_decls_newstyle): Pass nested=true to bind for
35938 FUNCTION_DECLs amongst parameters.
35939
35940 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35941
35942 * var-tracking.c (vt_expand_loc_callback): Don't run
35943 cselib_expand_value_rtx_cb in dummy mode if
35944 cselib_dummy_expand_value_rtx_cb returned false.
35945
35946 * var-tracking.c (emit_note_insn_var_location): For one part
35947 notes with offset 0, don't add EXPR_LIST around the location.
35948 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
35949 add_location_or_const_value_attribute): Adjust for that change.
35950
35951 PR debug/43540
35952 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
35953 into first operand and location into second.
35954 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
35955 dw_cfi_oprnd_loc for DW_CFA_expression.
35956 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
35957 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
35958 assume first argument is regnum and second argument is location.
35959
35960 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35961
35962 PR target/42113
35963 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
35964 of scratch register to DImode. Split to DImode comparison operator.
35965 Use SImode subreg of scratch register in the multiplication.
35966 (*cmp_sadd_sidi): Ditto.
35967 (*cmp_ssub_si): Ditto.
35968 (*cmp_ssub_sidi): Ditto.
35969
35970 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35971
35972 PR target/43524
35973 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
35974 Remove invalid assert and wrong comment.
35975
35976 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35977
35978 PR debug/43516
35979 * flags.h (final_insns_dump_p): New extern.
35980 * final.c (final_insns_dump_p): New variable.
35981 (rest_of_clean_state): Set it before -fdump-final-insns=
35982 dumping, clear afterwards.
35983 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
35984 MEM_ALIAS_SET on MEMs.
35985
35986 2010-03-26 David S. Miller <davem@davemloft.net>
35987
35988 * configure.ac: Fix sparc GOTDATA_OP bug check.
35989 * configure: Rebuild.
35990
35991 2010-03-26 Alan Modra <amodra@gmail.com>
35992
35993 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
35994
35995 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35996
35997 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
35998 TLS_SECTION_ASM_FLAG.
35999
36000 2010-03-25 Jakub Jelinek <jakub@redhat.com>
36001
36002 PR bootstrap/43511
36003 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
36004 Clear first_function_block_is_cold.
36005
36006 PR c/43385
36007 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
36008 argument if the argument is truth_value_p.
36009
36010 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
36011
36012 * config/rs6000/constraints.md: Update copyright year for my changes.
36013
36014 PR target/43484
36015 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
36016 used in reg+reg addressing, swap registers.
36017
36018 2010-03-24 Jakub Jelinek <jakub@redhat.com>
36019
36020 PR debug/43293
36021 * target.h (struct gcc_target): Add code_end hook.
36022 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
36023 if not yet defined.
36024 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
36025 * toplev.c (compile_file): Call targetm.asm_out.code_end
36026 hook before unwind info/debug info output.
36027 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
36028 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
36029 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
36030 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
36031 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
36032 * config/i386/i386.c (ix86_file_end): Renamed to...
36033 (ix86_code_end): ... this. Make static. Don't call
36034 file_end_indicate_exec_stack. Emit unwind info using
36035 final_start_function/final_end_function.
36036 (darwin_x86_file_end): Remove.
36037 (TARGET_ASM_CODE_END): Define.
36038 * config/i386/i386.h (TARGET_ASM_FILE_END,
36039 NEED_INDICATE_EXEC_STACK): Don't define.
36040 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
36041 (TARGET_ASM_FILE_END): Define to darwin_file_end.
36042 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
36043 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
36044
36045 PR target/43498
36046 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
36047 at the beginning and final_end_function at the end.
36048 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
36049
36050 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36051
36052 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
36053 and Sun as TLS syntax.
36054 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
36055 * configure: Regenerate.
36056 * config.in: Regenerate.
36057 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
36058 (default_elf_asm_named_section): Use it.
36059 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
36060 (i386_output_dwarf_dtprel): Likewise.
36061 (output_addr_const_extra): Likewise.
36062 (output_pic_addr_const): Lowercase @GOTTPOFF.
36063 (output_addr_const_extra): Likewise.
36064 (output_pic_addr_const): Lowercase @GOTNTPOFF.
36065 (output_addr_const_extra): Likewise.
36066 (output_pic_addr_const): Lowercase @INDNTPOFF.
36067 (output_addr_const_extra): Likewise.
36068 (output_pic_addr_const): Lowercase @NTPOFF.
36069 (output_addr_const_extra): Likewise.
36070 (output_pic_addr_const): Lowercase @TPOFF.
36071 (output_addr_const_extra): Likewise.
36072 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
36073 (*tls_global_dynamic_64): Likewise.
36074 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
36075 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
36076
36077 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
36078 (ASM_OUTPUT_TLS_COMMON): Use it.
36079 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
36080
36081 PR target/38118
36082 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
36083 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
36084 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
36085 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
36086 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
36087 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
36088
36089 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36090
36091 * config/i386/i386.c (override_options): Don't accept
36092 -mtls-dialect=sun any longer.
36093 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
36094 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
36095 (*tls_local_dynamic_base_32_sun): Likewise.
36096 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
36097
36098 2010-03-24 Jakub Jelinek <jakub@redhat.com>
36099
36100 PR debug/43508
36101 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
36102 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
36103
36104 PR debug/43479
36105 * ira.c (adjust_cleared_regs): New function.
36106 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
36107
36108 PR debug/19192
36109 PR debug/43479
36110 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
36111 from gimple_block.
36112 * expr.c (expand_expr_real): Restore previous
36113 curr_insn_source_location and curr_insn_block after
36114 expand_expr_real_1 call.
36115 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
36116 instead of expand_expr_real_1.
36117
36118 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
36119
36120 PR rtl-optimization/43413
36121 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
36122 hard regs too.
36123
36124 2010-03-22 James E. Wilson <wilson@codesourcery.com>
36125
36126 PR target/43348
36127 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
36128 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
36129
36130 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
36131
36132 * config/i386/i386.c (ix86_target_string): Add -mfma.
36133 Fix a typo in comment.
36134
36135 2010-03-22 Mike Stump <mikestump@comcast.net>
36136
36137 PR target/23071
36138 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
36139 Don't overly align based upon packed packed fields.
36140
36141 2010-03-22 Jason Merrill <jason@redhat.com>
36142
36143 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
36144 Use () rather than [], and move before the element type.
36145
36146 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36147
36148 * doc/configfiles.texi (Configuration Files): Removed
36149 fixinc/Makefile*, intl/Makefile.*.
36150 * doc/makefile.texi: Fixed markup. Abstract from version
36151 control system used.
36152 (Makefile): Removed obsolete java/parse.y example.
36153 * doc/sourcebuild.texi: Likewise.
36154 (Top Level): Added config, gnattools, libdecnumber, libgcc,
36155 libgomp, libssp. Removed fastjar.
36156 (Miscellaneous Docs): Clarify location.
36157 Added COPYING3, COPYING3.LIB.
36158 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
36159
36160 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36161
36162 PR target/38085
36163 * config/i386/i386.c (x86_function_profiler)
36164 [!NO_PROFILE_COUNTERS]: Fix typo.
36165 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
36166 instead of callq.
36167
36168 2010-03-22 Janis Johnson <janis187@us.ibm.com>
36169 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36170
36171 * doc/sourcebuild.texi (Test Directives): Split into six
36172 subsections, with most of the current text in new subsections
36173 Directives, Selectors, and Final Actions.
36174 (Directives): Split list of test directives into multiple
36175 subsubsections.
36176 (Selectors): Describe use and syntax of selectors.
36177 (Effective-Target Keywords): Describe all existing keywords.
36178 (Add Options): Describe features for dg-add-options.
36179 (Require Support): Describe variants of dg-require-support.
36180 (Final Actions): Describe commands to use in dg-final.
36181
36182 2010-03-22 Michael Matz <matz@suse.de>
36183
36184 PR middle-end/43475
36185 * recog.c (validate_replace_rtx_group): Replace also in
36186 REG_EQUAL and REG_EQUIV notes.
36187
36188 2010-03-22 Richard Guenther <rguenther@suse.de>
36189
36190 PR tree-optimization/43390
36191 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
36192 sure vector extracts are type correct.
36193
36194 2010-03-22 Richard Guenther <rguenther@suse.de>
36195
36196 PR middle-end/40106
36197 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
36198 x * sqrt (x) even when optimizing for size if the target
36199 has native support for sqrt.
36200
36201 2010-03-22 Jakub Jelinek <jakub@redhat.com>
36202
36203 * varasm.c (make_decl_rtl_for_debug): Also clear
36204 flag_mudflap for the duration of make_decl_rtl call.
36205
36206 PR debug/43443
36207 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
36208 locs from preserved VALUEs.
36209
36210 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36211
36212 PR middle-end/42718
36213 * pa.md (movmemsi): Set align to one if zero.
36214 (movmemdi): Likewise.
36215
36216 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
36217
36218 PR target/42321
36219 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
36220 with their corresponding prologue pushes.
36221
36222 2010-03-20 Andrew Pinski <pinskia@gmail.com>
36223
36224 PR target/43156
36225 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
36226 at the begining or end.
36227 (spu_expand_epilogue): Likewise.
36228
36229 2010-03-20 Richard Guenther <rguenther@suse.de>
36230
36231 PR rtl-optimization/43438
36232 * combine.c (make_extraction): Properly zero-/sign-extend an
36233 extraction of the low part of a CONST_INT. Also handle
36234 CONST_DOUBLE.
36235
36236 2010-03-19 Mike Stump <mikestump@comcast.net>
36237
36238 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
36239 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
36240 (override_options): Use SUBTARGET32_DEFAULT_CPU.
36241
36242 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
36243
36244 PR c/43211
36245 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
36246 an error.
36247
36248 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
36249
36250 PR rtl-optimization/42258
36251 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
36252 use that may match DEF.
36253
36254 PR target/40697
36255 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
36256 the cost of loading the constant rather than assuming
36257 COSTS_N_INSNS (1).
36258 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
36259 outer code is AND, do the same tests as the andsi3 expander and
36260 return COSTS_N_INSNS (1) if and is cheap.
36261
36262 * optabs.c (avoid_expensive_constant): Fix formatting.
36263
36264 2010-03-19 Michael Matz <matz@suse.de>
36265
36266 PR c++/43116
36267 * attribs.c (decl_attributes): When rebuilding a function pointer
36268 type use the same qualifiers as the original pointer type.
36269
36270 2010-03-19 Martin Jambor <mjambor@suse.cz>
36271
36272 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
36273 and is_gimple_ip_invariant_address.
36274
36275 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36276
36277 Revert
36278 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36279
36280 * config/arm/arm.c (arm_override_options): Turn off
36281 flag_dwarf2_cfi_asm for AAPCS variants.
36282
36283 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36284
36285 PR target/43399
36286 * config/arm/arm.c (emit_multi_reg_push): Update comments.
36287 Use PRE_MODIFY instead of PRE_DEC.
36288 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
36289 (vfp_emit_fstmd): Likewise.
36290
36291 2010-03-19 Michael Matz <matz@suse.de>
36292
36293 PR target/43305
36294 * builtins.c (expand_builtin_interclass_mathfn,
36295 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
36296 if that fails.
36297
36298 2010-03-19 Richard Guenther <rguenther@suse.de>
36299
36300 PR tree-optimization/43415
36301 * tree-ssa-pre.c (phi_translate): Split out worker to ...
36302 (phi_translate_1): ... this.
36303 (phi_translate): Move all caching here. Cache all NARY
36304 and REFERENCE translations.
36305
36306 2010-03-19 David S. Miller <davem@davemloft.net>
36307
36308 With help from Eric Botcazou.
36309 * config/sparc/sparc.c: Include dwarf2out.h.
36310 (emit_pic_helper): Delete.
36311 (pic_helper_symbol_name): Delete.
36312 (pic_helper_emitted_p): Delete.
36313 (pic_helper_needed): New.
36314 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
36315 (get_pc_thunk_name): New.
36316 (load_pic_register): Remove 'delay_pic_helper' arg. Use
36317 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
36318 Set pic_helper_needed to true. Don't call emit_pic_helper.
36319 (sparc_expand_prologue): Update load_pic_register call.
36320 (sparc_output_mi_thunk): Likewise.
36321 (sparc_file_end): Emit a hidden comdat symbol for the PIC
36322 thunk if possible. Output CFI information as needed.
36323
36324 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36325 Jack Howarth <howarth@bromo.med.uc.edu>
36326
36327 PR target/36399
36328 * config/i386/i386.h: Fix ABI on darwin x86-32.
36329
36330 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
36331
36332 * tree.h: Declare make_decl_rtl_for_debug.
36333 * varasm.c (make_decl_rtl_for_debug): New.
36334 * dwarf2out.c (rtl_for_decl_location): Call it.
36335 * cfgexpand.c (expand_debug_expr): Call it.
36336
36337 2010-03-18 Jakub Jelinek <jakub@redhat.com>
36338
36339 PR bootstrap/43399
36340 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
36341 mem_mode.
36342
36343 PR bootstrap/43403
36344 * var-tracking.c (vt_init_cfa_base): Do nothing if
36345 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
36346
36347 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
36348
36349 PR debug/42873
36350 * var-tracking.c (canonicalize_vars_star): New.
36351 (dataflow_post_merge_adjust): Use it.
36352
36353 2010-03-18 Jakub Jelinek <jakub@redhat.com>
36354
36355 PR debug/43058
36356 * var-tracking.c (non_suitable_const): New function.
36357 (add_uses): For DEBUG_INSNs with constants, don't record any
36358 value, instead just the constant value itself.
36359 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
36360 is not VAR_LOC_UNKNOWN_P, set var to the constant.
36361 (emit_notes_in_bb): Likewise.
36362 (emit_note_insn_var_location): For onepart variables if
36363 cur_loc is a VOIDmode constant, use DECL_MODE.
36364
36365 2010-03-18 Martin Jambor <mjambor@suse.cz>
36366
36367 PR middle-end/42450
36368 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
36369 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
36370 all non-clones. Moved call redirection...
36371 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
36372 (cgraph_materialize_all_clones): Dispose of all
36373 combined_args_to_skip bitmaps.
36374 (verify_cgraph_node): Do not check for edges pointing to wrong
36375 nodes in inline clones.
36376 * tree-inline.c (copy_bb): Call
36377 cgraph_redirect_edge_call_stmt_to_callee.
36378 * ipa.c (cgraph_remove_unreachable_nodes): Call
36379 cgraph_node_remove_callees even when there are used clones.
36380
36381 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
36382
36383 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
36384
36385 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
36386
36387 PR target/43383
36388 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
36389 for 32bit.
36390
36391 2010-03-18 Michael Matz <matz@suse.de>
36392
36393 PR middle-end/43419
36394 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
36395 into sqrt(x) if we need to preserve signed zeros.
36396
36397 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
36398 Eric Botcazou <ebotcazou@adacore.com>
36399
36400 PR rtl-optimization/43360
36401 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
36402 note if we don't know its invariant status.
36403
36404 2010-03-18 Michael Matz <matz@suse.de>
36405
36406 PR tree-optimization/43402
36407 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
36408 PHI chains of ssa names registered for update.
36409
36410 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
36411
36412 PR target/42427
36413 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
36414 non-offsettable and pre_modify update addressing.
36415 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
36416 and "2" alternatives "#".
36417 (*movdd_softfloat32): Make all alternatives "#";
36418 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
36419 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
36420 (*movdf_softfloat32): Make all alternatives "#";
36421 (movdi): Use the new DIFD mode iterator to create a common splitter
36422 for movdi, movdf and movdd patterns.
36423
36424 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
36425
36426 * common.opt (dumpdir): Remove redundant tab.
36427
36428 2010-03-17 Martin Jambor <mjambor@suse.cz>
36429
36430 PR tree-optimization/43347
36431 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
36432 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
36433
36434 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
36435
36436 PR rtl-optimization/42216
36437 * regrename.c (create_new_chain): New function, broken out from...
36438 (scan_rtx_reg): ... here. Call it. Handle the case where we are
36439 appending a use to an empty chain.
36440 (build_def_use): Remove previous changes that convert OP_INOUT to
36441 OP_OUT operands; instead detect the case where an OP_INOUT operand
36442 uses a previously untracked register and create an empty chain for it.
36443
36444 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36445
36446 * doc/extend.texi (Function Attributes): Rewrite unfinished
36447 sentence in ms_abi documentation.
36448
36449 2010-03-17 Alan Modra <amodra@gmail.com>
36450
36451 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
36452 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
36453 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
36454 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
36455
36456 2010-03-16 Richard Henderson <rth@redhat.com>
36457
36458 PR middle-end/43365
36459 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
36460 (lower_try_finally): Save and restore eh_seq around the expansion
36461 of the try-finally.
36462
36463 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
36464
36465 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
36466 statements before splitting block.
36467
36468 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36469
36470 * doc/sourcebuild.texi (Testsuites): Fix markup.
36471 Use pathnames relative to gcc/testsuite.
36472 (Test Directives): Move description of how timeout is determined.
36473 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
36474 (C Tests): Correct gcc.misc-tests directory.
36475 Framework tests now live in gcc.test-framework.
36476
36477 2010-03-16 Richard Guenther <rguenther@suse.de>
36478
36479 PR middle-end/43379
36480 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
36481 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
36482
36483 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
36484 Alexandre Oliva <aoliva@redhat.com>
36485
36486 PR tree-optimization/42917
36487 * lambda-code.c (remove_iv): Skip debug statements.
36488 (lambda_loopnest_to_gcc_loopnest): Likewise.
36489 (not_interesting_stmt): Debug statements are not interesting.
36490
36491 2010-03-16 Jakub Jelinek <jakub@redhat.com>
36492
36493 PR debug/43051
36494 PR debug/43092
36495 * cselib.c (cselib_preserve_constants,
36496 cfa_base_preserved_val): New static variables.
36497 (preserve_only_constants): New function.
36498 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
36499 clear its REG_VALUES. If cselib_preserve_constants, don't
36500 empty the whole hash table, but preserve there VALUEs with constants,
36501 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
36502 (cselib_preserve_cfa_base_value): New function.
36503 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
36504 (cselib_init): Change argument to int bitfield. Set
36505 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
36506 is in it.
36507 (cselib_finish): Clear cselib_preserve_constants and
36508 cfa_base_preserved_val.
36509 * cselib.h (enum cselib_record_what): New enum.
36510 (cselib_init): Change argument to int.
36511 (cselib_preserve_cfa_base_value): New prototype.
36512 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
36513 * dse.c (dse_step1): Likewise.
36514 * cfgcleanup.c (thread_jump): Likewise.
36515 * sched-deps.c (sched_analyze): Likewise.
36516 * gcse.c (local_cprop_pass): Likewise.
36517 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
36518 If FN is non-NULL, call the callback always and whenever it returns
36519 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
36520 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
36521 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
36522 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
36523 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
36524 * var-tracking.c: Include recog.h.
36525 (bb_stack_adjust_offset): Remove.
36526 (vt_stack_adjustments): Don't call it, instead just gather the
36527 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
36528 (adjust_stack_reference): Remove.
36529 (compute_cfa_pointer): New function.
36530 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
36531 (struct adjust_mem_data): New type.
36532 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
36533 functions.
36534 (get_address_mode): New function.
36535 (replace_expr_with_values): Use it.
36536 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
36537 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
36538 (adjust_sets): Remove.
36539 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
36540 Use get_address_mode.
36541 (get_adjusted_src): Remove.
36542 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
36543 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
36544 (add_with_sets): Don't call adjust_sets.
36545 (fp_setter, vt_init_cfa_base): New functions.
36546 (vt_initialize): Change return type to bool. Move most of pool etc.
36547 initialization to the beginning of the function from end. Pass
36548 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
36549 If !frame_pointer_needed, call vt_stack_adjustment before mos
36550 vector is filled, call vt_init_cfa_base if argp/framep has been
36551 eliminated to sp. If frame_pointer_needed and argp/framep has
36552 been eliminated to hard frame pointer, set
36553 hard_frame_pointer_adjustment and call vt_init_cfa_base after
36554 encountering fp setter in the prologue. For MO_ADJUST, call
36555 log_op_type before pusing the op into mos vector, not afterwards.
36556 Call adjust_insn before cselib_process_insn/add_with_sets,
36557 call cancel_changes (0) afterwards.
36558 (variable_tracking_main_1): Adjust for vt_initialize calling
36559 vt_stack_adjustments and returning whether it succeeded or not.
36560
36561 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
36562
36563 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
36564 debug statements.
36565
36566 2010-03-15 Jakub Jelinek <jakub@redhat.com>
36567
36568 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
36569 has been set.
36570 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
36571 drap_reg has not been set.
36572
36573 2010-03-15 Michael Matz <matz@suse.de>
36574
36575 PR middle-end/43300
36576 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
36577 use it to expand block copies.
36578 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
36579 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
36580 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
36581
36582 2010-03-15 Richard Guenther <rguenther@suse.de>
36583
36584 PR tree-optimization/43367
36585 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
36586 elimination check.
36587
36588 2010-03-15 Richard Guenther <rguenther@suse.de>
36589
36590 PR tree-optimization/43317
36591 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
36592
36593 2010-03-15 Martin Jambor <mjambor@suse.cz>
36594
36595 PR tree-optimization/43141
36596 * tree-sra.c (create_abstract_origin): New function.
36597 (modify_function): Call create_abstract_origin.
36598
36599 2010-03-15 Chris Demetriou <cgd@google.com>
36600
36601 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
36602 wasn't copied.
36603
36604 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36605
36606 PR middle-end/43354
36607 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
36608 call insert_out_of_ssa_copy for default definitions.
36609
36610 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36611
36612 * graphite-clast-to-gimple.c (my_long_long): Defined.
36613 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
36614 * graphite-sese-to-poly.c (my_long_long): Defined.
36615 (scop_ivs_can_be_represented): Use it.
36616
36617 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36618
36619 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
36620 graphite-max-bbs-per-function, and loop-block-tile-size.
36621 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
36622 with "maximum".
36623 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
36624
36625 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36626
36627 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
36628 forward declaration.
36629 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
36630 (add_upper_bounds_from_estimated_nit): New.
36631 (build_loop_iteration_domains): Use it.
36632
36633 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36634
36635 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
36636
36637 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36638
36639 PR middle-end/43306
36640 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
36641 should be an INTEGER_CST. Also handle CASE_CONVERT.
36642
36643 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36644
36645 * graphite.c (graphite_initialize): To bound the number of bbs per
36646 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
36647 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
36648 * doc/invoke.texi: Document it.
36649
36650 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36651
36652 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
36653 * graphite-sese-to-poly.h (build_poly_scop): Same.
36654
36655 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
36656
36657 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
36658 the number of parameters in the scop. Use as an upper bound
36659 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
36660 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
36661 * doc/invoke.texi: Document it.
36662
36663 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
36664
36665 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
36666 * doc/c-tree.texi: Remove.
36667 * doc/generic.texi: Merge c-tree.texi here.
36668 * doc/gccint.texi (Trees): Remove menu entry.
36669 (c-tree.texi): Remove @include.
36670 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
36671 * doc/languages.texi (Reading RTL): Ditto.
36672
36673 2010-03-12 Steve Ellcey <sje@cup.hp.com>
36674
36675 PR target/42869
36676 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
36677
36678 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
36679
36680 PR middle-end/42431
36681 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
36682 code added to work around reload clobbering CONST insns.
36683
36684 2010-03-12 Jakub Jelinek <jakub@redhat.com>
36685
36686 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
36687 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
36688 (cselib_preserve_only_values): Remove retain argument, don't
36689 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
36690 * cselib.h (cselib_preserve_only_values): Remove retain argument.
36691 * var-tracking.c (micro_operation): Move insn field before union.
36692 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
36693 (struct variable_tracking_info_def): Remove n_mos field, change
36694 mos into a vector of micro_operations.
36695 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
36696 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
36697 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
36698 changing into a vector.
36699 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
36700 come before all other uops generated by add_stores.
36701 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
36702 argument removal.
36703 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
36704 a vector. Run just one pass over the bbs instead of separate counting
36705 and computation phase.
36706 (vt_finalize): Free VTI (bb)->mos vector instead of array.
36707
36708 PR debug/43329
36709 * tree-inline.c (remap_decls): Put old_var rather than origin_var
36710 into *nonlocalized_list vector.
36711 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
36712 even if origin is non-NULL.
36713 (gen_variable_die): Likewise.
36714 (process_scope_var): Don't change origin.
36715 (gen_decl_die): Likewise.
36716 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
36717 before adding new edges instead of after it, fix moving over
36718 debug stmts.
36719
36720 2010-03-11 David S. Miller <davem@davemloft.net>
36721
36722 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
36723 of four.
36724 * configure: Rebuild.
36725
36726 2010-03-11 Martin Jambor <mjambor@suse.cz>
36727
36728 PR tree-optimization/43257
36729 * tree.c (assign_assembler_name_if_neeeded): New function.
36730 (free_lang_data_in_cgraph): Assembler name assignment moved to the
36731 above new function.
36732 * tree.h (assign_assembler_name_if_neeeded): Declare.
36733 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
36734 the function if needed.
36735
36736 2010-03-11 Chris Demetriou <cgd@google.com>
36737
36738 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
36739 include/stdint-gcc.h, and include/stdint.h world-readable.
36740
36741 2010-03-11 Richard Guenther <rguenther@suse.de>
36742
36743 PR tree-optimization/43255
36744 * tree-vrp.c (process_assert_insertions_for): Do not insert
36745 asserts for trivial conditions.
36746
36747 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36748
36749 PR tree-optimization/43280
36750 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
36751 generation. Move calculation of size out of the if branch.
36752 (find_bswap): Modify compare number generation.
36753
36754 2010-03-11 Richard Guenther <rguenther@suse.de>
36755
36756 PR lto/43200
36757 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
36758 (input_gimple_stmt): Fixup handled component types during
36759 operand read. Also fix up decls in ADDR_EXPRs.
36760
36761 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
36762
36763 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
36764 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
36765
36766 2010-03-10 Jan Hubicka <jh@suse.cz>
36767
36768 PR c/43288
36769 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
36770 * varasm.c (get_variable_section): Don't do that here...
36771 (make_decl_rtl): ... and here.
36772 (do_assemble_alias): Produce decl RTL.
36773 (assemble_alias): Likewise.
36774
36775 2010-03-10 Jakub Jelinek <jakub@redhat.com>
36776
36777 PR debug/43290
36778 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
36779 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
36780 of fde->vdrap_reg.
36781 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
36782 (based_loc_descr): Only express drap or vdrap regno based expressions
36783 using DW_OP_fbreg when not optimizing.
36784 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
36785 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
36786 REG_CFA_SET_VDRAP note.
36787
36788 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
36789
36790 PR tree-optimization/43236
36791 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
36792 error in calculation of base address in reverse iteration case.
36793 (generate_builtin): Take number of latch executions if the statement
36794 is in the latch.
36795
36796 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
36797
36798 PR middle-end/42859
36799 * tree-eh.c: Include pointer-set.h.
36800 (lower_eh_dispatch): Filter out duplicate case labels and
36801 remove the unneeded edge when the label is unused. Return
36802 true when some edges are removed.
36803 (execute_lower_eh_dispatch): When any lowering resulted in
36804 removing an edge, also delete unreachable blocks.
36805
36806 2010-03-10 Jakub Jelinek <jakub@redhat.com>
36807
36808 PR bootstrap/43287
36809 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
36810 UNSPEC_MACHOPIC_OFFSET.
36811
36812 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
36813
36814 PR target/43294
36815 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
36816 (m68k_delegitimize_address): New function.
36817
36818 2010-03-09 Jakub Jelinek <jakub@redhat.com>
36819
36820 PR debug/43299
36821 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
36822
36823 PR debug/43299
36824 * var-tracking.c (adjust_sets): New function.
36825 (count_with_sets, add_with_sets): Use it.
36826 (get_adjusted_src): New inline function.
36827 (add_stores): Use it.
36828
36829 PR debug/43304
36830 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
36831 call cselib_dummy_expand_value_rtx_cb instead of
36832 cselib_expand_value_rtx_cb.
36833
36834 PR debug/43293
36835 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
36836 * config/i386/i386.c: Include debug.h and dwarf2out.h.
36837 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
36838 and .cfi_endproc around the pic thunks.
36839 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
36840 all queued unwind info register saves are saved before the call.
36841 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
36842 considered as sp-=4 for unwind info and the pop as sp+=4 which
36843 also clobbers dest, but doesn't actually restore it.
36844
36845 PR debug/43290
36846 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
36847 RTX_FRAME_RELATED_P.
36848
36849 2010-03-09 Jie Zhang <jie@codesourcery.com>
36850
36851 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
36852 whitespaces in output template.
36853
36854 2010-03-09 Jie Zhang <jie@codesourcery.com>
36855
36856 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
36857 out array boundary.
36858
36859 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36860
36861 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
36862 builtins.exp in a separate job.
36863
36864 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36865
36866 * graphite-sese-to-poly.c (add_param_constraints): Use
36867 lower_bound_in_type and upper_bound_in_type.
36868
36869 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36870
36871 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
36872 instead of unsigned_type_node.
36873
36874 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36875 Reza Yazdani <reza.yazdani@amd.com>
36876
36877 PR middle-end/43065
36878 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
36879 on pointer type parameters.
36880
36881 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36882
36883 PR middle-end/42644
36884 PR middle-end/42130
36885 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
36886 handle conversions from pointer to integers.
36887 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
36888 induction variable, to be able to work with code generated by CLooG.
36889 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
36890 (build_poly_scop): Bail out if we cannot codegen a loop.
36891
36892 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36893
36894 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
36895 code generation with gloog_error.
36896
36897 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36898
36899 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
36900 Call fold_convert on all the returned values.
36901 (expand_scalar_variables_expr): Pass to
36902 expand_scalar_variables_ssa_name the type of the resulting expression.
36903
36904 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36905
36906 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
36907 ppl_min_for_le_pointset.
36908 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
36909 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
36910
36911 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36912
36913 * graphite-dependences.c (map_into_dep_poly): Removed.
36914 (dependence_polyhedron_1): Use combine_context_id_scat.
36915
36916 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36917
36918 * graphite-poly.h (struct poly_scattering): Add layout documentation.
36919 (struct poly_bb): Same.
36920 (combine_context_id_scat): New.
36921
36922 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36923
36924 PR middle-end/42326
36925 * sese.c (name_defined_in_loop_p): Return false for default
36926 definitions.
36927
36928 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36929
36930 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
36931 and clean up the logic.
36932
36933 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36934
36935 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
36936 early return.
36937
36938 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36939
36940 * var-tracking.c (remove_cselib_value_chains): Define only for
36941 ENABLE_CHECKING.
36942 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
36943 delete_slot_part, emit_notes_for_differences_1): Don't call
36944 remove_cselib_value_chains here.
36945 (set_slot_part, emit_notes_for_differences_2): Don't call
36946 add_cselib_value_chains here.
36947 (preserved_values): New vector.
36948 (preserve_value): New function.
36949 (add_uses, add_stores, vt_add_function_parameters): Use it
36950 instead of cselib_preserve_value.
36951 (changed_values_stack): New vector.
36952 (check_changed_vars_0): New function.
36953 (check_changed_vars_1, check_changed_vars_2): Use it.
36954 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
36955 changed_values_stack VALUEs.
36956 (vt_emit_notes): For all preserved_values call
36957 add_cselib_value_chains. If ENABLE_CHECKING call
36958 remove_cselib_value_chains before verifying value_chains is empty.
36959 Initialize and free changed_values_stack.
36960 (vt_initialize): Initialize preserved_values.
36961 (vt_finalize): Free preserved_values.
36962
36963 2010-03-08 Richard Guenther <rguenther@suse.de>
36964
36965 PR tree-optimization/43269
36966 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
36967 region detection.
36968
36969 2010-03-08 Martin Jambor <mjambor@suse.cz>
36970
36971 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
36972 (ipa_is_param_called): Removed.
36973 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
36974 (ipa_print_node_params): Do not print the called flag.
36975 (ipa_write_node_info): Do not stream the called flag.
36976 (ipa_read_node_info): Likewise.
36977
36978 2010-03-07 Jakub Jelinek <jakub@redhat.com>
36979
36980 PR debug/43176
36981 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
36982 * cselib.c (struct expand_value_data): Add dummy field.
36983 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
36984 dummy to false.
36985 (cselib_dummy_expand_value_rtx_cb): New function.
36986 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
36987 any rtl.
36988 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
36989 * var-tracking.c: Include pointer-set.h.
36990 (variable): Change n_var_parts to char from int. Add
36991 cur_loc_changed and in_changed_variables fields.
36992 (variable_canonicalize): Remove.
36993 (shared_var_p): New inline function.
36994 (unshare_variable): Maintain cur_loc_changed and
36995 in_changed_variables fields. If var was in changed_variables,
36996 replace it there with new_var. Just copy cur_loc instead of
36997 resetting it to something else.
36998 (variable_union): Don't recompute cur_loc. Use shared_var_p.
36999 (dataflow_set_union): Don't call variable_canonicalize.
37000 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
37001 of their DEBUG_EXPR_TREE_DECLs.
37002 (canonicalize_loc_order_check): Verify that cur_loc is NULL
37003 and in_changed_variables and cur_loc_changed is false.
37004 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
37005 and cur_loc_changed. Don't update cur_loc here.
37006 (variable_merge_over_src): Don't call variable_canonicalize.
37007 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
37008 removing loc that is equal to cur_loc, clear cur_loc,
37009 set cur_loc_changed and ensure variable_was_changed is called.
37010 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
37011 compare pointers in cur_loc check, if it is equal to loc,
37012 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
37013 (variable_different_p): Remove compare_current_location argument,
37014 don't compare cur_loc.
37015 (dataflow_set_different_1): Adjust variable_different_p caller.
37016 (variable_was_changed): If dv had some var in changed_variables
37017 already, reset in_changed_variables flag for it and propagate
37018 cur_loc_changed over to the new variable. On empty var
37019 always set cur_loc_changed. Set in_changed_variables on whatever
37020 var is added to changed_variables.
37021 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
37022 Use shared_var_p. When removing loc that is equal to cur_loc,
37023 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
37024 end, don't set it to something else, just call variable_was_changed.
37025 (delete_slot_part): Use shared_var_p. When cur_loc equals to
37026 loc being removed, clear cur_loc and set cur_loc_changed.
37027 Set cur_loc_changed if all locations have been removed.
37028 (struct expand_loc_callback_data): New type.
37029 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
37030 allocated. Always create SUBREGs if simplify_subreg failed.
37031 Prefer to use cur_loc, when that fails and still in
37032 changed_variables (and seen first time) recompute it. Set
37033 cur_loc_changed of variables which had to change cur_loc and
37034 compute elcd->cur_loc_changed if any of the subexpressions used
37035 had to change cur_loc.
37036 (vt_expand_loc): Adjust to pass arguments in
37037 expand_loc_callback_data structure.
37038 (vt_expand_loc_dummy): New function.
37039 (emitted_notes): New variable.
37040 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
37041 that weren't used for any other decl in current
37042 emit_notes_for_changes call call vt_expand_loc_dummy to update
37043 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
37044 first loc_chain location if NULL before. Always use just
37045 cur_loc instead of first loc_chain location. When cur_loc_changed
37046 is false, when not --enable-checking=rtl just don't emit any note.
37047 When rtl checking, compute the note and assert it is the same
37048 as previous note. Clear cur_loc_changed and in_changed_variables
37049 at the end before removing from changed_variables.
37050 (check_changed_vars_3): New function.
37051 (emit_notes_for_changes): Traverse changed_vars to call
37052 check_changed_vars_3 on each changed var.
37053 (emit_notes_for_differences_1): Clear cur_loc_changed and
37054 in_changed_variables. Recompute cur_loc of new_var.
37055 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
37056 (vt_emit_notes): Initialize and destroy emitted_notes.
37057
37058 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
37059
37060 PR rtl-optimization/42220
37061 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
37062 Use verify_reg_tracked to determine if we should use OP_OUT rather
37063 than OP_INOUT.
37064 (build_def_use): If we see an in-out operand for a register that we
37065 know nothing about, treat is an output if possible, fail the block if
37066 not.
37067
37068 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
37069
37070 PR debug/42897
37071 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
37072 permanently.
37073
37074 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
37075
37076 PR debug/42897
37077 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
37078 uses of relevant DEFs that are dead outside the loop too.
37079
37080 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
37081
37082 * var-tracking.c (dataflow_set_merge): Swap src and src2.
37083 Reverted:
37084 2010-01-13 Jakub Jelinek <jakub@redhat.com>
37085 PR debug/41371
37086 * var-tracking.c (values_to_unmark): New variable.
37087 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
37088 values_to_unmark vector. Moved body to...
37089 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
37090 instead queue it into values_to_unmark vector.
37091 (vt_find_locations): Free values_to_unmark vector.
37092
37093 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
37094
37095 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
37096 (site.exp): Export them when plugins are enabled.
37097
37098 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
37099
37100 PR middle-end/42326
37101 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
37102 that contain scevs.
37103 (chrec_fold_multiply): Same.
37104
37105 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
37106
37107 PR c/43248
37108 * c-decl.c (build_compound_literal): Return early if init is
37109 an error_mark_node.
37110
37111 2010-03-04 Martin Jambor <mjambor@suse.cz>
37112
37113 PR tree-optimization/43164
37114 PR tree-optimization/43191
37115 * tree-sra.c (type_consists_of_records_p): Reject records with
37116 zero-size bit-fields at the end.
37117
37118 2010-03-04 Mike Stump <mikestump@comcast.net>
37119
37120 * Makefile.in (TAGS): Remove *.y.
37121
37122 2010-03-04 Richard Guenther <rguenther@suse.de>
37123
37124 PR tree-optimization/40761
37125 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
37126 in reverse order.
37127 (my_rev_post_order_compute): New function.
37128 (init_pre): Call it.
37129
37130 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
37131
37132 PR middle-end/43209
37133 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
37134 decrease the cost of an IV candidate when the cost is infinite.
37135
37136 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37137
37138 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
37139 Use '3DNow!' for the extension of that name, ensure normal space
37140 after the string.
37141 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
37142
37143 2010-03-03 Jeff Law <law@redhat.com>
37144
37145 * PR middle-end/32693
37146 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
37147 than gen_rtx_SUBREG.
37148 (extract_bit_field_1): Likewise.
37149
37150 2010-03-03 Janis Johnson <janis187@us.ibm.com>
37151
37152 * doc/sourcebuild.texi (Test directives): Document that arguments
37153 include-opts and exclude-opts are now optional for dg-skip-if,
37154 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
37155
37156 2010-03-03 Jason Merrill <jason@redhat.com>
37157
37158 PR c++/12909
37159 * cgraph.h (varpool_node): Add extra_name field.
37160 * varpool.c (varpool_extra_name_alias): New.
37161 (varpool_assemble_decl): Emit extra name aliases.
37162 (varpool_mark_needed_node): Look past an extra name alias.
37163 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
37164 * lto-streamer-in.c (lto_input_tree): Read it.
37165 * lto-streamer-out.c (output_unreferenced_globals): Write it.
37166
37167 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
37168
37169 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
37170 (sparc*-*-solaris2*): ...this.
37171
37172 2010-03-03 Jakub Jelinek <jakub@redhat.com>
37173
37174 PR debug/43229
37175 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
37176 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
37177 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
37178 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
37179
37180 PR debug/43237
37181 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
37182 fallthrough to default handling, just with want_address 0 instead of 2.
37183 For single element lists, add_AT_loc directly, otherwise create an
37184 artificial variable DIE and stick location list to it.
37185
37186 PR debug/43177
37187 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
37188 (VAL_EXPR_HAS_REVERSE): Define.
37189 (reverse_op): New function.
37190 (add_stores): For reversible operations add an extra MO_VAL_USE.
37191
37192 2010-03-02 Jason Merrill <jason@redhat.com>
37193
37194 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
37195
37196 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
37197
37198 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
37199 (sparc64-*-linux*): Likewise.
37200 (sparc64-*-solaris2*): Include assembler files before linker ones.
37201 (sparc-*-solaris2*): Simplify and reorder to match previous case.
37202 * config/sparc/gas.h: Delete.
37203 * config/sparc/sol2-64.h: Add copyright notice.
37204 * config/sparc/sol2-gas-bi.h: Likewise.
37205 * config/sparc/sol2-gld.h: Likewise.
37206 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
37207 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
37208 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
37209 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
37210 (sparc_elf_asm_named_section): Rename into...
37211 (sparc_solaris_elf_asm_named_section): ...this. Always define.
37212
37213 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
37214
37215 * config/alpha/alpha.c (override_options): Fix -mtune error message.
37216
37217 2010-03-02 Jeff Law <law@redhat.com>
37218
37219 PR middle-end/42431
37220 * reload1.c (rtx_p, substitute_stack): Declare.
37221 (substitute): Record addresses of changed rtxs.
37222 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
37223 Restore the original rtx when complete.
37224 (reload): Free subsitute_stack when complete.
37225
37226 2010-03-02 Janis Johnson <janis187@us.ibm.com>
37227
37228 * doc/gccint.texi (menu): Add Testsuites as a chapter.
37229 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
37230 new chapter.
37231 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
37232 LTO Testing, gcov Testing, profopt Testing, compat Testing,
37233 Torture Tests): Change from subsection to section.
37234
37235 2010-03-02 Jakub Jelinek <jakub@redhat.com>
37236 Steven Bosscher <steven@gcc.gnu.org>
37237
37238 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
37239 instead of bb.
37240
37241 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
37242
37243 PR middle-end/42640
37244 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
37245 the assignment from the new induction variable to the assignment
37246 of the value from the original loop PHI function.
37247
37248 2010-03-01 Janis Johnson <janis187@us.ibm.com>
37249 Daniel Jacobowitz <dan@codesourcery.com>
37250
37251 * doc/sourcebuild.texi (Test directives): Clarify options to
37252 dg-skip-if.
37253
37254 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37255
37256 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
37257 Disable cfi directives unless GCC and gas agree on using read-only
37258 .eh_frame sections for 64-bit.
37259 * configure: Regenerate.
37260
37261 2010-03-01 Richard Guenther <rguenther@suse.de>
37262
37263 PR tree-optimization/43220
37264 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
37265 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
37266
37267 2010-03-01 Richard Guenther <rguenther@suse.de>
37268 Martin Jambor <mjambor@suse.cz>
37269
37270 PR middle-end/41250
37271 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
37272 gimplified parameters.
37273
37274 2010-03-01 Christian Bruel <christian.bruel@st.com>
37275
37276 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
37277
37278 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
37279
37280 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
37281
37282 2010-03-01 Richard Guenther <rguenther@suse.de>
37283
37284 PR middle-end/43213
37285 * expr.c (expand_assignment): Use the alias-oracle to tell
37286 if the rhs aliases the result decl.
37287
37288 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37289
37290 PR pch/14940
37291 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
37292 to sol_gt_pch_get_address.
37293 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
37294 64-bit, SPARC and x86.
37295 (sol_gt_pch_get_address): New function.
37296
37297 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
37298
37299 * toplev.h (inform_n, error_n): Declare.
37300 * diagnostic.c (inform_n, error_n): New function.
37301
37302 2010-03-01 Jakub Jelinek <jakub@redhat.com>
37303
37304 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
37305 has no rtl yet when processing local_decls, queue it and recheck
37306 if deferred stack allocation hasn't assigned it rtl.
37307
37308 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
37309
37310 * config/sh/sh.c (unspec_bbr_uid): New.
37311 (gen_block_redirect): Use it instead of INSN_UID.
37312 (gen_far_branch): Likewise.
37313
37314 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
37315
37316 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
37317 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
37318
37319 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37320
37321 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
37322 (Warning Options): -Wno-conversion-null is valid for
37323 Objective-C++ as well.
37324 * doc/tm.texi (Named Address Spaces): Likewise.
37325 * doc/plugins.texi (Plugins): Replace TABs with spaces.
37326 * doc/tree-ssa.texi (Tree SSA): Likewise.
37327
37328 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
37329
37330 PR bootstrap/43202
37331 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
37332 by default. Don't set the default arch for
37333 i[34567]86-*-darwin*|x86_64-*-darwin*.
37334
37335 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
37336
37337 PR bootstrap/43202
37338 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
37339 default. Set the default 32bit/64bit archs with $with_arch
37340 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
37341
37342 2010-02-27 Richard Guenther <rguenther@suse.de>
37343
37344 PR tree-optimization/43186
37345 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
37346 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
37347 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
37348 unroller iterations.
37349
37350 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
37351
37352 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
37353 required and i[34567]86-*-* targets don't support 64bit ISA.
37354
37355 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
37356
37357 PR ada/43096
37358 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37359 the same alias set.
37360
37361 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
37362
37363 * config.gcc: Set the default arch at least to Prescott for
37364 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
37365 if SSE math is enabled.
37366
37367 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
37368
37369 * diagnostic.c (diagnostic_initialize): Update.
37370 (diagnostic_report_diagnostic): Test inhibit_notes_p for
37371 informative notes.
37372 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
37373 (diagnostic_inhibit_notes): New.
37374 * toplev.c (process_options): inhibit notes with -fcompare-debug.
37375
37376 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
37377
37378 PR c/20631
37379 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
37380 * doc/standards.texi: Likewise.
37381 * doc/extend.texi: Likewise.
37382 * doc/trouble.texi: Likewise.
37383 * doc/cppopts.texi: Likewise.
37384 * doc/install.texi: Likewise.
37385 * c.opt (std=c90,std=gnu90): New options.
37386 * c-opts.c (c_common_handle_option): Handle them.
37387
37388 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
37389
37390 PR c/24577
37391 * c-decl.c (undeclared_variable): Use an informative note.
37392
37393 2010-02-26 Richard Guenther <rguenther@suse.de>
37394
37395 PR tree-optimization/43186
37396 * gimple.h (gimple_fold): Remove.
37397 * gimple.c (gimple_fold): Remove. Inline into single user ...
37398 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
37399 Try harder for conditions.
37400
37401 2010-02-26 Jakub Jelinek <jakub@redhat.com>
37402
37403 PR debug/43190
37404 * function.c (used_types_insert): Don't skip through named pointer
37405 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
37406 and it is different from the main variant's type.
37407
37408 2010-02-26 Nick Clifton <nickc@redhat.com>
37409
37410 * config/rx/rx.md (sminsi3): Remove bogus alternative.
37411
37412 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
37413
37414 * config.gcc: Support --with-fpmath=sse for x86.
37415
37416 * config/i386/ssemath.h: New.
37417
37418 * doc/install.texi (--with-fpmath=sse): Documented.
37419
37420 2010-02-26 Richard Guenther <rguenther@suse.de>
37421
37422 PR tree-optimization/43188
37423 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
37424 vector types of over-aligned element type.
37425
37426 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
37427
37428 PR target/43175
37429 * config/i386/i386.c (expand_vec_perm_blend): Use correct
37430 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
37431
37432 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
37433
37434 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
37435
37436 2010-02-26 Jakub Jelinek <jakub@redhat.com>
37437
37438 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
37439 * var-tracking.c: Include diagnostic.h.
37440 (debug_dv): New function.
37441 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
37442
37443 PR debug/43160
37444 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
37445 (add_value_chain, add_value_chains, remove_value_chain,
37446 remove_value_chains): Handle DEBUG_EXPRs.
37447 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
37448
37449 PR debug/43161
37450 * regcprop.c (struct queued_debug_insn_change): New type.
37451 (struct value_data_entry): Add debug_insn_changes field.
37452 (struct value_data): Add n_debug_insn_changes field.
37453 (debug_insn_changes_pool): New variable.
37454 (free_debug_insn_changes, apply_debug_insn_changes,
37455 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
37456 (kill_value_one_regno): Call free_debug_insn_changes if needed.
37457 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
37458 fields.
37459 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
37460 changes for them.
37461 (copyprop_hardreg_forward_1): Don't call apply_change_group for
37462 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
37463 changes, call cprop_find_used_regs via note_stores.
37464 (copyprop_hardreg_forward): When copying vd from predecessor
37465 which has any queued DEBUG_INSN changes, make sure the pointers are
37466 cleared. At the end call df_analyze and then if there are any
37467 DEBUG_INSN changes queued at the end of some basic block for still
37468 live registers, apply them.
37469 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
37470
37471 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
37472
37473 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
37474 (arm*-*-*): Ditto.
37475
37476 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
37477
37478 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
37479 targets. Set the default with_cpu/with_arch from arch/cpu.
37480 Allow x86-64 and native for with_cpu/with_arch.
37481
37482 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
37483
37484 * ebitmap.c: Change calls to verify_popcount with calls to
37485 sbitmap_verify_popcount.
37486 (ebitmap_clear_bit): Fixed map->cacheindex test and
37487 map>cache update when bit clearing results in an empty
37488 element.
37489
37490 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
37491
37492 PR target/43154
37493 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
37494 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
37495 and support both V2DF and V2DI modes.
37496 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
37497 support both V2DF and V2DI modes.
37498 (general): Delete trailing whitespace from a few patterns.
37499
37500 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
37501 V2DF/V2DI interleave high/low builtins.
37502
37503 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
37504 new VSX builtins.
37505
37506 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
37507 interleave high/low functions.
37508
37509 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
37510
37511 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
37512 #pragma extern_prefix.
37513
37514 2010-02-25 Jakub Jelinek <jakub@redhat.com>
37515
37516 PR debug/43166
37517 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
37518 BLKmode, assert op0 is a MEM and just adjust its mode.
37519
37520 PR debug/43165
37521 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
37522 if bitpos isn't multiple of mode's bitsize.
37523
37524 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
37525
37526 * c.opt (-ftemplate-depth=): New.
37527 (-ftemplate-depth-): Deprecate.
37528 * optc-gen.awk: Handle -ftemplate-depth=.
37529 * opth-gen.awk: Likewise.
37530 * c-opts.c (c_common_handle_option): Likewise.
37531 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
37532
37533 2010-02-24 Jason Merrill <jason@redhat.com>
37534
37535 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
37536
37537 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37538
37539 * cfg.c (alloc_aux_for_block): Remove inline.
37540 (alloc_aux_for_edge): Likewise.
37541
37542 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37543
37544 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
37545
37546 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37547
37548 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
37549 * config/i386/sol2-gas.h: New file.
37550 * config.gcc (i[34567]86-*-solaris2*): Use it.
37551
37552 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
37553
37554 PR c/43128
37555 * c-typeck.c (ep_convert_and_check): New.
37556 (build_conditional_expr): Use it.
37557 (build_binary_op): Likewise.
37558
37559 2010-02-24 Jakub Jelinek <jakub@redhat.com>
37560
37561 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
37562
37563 PR debug/43150
37564 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
37565 bounds even for -O+.
37566 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
37567 expr needs to have DECL_NAME set.
37568
37569 2010-02-24 Nick Clifton <nickc@redhat.com>
37570
37571 * config/mep/mep.c: Include gimple.h.
37572 (mep_function_uses_sp): Delete unused function.
37573 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
37574 parameters. Use unsigned integers to count args. Return a
37575 NULL_RTX instead of an error_mark_node. Toidy up formatting.
37576
37577 2010-02-23 Jakub Jelinek <jakub@redhat.com>
37578
37579 PR target/43107
37580 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
37581 greater or equal to nelt instead of 2 * nelt.
37582 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
37583 with nelt - 1.
37584
37585 2010-02-23 Jason Merrill <jason@redhat.com>
37586
37587 PR debug/42800
37588 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
37589 in cfun->local_decls even if they have register types.
37590
37591 PR c++/42837
37592 * stor-layout.c (place_field): Don't warn about unnecessary
37593 DECL_PACKED if the type is packed.
37594
37595 2010-02-23 Jakub Jelinek <jakub@redhat.com>
37596
37597 PR target/43139
37598 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
37599 GOTOFF relocs, even when the base reg isn't pic pointer.
37600
37601 2010-02-23 Michael Matz <matz@suse.de>
37602
37603 PR debug/43077
37604 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
37605 (expand_gimple_basic_block): Generate and use debug temps if there
37606 are debug uses left after the last real use of TERed ssa names.
37607 Unlink debug immediate uses when they are expanded.
37608
37609 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
37610
37611 PR 43123
37612 * config/i386/i386.c (override_options): Reorganise to provide
37613 better error messages.
37614
37615 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
37616
37617 PR middle-end/43083
37618 * graphite-scop-detection.c (create_single_exit_edge): Move
37619 the call to find_single_exit_edge to....
37620 (create_sese_edges): ...here. Don't handle multiple edges
37621 exiting the function.
37622 (build_graphite_scops): Don't handle multiple edges
37623 exiting the function.
37624
37625 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
37626
37627 PR middle-end/43097
37628 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
37629 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
37630
37631 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
37632
37633 PR middle-end/43026
37634 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
37635
37636 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
37637
37638 PR c++/43126
37639 * c-typeck.c (convert_arguments): Print declaration location.
37640 * c-common.c (validate_nargs): Rename as
37641 builtin_function_validate_nargs.
37642 (check_builtin_function_arguments): Update.
37643
37644 2010-02-22 Richard Guenther <rguenther@suse.de>
37645
37646 PR lto/43045
37647 * tree-inline.c (declare_return_variable): Use the type of
37648 the call stmt lhs if available.
37649
37650 2010-02-22 Duncan Sands <baldrick@free.fr>
37651
37652 * passes.c (register_pass): Always consider all pass lists when
37653 ref_pass_instance_number is zero.
37654
37655 2010-02-22 Richard Guenther <rguenther@suse.de>
37656
37657 PR tree-optimization/42749
37658 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
37659 parameter. Do arithmetic in the original type.
37660 (update_accumulator_with_ops): Likewise.
37661 (adjust_accumulator_values): Adjust.
37662
37663 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37664
37665 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
37666 (QI to BLKmode splitter): New splitter.
37667
37668 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
37669
37670 * config/i386/i386.c (initial_ix86_tune_features): Turn on
37671 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
37672
37673 2010-02-22 Richard Guenther <rguenther@suse.de>
37674
37675 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
37676
37677 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
37678
37679 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
37680 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
37681 ($(T)crti.o, $(T)crtn.o): Remove rules.
37682
37683 2010-02-21 Tobias Burnus <burnus@net-b.de>
37684
37685 PR fortran/35259
37686 * doc/invoke.texi (-fassociative-math): Document that this
37687 option is automatically enabled for Fortran.
37688
37689 2010-02-20 David S. Miller <davem@davemloft.net>
37690
37691 * configure.ac: Test if linker and assembler properly support
37692 GOTDATA_OP relocations.
37693 * configure: Rebuild.
37694 * config.in: Likewise.
37695 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
37696 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
37697 (movsi_high_pic): Likewise.
37698 (movdi_lo_sum_pic): Likewise.
37699 (movdi_high_pic): Likewise.
37700 (movsi_pic_gotdata_op): New pattern.
37701 (movdi_pic_gotdata_op): Likewise.
37702 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
37703 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
37704
37705 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
37706
37707 PR target/43067
37708 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
37709 attribute to ssemul.
37710 (xop_mulv2div2di3_high): Ditto.
37711
37712 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
37713
37714 PR c++/35669
37715 * c.opt (Wconversion-null): New option.
37716 * doc/invoke.texi (Wconversion-null): Document.
37717
37718 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
37719
37720 * common.opt (Wlarger-than-): Add Undocumented.
37721
37722 2010-02-19 Mike Stump <mikestump@comcast.net>
37723
37724 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
37725
37726 2010-02-19 Jason Merrill <jason@redhat.com>
37727
37728 PR target/40332
37729 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
37730 * configure: Likewise.
37731
37732 2010-02-20 Alan Modra <amodra@gmail.com>
37733
37734 PR middle-end/42344
37735 * cgraph.h (cgraph_make_decl_local): Declare.
37736 * cgraph.c (cgraph_make_decl_local): New function.
37737 (cgraph_make_node_local): Use it.
37738 * cgraphunit.c (cgraph_function_versioning): Likewise.
37739 * ipa.c (function_and_variable_visibility): Likewise.
37740
37741 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37742
37743 PR bootstrap/43121
37744 * except.c (sjlj_emit_function_enter): Don't call
37745 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
37746 directly.
37747 * rtl.h (add_reg_br_prob_note): Remove prototype.
37748
37749 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
37750
37751 PR 41779
37752 * c-common.c (conversion_warning): Remove widening conversions
37753 before checking the conversion of integers to reals.
37754
37755 2010-02-19 Mike Stump <mikestump@comcast.net>
37756
37757 PR middle-end/43125
37758 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
37759
37760 PR objc/43061
37761 * cgraphunit.c (process_function_and_variable_attributes): Check
37762 DECL_PRESERVE_P instead of looking up attribute "used".
37763 * ipa-pure-const.c (check_decl): Likewise.
37764 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
37765 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
37766 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
37767 instead of attribute "used".
37768 * config/sol2-c.c (solaris_pragma_init): Likewise.
37769 (solaris_pragma_fini): Likewise.
37770
37771 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37772
37773 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
37774 Use XCNEW instead of xcalloc.
37775 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
37776 XNEW instead of xmalloc.
37777 (get_fields): Use XNEWVEC instead of xmalloc.
37778
37779 PR debug/43084
37780 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
37781 populate vars array.
37782 (create_new_general_access): For debug stmts just reset value.
37783 (get_stmt_accesses): For accesses within debug stmts just record them
37784 using add_access_to_acc_sites instead of preventing the peeling or
37785 counting them as accesses.
37786
37787 PR middle-end/42233
37788 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
37789
37790 2010-02-19 Richard Guenther <rguenther@suse.de>
37791
37792 PR tree-optimization/42916
37793 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
37794 instructions.
37795
37796 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
37797
37798 * configure.ac: Replace all uses of changequote in macro arguments
37799 with proper quoting.
37800
37801 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37802
37803 PR middle-end/42233
37804 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
37805
37806 2010-02-19 Richard Guenther <rguenther@suse.de>
37807
37808 PR tree-optimization/42944
37809 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
37810 test for aliasing with errno.
37811
37812 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37813
37814 PR middle-end/42233
37815 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
37816 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
37817 * dojump.c: Include output.h.
37818 (inv): New inline function.
37819 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
37820 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
37821 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
37822 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
37823 argument, pass it down to other calls.
37824 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
37825 add REG_BR_PROB note to the conditional jump.
37826 * cfgexpand.c (add_reg_br_prob_note): Removed.
37827 (expand_gimple_cond): Don't call it, add the probability
37828 as last argument to jumpif_1/jumpifnot_1.
37829 * Makefile.in (dojump.o): Depend on output.h.
37830 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
37831 callers.
37832 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
37833 * stmt.c (do_jump_if_equal): Likewise.
37834 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
37835 * loop-unswitch.c (compare_and_jump_seq): Likewise.
37836 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
37837 Likewise.
37838 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
37839 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
37840 jumpifnot_1 callers.
37841 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
37842 callers.
37843 (store_expr): Adjust jumpifnot caller.
37844 (store_constructor): Adjust jumpif caller.
37845
37846 PR middle-end/42233
37847 * gimplify.c (gimple_boolify): For __builtin_expect call
37848 gimple_boolify also on its first argument.
37849
37850 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
37851
37852 * configure.ac (gnu-unique-object): Wrap regexps using [] in
37853 changequote block.
37854 (__stack_chk_fail): Ditto. Remove quadrigraphs.
37855 * configure: Regenerated.
37856
37857 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37858
37859 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
37860 lang_hooks.types_compatible_p instead of comptypes.
37861
37862 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
37863
37864 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
37865 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
37866 if __prefer_thumb__ is defined.
37867
37868 2010-02-18 Martin Jambor <mjambor@suse.cz>
37869
37870 PR tree-optimization/43066
37871 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
37872 array with zero-sized element type.
37873
37874 2010-02-18 Jakub Jelinek <jakub@redhat.com>
37875
37876 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
37877 rtx, allocate struct var_loc_node here and return it to the
37878 caller, and only if it is actually needed.
37879 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
37880 move it earlier and return immediately if it returns NULL.
37881
37882 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
37883
37884 * config/sparc/gas.h: New file. Restore
37885 TARGET_ASM_NAMED_SECTION to its ELF default.
37886 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
37887 check !HAVE_GNU_AS.
37888 * config/sparc/sparc.c (sparc_elf_asm_named_section):
37889 Likewise. Add ATTRIBUTE_UNUSED to prototype.
37890 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
37891 after sparc/sysv4.h.
37892
37893 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
37894
37895 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
37896
37897 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
37898
37899 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
37900 patterns from predicated pattern.
37901
37902 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
37903
37904 PR target/43103
37905 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
37906 for insn mnemonic suffix.
37907
37908 2010-02-17 Richard Guenther <rguenther@suse.de>
37909
37910 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
37911 to loop PHI nodes.
37912
37913 2010-02-17 Jakub Jelinek <jakub@redhat.com>
37914
37915 PR debug/42918
37916 * caller-save.c (save_call_clobbered_regs): If BB ends with
37917 a DEBUG_INSN, move any notes in between last real insn and the last
37918 DEBUG_INSN after the last DEBUG_INSN.
37919
37920 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
37921
37922 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
37923 Fix return type. Fix argument type. Explain meaning of return value.
37924
37925 2010-02-16 Richard Guenther <rguenther@suse.de>
37926
37927 PR tree-optimization/41043
37928 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
37929 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
37930 statements ...
37931 (vrp_visit_phi_node): ... but only for loop PHI nodes.
37932
37933 2010-02-16 Ira Rosen <irar@il.ibm.com>
37934
37935 PR tree-optimization/43074
37936 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
37937 * tree-vect-loop.c (vect_analyze_loop_operations): Add
37938 vectorizable cycles in hybrid SLP check.
37939 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
37940
37941 2010-02-16 Richard Guenther <rguenther@suse.de>
37942
37943 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
37944 (true_dependence): If memrefs_conflict_p computes must-alias
37945 trust it. Move TBAA check after offset-based disambiguation.
37946 (canon_true_dependence): Likewise.
37947
37948 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
37949
37950 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
37951 * doc/invoke.texi: Document it.
37952 * var-tracking.c: Include toplev.h and params.h.
37953 (vt_find_locations): Return bool indicating success. Compute
37954 hash sizes unconditionally. Check new parameter, report.
37955 (variable_tracking_main_1): Check vt_find_locations results and
37956 retry. Renamed from...
37957 (variable_tracking_main): ... this. New wrapper to preserve
37958 flag_var_tracking_assignments.
37959 * Makefile.in (var-tracking.o): Adjust dependencies.
37960
37961 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
37962 Jakub Jelinek <jakub@redhat.com>
37963
37964 PR target/42854
37965 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
37966 if weak_import attribute is present.
37967 * config/darwin.c (machopic_select_section): Likewise.
37968
37969 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
37970
37971 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
37972 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
37973 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
37974 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
37975
37976 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
37977 types.
37978
37979 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
37980 Fix argument types.
37981
37982 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
37983 Rewrite text to refer to the names.
37984
37985 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
37986
37987 * config/i386/i386-builtin-types.def
37988 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
37989 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
37990 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
37991 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
37992 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
37993 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
37994 IX86_BUILTIN_VPERMIL2PS256.
37995 (MULTI_ARG_4_DF2_DI_I): Defined.
37996 (MULTI_ARG_4_DF2_DI_I1): Defined.
37997 (MULTI_ARG_4_SF2_SI_I): Defined.
37998 (MULTI_ARG_4_SF2_SI_I1): Defined.
37999 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
38000 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
38001 __builtin_ia32_vpermil2ps256.
38002 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
38003 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
38004 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
38005 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
38006 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
38007 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
38008 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
38009 CODE_FOR_xop_vpermil2v8sf3.
38010 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
38011 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
38012 * config/i386/xopintrin.h (_mm_permute2_pd): New.
38013 (_mm256_permute2_pd): New.
38014 (_mm_permute2_ps): New.
38015 (_mm256_permute2_ps): New.
38016
38017 2010-02-15 Nick Clifton <nickc@redhat.com>
38018
38019 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
38020 boolean parameters. Use emit_jump_insn when emitting a pop
38021 instruction containing a return insn.
38022 (push): Use 'true' rather than '1' as second parameter to F.
38023 (h8300_expand_prologue): Likewise.
38024 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
38025 (h8300_expand_epilogue): Likewise.
38026
38027 2010-02-15 Richard Guenther <rguenther@suse.de>
38028
38029 PR middle-end/43068
38030 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
38031 if that is zero.
38032
38033 2010-02-15 Nick Clifton <nickc@redhat.com>
38034
38035 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
38036 delta.
38037
38038 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
38039
38040 * intl.c (fake_ngettext): New function.
38041 * intl.h (fake_ngettext): Declare.
38042 (ngettext): Define macro.
38043 * collect2.c (notice_translated): New function.
38044 (main): Use notice_translated and ngettext.
38045 * collect2.h (notice_translated): Declare.
38046
38047 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
38048
38049 * reorg.c (delete_computation): Comment fixes.
38050 * caller-save.c (setup_save_areas): Idem.
38051 * sel-sched-dump.c (dump_lv_set): Idem.
38052 * rtl.def: Idem.
38053
38054 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38055
38056 * config/s390/s390.c (s390_sched_init): New function.
38057 (TARGET_SCHED_INIT): Target hook defined.
38058
38059 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
38060 Jack Howarth <howarth@bromo.med.uc.edu>
38061 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
38062
38063 PR target/42982
38064 Partial revert of unintended change in fix for PR41605.
38065 * config/darwin.h: Fix typo.
38066 * config/darwin9.h: Same.
38067
38068 2010-02-11 Jakub Jelinek <jakub@redhat.com>
38069
38070 * c-pch.c (pch_init): Clear v.
38071
38072 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38073
38074 PR middle-end/42930
38075 * graphite-scop-detection.c (graphite_can_represent_scev): Call
38076 graphite_can_represent_init for MULT_EXPR.
38077
38078 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38079
38080 PR middle-end/42914
38081 PR middle-end/42530
38082 * graphite-sese-to-poly.c (remove_phi): New.
38083 (translate_scalar_reduction_to_array): Call remove_phi.
38084
38085 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38086
38087 PR middle-end/42771
38088 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
38089 * graphite-clast-to-gimple.h (gloog): Update declaration.
38090 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
38091 * graphite-poly.h (struct poly_bb): Add missing comments.
38092 (struct scop): Add poly_scop_p field.
38093 (POLY_SCOP_P): New.
38094 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
38095 * graphite.c (graphite_transform_loops): Build the polyhedral
38096 representation for each scop before code generation.
38097 * sese.c (rename_variables_in_operand): Removed.
38098 (rename_variables_in_expr): Return the renamed expression.
38099 (rename_sese_parameters): New.
38100 * sese.h (rename_sese_parameters): Declared.
38101
38102 2010-02-11 Richard Guenther <rguenther@suse.de>
38103
38104 PR tree-optimization/42998
38105 * tree-ssa-pre.c (create_expression_by_pieces): Treat
38106 POINTER_PLUS_EXPR properly.
38107
38108 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
38109 Changpeng Fang <changpeng.fang@amd.com>
38110
38111 PR middle-end/40886
38112 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
38113 the cost of an IV candidate when the IV is used in a test against zero.
38114
38115 * gcc.dg/tree-ssa/ivopts-3.c: New.
38116
38117 2010-02-11 Richard Guenther <rguenther@suse.de>
38118
38119 PR lto/41664
38120 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
38121 pointer-vs-decl case by swapping refs. Handle some cases
38122 of pointer-vs-decl disambiguations more conservatively.
38123 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
38124 to false after expanding.
38125
38126 2010-02-11 Richard Guenther <rguenther@suse.de>
38127
38128 PR driver/43021
38129 * gcc.c (process_command): Handle LTO file@offset case more
38130 appropriately.
38131
38132 2010-02-11 Jakub Jelinek <jakub@redhat.com>
38133
38134 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
38135 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
38136 of DEBUG_INSNs.
38137 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
38138
38139 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
38140 if MEM's mode size isn't DWARF2_ADDR_SIZE.
38141 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
38142 Optimize eq/ne comparisons when both arguments are known to be
38143 zero-extended.
38144 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
38145 Don't mask operands unnecessarily if they are known to be already
38146 zero-extended.
38147
38148 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
38149
38150 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
38151 instead of loop.
38152
38153 2010-02-10 Richard Guenther <rguenther@suse.de>
38154
38155 PR tree-optimization/43017
38156 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
38157 for wrapping signed arithmetic.
38158
38159 2010-02-10 Jakub Jelinek <jakub@redhat.com>
38160
38161 PR debug/43010
38162 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
38163 if no debug info should be emitted for it.
38164
38165 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
38166
38167 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
38168 note when flag_exceptions is set.
38169
38170 2010-02-10 Duncan Sands <baldrick@free.fr>
38171
38172 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
38173
38174 2010-02-10 Richard Guenther <rguenther@suse.de>
38175
38176 PR c/43007
38177 * tree.c (get_unwidened): Handle constants.
38178 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
38179
38180 2010-02-10 Martin Jambor <mjambor@suse.cz>
38181
38182 PR lto/42985
38183 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
38184 check for variable argument counts independently.
38185
38186 2010-02-10 Christian Bruel <christian.bruel@st.com>
38187
38188 PR target/42841
38189 * config/sh/sh.c (find_barrier): Increase length for non delayed
38190 conditional branches.
38191
38192 2010-02-10 Christian Bruel <christian.bruel@st.com>
38193
38194 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
38195
38196 2010-02-10 Jakub Jelinek <jakub@redhat.com>
38197
38198 * builtins.c (set_builtin_user_assembler_name): Also handle
38199 ffs if int is smaller than word.
38200
38201 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
38202
38203 PR middle-end/42973
38204 * ira-conflicts.c (get_dup): Remove.
38205 (process_reg_shuffles): Add new parameter. Use it as an
38206 additional guard for copy generation.
38207 (add_insn_allocno_copies): Rewrite.
38208
38209 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
38210
38211 * common.opt (fsched2-use-traces): Preserved for backward
38212 compatibility.
38213 * doc/invoke.texi: Remove the documentation about option
38214 -fsched2-use-traces.
38215 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
38216 flag_sched2_use_traces.
38217 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
38218 the backward compatibility flag section.
38219
38220 2010-02-09 Richard Guenther <rguenther@suse.de>
38221
38222 PR tree-optimization/43008
38223 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
38224 make HEAP variables initialized from global memory if they
38225 are not known builtin functions.
38226 (find_func_aliases): Adjust.
38227
38228 2010-02-09 Richard Guenther <rguenther@suse.de>
38229
38230 PR tree-optimization/43000
38231 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
38232 arithmetic manually.
38233
38234 2010-02-08 Jakub Jelinek <jakub@redhat.com>
38235
38236 PR tree-optimization/42931
38237 * tree-loop-linear.c (try_interchange_loops): Don't call
38238 double_int_mul if estimated_loop_iterations failed.
38239
38240 2010-02-08 Martin Jambor <mjambor@suse.cz>
38241
38242 PR middle-end/42898
38243 * tree-sra.c (build_accesses_from_assign): Do not mark in
38244 should_scalarize_away_bitmap if stmt has volatile ops.
38245 (sra_modify_assign): Do not process assigns piecemeal if if stmt
38246 has volatile ops.
38247
38248 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
38249
38250 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
38251
38252 2010-02-07 Adam Nemet <adambnmet@gmail.com>
38253
38254 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
38255 before the pattern.
38256
38257 2010-02-07 Andrew Pinski <pinskia@gmail.com>
38258
38259 PR middle-end/42946
38260 * df-core.c (df_finish_pass): Change type of saved_flags to int.
38261
38262 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
38263
38264 PR middle-end/42988
38265 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
38266 to unknown_dependence.
38267 (graphite_legal_transform_dr): Handle the unknown_dependence.
38268 (graphite_carried_dependence_level_k): Same.
38269
38270 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
38271
38272 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
38273
38274 2010-02-07 Richard Guenther <rguenther@suse.de>
38275
38276 PR middle-end/42991
38277 * expr.c (get_inner_reference): Always initialize *pbitsize.
38278
38279 2010-02-07 Richard Guenther <rguenther@suse.de>
38280
38281 PR middle-end/42956
38282 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
38283 new ARRAY_REFs on variable size element or minimal index arrays.
38284 Complete.
38285 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
38286 gimple_fold_indirect_ref.
38287
38288 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
38289
38290 PR target/42957
38291 * arm.c (arm_override_options): Just return if the user has specified
38292 an invalid fpu name.
38293
38294 2010-02-03 Jason Merrill <jason@redhat.com>
38295
38296 PR c++/42870
38297 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
38298 i386_pe_maybe_record_exported_symbol.
38299
38300 2010-02-05 Steve Ellcey <sje@cup.hp.com>
38301
38302 PR target/42924
38303 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
38304 (pa_delegitimize_address): New function.
38305
38306 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
38307
38308 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
38309 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
38310
38311 2010-02-05 Richard Guenther <rguenther@suse.de>
38312
38313 PR lto/42762
38314 * lto-streamer-in.c (get_resolution): Deal with references
38315 to undefined functions.
38316
38317 2010-02-05 Richard Guenther <rguenther@suse.de>
38318
38319 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
38320 (fold_const_aggregate_ref): Likewise.
38321 (ccp_fold_stmt): Substitute loads.
38322 (maybe_fold_reference): Verify types before substituting.
38323 Unshare properly.
38324 (fold_gimple_assign): Unshare properly.
38325 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
38326
38327 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
38328
38329 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
38330 for rs6000_gen_cell_microcode.
38331
38332 2010-02-04 Richard Guenther <rguenther@suse.de>
38333
38334 PR rtl-optimization/42952
38335 * dse.c (const_or_frame_p): Remove MEM handling.
38336
38337 2010-02-04 Nick Clifton <nickc@redhat.com>
38338
38339 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
38340 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
38341 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
38342 (mn10300_asm_output_mi_thunk): New function.
38343 (mn10300_can_output_mu_thunk): New function.
38344 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
38345 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
38346 (FUNCTION_ARG): Delete incorrect comment.
38347
38348 2010-02-03 Jason Merrill <jason@redhat.com>
38349
38350 PR c++/40138
38351 * fold-const.c (operand_equal_p): Handle erroneous types.
38352
38353 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
38354
38355 * config/h8300/h8300.md (can_delay): Fix attibute condition.
38356
38357 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
38358
38359 PR rtl-optimization/42941
38360 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
38361 of xmalloc.
38362
38363 2010-02-03 Jason Merrill <jason@redhat.com>
38364
38365 PR c++/35652
38366 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
38367
38368 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
38369
38370 PR debug/42896
38371 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
38372 (cselib_reset_table): Renamed from...
38373 (cselib_reset_table_with_next_value): ... this.
38374 (cselib_get_next_uid): Renamed from...
38375 (cselib_get_next_unknown_value): ... this.
38376 * cselib.c (next_uid): Renamed from...
38377 (next_unknown_value): ... this.
38378 (cselib_clear_table): Adjust.
38379 (cselib_reset_table): Adjust. Renamed from...
38380 (cselib_reset_table_with_next_value): ... this.
38381 (cselib_get_next_uid): Adjust. Renamed from...
38382 (cselib_get_next_unknown_value): ... this.
38383 (get_value_hash): Use hash.
38384 (cselib_hash_rtx): Likewise.
38385 (new_cselib_val): Adjust. Set and dump uid.
38386 (cselib_lookup_mem): Pass next_uid as hash.
38387 (cselib_subst_to_values): Likewise.
38388 (cselib_log_lookup): Dump uid.
38389 (cselib_lookup): Pass next_uid as hash. Adjust.
38390 (cselib_process_insn): Adjust.
38391 (cselib_init): Initialize next_uid.
38392 (cselib_finish): Adjust.
38393 (dump_cselib_table): Likewise.
38394 * dse.c (canon_address): Dump value uid.
38395 * print-rtl.c (print_rtx): Print value uid.
38396 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
38397 (dvuid): New type.
38398 (dv_uid): New function, sort of renamed from...
38399 (dv_htab_hash): ... this, reimplemented in terms of it and...
38400 (dv_uid2hash): ... this. New.
38401 (variable_htab_eq): Drop excess assertions.
38402 (tie_break_pointers): Removed.
38403 (canon_value_cmp): Compare uids.
38404 (variable_post_merge_New_vals): Print uids.
38405 (vt_add_function_parameters): Adjust.
38406 (vt_initialize): Reset table. Adjust.
38407
38408 2010-02-03 Richard Guenther <rguenther@suse.de>
38409
38410 PR tree-optimization/42944
38411 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
38412 (call_may_clobber_ref_p_1): Likewise. Properly handle
38413 malloc and calloc clobbering errno.
38414
38415 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
38416
38417 * doc/invoke.texi: Fix name of sched1 dump.
38418
38419 * opts.c (decode_options): Set flag_tree_switch_conversion
38420 only conditionally on optimize >= 2.
38421
38422 * gcse.c: Assorted comment fixes in pass description.
38423
38424 2010-02-03 Anthony Green <green@moxielogic.com>
38425
38426 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
38427 nop padding in order to maintain alignment of storage location of
38428 target function address.
38429 (moxie_trampoline_init): Store target function address at newly
38430 aligned location.
38431 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
38432 to 32.
38433 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
38434
38435 2010-02-03 Richard Guenther <rguenther@suse.de>
38436
38437 PR middle-end/42927
38438 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
38439
38440 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38441
38442 * config.gcc: Reenable check for obsolete targets.
38443 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
38444 mips-sgi-irix6.[0-4]*.
38445
38446 2010-02-02 Nick Clifton <nickc@redhat.com>
38447
38448 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
38449 constant size of 4 as being the same as 0.
38450 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
38451 can take values in the range 0..4.
38452
38453 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
38454
38455 PR java/41991
38456 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
38457 as _darwin10_Unwind_FindEnclosingFunction().
38458 * libgcc-libsystem.ver: New.
38459
38460 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
38461
38462 PR target/41399
38463 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
38464 implicitly set registers.
38465
38466 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
38467
38468 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
38469 (arm_override_options): Allow automatic selection of the thread
38470 pointer register if thumb2.
38471 (legitimize_pic_address): Improve code sequences for Thumb2.
38472 (arm_call_tls_get_addr): Likewise.
38473 (legitimize_tls_address): Likewise.
38474 * arm.md (pic_load_addr_arm): Delete. Replace with ...
38475 (pic_load_addr_32bit): ... this. New named pattern.
38476 * thumb2.md (pic_load_addr_thumb2): Delete.
38477 (pic_load_dot_plus_four): Delete.
38478 (tls_load_dot_plus_four): New named pattern.
38479
38480 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38481
38482 PR libgomp/29986
38483 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
38484 Document fix for TLS bug.
38485
38486 2010-01-31 Richard Guenther <rguenther@suse.de>
38487
38488 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
38489 conservatively correct.
38490
38491 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38492
38493 PR target/42850
38494 Revert:
38495 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38496
38497 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
38498
38499 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38500
38501 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
38502
38503 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
38504
38505 * config.gcc: Adjust order of makefile fragments for mingw targets.
38506
38507 2010-01-31 Richard Guenther <rguenther@suse.de>
38508
38509 PR middle-end/42898
38510 * gimplify.c (gimplify_init_constructor): For volatile LHS
38511 initialize a temporary.
38512
38513 2010-01-31 Matthias Klose <doko@ubuntu.com>
38514
38515 * configure.ac: Fix __stack_chk_fail check for cross builds configured
38516 --with-headers
38517 * configure: Regenerate.
38518
38519 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
38520
38521 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
38522 the same alias set and their sizes different constantness.
38523 (aliasing_component_refs_p): Revert 2009-10-24 change.
38524
38525 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38526
38527 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
38528 unused.
38529
38530 2010-01-29 Richard Guenther <rguenther@suse.de>
38531
38532 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
38533 Assert we successfully updated the call.
38534
38535 2010-01-29 Jakub Jelinek <jakub@redhat.com>
38536
38537 PR rtl-optimization/42889
38538 * df.h (df_set_bb_dirty_nonlr): New prototype.
38539 * df-core.c (df_set_bb_dirty_nonlr): New function.
38540 * df-scan.c (df_insn_rescan): Call it instead of
38541 df_set_bb_dirty for DEBUG_INSNs.
38542
38543 2010-01-29 Richard Guenther <rguenther@suse.de>
38544
38545 PR middle-end/37448
38546 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
38547 quadratic behavior in most cases.
38548
38549 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
38550
38551 PR target/42891
38552 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
38553 in the call to gen_x86_movsicc_0_m1.
38554
38555 2010-01-28 Richard Guenther <rguenther@suse.de>
38556
38557 PR tree-optimization/42871
38558 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
38559
38560 2010-01-28 Richard Guenther <rguenther@suse.de>
38561
38562 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
38563 into call arguments.
38564
38565 2010-01-28 Richard Guenther <rguenther@suse.de>
38566
38567 PR middle-end/42883
38568 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
38569 the forwarder if the destination is an EH landing pad.
38570
38571 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
38572
38573 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
38574 block list passed to gimple_duplicate_sese_tail.
38575 (parallelize_loops): Avoid parallelization when the function
38576 has_nonlocal_label.
38577 Avoid parallelization when the preheader is IRREDUCIBLE.
38578 Try to optimize when estimated_loop_iterations_int is unresolved.
38579 Add the loop's location to the dump file.
38580 * tree-cfg.c (add_phi_args_after_redirect): Remove.
38581 (gimple_duplicate_sese_tail): Remove the check for the latch.
38582 Redirect nexits to the exit block.
38583 Remove handling of the incoming edges to the latch.
38584 Redirect the backedge from the copied latch to the exit bb.
38585
38586 2010-01-28 Michael Matz <matz@suse.de>
38587
38588 PR target/42881
38589 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
38590 Wrap force_reg into a sequence, emit it before user.
38591
38592 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
38593
38594 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
38595 (arm_rev): New.
38596 (arm_legacy_rev): Likewise.
38597 (thumb_legacy_rev): Likewise.
38598
38599 2010-01-27 Jakub Jelinek <jakub@redhat.com>
38600
38601 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
38602 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
38603 on MEM's address failed, try avoid_constant_pool_reference and
38604 recurse if it returned something different.
38605 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
38606 address, try avoid_constant_pool_reference and recurse if it
38607 returned something different.
38608 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
38609 address and avoid_constant_pool_reference returned something
38610 different, don't set have_address.
38611
38612 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
38613
38614 PR debug/42861
38615 * var-tracking.c (val_store): Add modified argument, obey it.
38616 Adjust callers.
38617 (count_uses): Move down logging of main.
38618 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
38619 don't need resolution.
38620 (emit_notes_in_bb): Likewise.
38621
38622 2010-01-27 Richard Guenther <rguenther@suse.de>
38623
38624 PR middle-end/42878
38625 * tree-inline.c (remap_decl): Delay remapping of SSA name
38626 default definitions until we need them.
38627
38628 2010-01-27 Jakub Jelinek <jakub@redhat.com>
38629
38630 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
38631 (rs6000_delegitimize_address): New function.
38632
38633 * config/s390/s390.c (s390_delegitimize_address): Call
38634 delegitimize_mem_from_attrs.
38635
38636 PR middle-end/42874
38637 * tree-inline.c (cannot_copy_type_1): Removed.
38638 (copy_forbidden): Don't forbid copying of functions containing
38639 records/unions with variable length fields.
38640
38641 2010-01-27 Christian Bruel <christian.bruel@st.com>
38642
38643 Revert:
38644 PR target/42841
38645 * config/sh/sh.c (find_barrier): Increase length for non delayed
38646 conditional branches.
38647
38648 2010-01-27 Matthias Klose <doko@ubuntu.com>
38649
38650 * configure.ac (gnu-unique-object): Fix ldd version check.
38651 * configure: Regenerate.
38652
38653 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38654
38655 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
38656 HAVE_GNU_AS value.
38657 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
38658 Test for HAVE_GNU_AS value.
38659
38660 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38661
38662 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
38663 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
38664 INT64_TYPE): Define.
38665 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
38666 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
38667 INT_LEAST64_TYPE): Define.
38668 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
38669 UINT_LEAST64_TYPE): Define.
38670 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
38671 INT_FAST64_TYPE): Define.
38672 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
38673 UINT_FAST64_TYPE): Define.
38674 (INTMAX_TYPE, UINTMAX_TYPE): Define.
38675 (INTPTR_TYPE, UINTPTR_TYPE): Define.
38676 (SIG_ATOMIC_TYPE): Define.
38677
38678 2010-01-26 Richard Guenther <rguenther@suse.de>
38679
38680 * df-scan.c (df_scan_set_bb_info): Remove assert.
38681 (df_insn_rescan_debug_internal): Merge asserts.
38682 (df_install_ref): Likewise.
38683 (df_mark_reg): Use bitmap_set_range.
38684 (df_hard_reg_used_p): Remove assert.
38685 (df_hard_reg_used_count): Likewise.
38686
38687 2010-01-26 Richard Guenther <rguenther@suse.de>
38688
38689 PR rtl-optimization/42685
38690 * web.c (web_main): Ignore DEBUG_INSNs.
38691
38692 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
38693
38694 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
38695
38696 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
38697 Fix types of fndecl and arglist parameters.
38698
38699 2010-01-26 Richard Guenther <rguenther@suse.de>
38700
38701 PR middle-end/42806
38702 * tree-eh.c (unsplit_eh): Skip debug insns.
38703
38704 2010-01-26 Richard Guenther <rguenther@suse.de>
38705
38706 PR tree-optimization/42250
38707 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
38708
38709 2010-01-26 Jakub Jelinek <jakub@redhat.com>
38710
38711 PR fortran/42866
38712 * omp-low.c (expand_omp_sections): Only use single_pred if
38713 l2_bb is single_pred_p.
38714
38715 2010-01-25 Christian Bruel <christian.bruel@st.com>
38716
38717 PR target/42841
38718 * config/sh/sh.c (find_barrier): Increase length for non delayed
38719 conditional branches.
38720 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
38721
38722 2010-01-24 David S. Miller <davem@davemloft.net>
38723
38724 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
38725 define if not using GAS.
38726 * config/sparc/sparc.c (sparc_elf_asm_named_section):
38727 Likewise. Delete SECTION_MERGE code, which is only applicable
38728 when using GAS.
38729
38730 2010-01-24 Mark Mitchell <mark@codesourcery.com>
38731
38732 PR c++/42748
38733 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
38734 mangling of va_list in system headers.
38735
38736 2010-01-23 Toon Moene <toon@moene.org>
38737
38738 * tree-predcom.c (combine_chains): Return NULL, not false.
38739
38740 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
38741
38742 * tree-loop-distribution.c (distribute_loop): Fix declaration and
38743 initialization of variable res to agree with return type.
38744
38745 2010-01-22 Steve Ellcey <sje@cup.hp.com>
38746
38747 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
38748 * tree-sra.c: Add include of expr.h.
38749
38750 2010-01-22 Jakub Jelinek <jakub@redhat.com>
38751
38752 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
38753 insert the debug stmt on the single non-EH edge from the stmt.
38754
38755 2010-01-22 Richard Henderson <rth@redhat.com>
38756
38757 PR tree-opt/42833
38758 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
38759 the RHS until after generate_subtree_copies has insertted its
38760 code before the current statement.
38761
38762 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
38763
38764 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
38765
38766 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
38767
38768 2010-01-21 Martin Jambor <mjambor@suse.cz>
38769
38770 PR tree-optimization/42585
38771 * tree-sra.c (struct access): New field grp_total_scalarization.
38772 (dump_access): Dump the new field.
38773 (should_scalarize_away_bitmap): New variable.
38774 (cannot_scalarize_away_bitmap): Likewise.
38775 (sra_initialize): Allocate new bitmaps.
38776 (sra_deinitialize): Free new bitmaps.
38777 (create_access_1): New function.
38778 (create_access): Parts moved to create_access_1.
38779 (type_consists_of_records_p): New function.
38780 (completely_scalarize_record): Likewise.
38781 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
38782 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
38783 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
38784 access.
38785 (analyze_all_variable_accesses): Completely scalarize small eligible
38786 records.
38787
38788 2010-01-21 Martin Jambor <mjambor@suse.cz>
38789
38790 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
38791
38792 2010-01-21 Andrew Haley <aph@redhat.com>
38793
38794 * gcc.c (process_command): Move lang_specific_driver before
38795 setting cc_libexec_prefix.
38796
38797 2010-01-21 Richard Guenther <rguenther@suse.de>
38798
38799 PR middle-end/19988
38800 * fold-const.c (negate_expr_p): Pretend only negative
38801 real constants are easily negatable.
38802
38803 2010-01-20 Janis Johnson <janis187@us.ibm.com>
38804 Jason Merrill <jason@redhat.com>
38805
38806 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
38807 (TYPE_TRANSPARENT_AGGR): this, for union and record.
38808 * calls.c (initialize argument_information): Handle it.
38809 * c-common.c (handle_transparent_union_attribute): Use new name.
38810 * c-decl.c (finish_struct): Ditto.
38811 * c-typeck.c (type_lists_compatible_p): Ditto.
38812 (convert_for_assignment): Use new name and also handle record.
38813 * function.c (aggregate_value_p): Handle it.
38814 (pass_by_reference): Ditto.
38815 (assign_parm_data_types): Ditto.
38816 * print-tree.c (print_node): Ditto.
38817 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
38818 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
38819 * tree.c (first_field): New fn.
38820
38821 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
38822
38823 PR target/42818
38824 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
38825 even when linking statically, for now.
38826
38827 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38828
38829 PR debug/42715
38830 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
38831 without a cselib val.
38832 (count_uses): Accept MO_VAL_SET with no val on stores.
38833 (add_stores): Likewise.
38834
38835 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38836
38837 * var-tracking.c (check_value_val): Add a compile time assertion.
38838 (dv_is_decl_p): Simplify.
38839 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
38840 gcc_assert if ENABLE_CHECKING.
38841
38842 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38843
38844 PR debug/42782
38845 * var-tracking.c: Include tree-flow.h.
38846 (mem_dies_at_call): New.
38847 (dataflow_set_preserve_mem_locs): Use it.
38848 (dataflow_set_remove_mem_locs): Likewise.
38849 (dump_var): Renamed from dump_variable. Adjust all callers.
38850 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
38851 * Makefile.in (var-tracking.o): Adjust deps.
38852
38853 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
38854
38855 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
38856
38857 2010-01-20 Richard Guenther <rguenther@suse.de>
38858
38859 PR tree-optimization/42717
38860 * tree-ssa-dce.c (get_live_post_dom): Remove.
38861 (forward_edge_to_pdom): Take an arbitrary edge to copy
38862 degenerate PHI args from.
38863 (remove_dead_stmt): Use the first post-dominator even if it
38864 does not contain live statements as redirection destination.
38865
38866 2010-01-20 Richard Guenther <rguenther@suse.de>
38867
38868 * tree-inline.c (estimate_num_insns): Handle EH builtins.
38869
38870 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38871
38872 * sel-sched.c (create_speculation_check): Remove set but not used
38873 variable twin.
38874 (try_transformation_cache): Remove set but not used variable ds.
38875 (calculate_privileged_insns): Remove set but not used variables
38876 cur_insn and min_spec_insn.
38877 (find_best_expr): Remove set but not used variable avail_n.
38878 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
38879 variable e.
38880 * cgraphunit.c (assemble_thunk): Remove set but not used variable
38881 false_label.
38882 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
38883 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
38884 new_scop_exit_edge.
38885
38886 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
38887
38888 PR bootstrap/42786
38889 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
38890 cpu types. Add support for *-sse3 cpu types.
38891 (x86_64-*-*): Ditto.
38892
38893 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38894
38895 PR middle-end/42803
38896 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
38897 argument, call initializer_constant_valid_p_1 instead of
38898 initializer_constant_valid_p, pass CACHE to it, return NULL
38899 immediately if first call returns NULL.
38900 (initializer_constant_valid_p_1): New function.
38901 (initializer_constant_valid_p): Use it.
38902
38903 2010-01-20 Thomas Quinot <quinot@adacore.com>
38904
38905 * tree.def (PLACEHOLDER_EXPR): Fix comment.
38906
38907 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38908
38909 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
38910 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
38911 (loc_list_from_tree): Don't handle unsigned division. Handle
38912 signed modulo using DW_OP_{over,over,div,mul,minus}.
38913 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
38914 modulo instead of signed.
38915
38916 2010-01-20 DJ Delorie <dj@redhat.com>
38917
38918 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
38919 (Fpa): Pass it
38920 (h8300_emit_stack_adjustment): Propogate it.
38921 (push): Pass it.
38922 (h8300_expand_prologue): Likewise.
38923 (h8300_expand_epilogue): Likewise.
38924
38925 2010-01-19 Michael Matz <matz@suse.de>
38926
38927 PR tree-optimization/41783
38928 * tree-data-ref.c (toplevel): Include flags.h.
38929 (dump_data_dependence_relation): Also dump the inputs if the
38930 result will be unknown.
38931 (split_constant_offset_1): Look through some conversions.
38932 * tree-predcom.c (determine_roots_comp): Restart a new chain if
38933 the offset from last element is too large.
38934 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
38935 (reassociate_to_the_same_stmt): Handle vector registers.
38936 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
38937 (e.g. conversions).
38938 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
38939 wide_prolog_niters argument, emit widening instructions.
38940 (vect_do_peeling_for_alignment): Adjust caller, use widened
38941 variant of the iteration cound.
38942 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
38943
38944 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38945
38946 PR target/38697
38947 * config/arm/neon-testgen.m (emit_automatics): New parameter
38948 features. Adjust for Fixed_return_reg feature.
38949 (test_intrinsic): Call emit_automatics with new feature.
38950 * config/arm/neon.ml: Update copyright years.
38951 (features): New Fixed_return_reg feature.
38952 (ops): Update feature for Vget_low.
38953
38954 2010-01-19 Jakub Jelinek <jakub@redhat.com>
38955
38956 PR tree-optimization/42719
38957 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
38958 stmt uses.
38959
38960 PR debug/42728
38961 * fwprop.c (all_uses_available_at): Return false if def_set dest
38962 is a REG that is used in def_insn.
38963
38964 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
38965
38966 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
38967
38968 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
38969 Add argument names.
38970
38971 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
38972
38973 * target.h (struct gcc_target) <secondary_reload>: Change type
38974 of last argument to secondary_reload_info *.
38975
38976 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
38977
38978 PR target/42774
38979 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
38980 memory references with unaligned offsets. Remove CQImode handling.
38981 (unaligned_memory_operand): Return 1 for memory references with
38982 unaligned offsets. Remove CQImode handling.
38983
38984 2010-01-18 Richard Guenther <rguenther@suse.de>
38985
38986 PR middle-end/39954
38987 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
38988 builtin calls.
38989
38990 2010-01-18 Richard Guenther <rguenther@suse.de>
38991
38992 PR tree-optimization/42781
38993 * tree-ssa-structalias.c (find_what_var_points_to): Skip
38994 restrict processing only if the original variable was artificial.
38995
38996 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
38997
38998 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
38999 find number of popped argument bytes.
39000
39001 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
39002 Fix the text that describes the return value for invalid insns.
39003
39004 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
39005
39006 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
39007 Clarify what 'cost of the -dependence' is. Fix quoting.
39008
39009 * toplev.c (default_get_pch_validity): Rename argument to "sz".
39010 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
39011
39012 2010-01-17 Jakub Jelinek <jakub@redhat.com>
39013
39014 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
39015 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
39016
39017 2010-01-17 Richard Guenther <rguenther@suse.de>
39018
39019 PR middle-end/42248
39020 * function.c (split_complex_args): Take a VEC to modify.
39021 (assign_parms_augmented_arg_list): Build a VEC instead of
39022 a chain of PARM_DECLs.
39023 (assign_parms_unsplit_complex): Take a VEC of arguments.
39024 Do not fixup unmodified parms.
39025 (assign_parms): Deal with the VEC.
39026 (gimplify_parameters): Likewise.
39027
39028 2010-01-17 Richard Guenther <rguenther@suse.de>
39029
39030 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
39031 node existence check.
39032 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
39033 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
39034 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
39035 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
39036 (gimple_execute_on_growing_pred): Likewise.
39037
39038 2010-01-17 Richard Guenther <rguenther@suse.de>
39039
39040 PR tree-optimization/42773
39041 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
39042 (compute_antic_aux): Likewise.
39043 (compute_partial_antic_aux): Likewise.
39044
39045 2010-01-17 Jie Zhang <jie.zhang@analog.com>
39046
39047 PR debug/42767
39048 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
39049 and US_TRUNCATE.
39050
39051 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
39052
39053 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
39054 appearance.
39055
39056 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
39057 Fix markup for strict argument.
39058
39059 (TARGET_SCHED_REORDER2): Fix argument types.
39060
39061 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
39062 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
39063
39064 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
39065 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
39066
39067 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
39068 Add argument name.
39069
39070 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
39071 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
39072 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
39073 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
39074 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
39075
39076 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
39077
39078 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
39079
39080 (TARGET_ASM_RELOC_RW_MASK): Add return type.
39081 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
39082
39083 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
39084
39085 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
39086 Use prototype.
39087
39088 (TARGET_ASM_NAMED_SECTION): Fix argument list.
39089
39090 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
39091 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
39092
39093 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
39094
39095 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
39096
39097 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
39098 referring to it. Fix language.
39099
39100 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
39101
39102 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
39103
39104 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
39105
39106 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
39107
39108 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
39109 '@var{stream}. Remove stray 'and'.
39110
39111 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
39112
39113 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
39114
39115 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
39116
39117 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
39118 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
39119
39120 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
39121 Fix description of return value.
39122 Rename argument "sz" to "len."
39123
39124 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
39125 Clarify meaning of 'true' return value.
39126
39127 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
39128
39129 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
39130 rep_mode versus mode_rep.
39131
39132 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
39133
39134 (TARGET_BUILTIN_DECL): Fix name.
39135
39136 (TARGET_COMMUTATIVE_P): Fix type of first argument.
39137
39138 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
39139
39140 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
39141
39142 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
39143
39144 (TARGET_RELAXED_ORDERING): Use @deftypevr.
39145
39146 (TARGET_GET_DRAP_RTX): Note that this is a hook.
39147 Clarify language.
39148
39149 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
39150 Rename argument tm_fn to md_fn.
39151
39152 (TARGET_OPTION_PRINT): Fix argument list.
39153
39154 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
39155
39156 PR target/42664
39157 * config/i386/i386.c (ix86_fixup_binary_operands):
39158 Revert FMA4 fixup of operands.
39159
39160 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39161
39162 PR other/42525
39163 * Makefile.in (write_entries_to_file, install-plugin):
39164 Use \012 instead of \n with tr.
39165
39166 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
39167
39168 * configure.ac (HAVE_AS_REF): New C macro.
39169 * configure: Regenerate.
39170 * config.in: Likewise.
39171 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
39172 if HAVE_AS_REF.
39173 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
39174 if HAVE_AS_REF.
39175
39176 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
39177
39178 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
39179
39180 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
39181
39182 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
39183
39184 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
39185
39186 (TARGET_IN_SMALL_DATA_P): Fix argument type.
39187
39188 (TARGET_BINDS_LOCAL_P): Fix argument type.
39189
39190 (TARGET_ASM_FILE_END): Use prototype.
39191
39192 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
39193
39194 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
39195
39196 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
39197
39198 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
39199
39200 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
39201 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
39202
39203 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
39204 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
39205
39206 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
39207 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
39208 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
39209 (TARGET_ADDR_SPACE_CONVERT): Likewise.
39210
39211 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
39212
39213 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
39214
39215 (TARGET_INIT_BUILTINS): Use prototype.
39216
39217 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
39218 Put 'const char *' in braces. Fix parameter types.
39219 (TARGET_INVALID_CONVERSION): Fix parameter types.
39220 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
39221 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
39222
39223 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
39224 Fix argument type.
39225
39226 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
39227
39228 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
39229
39230 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
39231
39232 * doc/tm.texi (TARGET_HELP): Fix return type.
39233
39234 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
39235 in braces. Fix argument types.
39236
39237 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
39238
39239 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
39240
39241 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
39242
39243 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
39244 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
39245
39246 (TARGET_MANGLE_TYPE): Fix argument types.
39247
39248 (TARGET_IRA_COVER_CLASSES): Use prototype.
39249
39250 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
39251
39252 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
39253
39254 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
39255
39256 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
39257
39258 (TARGET_CALLEE_COPIES): Fix argument types.
39259
39260 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
39261
39262 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
39263
39264 (TARGET_FUNCTION_VALUE): Fix argument types.
39265
39266 (TARGET_RETURN_IN_MSB): Fix argument type.
39267
39268 (TARGET_RETURN_IN_MEMORY): Fix argument types.
39269
39270 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
39271
39272 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
39273
39274 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
39275 agree with return type.
39276
39277 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
39278
39279 2010-01-15 Jing Yu <jingyu@google.com>
39280
39281 PR rtl-optimization/42691
39282 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
39283 a pseudo to a constant and are merged, and adjust comments.
39284
39285 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
39286
39287 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
39288
39289 2010-01-15 Richard Guenther <rguenther@suse.de>
39290
39291 PR middle-end/42739
39292 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
39293 labels of computed or non-local gotos to the destination.
39294 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
39295 landing pad label is the first label.
39296
39297 2010-01-15 Richard Guenther <rguenther@suse.de>
39298
39299 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
39300
39301 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
39302
39303 PR target/42747
39304 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
39305 to allow generation of the xssqrtdp instruction on power7.
39306 (sqrtdf2_fpr): Ditto.
39307
39308 2010-01-14 Jakub Jelinek <jakub@redhat.com>
39309
39310 PR middle-end/42674
39311 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
39312 functions with noreturn attribute.
39313
39314 PR c++/42608
39315 * varasm.c (declare_weak): Add weak attribute to decl if it
39316 doesn't have one already.
39317 (assemble_external): Only add decls to weak_decls if they also
39318 have weak attribute.
39319
39320 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
39321
39322 * var-tracking.c (var_reg_delete): Don't delete the association
39323 between REGs and values or one-part variables if the register
39324 isn't clobbered.
39325
39326 2010-01-14 Jakub Jelinek <jakub@redhat.com>
39327
39328 PR debug/42657
39329 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
39330 because its first operand is a non-localized variable.
39331
39332 2010-01-14 Martin Jambor <mjambor@suse.cz>
39333
39334 PR tree-optimization/42706
39335 * tree-sra.c (encountered_recursive_call): New variable.
39336 (encountered_unchangable_recursive_call): Likewise.
39337 (sra_initialize): Initialize both new variables.
39338 (callsite_has_enough_arguments_p): New function.
39339 (scan_function): Call decl and flags check only for IPA-SRA, check
39340 whether there is a recursive call and whether it has enough arguments.
39341 (all_callers_have_enough_arguments_p): New function.
39342 (convert_callers): Look for recursive calls only when
39343 encountered_recursive_call is set.
39344 (ipa_early_sra): Bail out either if
39345 !all_callers_have_enough_arguments_p or
39346 encountered_unchangable_recursive_call.
39347
39348 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39349
39350 * sel-sched.c: Add 2010 to copyright years.
39351 * sel-sched-ir.c: Likewise.
39352 * sel-sched-ir.h: Likewise.
39353
39354 2010-01-14 Martin Jambor <mjambor@suse.cz>
39355
39356 PR tree-optimization/42714
39357 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
39358 constructors specially.
39359
39360 2010-01-14 Andi Kleen <ak@linux.intel.com>
39361
39362 * config/i386/drivers-i386.c (detect_caches_intel):
39363 Add l2sizekb parameter and fill in.
39364 (host_detect_local_cpu): Add l2sizekb, fill in.
39365 Add Atom small cache heuristic.
39366
39367 2010-01-14 Andi Kleen <ak@linux.intel.com>
39368
39369 * config/i386/drivers-i386.c (detect_caches_cpuid4):
39370 Add level3 parameter and fill in.
39371 (detect_caches_intel): Handle level3 cache.
39372
39373 2010-01-14 Andi Kleen <ak@linux.intel.com>
39374
39375 * config/i386/drivers-i386.c (host_detect_local_cpu):
39376 Fix core duo detection.
39377
39378 2010-01-14 Andi Kleen <ak@linux.intel.com>
39379
39380 * config/i386/drivers-i386.c (host_detect_local_cpu):
39381 Fix Atom detection.
39382
39383 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39384
39385 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
39386 (rs6000_variable_issue_1): this. Use...
39387 (rs6000_variable_issue): here. Reimplement. Print debug info.
39388
39389 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39390
39391 * sel-sched-ir.c (sel_restore_other_notes): Rename to
39392 sel_restore_notes. Update all callers. Call reemit_notes
39393 for all insns.
39394
39395 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39396
39397 PR rtl-optimization/42246
39398 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
39399 loops.
39400
39401 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39402
39403 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
39404 all successors is the same as number of successors in current region.
39405
39406 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39407
39408 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
39409 to rename is not separable. Otherwise check that its LHS is not NULL.
39410
39411 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39412
39413 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
39414
39415 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39416
39417 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
39418 available registers when failed to discover LHS register class.
39419 Fix indentation. Update comment.
39420
39421 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39422 Alexander Monakov <amonakov@ispras.ru>
39423
39424 PR rtl-optimization/42389
39425 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
39426 to can_issue_more.
39427 (advance_state_on_fence): Likewise.
39428 (sel_target_adjust_priority): Print debug output only when
39429 sched_verbose >= 4, not 2.
39430 (get_expr_cost): Do not issue all unique insns on the next cycle.
39431 (fill_insns): Initialize can_issue_more from the value saved
39432 with the fence.
39433 * sel-sched-ir.c (flist_add): New parameter issue_more.
39434 Init FENCE_ISSUE_MORE with it.
39435 (merge_fences): Likewise.
39436 (init_fences): Update call to flist_add.
39437 (add_to_fences, add_clean_fence_to_fences)
39438 (add_dirty_fence_to_fences): Likewise.
39439 (move_fence_to_fences): Update call to merge_fences.
39440 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
39441 sched groups.
39442 * sel-sched-ir.h (struct _fence): New field issue_more.
39443 (FENCE_ISSUE_MORE): New accessor macro.
39444
39445 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39446
39447 PR rtl-optimization/42388
39448 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
39449 that have no predecessors nor successors. Do not call move_bb_info
39450 for empty blocks outside of current region.
39451
39452 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39453
39454 PR rtl-optimization/42294
39455 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
39456 * sel-sched.c (move_exprs_to_boundary): Transitively add all
39457 originators' originators.
39458
39459 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
39460
39461 PR rtl-optimization/39453
39462 PR rtl-optimization/42246
39463 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
39464 for pipelining_p.
39465 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
39466
39467 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39468 Alexander Monakov <amonakov@ispras.ru>
39469
39470 PR middle-end/42245
39471 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
39472 (maybe_tidy_empty_bb): ... here. Make static. Add new
39473 argument. Update all callers.
39474 (tidy_control_flow): ... and here. Recompute topological order
39475 of basic blocks in region if necessary.
39476 (sel_redirect_edge_and_branch): Change return type. Return true
39477 if topological order might have been invalidated.
39478 (purge_empty_blocks): Export and move from...
39479 * sel-sched.c (purge_empty_blocks): ... here.
39480 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
39481 (maybe_tidy_empty_bb): Delete prototype.
39482 (purge_empty_blocks): Declare.
39483
39484 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
39485
39486 PR rtl-optimization/42249
39487 * sel-sched.c (try_replace_dest_reg): When chosen register
39488 and original register is the same, do not bail out early, but
39489 still check all original insns for validity of replacing destination
39490 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
39491 in this case.
39492
39493 2010-01-14 Jakub Jelinek <jakub@redhat.com>
39494
39495 PR c/42721
39496 Port from no-undefined-overflow branch:
39497 2009-03-09 Richard Guenther <rguenther@suse.de>
39498
39499 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
39500
39501 2010-01-14 Richard Guenther <rguenther@suse.de>
39502
39503 PR lto/42665
39504 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
39505
39506 2010-01-14 Ira Rosen <irar@il.ibm.com>
39507
39508 PR tree-optimization/42709
39509 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
39510 as scalar type in creation of constant vector operand.
39511
39512 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39513
39514 PR testsuite/42414
39515 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
39516 (check-parallel-%): Match `testsuite' directory component only
39517 at the end.
39518
39519 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
39520
39521 PR translation/39521
39522 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
39523 strings with _().
39524
39525 2010-01-13 Richard Guenther <rguenther@suse.de>
39526
39527 PR tree-optimization/42730
39528 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
39529 offset zero.
39530
39531 2010-01-13 Steve Ellcey <sje@cup.hp.com>
39532
39533 PR target/pr42542
39534 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
39535 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
39536 them signed.
39537
39538 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
39539
39540 * config/bfin/libgcc-bfin.ver: Regenerate based on current
39541 libgcc-std.ver. Add entries for ___smulsi3_highpart and
39542 ___umulsi3_highpart.
39543
39544 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
39545 rather than schedule_insns if the pass is enabled.
39546
39547 2010-01-13 Martin Jambor <mjambor@suse.cz>
39548
39549 PR tree-optimization/42704
39550 * tree-sra.c (sra_modify_assign): Do not delete assignments to
39551 SSA_NAMEs.
39552
39553 2010-01-13 Martin Jambor <mjambor@suse.cz>
39554
39555 PR tree-optimization/42703
39556 * tree-sra.c (analyze_access_subtree): Check that we can build a
39557 reference to the original data within the aggregate.
39558
39559 2010-01-13 Richard Guenther <rguenther@suse.de>
39560
39561 PR tree-optimization/42705
39562 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
39563
39564 2010-01-13 Richard Guenther <rguenther@suse.de>
39565
39566 PR middle-end/42716
39567 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
39568
39569 2010-01-13 Jakub Jelinek <jakub@redhat.com>
39570
39571 PR debug/41371
39572 * var-tracking.c (values_to_unmark): New variable.
39573 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
39574 values_to_unmark vector. Moved body to...
39575 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
39576 instead queue it into values_to_unmark vector.
39577 (vt_find_locations): Free values_to_unmark vector.
39578
39579 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
39580
39581 * config/s390/s390.c (override_options): Set
39582 default of max-pending-list-length to 256
39583
39584 2010-01-13 Richard Guenther <rguenther@suse.de>
39585
39586 PR lto/42678
39587 * tree-pass.h (PROP_gimple_lcx): New.
39588 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
39589 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
39590 before the final cleanup_eh.
39591 (dump_properties): Dump PROP_gimple_lcx.
39592 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
39593 (tree_lower_complex_O0): Remove.
39594 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
39595 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
39596 tree_lower_complex, schedule TODO_update_ssa.
39597 * lto-streamer-out.c (output_function): Stream the functions
39598 properties.
39599 * lto-streamer-in.c (input_function): Likewise.
39600 (lto_read_body): Do not override them here.
39601
39602 2010-01-12 Joseph Myers <joseph@codesourcery.com>
39603
39604 PR c/42708
39605 * c-typeck.c (build_c_cast): Fold value cast to union type before
39606 wrapping it in a CONSTRUCTOR.
39607
39608 2010-01-12 Jakub Jelinek <jakub@redhat.com>
39609
39610 PR rtl-optimization/42699
39611 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
39612 involved.
39613
39614 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39615
39616 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
39617 SUBTARGET_WARN_UNUSED_SPEC): Move ...
39618 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
39619 SUBTARGET_WARN_UNUSED_SPEC): ... here
39620 * config/mips/iris5.h (LIBGCC_SPEC): Define.
39621
39622 2010-01-12 Julian Brown <julian@codesourcery.com>
39623
39624 * config/arm/neon-schedgen.ml (Utils): Don't try to
39625 open missing module.
39626 (find_with_result): New.
39627
39628 2010-01-12 Jakub Jelinek <jakub@redhat.com>
39629
39630 PR debug/42662
39631 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
39632 sharing when canonicalizing ({lt,ge}u (plus a b) b).
39633
39634 PR tree-optimization/42645
39635 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
39636 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
39637 decl_map, set processing_debug_stmt to -1 and return name without
39638 any remapping.
39639
39640 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
39641
39642 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
39643 binutils version, and reword target configuration description.
39644
39645 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
39646
39647 * config/avr/avr.h (LINKER_NAME): Remove.
39648
39649 2010-01-11 Janis Johnson <janis187@us.ibm.com>
39650
39651 PR target/42416
39652 * config/rs6000/rs6000.c (rs6000_override_options): On targets
39653 that support VSX, warn for -mno-altivec if vsx is not disabled,
39654 and disable vsx.
39655
39656 2010-01-11 Joseph Myers <joseph@codesourcery.com>
39657 Shujing Zhao <pearly.zhao@oracle.com>
39658
39659 PR translation/42469
39660 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
39661 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
39662 character between option name and help text.
39663 * c.opt (imultilib): Likewise.
39664
39665 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
39666
39667 * lto-streamer-out.c (output_unreferenced_globals): Output static
39668 variables.
39669
39670 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
39671
39672 PR rtl-optimization/42621
39673 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
39674 optimizing for size.
39675 (duplicate_computed_gotos): Remove now-redundant check.
39676
39677 2010-01-10 Steve Ellcey <sje@cup.hp.com>
39678
39679 PR target/37454
39680 * configure.ac: Save and restore LDFLAGS and LIBS
39681 * configure: Regenerate.
39682
39683 2010-01-10 Richard Guenther <rguenther@suse.de>
39684
39685 PR middle-end/42667
39686 * builtins.c (fold_builtin_strlen): Add type argument and
39687 convert the resulting length to it.
39688 (fold_builtin_1): Adjust.
39689
39690 2010-01-09 Jakub Jelinek <jakub@redhat.com>
39691
39692 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
39693 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
39694 1 insn.
39695 (num_insns_constant_wide): Adjust for that change.
39696
39697 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39698
39699 PR debug/42631
39700 * web.c (union_defs): Add used argument, to combine uses of
39701 uninitialized regs.
39702 (entry_register): Adjust type and tests of used argument.
39703 (web_main): Widen used for new use. Pass it to union_defs.
39704 * df.h (union_defs): Adjust prototype.
39705
39706 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39707
39708 PR debug/42630
39709 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
39710 uses in new incoming argument. Free body.
39711 (reset_debug_uses_in_loop): New.
39712 (analyze_insn_to_expand_var): Call the latter if the former found
39713 anything. Fix whitespace. Reject invalid dest overlaps before
39714 going through all insns in the loop.
39715
39716 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39717
39718 PR debug/42629
39719 * haifa-sched.c (dying_use_p): Debug insns don't count.
39720
39721 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39722
39723 PR middle-end/42363
39724 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
39725 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
39726 (verify_gimple_call): Reject LHS in noreturn calls.
39727
39728 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39729
39730 PR debug/42604
39731 PR debug/42395
39732 * tree-vect-loop-manip.c (adjust_info): New type.
39733 (adjust_vec): New pointer to vector.
39734 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
39735 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
39736 (slpeel_update_phis_for_duplicate_loop): Use them.
39737 (slpeel_update_phi_nodes_for_guard1): Likewise.
39738 (slpeel_update_phi_nodes_for_guard2): Likewise.
39739 (slpeel_tree_peel_loop_to_edge): Likewise.
39740 (vect_update_ivs_after_vectorizer): Likewise.
39741
39742 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39743
39744 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
39745 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
39746
39747 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
39748
39749 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
39750 bogus uninitialized warning.
39751
39752 2010-01-09 Richard Guenther <rguenther@suse.de>
39753
39754 PR middle-end/42512
39755 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
39756 the evolution is compatible with the initial condition.
39757
39758 2010-01-09 Jakub Jelinek <jakub@redhat.com>
39759
39760 * gcc.c (process_command): Update copyright notice dates.
39761 * gcov.c (print_version): Likewise.
39762 * gcov-dump.c (print_version): Likewise.
39763 * mips-tfile.c (main): Likewise.
39764 * mips-tdump.c (main): Likewise.
39765
39766 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
39767
39768 PR target/41885
39769 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
39770 (rotlhi3): Delete.
39771 (rotlhi3_8): Delete.
39772 (rotlsi3): Delete.
39773 (rotlsi3_8): Delete.
39774 (rotlsi3_16): Delete.
39775 (rotlsi3_24): Delete.
39776 (rotl<mode>3): New.
39777 (*rotw<mode>3): New.
39778 (*rotb<mode>3): New.
39779 * config/avr/avr.c (avr_rotate_bytes): New function.
39780 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
39781
39782 2010-01-08 Steve Ellcey <sje@cup.hp.com>
39783
39784 PR target/37454
39785 * configure.ac: Modify -rdynamic check.
39786 * configure: Regenerate.
39787
39788 2010-01-08 DJ Delorie <dj@redhat.com>
39789
39790 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
39791 register popping order.
39792
39793 2010-01-08 Richard Guenther <rguenther@suse.de>
39794
39795 PR lto/42528
39796 * c.opt (fsigned-char): Also let LTO handle this option.
39797 (funsigned-char): Likewise.
39798
39799 2010-01-07 Richard Guenther <rguenther@suse.de>
39800
39801 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
39802 (gimple_op): Likewise.
39803 (gimple_op_ptr): Likewise.
39804 (gimple_assign_set_lhs): Remove gcc_assert.
39805 (gimple_assign_set_rhs1): Likewise.
39806 (gimple_assign_set_rhs2): Likewise.
39807 (gimple_call_set_lhs): Likewise.
39808 (gimple_call_set_fn): Likewise.
39809 (gimple_call_set_fndecl): Likewise.
39810 (gimple_call_fndecl): Likewise.
39811 (gimple_call_return_type): Likewise.
39812 (gimple_call_set_chain): Likewise.
39813 (gimple_call_num_args): Likewise.
39814 (gimple_call_set_arg): Likewise.
39815 (gimple_cond_set_code): Likewise.
39816 (gimple_cond_set_lhs): Likewise.
39817 (gimple_cond_set_rhs): Likewise.
39818 (gimple_cond_set_true_label): Likewise.
39819 (gimple_cond_set_false_label): Likewise.
39820 (gimple_label_set_label): Likewise.
39821 (gimple_goto_set_dest): Likewise.
39822 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
39823 (gimple_debug_bind_get_value): Likewise.
39824 (gimple_debug_bind_get_value_ptr): Likewise.
39825 (gimple_debug_bind_set_var): Likewise.
39826 (gimple_debug_bind_set_value): Likewise.
39827 (gimple_debug_bind_reset_value): Likewise.
39828 (gimple_debug_bind_has_value_p): Likewise.
39829 (gimple_return_retval_ptr): Remove gcc_assert.
39830 (gimple_return_retval): Likewise.
39831 (gimple_return_set_retval): Likewise.
39832 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
39833 (safe_referenced_var_iterator): Remove.
39834 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
39835 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
39836 (fill_referenced_var_vec): Remove.
39837 (first_readonly_imm_use): Remove redundant gcc_assert.
39838 (phi_arg_index_from_use): Combine gcc_asserts.
39839 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
39840 (first_imm_use_stmt): Remove redundant gcc_assert.
39841 * tree-cfg.c (verify_gimple_call): Verify function and chain
39842 operands. Verify arguments.
39843 (verify_types_in_gimple_stmt): Verify condition code and labels.
39844
39845 2010-01-07 Richard Guenther <rguenther@suse.de>
39846
39847 PR tree-optimization/42641
39848 * sese.c (rename_map_elt_info): Use the SSA name version, do
39849 not hash pointers.
39850
39851 2010-01-07 Jakub Jelinek <jakub@redhat.com>
39852
39853 PR tree-optimization/42625
39854 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
39855 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
39856
39857 2010-01-07 Duncan Sands <baldrick@free.fr>
39858
39859 * Makefile.in (PLUGIN_HEADERS): Add version.h.
39860
39861 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
39862
39863 PR target/42511
39864 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
39865 note itself is not function_invariant_p.
39866
39867 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
39868
39869 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
39870 Do not add the DF_NOTE problem.
39871 * store-motion.c (execute_rtl_store_motion): Likewise.
39872
39873 2010-01-07 Martin Jambor <mjambor@suse.cz>
39874
39875 PR tree-optimization/42157
39876 * tree-sra.c (compare_access_positions): Stabilize sort if both
39877 accesses have integer types, return zero immediately if they are the
39878 same.
39879
39880 2010-01-06 Richard Henderson <rth@redhat.com>
39881
39882 PR middle-end/41883
39883 * haifa-sched.c (add_to_note_list): Merge into ...
39884 (concat_note_lists): ... here, and ...
39885 (unlink_other_notes, rm_other_notes): Merge into...
39886 (remove_notes): ... here. Create REG_SAVE_NOTEs for
39887 NOTE_INSN_EPILOGUE_BEG.
39888
39889 2010-01-06 Richard Guenther <rguenther@suse.de>
39890
39891 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
39892 not inline regular functions into always-inline functions.
39893
39894 2010-01-06 Nick Clifton <nickc@redhat.com>
39895
39896 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
39897 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
39898 used together.
39899 (OVERRIDE_OPTIONS): Delete.
39900 (OPTIMIZATION_OPTIONS): Define.
39901 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
39902 * config/rx/rx.c (rx_handle_option): Issue an error message if
39903 -mcpu=rx200 and -fpu are used together.
39904 (rx_set_optimization_options): New function. Issue an error
39905 message if an optimization attribute attempts to reset the FPU/
39906 math optimization pairing.
39907 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
39908 * config/rx/rx.opt: Set the default to 32-bit doubles.
39909 * config/rx/t-rx: Add multilibs for -nofpu option.
39910 * doc/invoke.texi: Update documentation of RX options.
39911
39912 2010-01-06 Richard Guenther <rguenther@suse.de>
39913
39914 * tree-ssa-pre.c (name_to_id): New global.
39915 (alloc_expression_id): Simplify SSA name handling.
39916 (lookup_expression_id): Likewise.
39917 (init_pre): Zero name_to_id.
39918 (fini_pre): Free it.
39919
39920 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
39921
39922 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
39923
39924 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
39925
39926 PR target/42542
39927 * config/i386/sse.md (smaxv2di3): New.
39928 (umaxv2di3): Likewise.
39929 (sminv2di3): Likewise.
39930 (uminv2di3): Likewise.
39931
39932 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
39933
39934 PR target/42564
39935 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
39936 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
39937 (legitimize_tls_address): Likewise.
39938 (sparc_tls_referenced_p): Likewise.
39939 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
39940 and adjust calls to legitimize_pic_address.
39941 (legitimate_constant_p) Use sparc_tls_referenced_p.
39942 (legitimate_pic_operand_p): Likewise.
39943 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
39944 (sparc_tls_symbol_ref_1): Delete.
39945 (sparc_tls_referenced_p): Make static, recognize specific patterns.
39946 (legitimize_tls_address): Make static, handle CONST patterns.
39947 (legitimize_pic_address): Make static, remove unused parameter and
39948 adjust recursive calls.
39949 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
39950 and adjust call to legitimize_pic_address.
39951 (sparc_output_mi_thunk): Likewise.
39952
39953 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
39954 H.J. Lu <hongjiu.lu@intel.com>
39955
39956 PR target/42542
39957 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
39958 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
39959 operands to make them signed.
39960
39961 Revert:
39962 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39963
39964 PR target/42542
39965 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39966 GTU to GT for V4SI and V2DI.
39967
39968 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39969 (umin<mode>3): Removed.
39970 (uminv8hi3): New.
39971 (uminv4si3): Likewise.
39972
39973 2010-01-05 Martin Jambor <mjambor@suse.cz>
39974
39975 PR tree-optimization/42462
39976 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
39977 current_function_decl to helper functions and macros.
39978
39979 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39980
39981 PR bootstrap/41771
39982 * flags.h: Don't include real.h.
39983 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
39984 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
39985 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
39986 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
39987 * dominance.c: Update copyright.
39988 * gimple.c (walk_gimple_op): Remove inline.
39989 * tree-ssa-reassoc.c: Include real.h.
39990 * Makefile.in (FLAGS_H): Remove $(REAL_H).
39991 (tree-ssa-reassoc.o): Depend on $(REAL_H).
39992
39993 2010-01-05 Nick Clifton <nickc@redhat.com>
39994
39995 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
39996 register to push into the stack frame when the accumulator has to
39997 be saved during interrupts.
39998
39999 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
40000
40001 * doc/invoke.texi: Remove the documentation about option
40002 -Wunreachable-code.
40003 * common.opt (Wunreachable-code): Preserved for backward
40004 compatibility.
40005 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
40006 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
40007 the backward compatibility flag section.
40008
40009 2010-01-05 Richard Guenther <rguenther@suse.de>
40010
40011 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
40012
40013 2010-01-05 Jakub Jelinek <jakub@redhat.com>
40014
40015 PR other/42611
40016 * cfgexpand.c (expand_one_var): Diagnose too large variables.
40017
40018 PR tree-optimization/42508
40019 * tree-sra.c (convert_callers): Check for recursive call
40020 by comparing cgraph nodes instead of decls.
40021 (modify_function): Call ipa_modify_formal_parameters also
40022 on all same_body aliases.
40023
40024 * cgraphunit.c (cgraph_materialize_all_clones): Compare
40025 cgraph nodes when checking for same_body aliases.
40026
40027 2010-01-05 Richard Guenther <rguenther@suse.de>
40028
40029 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
40030 allocation and lookup.
40031 (get_or_alloc_expr_for_constant): Likewise.
40032 (phi_translate): Sink allocation.
40033
40034 2010-01-04 Richard Guenther <rguenther@suse.de>
40035
40036 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
40037 a new entry only if needed.
40038 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
40039 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
40040 hashtable lookup.
40041 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
40042 the result array.
40043 (phi_translate): Handle CONSTANTs early.
40044
40045 2010-01-04 Martin Jambor <mjambor@suse.cz>
40046
40047 PR tree-optimization/42398
40048 * tree-sra.c (struct access): Removed flag grp_different_types.
40049 (dump_access): Do not dump the removed flag.
40050 (sort_and_splice_var_accesses): Do not set the removed flag.
40051 (sra_modify_expr): Check for type compatibility directly.
40052
40053 2010-01-04 Martin Jambor <mjambor@suse.cz>
40054
40055 PR tree-optimization/42366
40056 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
40057 edges with variable number of parameters.
40058 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
40059 flag instead of asserting it.
40060 (ipa_read_node_info): Read uses_analysis_done flag.
40061
40062 2010-01-04 Richard Guenther <rguenther@suse.de>
40063
40064 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
40065 iterative_hash_* as intended.
40066 (vn_reference_compute_hash): Likewise. Simplify hashing
40067 SSA names.
40068 (vn_reference_lookup_2): Likewise.
40069 (vn_nary_op_compute_hash): Likewise.
40070 (vn_phi_compute_hash): Likewise.
40071 (expressions_equal_p): Remove strange code.
40072 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
40073 (pre_expr_hash): Likewise. Simplify hashing SSA names.
40074 (bitmap_insert_into_set_1): Take value-id as parameter.
40075 (add_to_value): Pass it.
40076 (bitmap_insert_into_set): Likewise.
40077 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
40078
40079 2010-01-04 Jakub Jelinek <jakub@redhat.com>
40080
40081 PR driver/42442
40082 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
40083 (do_self_spec): For switches with SWITCH_IGNORE set set also
40084 SWITCH_IGNORE_PERMANENTLY.
40085 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
40086 of SWITCH_IGNORE.
40087
40088 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
40089
40090 * lto-streamer-out.c (output_unreferenced_globals): Output the full
40091 tree of an unreferenced global var.
40092
40093 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
40094
40095 PR target/42542
40096 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
40097 GTU to GT for V4SI and V2DI.
40098
40099 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
40100 (umin<mode>3): Removed.
40101 (uminv8hi3): New.
40102 (uminv4si3): Likewise.
40103
40104 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
40105
40106 PR lto/42581
40107 * collect2.c (main): Turn on trace in collect2 if -v is passed
40108 to gcc with LTO.
40109
40110 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
40111
40112 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
40113 description of expression operand.
40114
40115 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
40116
40117 * configure.ac: Add install-html to target_list for Make-hooks.
40118 * configure: Regenerate.
40119 * fortran/Make-lang.in (F95_HTMLFILES): New.
40120 (fortran.html): Use it.
40121 (fortran.install-html): New.
40122 * Makefile.in (install-html): Add lang.install-html.
40123 * java/Make-lang.in (JAVA_HTMLFILES): New.
40124 (java.html): Use it.
40125 (java.install-html): New.
40126 * objc/Make-lang.in (objc.install-html): New.
40127 * objcp/Make-lang.in (obj-c++.install-html): New.
40128 * cp/Make-lang.in (c++.install-html): New.
40129 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
40130 * lto/Make-lang.in (lto.install-html): New.
40131
40132 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
40133
40134 PR lto/42520
40135 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
40136
40137 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
40138
40139 PR rtl-optimization/41862
40140 * store-motion.c (store_killed_in_insn, compute_store_table,
40141 remove_reachable_equiv_notes, replace_store_insn,
40142 build_store_vectors): Ignore all DEBUG_INSNs.
40143
40144 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
40145
40146 PR lto/41564
40147 * common.opt: Add dumpdir.
40148
40149 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
40150 isn't specified.
40151 (option_map): Add --dumpdir.
40152
40153 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
40154
40155 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
40156
40157 * opts.c (decode_options): Try dump_dir_name first if
40158 dump_base_name isn't an absolute path.
40159 (common_handle_option): Handle OPT_dumpdir.
40160
40161 * toplev.c (dump_dir_name): New.
40162 (print_switch_values): Also ignore -dumpdir.
40163
40164 * toplev.h (dump_dir_name): New.
40165
40166 2010-01-03 Richard Guenther <rguenther@suse.de>
40167
40168 PR tree-optimization/42589
40169 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
40170 double-word expansion of bswap32.
40171
40172 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
40173
40174 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
40175 with BLOCK_FOR_INSN.
40176 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
40177 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
40178 noce_process_if_block): Likewise.
40179 * gcse.c (compute_local_properties, insert_expr_in_table,
40180 insert_set_in_table, canon_list_insert, find_avail_set,
40181 pre_insert_copy_insn): Likewise.
40182
40183 * basic-block.h (BLOCK_NUM): Move from here...
40184 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
40185
40186 2010-01-03 Richard Guenther <rguenther@suse.de>
40187
40188 PR tree-optimization/42438
40189 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
40190 contains_may_not_return_call flag.
40191 (BB_MAY_NOTRETURN): New.
40192 (valid_in_sets): Trapping nary operations are not valid
40193 in blocks that may not return.
40194 (insert_into_preds_of_block): Remove check for trapping expressions.
40195 (compute_avail): Compute also BB_MAY_NOTRETURN.
40196
40197 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
40198
40199 * doc/invoke.texi: Add 2010 to copyright years.
40200
40201 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
40202
40203 * config/sparc/sparc.c: Fix formatting nits.
40204
40205 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
40206 Alexander Monakov <amonakov@ispras.ru>
40207
40208 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
40209
40210 2010-01-02 Richard Guenther <rguenther@suse.de>
40211
40212 PR middle-end/42577
40213 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
40214 (simplify_switch_using_ranges): Mark to be removed edges
40215 as non-executable.
40216
40217 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
40218
40219 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
40220
40221 * collect2.c (scan_libraries): Add missing argument in call to
40222 scan_prog_file.
40223
40224 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
40225
40226 PR target/42448
40227 * config/alpha/predicates.md (aligned_memory_operand): Return false
40228 for CQImode.
40229 (unaligned_memory_operand): Return true for CQImode.
40230 * config/alpha/alpha.c (get_aligned_mem): Assert that location
40231 doesn not cross aligned SImode word boundary.
40232
40233 2010-01-02 Anatoly Sokolov <aesok@post.ru>
40234
40235 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
40236 Remove.
40237 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
40238 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
40239
40240 2010-01-02 Richard Guenther <rguenther@suse.de>
40241
40242 PR lto/41597
40243 * toplev.c (compile_file): Emit LTO marker properly. Change
40244 it to __gnu_lto_v1.
40245 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
40246
40247 2010-01-01 Richard Guenther <rguenther@suse.de>
40248
40249 PR debug/42455
40250 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
40251
40252 2010-01-01 Richard Guenther <rguenther@suse.de>
40253
40254 PR c/42570
40255 * c-decl.c (grokdeclarator): For zero-size arrays force
40256 structural equality checks as layout_type does.
40257
40258 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
40259
40260 * builtins.c: Update copyright to 2010.
40261
40262 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
40263
40264 PR lto/42531
40265 * lto-streamer-out.c (produce_asm): Revert the last change.
40266 (copy_function): Likewise.
40267
40268 * lto-streamer.c (lto_get_section_name): Skip any leading
40269 asterisk in name.
40270
40271 2010-01-01 Richard Guenther <rguenther@suse.de>
40272
40273 PR middle-end/42559
40274 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
40275 for LABEL_DECLs.
40276
40277 \f
40278 Copyright (C) 2010 Free Software Foundation, Inc.
40279
40280 Copying and distribution of this file, with or without modification,
40281 are permitted in any medium without royalty provided the copyright
40282 notice and this notice are preserved.