]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
t-slibgcc-darwin: Move to ...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * config/t-slibgcc-darwin: Move to ...
4 * config/t-slibgcc-dummy: .. this.
5 Clarify comments.
6 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
7 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
8 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
9 (i[34567]86-*-rtems*): Remove extra_parts.
10 Use i386/t-rtems.
11 Remove i386/t-crtstuff from tmake_file.
12 (i[34567]86-*-solaris2*): Remove t-svr4,
13 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14 t-slibgcc-dummy.
15 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
16 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
17 sparc/t-crtfm from tmake_file.
18 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
19 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
20 Remove extra_parts.
21 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
22 * config/i386/t-nwld (SHLIB_LINK): Remove.
23 * config/i386/t-rtems-i386: Rename to ...
24 * config/i386/t-rtems: ... this.
25 ($(T)crti.o, $(T)crtn.o): Remove.
26 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
27 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
28 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
29 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
30 EXTRA_MULTILIB_PARTS): Remove.
31 * config/sparc/t-sol2-64: Likewise.
32 * config/sparc/t-sol2: Remove.
33 * config/sparc/t-crtin: Remove.
34 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
35 * config/i386/gmon-sol2.c: Remove.
36 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
37 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
38 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
39 * config/i386/sol2-gc1.asm: Remove.
40 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
41 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
42 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
43 * config/t-slibgcc-sld: Remove.
44
45 2011-06-01 Jakub Jelinek <jakub@redhat.com>
46
47 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
48 base_type_for_mode with op_mode instead of mode.
49
50 2011-06-01 Paul Brook <paul@cpodesourcery.com>
51
52 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
53 Cortex-A15.
54 * config/arm/arm-tune.md: Regenerate.
55 * config/arm/arm-tables.opt: Regenerate.
56 * config/arm/arm.c (FL_DIV): Rename...
57 (FL_THUMB_DIV): ... to this.
58 (FL_ARM_DIV): Define.
59 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
60 (arm_arch_hwdiv): Remove.
61 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
62 (arm_issue_rate): Add cortexr5.
63 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
64 __ARM_ARCH_EXT_IDIV__.
65 (TARGET_IDIV): Define.
66 (arm_arch_hwdiv): Remove.
67 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
68 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
69 (divsi3, udivsi3): New patterns.
70 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
71 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
72
73 2011-06-01 Martin Jambor <mjambor@suse.cz>
74
75 * ipa-utils.c (ipa_dfs_info): New field scc_no.
76 * ipa-utils.c (searchc): Set scc_no.
77
78 2011-06-01 Martin Jambor <mjambor@suse.cz>
79
80 * ipa-utils.c (searchc_env): New field allow_overwritable.
81 (searchc): do not ignore edges to overwritable nodes if indicated
82 by env->allow_overwritable.
83 (ipa_reduced_postorder): Set env.allow_overwritable.
84
85 2011-06-01 Richard Guenther <rguenther@suse.de>
86
87 * tree.c (free_lang_data): Do not reset boolean_type_node nor
88 char_type_node.
89 * lto-streamer.c (lto_record_common_node): Take node pointer,
90 do not register types.
91 (lto_preload_common_nodes): Explicitly skip preloading nodes
92 that differ between frontends.
93
94 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
95
96 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
97 NON_FLOAT_REGS.
98
99 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
100
101 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
102 parameter value for dump. Dump cost on outermost call only.
103 (rs6000_memory_move_cost): Dump cost on outermost call only.
104
105 2011-05-31 Jakub Jelinek <jakub@redhat.com>
106
107 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
108 DW_OP_GNU_convert ops.
109
110 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
111 cselib_preserve_constants.
112 (cselib_lookup_1): If cselib_preserve_constants,
113 a new VALUE is being created for REG and there is a VALUE for the
114 same register in wider mode, add another loc with lowpart SUBREG of
115 the wider VALUE.
116 (cselib_subst_to_values): Handle ENTRY_VALUE.
117 * var-tracking.c (replace_expr_with_values): Return NULL for
118 ENTRY_VALUE too.
119 * dwarf2out.c (convert_descriptor_to_signed): New function.
120 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
121 instead of two shifts.
122 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
123 the right mode if needed.
124 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
125 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
126 convert_descriptor_to_signed.
127 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
128 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
129
130 PR target/48688
131 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
132
133 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
134
135 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
136 of X87MODEI12 and SWI48x instead of SSEMODEI24.
137 (SWI248x): New mode iterator, rename from X87MODEI.
138 (X87MODEI): Remove mode iterator.
139 (X87MODEI12): Ditto.
140 (SSEMODEI24): Ditto.
141
142 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
143
144 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
145 * doc/invoke.texi: Document max-vartrack-expr-depth.
146 * var-tracking.c (EXPR_DEPTH): New.
147 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
148
149 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
150
151 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
152 * config/i386/sse.md: Add n to negated FMA pattern names.
153
154 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
155
156 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
157
158 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
159
160 * gengtype-state.c (read_state_params_structs): Initialize previous.
161
162 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
163
164 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
165 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
166
167 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
168
169 * config/i386/i386.md (*movtf_internal): Avoid allocating general
170 registers. Penalize F*r->o alternative to prevent partial memory
171 stalls. Slightly penalize *roF->*r alternative. Generate SSE
172 CONST_DOUBLE immediates when optimizing function for size. Do not move
173 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
174 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
175 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
176 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
177 alternatives.
178 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
179
180 (fp_register_operand splitters): Use fp_register_operand
181 constraint. Do not use FP_REG_P in insn condition.
182 (any_fp_register_operand splitters): Use any_fp_register_operand
183 constraint. Do not use ANY_FP_REG_P in insn condition.
184
185 2011-05-31 Jan Hubicka <jh@suse.cz>
186
187 * cgraph.h (cgraph_inline_failed_t): Give enum a name
188 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
189 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
190 (lto_output_edge): Use output_enum and var_len_unsigned.
191 (lto_output_varpool_node): Likewise.
192 (input_overwrite_node): Do not take resolution parameter;
193 extract it from a bitpack.
194 (input_node): Do not read resolution; use input_enum and
195 var_len_unsigned.
196 (input_varpool_node): Likewise.
197 (input_edge): Likewise.
198 (input_cgraph_1): Likewise.
199
200 2011-05-31 Richard Guenther <rguenther@suse.de>
201
202 * gimple.c (gimple_register_canonical_type): Do not register
203 any types via gimple_register_type.
204
205 2011-05-31 Jan Hubicka <jh@suse.cz>
206
207 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
208 of thunks.
209
210 2011-05-31 Jakub Jelinek <jakub@redhat.com>
211
212 PR rtl-optimization/49235
213 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
214 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
215
216 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
217
218 PR tree-optimization/49093
219 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
220 data references.
221
222 2011-05-31 Dodji Seketeli <dodji@redhat.com>
223
224 PR debug/49047
225 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
226 for concrete functions containing the code of cloned functions.
227
228 2011-05-31 Richard Guenther <rguenther@suse.de>
229
230 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
231 to ...
232 (forward_propagate_into_comparison_1): ... this.
233 (forward_propagate_comparison): Rename to ...
234 (forward_propagate_into_comparison): ... this. Split out
235 real forward propagation code to ...
236 (forward_propagate_comparison): ... this.
237 (forward_propagate_into_gimple_cond): Remove looping.
238 (forward_propagate_into_cond): Likewise.
239 (simplify_not_neg_expr): Return whether we have done something.
240 (simplify_gimple_switch): Likewise.
241 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
242 (ssa_forward_propagate_and_combine): ... this. Re-structure
243 to do a forward forward-propagation walk on BBs and a backward
244 stmt combining walk on BBs. Consistently re-scan changed statements.
245 (pass_forwprop): Adjust.
246
247 2011-05-30 Ian Lance Taylor <iant@google.com>
248
249 * godump.c (go_format_type): Correct length of name added to
250 obstack for anonymous field.
251
252 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
253
254 PR target/49186
255 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
256 part of the second operand is 0.
257
258 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
259
260 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
261 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
262 to memory for !TARGET_MEMORY_MISMATCH_STALL.
263 (*movdf_internal_rex64): Do not penalize F->r alternative.
264 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
265 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
266 when optimizing function for size. Do not move CONST_DOUBLEs
267 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
268 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
269 SUBREGs. Do not check for MEM_P operands in the insn condition,
270 check for ANY_FP_REGNO_P instead.
271 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
272 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
273 function for speed.
274 * config/i386/i386.c (ix86_option_override_internal): Do not
275 set TARGET_INTEGER_DFMODE_MOVES here.
276
277 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
278
279 PR target/49168
280 * config/i386/i386.md (*movtf_internal): Handle misaligned
281 load/store.
282
283 2011-05-30 Jakub Jelinek <jakub@redhat.com>
284
285 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
286 DW_TAG_rvalue_reference_type even for
287 -gdwarf-4 -fno-debug-types-section.
288
289 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
290
291 PR tree-optimization/46728
292 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
293 (build_and_insert_binop): New.
294 (gimple_expand_builtin_pow): Reorder args for
295 build_and_insert_call; use build_and_insert_binop; add more
296 optimizations for fractional exponents.
297
298 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
299
300 PR bootstrap/49190
301
302 Revert:
303 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
304
305 * tree.h (struct tree_identifier): Inherit from tree_typed, not
306 tree_common.
307 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
308 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
309 TS_BASE instead of TS_COMMON.
310 * varasm.c (assemble_name): Remove assert.
311
312 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
313
314 * config.gcc: Keep obselete list sorted.
315
316 2011-05-30 Jakub Jelinek <jakub@redhat.com>
317 Eric Botcazou <ebotcazou@adacore.com>
318
319 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
320 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
321 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
322 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
323 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
324
325 2011-05-30 Richard Guenther <rguenther@suse.de>
326
327 * gimple.c (gimple_types_compatible_p_1): Compare record
328 and union type members properly.
329
330 2011-05-30 Richard Guenther <rguenther@suse.de>
331
332 PR tree-optimization/49210
333 * ipa-split.c (split_function): Care for the case where the call
334 result is not trivially convertible to the result holding variable.
335
336 2011-05-30 Richard Guenther <rguenther@suse.de>
337
338 PR tree-optimization/49218
339 * tree-vrp.c (adjust_range_with_scev): Properly check whether
340 overflow occured.
341
342 2011-05-30 Richard Guenther <rguenther@suse.de>
343
344 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
345 New function split out from ...
346 (forward_propagate_into_gimple_cond): ... here. Adjust.
347 (forward_propagate_into_cond): Likewise.
348 (forward_propagate_comparison): Also propagate into
349 comparisons on assignment RHS. Change return value to
350 behave similar to forward_propagate_into_cond.
351 (tree_ssa_forward_propagate_single_use_vars): Handle
352 strict-overflow warnings properly for forward_propagate_comparison.
353
354 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
355
356 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
357 from plugin linker.
358 * configure: Regenerate.
359
360 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
361
362 PR tree-optimization/49199
363 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
364 non-reduction operands are either defined in the loop or by induction.
365
366 2011-05-29 Xinliang David Li <davidxl@google.com>
367
368 * opts-global.c (handle_common_deferred_options): Handle new options.
369 * passes.c (register_one_dump_file): Call register_pass_name.
370 (execute_one_pass): Check explicit enable/disable flag.
371 (passr_hash): New function.
372 (passr_eq): Ditto.
373 (register_pass_name): Ditto.
374 (get_pass_by_name): Ditto.
375 (pass_hash): Ditto.
376 (pass_eq): Ditto.
377 (enable_pass): Ditto.
378 (disable_pass): Ditto.
379 (is_pass_explicitly_enabled_or_disabled): Ditto.
380
381 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
382
383 * config/i386/i386.md (*movoi_internal_avx): Use
384 standard_sse_constant_opcode for alternative 0.
385 (*movti_internal_sse): Ditto.
386 (*movti_internal_rex64): Use standard_sse_constant_opcode for
387 alternative 2.
388 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
389 sselog1 type moves.
390 (*movsi_internal): Ditto.
391 (*movdi_internal): Ditto. Add ssecvt type moves.
392
393 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
394
395 PR target/48830
396 * rtlanal.c (simplify_subreg_regno): Adjust comment.
397
398 2011-05-29 Jakub Jelinek <jakub@redhat.com>
399
400 PR rtl-optimization/49095
401 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
402 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
403
404 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
405
406 PR target/43995
407 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
408 recurse_p argument. Only follow register copies if it is set,
409 and prevent mips_find_pic_call_symbol from recursing.
410 (mips_find_pic_call_symbol): Add a recurse_p argument.
411 Pass it to mips_pic_call_symbol_from_set.
412 (mips_annotate_pic_calls): Update accordingly.
413
414 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
415
416 * emit-rtl.c (try_split): Use a loop to search for
417 NOTE_INSN_CALL_ARG_LOCATIONs.
418
419 2011-05-29 Richard Guenther <rguenther@suse.de>
420
421 PR tree-optimization/49217
422 * ipa-pure-const.c (propagate_pure_const): Fix typos.
423
424 2011-05-28 Jan Hubicka <jh@suse.cz>
425
426 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
427 length.
428 (string_slot_free): Remove
429 (create_output_block): Initialize obstack.
430 (destroy_output_block): Free obstack.
431 (lto_string_index): Add PERSISTENT parameter; do not duplicate
432 the string unless it needs to be added into the hash.
433 (lto_output_string_with_length): Add persistent attribute;
434 handle NULL strings.
435 (lto_output_string): Add PERSISTENT parameter.
436 (output_string_cst, output_identifier): Simplify.
437 (lto_output_location_bitpack): Update.
438 (lto_output_builtin_tree): Update.
439 * lto-streamer.h (struct output_block): Add obstack.
440 (lto_output_string, lto_output_string_with_length): Remove
441 declarations; functions are static now.
442
443 2011-05-28 Jan Hubicka <jh@suse.cz>
444
445 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
446 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
447 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
448 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
449 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
450 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
451 unpack_ts_decl_with_vis_value_fields,
452 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
453 lto_get_builtin_tree): Use enum and variable length i/o.
454 * basic-block.h (profile_status_d): Add PROFILE_LAST.
455 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
456 New functions.
457 (bp_pack_enum, bp_unpack_enum): New macros.
458
459 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
460
461 * genrecog.c: Remove redundant forward declarations.
462
463 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
464
465 * config.gcc: Deprecate mips*-*-openbsd*.
466
467 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
468
469 PR bootstrap/49195
470 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
471 for match_op_dup.
472
473 2011-05-27 Andrew Pinski <pinskia@gmail.com>
474
475 PR middle-end/48981
476 * gengtype.c (vec_prefix_type): New function.
477 (note_def_vec): Use vec_prefix_type and change the length
478 attribute to be based on the prefix.
479 * vec.c: Include coretypes.h before vec.h.
480 (struct vec_prefix): Remove.
481 (vec_gc_p_reserve): Change the offsetof to sizeof.
482 (vec_gc_p_reserve_exact): Likewise.
483 (vec_heap_p_reserve): Likewise.
484 (vec_heap_p_reserve_exact): Likewise.
485 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
486 (vec_stack_p_reserve): Change the offsetof to sizeof.
487 (vec_stack_p_reserve_exact): Likewise.
488 * vec.h (struct vec_prefix): New struct definition.
489 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
490 (VEC_T_GTY(T,B)): Likewise.
491 (DEF_VEC_FUNC_P(T)): Use prefix field.
492 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
493 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
494
495 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
496
497 PR tree-optimization/46728
498 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
499 (powi_as_mults): Add gimple_set_location.
500 (build_and_insert_call): New.
501 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
502 0.5, 0.25, 0.75, 1./3., or 1./6.
503
504 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
505
506 * doc/contrib.texi: Update copyright years.
507 (Contributors): Add Zdenek Sojka.
508
509 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
510
511 * c-decl.c (c_push_function_context): Copy the current statement
512 list stack.
513 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
514 (finish_struct): Call building_stmt_list_p instead of checking
515 cur_stmt_list.
516 * c-parser.c (c_parser_postfix_expression): Likewise.
517 * c-typeck.c (c_end_compound_stmt): Likewise.
518 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
519 * tree-iterator.c (stmt_list_cache): Change to a VEC.
520 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
521 (free_stmt_list): Likewise.
522 * tree.h (struct tree_statement_list): Include typed_tree instead
523 of tree_common.
524 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
525 as TS_TYPED instead of TS_COMMON.
526
527 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
528 Uros Bizjak <ubizjak@gmail.com>
529
530 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
531 (HAVE_AS_IX86_TLSGDPTL): Define.
532 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
533 (HAVE_AS_IX86_TLSLDMPLT): Define.
534 * configure: Regenerate.
535 * config.in: Regenerate.
536 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
537 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
538 TARGET_SUN_TLS, use @tlsgdplt or @plt.
539 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
540 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
541 @tlsldmplt or @plt.
542 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
543
544 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
545
546 * sched-int.h (struct _haifa_deps_insn_data): New members cond
547 and reverse_cond.
548 (INSN_COND, INSN_REVERSE_COND): New macros.
549 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
550 once.
551 (sched_get_condition_with_rev): Cache the results, and look them up
552 if possible.
553 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
554 are clobbered by the current insn.
555 * target.def (exposed_pipline): New sched data hook.
556 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
557 * doc/tm.texi: Regenerate.
558
559 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
560
561 PR tree-optimization/49170
562 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
563 sincos or cexp.
564
565 2011-05-27 Richard Guenther <rguenther@suse.de>
566
567 PR middle-end/49189
568 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
569 of comparisons.
570
571 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
572
573 * haifa-sched.c (sched_scan_info): Remove.
574 (schedule_block): Call sched_extend_luids rather than sched_init_luids
575 with NULL args.
576 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
577 Remove functions.
578 (sched_scan): Remove.
579 (sched_extend_luids): Renamed from luids_extend_insn and no longer
580 static. All callers changed.
581 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
582 static. All callers changed.
583 (sched_init_luids): Remove all arguments except the first. All
584 callers changed. Don't use sched_scan.
585 (haifa_init_h_i_d): Likewise.
586 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
587 manually rather than using sched_init_luids. Likewise with
588 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
589 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
590 rather than sched_init_luids with NULL args.
591 * sel-sched-ir.c (new_insns): Remove variable.
592 (sched_scan): New static function, previously in haifa-sched.c. Remove
593 all arguments but the first two; all callers changed.
594 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
595 rather than sched_init_luids.
596 (sel_init_bbs): Remove second argument. All callers changed.
597 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
598 with NULL arguments.
599 (create_insn_rtx_from_pattern): Likewise.
600 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
601 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
602 (sched_init_insn_luid, sched_extend_luids): Declare.
603 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
604 declarations.
605
606 2011-05-27 Richard Guenther <rguenther@suse.de>
607
608 PR middle-end/49177
609 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
610 A CMP B ? (T) true : (T) false for non-integral types T again.
611
612 2011-05-27 Jan Hubicka <jh@suse.cz>
613
614 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
615 so 0 means NULL string.
616 (lto_output_string_with_length): ... here.
617 (lto_output_string, output_string_cst, output_identifier): Update
618 handling of NULL strings.
619 (lto_output_location_bitpack): New function.
620 (lto_output_location): Use it.
621 (lto_output_tree_ref): Use output_record_start.
622 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
623 len values.
624 * lto-streamer-in.c (string_for_index): Break out from ...; offset
625 values by 1.
626 (input_string_internal): ... here;
627 (input_string_cst, input_identifier, lto_input_string): Update handling
628 of NULL strings.
629 (lto_input_location_bitpack): New function
630 (lto_input_location): Use it.
631 (unpack_ts_type_common_value_fields): Pack align & alias in var len
632 values.
633 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
634 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
635 (bp_pack_value): Sanity check the value range.
636 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
637 New functions.
638 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
639 New functions.
640
641 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
642
643 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
644 call_arg_location instructions down the floor.
645
646 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
647
648 PR rtl-optimization/49154
649 * ira.c (setup_pressure_classes): Process class without sublcasses
650 as a candidate for pressure classes.
651
652 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
653
654 PR rtl-optimization/48575
655 * genrecog.c (position_type): New enum.
656 (position): New structure.
657 (decision): Use position structure instead of a string.
658 (root_pos, peep2_insn_pos_list): New variables.
659 (next_position, compare_positions): New functions.
660 (new_decision): Use position structures instead of strings.
661 (maybe_both_true): Likewise.
662 (change_state): Likewise.
663 (write_tree): Likewise.
664 (make_insn_sequence): Likewise.
665
666 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
667
668 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
669 TS_BASE instead of TS_COMMON.
670 (find_decls_types_r): Check for TS_TYPED structure before looking at
671 TREE_TYPE.
672 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
673 Add chain field.
674 (BLOCK_CHAIN): Use new chain field.
675
676 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
677
678 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
679 moves expensive on Power7 also.
680
681 2011-05-26 Richard Guenther <rguenther@suse.de>
682
683 * fold-const.c (fold_unary_loc): Remove bogus code.
684
685 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
686
687 * tree.h (struct tree_identifier): Inherit from tree_typed, not
688 tree_common.
689 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
690 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
691 TS_BASE instead of TS_COMMON.
692 * varasm.c (assemble_name): Remove assert.
693
694 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
695
696 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
697 substituted first.
698 * libgcc-std.ver: Delete file.
699
700 2011-05-26 Richard Guenther <rguenther@suse.de>
701
702 PR tree-optimization/48702
703 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
704 only when we know the base address is within bounds.
705 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
706 assume the base address of TARGET_MEM_REFs is in bounds.
707
708 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
709
710 PR target/49099
711 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
712 declaration in TARGET_SOLARIS.
713
714 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
715
716 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
717 The instruction is then expanded explicitly.
718 (supported_compare): Callable instruction.
719 (compare): Likewise.
720
721 2011-05-26 Jakub Jelinek <jakub@redhat.com>
722
723 PR c++/49165
724 * gimplify.c (shortcut_cond_r): Don't special case
725 COND_EXPRs if they have void type on one of their arms.
726
727 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
728
729 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
730 to reduce duplication, and to achieve a slightly more logical order
731 of operations.
732
733 2011-05-26 Jakub Jelinek <jakub@redhat.com>
734
735 PR tree-optimization/49161
736 * tree-vrp.c (struct case_info): New type.
737 (compare_case_labels): Sort case_info structs instead of
738 trees, and not primarily by CASE_LABEL uids but by
739 label_for_block indexes.
740 (find_switch_asserts): Put case labels into struct case_info
741 array instead of TREE_VEC, adjust sorting, compare label_for_block
742 values instead of CASE_LABELs.
743
744 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
745
746 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
747 ("orndi3_neon"): Likewise.
748 ("bic<mode>3_neon"): Likewise.
749
750 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
751
752 PR tree-optimization/49038
753 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
754 Ensure at least one epilogue iteration if required by data
755 accesses with gaps.
756 * tree-vectorizer.h (struct _loop_vec_info): Add new field
757 to mark loops that require peeling for gaps.
758 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
759 (vect_get_known_peeling_cost): Take peeling for gaps into
760 account.
761 (vect_transform_loop): Generate epilogue if required by data
762 access with gaps.
763 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
764 loop as requiring an epilogue if there are gaps in the end of
765 the strided group.
766
767 2011-05-25 Ian Lance Taylor <iant@google.com>
768
769 * godump.c (go_format_type): Output the first field with a usable
770 Go type, if any.
771
772 2011-05-25 Ian Lance Taylor <iant@google.com>
773
774 * godump.c (go_format_type): Check for invalid type names, pointer
775 target types, and struct field types.
776
777 2011-05-25 Jason Merrill <jason@redhat.com>
778
779 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
780
781 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
782
783 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
784
785 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
786
787 * config/i386/i386.md (*movqi_extv_1)): Put back
788 "register_operand" check in "type" calculation.
789 (*movqi_extzv_2): Likewise.
790
791 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
792
793 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
794
795 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
796
797 PR bootstrap/49160
798 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
799 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
800 __divxc3, __divtc3): Wrap definitions in #ifndef.
801
802 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
803
804 PR target/49142
805 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
806 "register_operand" check and replace q_regs_operand with
807 QIreg_operand in "type" calculation.
808 (*movqi_extv_1): Likewise.
809 (*movqi_extzv_2_rex64): Likewise.
810 (*movqi_extzv_2): Likewise.
811
812 * config/i386/predicates.md (QIreg_operand): New.
813
814 2011-05-25 Richard Guenther <rguenther@suse.de>
815
816 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
817 type-based offset disambiguation, streamline MEM_REF and
818 TARGET_MEM_REF handling.
819
820 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
821
822 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
823 (bdesc_special_args): Add pause intrinsic.
824
825 * config/i386/i386.md (UNSPEC_PAUSE): New.
826 (pause): Likewise.
827 (*pause): Likewise.
828 * config/i386/ia32intrin.h (__pause): Likewise.
829
830 * doc/extend.texi (X86 Built-in Functions): Add documentation for
831 pause intrinsic.
832
833 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
834
835 PR tree-optimization/46728
836 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
837 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
838
839 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
840
841 * tree.h (struct tree_exp): Inherit from struct tree_typed.
842 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
843 instead of TS_COMMON.
844
845 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
846
847 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
848 LIBGCC2_GNU_PREFIX is defined.
849 (__N): New macro.
850 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
851 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
852 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
853 __clz_tab): Define using __N.
854 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
855 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
856 * target.def (libfunc_gnu_prefix): New hook.
857 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
858 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
859 * doc/tm.texi: Regenerate.
860 * system.h (LIBGCC2_GNU_PREFIX): Poison.
861 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
862 account.
863 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
864 (init_optabs): Likewise for the bswap libfuncs.
865 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
866 and divide.
867 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
868 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
869 * libgcc-std.ver: Remove.
870 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
871 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
872 libgcc-std.ver.
873 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
874 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
875 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
876 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
877 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
878 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
879 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
880 * config/fixed-bit.h (FIXED_OP): Define differently depending on
881 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
882 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
883
884 2011-05-25 Jan Hubicka <jh@suse.cz>
885
886 * lto-streamer-out.c (output_record_start): Use lto_output_enum
887 (lto_output_tree): Use output_record_start.
888 * lto-streamer-in.c (input_record_start): Use lto_input_enum
889 (lto_get_pickled_tree): Use input_record_start.
890 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
891 (lto_value_range_error): New function.
892 * lto-streamer.h (lto_value_range_error): Declare.
893 (lto_output_int_in_range, lto_input_int_in_range): New functions.
894 (lto_output_enum, lto_input_enum): New macros.
895
896 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
897
898 * common.opt (flag_stack_usage_info): New variable.
899 (-Wstack-usage): New option.
900 * doc/invoke.texi (Warning options): Document -Wstack-usage.
901 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
902 <OPT_fstack_usage>: Likewise.
903 * toplev.c (output_stack_usage): Handle -Wstack-usage.
904 * calls.c (expand_call): Test flag_stack_usage_info variable instead
905 of flag_stack_usage.
906 (emit_library_call_value_1): Likewise.
907 * explow.c (allocate_dynamic_stack_space): Likewise.
908 * function.c (instantiate_virtual_regs ): Likewise.
909 (prepare_function_start): Likewise.
910 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
911 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
912 * config/arm/arm.c (arm_expand_prologue): Likewise.
913 (thumb1_expand_prologue): Likewise.
914 * config/avr/avr.c (expand_prologue): Likewise.
915 * config/i386/i386.c (ix86_expand_prologue): Likewise.
916 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
917 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
918 * config/mips/mips.c (mips_expand_prologue): Likewise.
919 * config/pa/pa.c (hppa_expand_prologue): Likewise.
920 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
921 * config/s390/s390.c (s390_emit_prologue): Likewise.
922 * config/sh/sh.c (sh_expand_prologue): Likewise.
923 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
924 * config/spu/spu.c (spu_expand_prologue): Likewise.
925
926 2011-05-25 Richard Guenther <rguenther@suse.de>
927
928 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
929 (gimple_canonical_types_compatible_p): Likewise.
930
931 2011-05-25 Jan Hubicka <jh@suse.cz>
932
933 PR middle-end/49062
934 * ipa.c (function_and_variable_visibility): Only add to same
935 comdat group list if DECL_ONE_ONLY.
936
937 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
938
939 PR rtl-optimization/49014
940 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
941
942 2011-05-25 Jakub Jelinek <jakub@redhat.com>
943
944 PR target/49128
945 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
946
947 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
948
949 PR rtl-optimization/48757
950 * ira-build.c (loop_with_eh_edge_p): Rename to
951 loop_with_complex_edge_p, check edges on complexity, make function
952 conditional.
953 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
954 conditional.
955
956 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
957
958 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
959 force flag_ira_share_save_slots to 0.
960
961 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
962
963 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
964 (vt_initialize): Set PROLOGUE_BB unconditionally.
965 Add block comment about CFA_BASE_RTX machinery.
966 Reset FP_CFA_OFFSET to -1 on all invalid paths.
967 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
968
969 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
970
971 PR objc/48187
972 * c-parser.c (c_parser_objc_class_instance_variables): More robust
973 parsing of syntax error in ObjC instance variable lists. In
974 particular, avoid an infinite loop if there is a stray ']'.
975 Updated error message.
976
977 2011-05-24 Ian Lance Taylor <iant@google.com>
978
979 * godump.c (go_define): Don't accept a string immediately after
980 another operand.
981
982 2011-05-24 Ian Lance Taylor <iant@google.com>
983
984 * godump.c (struct godump_container): Add invalid_hash field.
985 (go_format_type): Return false if type is found in invalid_hash.
986 (go_output_typedef): Add invalid type to invalid_hash.
987 (go_finish): Create and delete invalid_hash.
988
989 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
990
991 PR tree-optimization/46728
992 * tree-ssa-math-opts.c (powi_table): New.
993 (powi_lookup_cost): New.
994 (powi_cost): New.
995 (powi_as_mults_1): New.
996 (powi_as_mults): New.
997 (gimple_expand_builtin_powi): New.
998 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
999 (gate_cse_sincos): Remove sincos/cexp restriction.
1000
1001 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1002
1003 PR target/3746
1004 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1005 mips-tdump native.
1006 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1007 * mips-tdump.c: Likewise.
1008
1009 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1010
1011 PR target/49128
1012 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1013 add -mno-XXX. Handle FMA.
1014
1015 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1016
1017 PR rtl-optimization/48633
1018 * ira-build.c (loop_with_eh_edge_p): New function.
1019 (mark_loops_for_removal): Use it.
1020
1021 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1022
1023 PR rtl-optimization/48971
1024 * ira.c (setup_pressure_classes): Don't check register move cost
1025 for classes with one registers. Don't add pressure class if there
1026 is a pressure class with the same available hard registers.
1027 Check contains_reg_of_mode. Fix a typo in collecting
1028 temp_hard_regset. Ignore hard registers not belonging to a class.
1029
1030 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1031
1032 PR target/49133
1033 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1034
1035 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1036 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1037
1038 PR gcov-profile/48845
1039 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1040
1041 2011-05-24 Richard Guenther <rguenther@suse.de>
1042
1043 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1044 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1045 (gimple_types_compatible_p_1): Adjust.
1046 (iterative_hash_canonical_type): Do not bother about complete vs.
1047 incomplete types.
1048 (gimple_canonical_types_compatible_p): Likewise.
1049
1050 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1051
1052 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1053
1054 2011-05-24 Richard Guenther <rguenther@suse.de>
1055
1056 PR bootstrap/49078
1057 * gimple.c (gimple_register_canonical_type): Revert
1058 previous change.
1059 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1060 does not for a tree for the case where it matters. Cache
1061 pointer-type alias-sets.
1062
1063 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1064
1065 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1066 (OBJS): Remove options.o, opts-common.o and prefix.o.
1067 (OBJS-libcommon-target): New.
1068 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1069 (BACKEND): Include libcommon-target.a.
1070 (MOSTLYCLEANFILES): Include libcommon-target.a.
1071 (libcommon-target.a): New.
1072 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1073 prefix.o.
1074
1075 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1076
1077 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1078 parts of output shared with the driver.
1079 * optc-gen.awk: Don't generate parts of output not shared with the
1080 driver.
1081 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1082 * doc/options.texi (SourcerInclude): Mention options-save.c.
1083 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1084 (OBJS): Add options-save.o.
1085 (options-save.c, options-save.o): New.
1086 (options.o): Update dependencies.
1087 (gcc-options.o): Remove.
1088 (mostlyclean): Remove options-save.c.
1089
1090 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1091
1092 PR debug/49032
1093 * dbxout.c: Include cgraph.h.
1094 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1095 and without value expr, return NULL if no varpool node exists for
1096 it or if it is not needed.
1097 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1098
1099 PR c/49120
1100 * c-decl.c (start_decl): Convert expr to void_type_node.
1101
1102 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1103
1104 PR rtl-optimization/48826
1105 * emit-rtl.c (try_split): When splitting a call that is followed
1106 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1107
1108 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1109
1110 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1111 parameters passed in memory prefer using DECL_INCOMING_RTL over
1112 the pseudos it will be copied into.
1113
1114 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 PR target/47315
1117 * config/i386/i386.c (ix86_option_override_internal): Save the
1118 initial options after checking vzeroupper.
1119
1120 2011-05-23 David Li <davidxl@google.com>
1121
1122 PR tree-optimization/48988
1123 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1124 Initialize has_valid_pred for each pred chain.
1125
1126 2011-05-23 Richard Guenther <rguenther@suse.de>
1127
1128 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1129 (iterative_hash_gimple_type): Always hash type names.
1130
1131 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1132
1133 * c-typeck.c (build_function_call_vec): Tweak call to
1134 check_function_arguments.
1135
1136 2011-05-23 Richard Guenther <rguenther@suse.de>
1137
1138 PR tree-optimization/49115
1139 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1140 is not necessarily carried out, do not claim it kills the ref.
1141 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1142
1143 2011-05-23 Richard Guenther <rguenther@suse.de>
1144
1145 PR middle-end/15419
1146 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1147 what pointer types we accept for folding.
1148
1149 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1150
1151 * gthr-gnat.c: Remove.
1152 * gthr-gnat.h: Remove.
1153 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1154 * config/t-freebsd (LIB2ADDEH): Likewise.
1155 * config/t-linux (LIB2ADDEH): Likewise.
1156 * config/t-sol2 (LIB2ADDEH): Likewise.
1157 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1158 * configure.ac (target_thread_file): Remove gnat handling.
1159 * configure: Regenerate.
1160 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1161
1162 2011-05-23 Tristan Gingold <gingold@adacore.com>
1163 Eric Botcazou <ebotcazou@adacore.com>
1164
1165 * gcov.c (create_file_names): If no object directory is specified,
1166 keep the directory of the file.
1167
1168 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169
1170 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1171 * configure: Regenerate.
1172
1173 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1174
1175 PR middle-end/48973
1176 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1177 failed and the comparison has a single bit signed type, use
1178 constm1_rtx instead of const1_rtx for true value.
1179 (do_store_flag): If ops->type is single bit signed type, disable
1180 signel bit test optimization and pass -1 instead of 1 as last
1181 parameter to emit_store_flag_force.
1182
1183 2011-05-23 Tom de Vries <tom@codesourcery.com>
1184
1185 PR target/45098
1186 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1187 function.
1188 (infer_loop_bounds_from_undefined): Use new function.
1189
1190 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1191
1192 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1193 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1194 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1195 and -O0 otherwise.
1196 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1197
1198 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1199
1200 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1201 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1202 returns true.
1203
1204 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1205
1206 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1207
1208 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1209
1210 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1211 UNSPEC_MOVE_PIC pattern.
1212
1213 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1214
1215 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1216 (sparc-*-rtems*): Likewise.
1217 (sparc64-*-elf*): Likewise.
1218 (sparc64-*-rtems*): Likewise.
1219 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1220 * config/sparc/t-crtin: New file.
1221 * config/sparc/t-sol2 (crti.o): Delete rule.
1222 (crtn.o): Likewise.
1223 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1224 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1225 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1226 (ENDFILE_SPEC): Add crtn.o.
1227
1228 2011-05-22 Tom de Vries <tom@codesourcery.com>
1229
1230 PR middle-end/48689
1231 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1232 CODE_CONTAINS_STRUCT (TS_COMMON).
1233
1234 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1235
1236 PR middle-end/49029
1237 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1238 only after deciding which mode to use.
1239
1240 2011-05-22 Tom de Vries <tom@codesourcery.com>
1241
1242 PR target/45098
1243 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1244 for call to get_shiftadd_cost.
1245
1246 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1247
1248 PR target/49104
1249 * config/i386/cpuid.h (bit_MMXEXT): New define.
1250
1251 2011-05-22 Nick Clifton <nickc@redhat.com>
1252
1253 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1254 initialisation of non-existant args[2] element. Use args[] array
1255 not arg[] array to pass arguments to build_function_type_list.
1256
1257 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1258
1259 PR tree-optimization/49087
1260 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1261
1262 2011-05-21 Jason Merrill <jason@redhat.com>
1263
1264 PR c++/49092
1265 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1266 static storage duration.
1267
1268 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1269
1270 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1271 frame pointer.
1272
1273 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1274
1275 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1276 false if there are call-saved registers here...
1277 (sparc_can_use_return_insn_p): ...but here instead.
1278 (save_or_restore_regs): Fix thinko.
1279 (sparc_expand_prologue): Use current_function_is_leaf.
1280 (sparc_frame_pointer_required): Likewise.
1281
1282 2011-05-21 Nick Clifton <nickc@redhat.com>
1283
1284 PR target/49098
1285 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1286
1287 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1288
1289 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1290 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1291
1292 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1293
1294 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1295 * optc-gen.awk: Move common code to opt-read.awk.
1296 * opth-gen.awk: Likewise.
1297 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1298
1299 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1300
1301 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1302
1303 2011-05-20 Tom de Vries <tom@codesourcery.com>
1304
1305 PR target/45098
1306 * tree-ssa-loop-ivopts.c: Include expmed.h.
1307 (get_shiftadd_cost): New function.
1308 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1309
1310 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1311
1312 PR bootstrap/49086
1313 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1314 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1315
1316 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1317
1318 * Makefile.in: Update comment referring to $(OBJS-common).
1319
1320 2011-05-20 Ian Lance Taylor <iant@google.com>
1321
1322 * godump.c (go_output_typedef): Put enum constants in the macro
1323 hash table to avoid duplicate Go const definitions.
1324
1325 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1326
1327 * Makefile.in (LIBDEPS): Add libcommon.a.
1328 (LIBS): Likewise.
1329 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1330 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1331 pretty-print.o and version.o.
1332 (OBJS-libcommon): New.
1333 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1334 (BACKEND): Add libcommon.a.
1335 (MOSTLYCLEANFILES): Likewise.
1336 (libcommon.a): New.
1337 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1338 (cpp$(exeext)): Likewise.
1339 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1340 pretty-print.o and input.o.
1341 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1342 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1343 (errors.o): Remove.
1344 (mips-tfile): Don't explicitly use version.o.
1345 (mips-tdump): Likewise.
1346 (gcov.o): Depend on $(DIAGNOSTIC_H).
1347 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1348 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1349 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1350 * gcov-dump.c: Include intl.h and diagnostic.h.
1351 (main): Initialize diagnostics.
1352 * gcov.c: Include diagnostic.h.
1353 (fnotice): Remove.
1354 (main): Initialize diagnostics.
1355 * lto-wrapper.c: Include diagnostic.h.
1356 (main): Initialize diagnostics.
1357
1358 2011-05-20 Michael Matz <matz@suse.de>
1359
1360 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1361
1362 2011-05-20 Michael Matz <matz@suse.de>
1363 Richard Guenther <rguenther@suse.de>
1364
1365 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1366 use lto_streamer_cache_append directly instead of returning a VEC.
1367 (preload_common_node): Remove.
1368 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1369 track seen nodes.
1370 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1371
1372 2011-05-20 Richard Guenther <rguenther@suse.de>
1373
1374 PR tree-optimization/49079
1375 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1376 MEM_REFs correctly for the trailing array access detection.
1377 Special case constants the same way as decls for overall size
1378 constraining.
1379
1380 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1381
1382 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1383 argument expansion.
1384
1385 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1386
1387 PR tree-optimization/49073
1388 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1389 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1390 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1391
1392 2011-05-20 Richard Guenther <rguenther@suse.de>
1393
1394 PR middle-end/48849
1395 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1396 of pointer types the same way the middle-end does.
1397
1398 2011-05-20 Richard Guenther <rguenther@suse.de>
1399
1400 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1401 or pointer-to chains. Delay all fixup to uniquify_nodes.
1402
1403 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1404
1405 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1406 (fma4_fmaddsub): Likewise
1407
1408 2011-05-19 Jan Hubicka <jh@suse.cz>
1409
1410 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1411 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1412 (type_pair_cache): New static var.
1413 (lookup_type_pair): Use fixed sized custom hash; make inline.
1414 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1415 calls of lookup_type_pair.
1416 (print_gimple_types_stats): Remove cache stats.
1417 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1418 and gtc_ob.
1419
1420 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1421
1422 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1423 when TARGET_RDRND is active.
1424 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1425 Generate dummy SImode target register when target is NULL.
1426
1427 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1428
1429 * config/arm/arm-fpus.def: New.
1430 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1431 arm-fpus.def.
1432 * config/arm/arm-tables.opt: Regenerate.
1433 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1434 (arm_option_override): Don't decode FPU name to string here.
1435 * config/arm/arm.opt (mfpu=): Use Enum.
1436 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1437 Update dependencies.
1438
1439 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1440
1441 * collect2.c: Include diagnostic.h.
1442 (fatal_perror, fatal, error, fancy_abort): Remove.
1443 (main): Set progname. Call xmalloc_set_program_name and
1444 diagnostic_initialize.
1445 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1446 scan_libraries, resolve_lib_name): Call fatal_error instead of
1447 fatal and fatal_perror.
1448 * collect2.h (error, fatal, fatal_perror): Don't declare.
1449 * tlink.c: Include diagnostic-core.h.
1450 (recompile_files): Call fatal_error instead of fatal_perror.
1451 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1452 pretty-print.o and input.o.
1453 (collect2.o, tlink.o): Update dependencies.
1454
1455 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1456
1457 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1458
1459 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1460
1461 PR target/40483
1462 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1463 COMDAT group syntax, both SPARC and x86 variants.
1464 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1465 * configure: Regenerate.
1466 * config/sol2.h (TARGET_SOLARIS): Define.
1467 (PUSHSECTION_FORMAT): Remove.
1468 (SECTION_NAME_FORMAT): Define.
1469 * config/sol2.c: Include hashtab.h.
1470 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1471 expansion, using SECTION_NAME_FORMAT.
1472 (solaris_comdat_htab): New variable.
1473 (struct comdat_entry): Define.
1474 (comdat_hash): New function.
1475 (comdat_eq): New function.
1476 (solaris_elf_asm_comdat_section): New function.
1477 (solaris_define_comdat_signature): New function.
1478 (solaris_code_end): New function.
1479 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1480 (solaris_code_end): Declare.
1481 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1482 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1483 solaris_code_end.
1484 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1485 Remove ATTRIBUTE_UNUSED.
1486 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1487 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1488 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1489 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1490 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1491 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1492 (PUSHSECTION_FORMAT): Remove.
1493 (SECTION_NAME_FORMAT): Redefine.
1494
1495 2011-05-19 Kai Tietz <ktietz@redhat.com>
1496
1497 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1498 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1499 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1500
1501 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1502 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1503
1504 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1505
1506 2011-05-19 Richard Guenther <rguenther@suse.de>
1507
1508 PR middle-end/48985
1509 * tree-object-size.c (addr_object_size): If the pointed-to
1510 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1511
1512 2011-05-19 Richard Guenther <rguenther@suse.de>
1513
1514 * gimple.c (gimple_types_compatible_p_1): Compare names of
1515 the types themselves.
1516 (iterative_hash_gimple_type): And hash them that way.
1517 (gimple_register_type_1): If we register a main variant properly
1518 initialize the leader to ourselves.
1519
1520 2011-05-19 Tom de Vries <tom@codesourcery.com>
1521
1522 PR target/45098
1523 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1524 get_loop_invariant_expr_id.
1525 (get_loop_invariant_expr_id): Use get_expr_id.
1526 (parm_decl_cost): New function.
1527 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1528 Improve bound cost estimation. Use different inv_expr_id for elim and
1529 express cases.
1530
1531 2011-05-19 Tom de Vries <tom@codesourcery.com>
1532
1533 PR target/45098
1534 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1535 cost_base.cost == 0.
1536
1537 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1538
1539 PR target/49002
1540 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1541 Properly handle load cast.
1542
1543 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1544
1545 PR tree-optimization/49039
1546 * tree-vrp.c (extract_range_from_binary_expr): For
1547 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1548 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1549
1550 2011-05-18 Tom de Vries <tom@codesourcery.com>
1551
1552 PR target/45098
1553 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1554
1555 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1556
1557 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1558 (*tls_global_dynamic_64): Ditto.
1559 (*tls_local_dynamic_base_32_gnu): Ditto.
1560 (*tls_local_dynamic_base_64): Ditto.
1561 (tls_initial_exec_64_sun): Ditto.
1562
1563 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1564
1565 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1566 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1567 bf592-none.
1568 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1569 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1570 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1571 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1572 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1573 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1574 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1575
1576 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1577
1578 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1579 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1580 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1581 target_thread_pointer, arm_structure_size_boundary, struct
1582 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1583 struct abi_name, arm_all_abis): Remove.
1584 (arm_option_override) Don't process most enumerated option values here.
1585 Don't process target_fpe_name here. Work with integer not string for
1586 structure size boundary; use separate diagnostics for each case.
1587 * config/arm/arm.h (enum float_abi_type, enum
1588 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1589 to arm-opts.h.
1590 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1591 arm_structure_size_boundary): Remove.
1592 * config/arm/arm.opt (mabi=): Use Enum and Init.
1593 (arm_abi_type): New Enum and EnumValue entries.
1594 (mfloat-abi=): Use Enum and Init.
1595 (float_abi_type): New Enum and EnumValue entries.
1596 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1597 (mfp16-format=): Use Enum and Init.
1598 (arm_fp16_format_type): New Enum and EnumValue entries.
1599 (mstructure-size-boundary=): Use UInteger and Init.
1600 (mtp=): Use Enum and Init.
1601 (arm_tp_type): New Enum and EnumValue entries.
1602
1603 2011-05-18 Richard Guenther <rguenther@suse.de>
1604
1605 PR tree-optimization/49018
1606 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1607 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1608 gimple_has_side_effects.
1609
1610 2011-05-18 Richard Guenther <rguenther@suse.de>
1611
1612 * gimple.c (gimple_register_type_1): New function, split out from ...
1613 (gimple_register_type): ... here. Avoid infinite recursion.
1614
1615 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1616
1617 PR tree-optimization/41881
1618 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1619 reduction_chains along with a macro for its access.
1620 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1621 (destroy_loop_vec_info): Free reduction chains.
1622 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1623 (vect_is_slp_reduction): New function.
1624 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1625 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1626 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1627 definition types for reduction chains.
1628 (vect_supported_load_permutation_p): Don't allow permutations for
1629 reduction chains.
1630 (vect_analyze_slp_instance): Support reduction chains.
1631 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1632 (vect_get_constant_vectors): Handle reduction chains.
1633 (vect_schedule_slp_instance): Mark the first statement of the
1634 reduction chain as reduction.
1635
1636 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1637
1638 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1639 names for group elements access.
1640 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1641 reduction chains as well. Remove data reference and interleaving
1642 related words from the fields names.
1643 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1644 elements access.
1645 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1646 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1647 vect_update_interleaving_chain, vect_same_range_drs,
1648 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1649 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1650 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1651 vect_analyze_group_access, vect_analyze_data_ref_access,
1652 vect_create_data_ref_ptr, vect_transform_strided_load,
1653 vect_record_strided_load_vectors): Likewise.
1654 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1655 vect_model_load_cost, vectorizable_store, vectorizable_load,
1656 vect_remove_stores, new_stmt_vec_info): Likewise.
1657 * tree-vect-slp.c (vect_build_slp_tree,
1658 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1659
1660 2011-05-18 Richard Guenther <rguenther@suse.de>
1661
1662 PR middle-end/48989
1663 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1664 operand verification.
1665 (verify_gimple_assign_binary): Likewise.
1666 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1667 to non-1-precision BOOLEAN_TYPEs.
1668
1669 2011-05-18 Tom de Vries <tom@codesourcery.com>
1670
1671 PR target/45098
1672 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1673
1674 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1675
1676 PR tree-optimization/49000
1677 * tree-ssa.c (execute_update_addresses_taken): Call
1678 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1679 be rewritten and decl has been marked for renaming, reset
1680 the debug stmt.
1681
1682 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1683
1684 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1685 enum_opts_set when testing if attributes have set -mfpmath=.
1686
1687 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1688
1689 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1690
1691 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1692
1693 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1694 info->entry with 0
1695 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1696 id.transform_lang_insert_block with NULL.
1697
1698 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1699
1700 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1701 (output_fp_compare): Change args 3 and 4 to bool.
1702 (ix86_expand_call): Change arg 6 to bool.
1703 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1704 (ix86_attr_length_vex_default): Change arg 3 to bool.
1705 * config/i386/i386.md: Update all uses.
1706 * config/i386/i386.c: Ditto.
1707 (ix86_flags_dependent): Change return type to bool.
1708
1709 2011-05-17 Richard Guenther <rguenther@suse.de>
1710
1711 * gimple.c (type_hash_pair_compare): Fix comparison.
1712
1713 2011-05-17 Richard Guenther <rguenther@suse.de>
1714
1715 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1716 case some more, fix final hash value of the non-singleton case.
1717
1718 2011-05-17 Richard Guenther <rguenther@suse.de>
1719
1720 PR bootstrap/49013
1721 Revert
1722 2011-05-16 Richard Guenther <rguenther@suse.de>
1723
1724 * gimple.c (gimple_types_compatible_p_1): Use names of the
1725 type itself, not its main variant.
1726 (iterative_hash_gimple_type): Likewise.
1727
1728 2011-05-17 Richard Guenther <rguenther@suse.de>
1729
1730 * gimple.c (gimple_register_canonical_type): Use the main-variant
1731 leader for computing the canonical type.
1732
1733 2011-05-17 Nick Clifton <nickc@redhat.com>
1734
1735 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1736 moves.
1737
1738 * config/rx/rx.md: Add peephole to remove redundant extensions
1739 after loads.
1740 (bitset_in_memory): Use rx_restricted_mem_operand.
1741 (bitinvert_in_memory): Likewise.
1742 (bitclr_in_memory): Likewise.
1743
1744 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1745 Nick Clifton <nickc@redhat.com>
1746
1747 * config/rx/rx.md: Add peepholes to match a register move followed
1748 by a comparison of the moved register. Replace these with an
1749 addition of zero that does both actions in one instruction.
1750
1751 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1752
1753 PR target/48986
1754 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1755 predicate to allow CONST_INT.
1756 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1757
1758 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1759
1760 * opts-common.c (opt_enum_arg_to_value): New.
1761 * opts.h (opt_enum_arg_to_value): Declare.
1762 * config/i386/i386.opt (fpmath): Remove.
1763 (mfpmath=): Use Enum, Init and Save.
1764 (fpmath_unit): New Enum and EnumValue entries.
1765 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1766 name for function fpmath state.
1767 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1768 * config/i386/i386.c: Include diagnostic.h.
1769 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1770 (ix86_target_string): Take enum fpmath_unit value instead of string.
1771 (ix86_debug_options): Update call to ix86_target_string.
1772 (ix86_option_override_internal): Don't process fpmath strings here.
1773 (x86_function_specific_save, ix86_function_specific_restore):
1774 Don't handle fpmath state specially.
1775 (ix86_function_specific_print): Pass fpmath state to
1776 ix86_target_string instead of printing in this function.
1777 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1778 Handle enum attributes.
1779 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1780 (ix86_valid_target_attribute_tree): Update option_strings
1781 handling. Handle fpmath as enum option.
1782 (ix86_can_inline_p): Update field names for function fpmath state.
1783 (ix86_expand_builtin): Update call to ix86_target_string.
1784 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1785 (ix86_fpmath): Remove.
1786 * config/i386/t-i386 (i386.o): Update dependencies.
1787
1788 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1789
1790 PR preprocessor/48677
1791 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1792 from decoded_options[0], not from itself.
1793
1794 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1795
1796 * config/i386/constraints.md (z): New constraint.
1797 * config/i386/i386.c (c): New mode attribute.
1798 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1799 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1800 constraint for operand 0.
1801 (*call_vzeroupper): Ditto.
1802 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1803 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1804 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1805 Use "lzm" constraint for operand 0.
1806 (*call_pop_vzeroupper): Ditto.
1807 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1808 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1809 constraint for operand 0.
1810 (*sibcall_vzeroupper): Ditto.
1811 (*sibcall_rex64_ms_sysv): Ditto.
1812 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1813 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1814 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1815 (*sibcall_pop_vzeroupper): Ditto.
1816 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1817 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1818 mode iterator. Use "<c>zm" constraint for operand 1.
1819 (*call_value_vzeroupper): Ditto.
1820 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1821 for operand 1.
1822 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1823 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1824 *call_value_pop_1. Use "lzm" constraint for operand 1.
1825 (*call_value_pop_vzeroupper): Ditto.
1826 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1827 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1828 mode iterator. Use "Uz" constraint for operand 1.
1829 (*sibcall_value_vzeroupper): Ditto.
1830 (*sibcall_value_rex64_ms_sysv): Ditto.
1831 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1832 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1833 constraint for operand 1.
1834 (*sibcall_value_pop_vzeroupper): Ditto.
1835 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1836 and "z" constraint for operand 2.
1837 (*tls_global_dynamic_32_gnu): Ditto.
1838 (*tls_local_dynamic_base_32_gnu): Ditto.
1839 (*tls_local_dynamic_base_64): Ditto.
1840 (*tls_local_dynamic_32_once): Ditto.
1841 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1842 Update all callers.
1843 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1844
1845 2011-05-16 Richard Guenther <rguenther@suse.de>
1846
1847 * gimple.c (gimple_types_compatible_p_1): Use names of the
1848 type itself, not its main variant.
1849 (iterative_hash_gimple_type): Likewise.
1850
1851 2011-05-16 Richard Guenther <rguenther@suse.de>
1852
1853 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1854 always visit pointer target and function result and argument types.
1855
1856 2011-05-16 Jason Merrill <jason@redhat.com>
1857
1858 PR c++/48999
1859 * tree-inline.c (copy_statement_list): Put back recursion.
1860
1861 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1862
1863 PR target/27663
1864 PR target/41076
1865 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1866 * config/avr/avr.md ("*ior<mode>qi.byte0",
1867 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1868
1869 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1870
1871 PR target/45099
1872 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1873 register is needed for a function argument.
1874
1875 2011-05-16 Richard Guenther <rguenther@suse.de>
1876
1877 * gimple.c (struct type_hash_pair): New type.
1878 (type_hash_pair_compare): New function.
1879 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1880
1881 2011-05-16 Revital Eres <revital.eres@linaro.org>
1882
1883 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1884
1885 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1886
1887 * config/i386/i386.md (floating point move splitters): Fix
1888 usage of standard_80387_constant_p.
1889 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1890
1891 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1892
1893 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1894
1895 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1896
1897 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1898 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1899 (tree_ssa_lim_finalize): Likewise.
1900
1901 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1902
1903 * config/i386/constraint.md (Yd, Yx): New register constraints.
1904 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1905 Yd conditional register constraint.
1906 (*movtf_internal): Use standard_sse_constant_opcode.
1907 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1908 Yx conditional register constraint.
1909 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1910 Yd conditional register constraint. Use standard_sse_constant_p to
1911 check for valid SSE constants and call standard_sse_constant_opcode to
1912 output SSE insn.
1913 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1914 constants and call standard_sse_constant_opcode to output SSE insn.
1915 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1916 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1917 optimize_size is set.
1918 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1919
1920 2011-05-14 Tobias Burnus <burnus@net-b.de>
1921
1922 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1923
1924 2011-05-13 Martin Jambor <mjambor@suse.cz>
1925
1926 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1927 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1928 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1929 (evaluate_conditions_for_ipcp_clone): Removed.
1930 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1931 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1932 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1933
1934 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1935
1936 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1937 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1938 lieu of MAY_HAVE_DEBUG_STMTS.
1939 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1940 debug statements if !MAY_HAVE_DEBUG_STMTS.
1941
1942 2011-05-13 Martin Thuresson <martint@google.com>
1943
1944 PR gcov-profile/47793
1945 * libgcov.c (gcov_exit): Support relative profile paths.
1946 * doc/invoke.texi (-fprofile-dir): Update for above change.
1947
1948 2011-05-13 Richard Guenther <rguenther@suse.de>
1949
1950 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1951 type-pair caching, do not compare hashes.
1952
1953 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1954
1955 PR middle-end/48965
1956 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1957 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1958
1959 2011-05-13 Kai Tietz <ktietz@redhat.com>
1960
1961 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1962 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1963 compatible type for TRUTH_NOT_EXPR.
1964
1965 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1966
1967 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1968 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1969 can_create_pseudo_p ().
1970
1971 2011-05-13 Richard Guenther <rguenther@suse.de>
1972
1973 PR lto/48978
1974 * gimple.c (iterative_hash_gimple_type): Revert change in
1975 pointer target and function result and argument hashing.
1976
1977 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1978
1979 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1980 (*movxf_internal_nointeger): Ditto.
1981 (*movdf_internal_rex64): Ditto.
1982 (*movdf_internal): Ditto.
1983 (*movdf_internal_nointeger): Ditto.
1984 (*movsf_internal): Ditto.
1985 (sincos splitters): Use can_create_pseudo ().
1986
1987 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1988
1989 * config/i386/i386-opts.h: New.
1990 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1991 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1992 ix86_section_threshold): Remove.
1993 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1994 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1995 OPT_mbranch_cost_.
1996 (ix86_option_override_internal): Don't decode strings for options
1997 other than -march=, -mtune= and -mfpmath=. Don't allow for
1998 __attribute__ uses in remaining diagnostics for options with
1999 string arguments. Don't check for integer arguments being negative.
2000 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2001 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2002 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2003 ix86_branch_cost, ix86_section_threshold): Remove.
2004 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2005 HeaderInclude.
2006 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2007 but not Var.
2008 (masm=): Use Enum and Init.
2009 (asm_dialect): New Enum and EnumValue entries.
2010 (mbranch-cost=): Use UInteger.
2011 (mlarge-data-threshold=): Use UInteger and Init.
2012 (mcmodel=): Use Enum and Init.
2013 (cmodel): New Enum and EnumValue entries.
2014 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2015 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2016 mregparm=): Use UInteger.
2017 (mstringop-strategy=): Use Enum and Init.
2018 (stringop_alg): New Enum and EnumValue entries.
2019 (mtls-dialect=): Use Enum and Init.
2020 (tls_dialect): New Enum and EnumValue entries.
2021 (mabi=): Use Enum and Init.
2022 (calling_abi): New Enum and EnumValue entries.
2023 (mveclibabi=): Use Enum and Init.
2024 (ix86_veclibabi): New Enum and EnumValue entries.
2025
2026 2011-05-13 Nick Clifton <nickc@redhat.com>
2027
2028 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2029 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2030
2031 2011-05-13 Kai Tietz <ktietz@redhat.com>
2032
2033 PR middle-end/48984
2034 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2035 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2036 (gimple_boolify): Check for cast for boolean_type_node instead for
2037 BOOLEAN_TYPE.
2038
2039 2011-05-13 Richard Guenther <rguenther@suse.de>
2040
2041 PR tree-optimization/48172
2042 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2043 multiplying by number of iterations for equal step.
2044 (vect_create_cond_for_alias_checks): Likewise.
2045
2046 2011-05-13 Andreas Schwab <schwab@redhat.com>
2047
2048 * configure.ac: Use AS_HELP_STRING throughout.
2049 * configure: Regenerate.
2050
2051 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2052
2053 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2054 (ix86_emit_restore_regs_using_mov): Likewise.
2055 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2056
2057 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2058
2059 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2060 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2061 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2062 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2063 RTX_OK_FOR_OLO10_P): ...here.
2064 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2065 SYMBOLIC_CONST.
2066
2067 2011-05-12 Kai Tietz <ktietz@redhat.com>
2068
2069 * gimplify.c (gimple_boolify): Re-boolify expression
2070 arguments even if expression type is of kind BOOLEAN_TYPE.
2071 (gimplify_boolean_expr): Removed.
2072 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2073 and XOR. Additional take care that we keep expression's type.
2074 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2075 of TRUTH_AND|OR|XOR_EXPR.
2076
2077 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2078
2079 PR tree-optimization/48975
2080 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2081 on all bbs here and free and clear ifc_bbs at the end.
2082
2083 2011-05-12 Richard Guenther <rguenther@suse.de>
2084
2085 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2086 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2087 until after simple checks.
2088 (gimple_types_compatible_p): Likewise.
2089 (iterative_hash_gimple_type): Always hash pointer targets
2090 and function return and argument types.
2091 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2092 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2093 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2094 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2095 completely in the simple compare section.
2096 (gimple_register_canonical_type): Query the cache again after
2097 registering.
2098
2099 2011-05-12 Richard Guenther <rguenther@suse.de>
2100
2101 PR tree-optimization/48172
2102 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2103 the number of iterations from the segment size calculation.
2104 (vect_create_cond_for_alias_checks): Adjust.
2105
2106 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR debug/48967
2109 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2110 if validate_subreg fails.
2111
2112 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2113
2114 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2115 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2116 early.
2117
2118 2011-05-12 DJ Delorie <dj@redhat.com>
2119
2120 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2121 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2122 created builtin into rx_builtins array.
2123 (rx_builtin_decl): New function.
2124 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2125
2126 2011-05-12 DJ Delorie <dj@redhat.com>
2127 Nick Clifton <nickc@redhat.com>
2128
2129 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2130 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2131 (rx_is_legitimate_address): Add pre-decrement and post-increment
2132 addressing in HImode and QImode. Fix test for out of range
2133 REG+INT addressing.
2134 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2135 (rx_align_for_label): Test label before extracting its usage count.
2136 (rx_adjust_insn_lengths): Fix selection of insn codes.
2137 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2138
2139 2011-05-11 Jason Merrill <jason@redhat.com>
2140
2141 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2142
2143 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2144
2145 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2146 reindent the subsequent block.
2147
2148 2011-05-11 Satoru Takabayashi <satorux@google.com>
2149 Paul Pluzhnikov <ppluzhnikov@google.com>
2150
2151 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2152 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2153 * config.in: Add LINKER_HASH_STYLE.
2154 * configure.ac: Add --with-linker-hash-style.
2155 * configure: Regenerate.
2156
2157 2011-05-11 Richard Guenther <rguenther@suse.de>
2158
2159 PR middle-end/48964
2160 * gimple.c (iterative_hash_canonical_type): Fix typo.
2161
2162 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2163
2164 * config/i386/i386.c (legitimize_tls_address)
2165 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2166 expanders directly for TARGET_GNU2_TLS. Determine pic and
2167 __tls_get_addr symbol reference here. Update call to
2168 gen_tls_global_dynamic_{32,64} for added arguments.
2169 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2170 expanders directly for TARGET_GNU2_TLS. Determine
2171 __tls_get_addr symbol reference here. Update call to
2172 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2173 unique UNSPEC REG_EQUIV to libcall block.
2174 (ix86_tls_get_addr): Declare static.
2175 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2176 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2177 Do not determine pic and __tls_get_addr symbol reference here. Do not
2178 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2179 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2180 (tls_global_dynamic_64): Add operand 2. Do not determine
2181 __tls_get_addr symbol reference here. Do not call
2182 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2183 (tls_local_dynamic_base64): Ditto for operand 1.
2184
2185 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2186
2187 * function.c (expand_function_start): Initialize stack_check_probe_note
2188 only if the generic stack checking mechanism is used.
2189
2190 2011-05-11 Richard Guenther <rguenther@suse.de>
2191
2192 PR tree-optimization/15256
2193 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2194 (A & B) | C, combine (A op CST1) op CST2.
2195 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2196 visit assigns that have uses.
2197
2198 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2199
2200 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2201 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2202 (unpack_ts_type_common_value_fields): ...this. Update comment.
2203 (unpack_value_fields): Adjust for renaming.
2204 (lto_input_ts_type_tree_pointers): Split into...
2205 (lto_input_ts_type_common_tree_pointer): ...this and...
2206 (lto_input_ts_type_non_common_tree_pointers): ...this.
2207 (lto_input_tree_pointers): Adjust for above split.
2208 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2209 (pack_ts_type_common_value_fields): ...this. Update comment.
2210 (lto_output_ts_type_tree_pointers): Split into...
2211 (lto_output_ts_type_common_tree_pointers): ...this and...
2212 (lto_output_ts_type_non_common_tree_pointers): ...this.
2213 (lto_output_tree_pointers): Adjust for above split.
2214 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2215 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2216 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2217 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2218 Define.
2219 (struct tree_type): Split into...
2220 (struct tree_type_common: ...this and...
2221 (struct tree_type_with_lang_specific): ...this and...
2222 (struct tree_type_non_common): ...this. Adjust accessor macros
2223 accordingly.
2224 (TYPE_VALUES_RAW): Define.
2225 (union tree_node): Update for above changes.
2226 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2227 TS_TYPE_NON_COMMON.
2228 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2229 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2230 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2231 * treestructu.def (TS_TYPE): Remove.
2232 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2233 Define.
2234
2235 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2236
2237 PR debug/48159
2238 * tree-ssa.c (reset_debug_uses): New function.
2239 * tree-flow.h (reset_debug_uses): New prototype.
2240 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2241 * tree-loop-distribution.c (generate_loops_for_partition): Call
2242 reset_debug_uses on the stmts that will be removed. Keep around
2243 all debug stmts, don't count them as bits in partition bitmap.
2244 (generate_builtin): Don't count debug stmts or labels as bits in
2245 partition bitmap.
2246
2247 2011-05-11 Richard Guenther <rguenther@suse.de>
2248
2249 * gimple.c (gimple_type_hash_1): Merge with ...
2250 (gimple_type_hash): ... this.
2251 (gtc_visit): Remove mode parameter and simplify accordingly.
2252 (gimple_types_compatible_p_1): Likewise.
2253 (gimple_types_compatible_p): Likewise.
2254 (iterative_hash_gimple_type): Likewise.
2255 (visit): Likewise.
2256 (gimple_type_eq): Adjust.
2257
2258 2011-05-11 Revital Eres <revital.eres@linaro.org>
2259
2260 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2261 enters the branch create an anti edge in the opposite direction
2262 to prevent the creation of reg-moves.
2263 * modulo-sched.c: Adjust comment to reflect the fact we are
2264 scheduling closing branch.
2265 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2266 (stage_count): New field in struct partial_schedule.
2267 (calculate_stage_count): New function.
2268 (normalize_sched_times): Rename to reset_sched_times and handle
2269 incrementing the sched time of the nodes by a constant value
2270 passed as parameter.
2271 (duplicate_insns_of_cycles): Skip closing branch.
2272 (sms_schedule_by_order): Schedule closing branch.
2273 (ps_insn_find_column): Handle closing branch.
2274 (sms_schedule): Call reset_sched_times and adjust the code to
2275 support scheduling of the closing branch.
2276 (ps_insert_empty_row): Update calls to normalize_sched_times
2277 and rotate_partial_schedule functions.
2278
2279 2011-05-11 Richard Guenther <rguenther@suse.de>
2280
2281 PR middle-end/48953
2282 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2283
2284 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2285
2286 * opts.c (finish_options): Move warning settings from process_options.
2287 * toplev.c (process_options): Move warning settings to finish_options.
2288
2289 2011-05-11 Richard Guenther <rguenther@suse.de>
2290
2291 PR tree-optimization/18041
2292 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2293 (simplify_bitwise_binary): ... this. Handle operand conversions
2294 by applying them to the result instead.
2295 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2296
2297 2011-05-11 Richard Guenther <rguenther@suse.de>
2298
2299 * gimple.c (gimple_canonical_types_compatible_p): Split out
2300 from gimple_types_compatible_p and friends. Do not recurse
2301 to pointed-to types.
2302 (gimple_canonical_type_eq): Use it.
2303 (iterative_hash_canonical_type): Split out from
2304 iterative_hash_gimple_type and friends. Do not recurse
2305 to pointed-to types.
2306 (gimple_canonical_type_hash): Use it, allocate the hash here.
2307
2308 2011-05-11 Revital Eres <revital.eres@linaro.org>
2309
2310 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2311 recognizing doloop.
2312
2313 2011-05-11 Revital Eres <revital.eres@linaro.org>
2314
2315 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2316 instead of PREV_INSN.
2317
2318 2011-05-11 Revital Eres <revital.eres@linaro.org>
2319
2320 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2321 * loop-doloop.c (doloop_condition_get): Likewise.
2322 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2323 (doloop_end): New.
2324 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2325
2326 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2327
2328 * tree.def (CASE_LABEL_EXPR): Add an operand.
2329 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2330
2331 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2332
2333 * c-decl.c (c_override_global_bindings_to_false): Remove.
2334 (global_bindings_p): Don't check
2335 c_override_global_bindings_to_false.
2336 * c-tree.h (c_override_global_bindings_to_false): Remove.
2337 * c-typeck.c (composite_type): Don't set
2338 c_override_global_bindings_to_false.
2339
2340 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2341
2342 PR target/48857, 48495
2343 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2344 (VSX_MODE): Ditto.
2345 (VSX_MOVE_MODE): Ditto.
2346 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2347 VSX vector types. Add V2DImode.
2348 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2349 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2350 (MODES_TIEABLE_P): Ditto.
2351
2352 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2353 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2354 VSX_VECTOR_MODE.
2355 (init_cumulative_args): Ditto.
2356 (rs6000_function_arg_boundary): Ditto.
2357 (rs6000_function_arg_advance_1): Ditto.
2358 (rs6000_function_arg): Ditto.
2359 (rs6000_function_ok_for_sibcall): Ditto.
2360 (emit_frame_save): Ditto.
2361 (rs6000_function_value): Ditto.
2362 (rs6000_libcall_value): Ditto.
2363
2364 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2365
2366 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2367 i386/darwin-lib.h to $libgcc_tm_file.
2368 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2369
2370 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2371
2372 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2373
2374 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2375
2376 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2377 * config/rs6000/rs6000-tables.opt: New file (generated).
2378 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2379 rs6000/rs6000-tables.opt to extra_options.
2380 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2381 * config/rs6000/rs6000.c (rs6000_select): Remove.
2382 (processor_target_table): Move contents to rs6000-cpus.def.
2383 (darwin_rs6000_override_options): Check
2384 global_options_set.x_rs6000_cpu_index instead of
2385 rs6000_select[1].string.
2386 (rs6000_option_override_internal): Likewise.
2387 (rs6000_handle_option): Don't assert that global structures are in
2388 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2389 (rs6000_default_cpu): New variable.
2390 (rs6000_file_start): Set it instead of local default_cpu. Check
2391 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2392 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2393 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2394 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2395 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2396 rs6000_select): Remove.
2397 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2398 Remove.
2399 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2400 * config/rs6000/t-rs6000
2401 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2402 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2403 global_options_set.x_rs6000_cpu_index instead of
2404 rs6000_select[1].string.
2405 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2406 global_options_set.x_rs6000_cpu_index instead of
2407 rs6000_select[1].string.
2408
2409 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2410
2411 * config.gcc (libgcc_tm_file): Define instead of including files
2412 from ../../libgcc/config/ in tm_file.
2413 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2414 * configure: Regenerate.
2415 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2416 libgcc_tm.h, cs-libgcc_tm.h): New.
2417 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2418 (clean): Remove libgcc_tm.h.
2419 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2420 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2421 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2422
2423 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2424
2425 PR target/48896
2426 * config/avr/avr.c (avr_ret_register): Return unsigned int
2427 instead of int.
2428 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2429 it to avr_libcall_value.
2430 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2431 expand_expr.
2432 (avr_expand_binop_builtin): Ditto.
2433 (avr_expand_unop_builtin): Ditto.
2434
2435 2011-05-10 DJ Delorie <dj@redhat.com>
2436
2437 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2438 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2439 * config/rx/rx.c (rx_align_for_label): Add label and
2440 uses_threshold parameters. Do not align when the label is not
2441 used enough.
2442 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2443
2444 2011-05-10 Richard Guenther <rguenther@suse.de>
2445
2446 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2447 a series of conversions and apply foldings similar to what
2448 fold-const does.
2449 (tree_ssa_forward_propagate_single_use_vars): Call it.
2450
2451 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2452
2453 PR tree-optimization/48611
2454 PR tree-optimization/48794
2455 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2456 referenced from RESX or EH_DISPATCH arguments.
2457
2458 PR debug/48928
2459 * dfp.c (decimal_to_decnumber): Handle conversion from
2460 dconst{1,2,m1,half}.
2461
2462 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2463
2464 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2465 for !flag_prefer_avx128.
2466 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2467
2468 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2469
2470 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2471 (fold_ternary_loc): Use expr_location_or.
2472
2473 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2474
2475 PR debug/48853
2476 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2477 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2478 Pmode and mem_mode is not VOIDmode.
2479
2480 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2481
2482 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2483 TYPE_QUAL_RESTRICT): Convert to enum.
2484
2485 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2486
2487 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2488 (const_pow2_1_to_8_operand): Ditto.
2489 (const_pow2_1_to_128_operand): Ditto.
2490 (const_pow2_1_to_32768_operand): Ditto.
2491 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2492 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2493 in insn constraint to check integer value of operand 3.
2494 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2495
2496 (PINSR_MODE): New mode iterator.
2497 (sse2p4_1): New mode attribute.
2498 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2499 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2500 iterator. Use const_int_operand instead of
2501 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2502 exact_log2 in insn constraint to check integer value of operand 3.
2503
2504 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2505
2506 * config/i386/sse.md (blendbits): Remove mode attribute.
2507 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2508 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2509 Check integer value of operand 3 in insn constraint.
2510
2511 2011-05-09 Richard Guenther <rguenther@suse.de>
2512
2513 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2514 for diagnostics.
2515 (lto_symtab_merge): Likewise. Do not register types here.
2516 (lto_symtab_merge_decls_2): Likewise.
2517 (lto_symtab_merge_decls_1): Likewise.
2518 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2519 * gimple.c (enum gtc_mode): Declare.
2520 (gimple_types_compatible_p): Make static.
2521
2522 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2523
2524 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2525 temporary register to match Pmode.
2526
2527 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2528
2529 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2530 and *vec_concatv4si_1_avx.
2531
2532 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2533
2534 PR rtl-optimization/48927
2535 * ira-conflicts.c (commutative_constraint_p): Use
2536 recog_data.alternative_enabled_p to disable alternatives where
2537 "enabled" attribute is false.
2538 (get_dup_num): Ditto.
2539 * ira-lives.c (single_reg_class): Ditto.
2540 (ira_implicitly_set_insn_hard_regs): Ditto.
2541
2542 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2543
2544 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2545 (dataflow_set_preserve_mem_locs): Likewise.
2546
2547 2011-05-09 Philipp Thomas <pth@suse.de>
2548
2549 * config/mep/mep.c (mep_validate_vliw): Syntax description
2550 should not be translated.
2551
2552 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2553
2554 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2555 * config/mips/mips-tables.opt: New file (generated).
2556 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2557 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2558 MIPS_ARCH_OPTION_NATIVE): Define.
2559 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2560 mips-cpus.def.
2561 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2562 mips_parse_cpu): Remove.
2563 (mips_cpu_info_from_opt, mips_default_arch): New.
2564 (mips_handle_option): Don't assert that global structures are in
2565 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2566 (mips_option_override): Use new variables and functions to set
2567 state of these options. Use strcmp to check for individual CPU names.
2568 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2569 definition.
2570 * config/mips/mips.opt (march=): Use ToLower and Enum.
2571 (mips): Use ToLower, Enum and Var.
2572 (mtune=): Use ToLower and Enum.
2573 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2574
2575 2011-05-08 Jan Hubicka <jh@suse.cz>
2576
2577 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2578 Arrange type pairs to be UID ordered.
2579 (gimple_lookup_type_leader): Make inline.
2580
2581 2011-05-09 Nick Clifton <nickc@redhat.com>
2582
2583 PR target/48899
2584 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2585 PROCESSOR_DEFAULT.
2586
2587 PR target/48897
2588 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2589 variable 's'.
2590
2591 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2592
2593 * combine.c (simplify_comparison): Abstract out parts into...
2594 (simplify_compare_const): ... new function.
2595 (try_combine): Generalize parallel arithmetic/compare combining
2596 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2597
2598 2011-05-08 Jan Hubicka <jh@suse.cz>
2599
2600 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2601 (cgraph_create_virtual_clone): Call hooks once virtual clone
2602 is finished.
2603 * cgraph.h (cgraph_clone_node): Update prototype.
2604 * ipa-cp.c (ipcp_estimate_growth): Use
2605 estimate_ipcp_clone_size_and_time.
2606 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2607 * lto-cgraph.c (input_node): Update.
2608 * ipa-inline.c (recursive_inlining): Update.
2609 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2610 (evaluate_conditions_for_known_args): Break out from ...
2611 (evaluate_conditions_for_edge): ... here.
2612 (evaluate_conditions_for_ipcp_clone): New function.
2613 (inline_node_duplication_hook): Update clone summary based
2614 on parameter map.
2615 (estimate_callee_size_and_time): Rename to ...
2616 (estimate_node_size_and_time): take NODE instead of EDGE;
2617 take POSSIBLE_TRUTHS as argument.
2618 (estimate_callee_size_and_time): Update.
2619 (estimate_ipcp_clone_size_and_time): New function.
2620 (do_estimate_edge_time): Update.
2621
2622 2011-05-08 Richard Guenther <rguenther@suse.de>
2623
2624 PR middle-end/48908
2625 PR middle-end/48905
2626 * expmed.c (expand_shift_1): Compute adjusted constant shift
2627 amount manually.
2628
2629 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2630
2631 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2632
2633 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2634
2635 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2636
2637 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2638
2639 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2640
2641 2011-05-07 Jan Hubicka <jh@suse.cz>
2642
2643 * ipa-inline-transform.c (inline_call): Account when program size
2644 decreases.
2645 * ipa-inline.c (relative_time_benefit): New function.
2646 (edge_badness): Reorganize to be power 2 based; fix thinko when
2647 computing badness for negative growth; update comments to match
2648 reality; better dumps.
2649
2650 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2651
2652 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2653 type to bool and adjust comment.
2654 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2655 (fold_mathfn_compare): Remove calls to global_bindings_p.
2656 (fold_inf_compare): Likewise.
2657 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2658 * c-tree.h (global_bindings_p): Adjust prototype.
2659 * c-decl.c (global_bindings_p): Return bool and simplify.
2660
2661 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2662
2663 PR tree-optimization/48837
2664 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2665 when accumulator transformation is performed.
2666
2667 2011-05-06 Jan Hubicka <jh@suse.cz>
2668
2669 * i386.h (ix86_tune_indices): Add
2670 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2671 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2672 * i386.c (initial_ix86_tune_features): Add
2673 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2674 (software_prefetching_beneficial_p): Remove predicate.
2675 (ix86_option_override_internal): Use new macro.
2676
2677 2011-05-06 Jan Hubicka <jh@suse.cz>
2678
2679 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2680
2681 2011-05-06 Jan Hubicka <jh@suse.cz>
2682
2683 * cgraph.c (cgraph_add_thunk): Create real function node instead
2684 of alias node; finalize it and mark needed/reachale; arrange visibility
2685 to be right and add it into the corresponding same comdat group list.
2686 (dump_cgraph_node): Dump thunks.
2687 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2688 cgraph_function_with_gimple_body_p,
2689 cgraph_first_function_with_gimple_body,
2690 cgraph_next_function_with_gimple_body): New functions.
2691 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2692 New macros.
2693 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2694 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2695 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2696 devirtualization when optimizing.
2697 (verify_cgraph_node): Verify thunks.
2698 (cgraph_analyze_function): Analyze thunks.
2699 (cgraph_mark_functions_to_output): Output thunks only in combination
2700 with function they are assigned to.
2701 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2702 alias into normal node.
2703 (assemble_thunks): New functoin.
2704 (cgraph_expand_function): Use it.
2705 * lto-cgraph.c (lto_output_node): Stream thunks.
2706 (input_overwrite_node): Stream in thunks.
2707 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2708 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2709 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2710 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2711 (inline_analyze_function): Do not care about thunk jump functions.
2712 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2713 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2714 cgraph_function_with_gimple_body_p.
2715 * passes.c (do_per_function_toporder): Use
2716 cgraph_function_with_gimple_body_p.
2717 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2718 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2719 (function_called_by_processed_nodes_p): Likewise.
2720
2721 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2722
2723 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2724 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2725 entries.
2726 (mabi=): Replace with separate entries for mabi=altivec,
2727 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2728 mabi=ieeelongdouble and mabi=ibmlongdouble.
2729 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2730 check for -mabi=spe without SPE ABI support here.
2731 (rs6000_handle_option): Replace OPT_mabi_ handling with
2732 OPT_mabi_altivec and OPT_mabi_spe handling.
2733
2734 2011-05-06 Cary Coutant <ccoutant@google.com>
2735
2736 * dwarf2out.c (contains_subprogram_definition): New function.
2737 (should_move_die_to_comdat): Call it.
2738
2739 2011-05-06 Jeff Law <law@redhat.com>
2740
2741 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2742 remove_ctrl_stmt_and_useless_edges.
2743 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2744 (fixup_template_block, thread_single_edge): Likewise.
2745 (mark_threaded_blocks): Use THREAD_TARGET.
2746
2747 2011-05-06 Alan Modra <amodra@gmail.com>
2748
2749 PR target/48900
2750 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2751 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2752
2753 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2754
2755 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2756 constraint modifier to "r".
2757
2758 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2759
2760 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2761 fall through for OPT_mcmodel_.
2762
2763 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2764
2765 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2766 instruction sizes.
2767 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2768
2769 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2770
2771 PR target/47930
2772 * config/arm/arm.opt (marm): Document it.
2773 (mthumb): Reject negative variant.
2774
2775 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2776
2777 PR target/48898
2778 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2779 Fix typo in "ccvt" variable name.
2780
2781 2011-05-06 Tristan Gingold <gingold@adacore.com>
2782
2783 PR target/48895
2784 * config/vms/vms-ar.c (main): Remove cwd variable.
2785
2786 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2787
2788 PR debug/48902
2789 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2790
2791 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2792
2793 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2794 * gimplify.c (gimplify_switch_expr): Likewise.
2795 * omp-low.c (expand_omp_sections): Likewise.
2796 * tree-eh.c (lower_try_finally_switch): Likewise.
2797 (lower_eh_dispatch): Likewise.
2798 * tree.h (build_case_label): Declare.
2799 * tree.c (build_case_label): Define.
2800
2801 2011-05-05 Jason Merrill <jason@redhat.com>
2802
2803 PR c++/40975
2804 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2805 (copy_statement_list): Don't recurse.
2806 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2807 STATEMENT_LIST.
2808
2809 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2810
2811 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2812 through from -mfpu= handling.
2813 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2814
2815 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2816
2817 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2818 POST_MODIFY.
2819
2820 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2821
2822 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2823 for 11.31.
2824 (hppa[12]*-*-hpux11*): Ditto.
2825 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2826 * config/ia64/hpux-unix2003.h: New.
2827 * config/pa/pa-hpux1131.opt: New.
2828 * config/pa/pa-hpux1131.h: New.
2829 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2830 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2831 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2832
2833 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2834
2835 PR debug/48853
2836 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2837 instead of mode as 3rd argument to recursive call.
2838 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2839 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2840 VOIDmode.
2841 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2842 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2843 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2844 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2845
2846 2011-05-05 Julian Brown <julian@codesourcery.com>
2847
2848 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2849 parenthesis in D-register case.
2850
2851 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2852
2853 * opt-functions.awk (var_type_struct): Handle Enum options.
2854 * optc-gen.awk: Don't check range of variables of character type.
2855 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2856 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2857 rs6000_sdata_name, rs6000_explicit_options): Remove.
2858 (rs6000_option_override_internal): Check for -malign-power here.
2859 Use global_options_set instead of rs6000_explicit_options.
2860 (rs6000_parse_fpu_option): Remove.
2861 (rs6000_handle_option): Access variables via opts and opts_set
2862 pointers. Use error_at and warning_at. Add fall-through
2863 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2864 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2865 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2866 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2867 here. Don't use rs6000_parse_fpu_option.
2868 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2869 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2870 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2871 (mrecip=): Use Var.
2872 (mspe): Use Var and Save.
2873 (mtraceback=): Use Enum and Var.
2874 (rs6000_traceback_type): New Enum and EnumValue entries.
2875 (mfloat-gprs=): Use Enum, Var and Save.
2876 (rs6000_float_gprs): New Enum and EnumValue entries.
2877 (mlong-double-): use Var and Save.
2878 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2879 (malign-): Use Enum and Var.
2880 (rs6000_alignment_flags): New Enum and EnumValue entries.
2881 (mfpu=): Use Enum.
2882 (fpu_type_t): New Enum and EnumValue entries.
2883 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2884 global_options_set instead of rs6000_explicit_options.
2885 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2886 global_options_set instead of rs6000_explicit_options.
2887 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2888 global_options_set instead of rs6000_explicit_options.
2889 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2890 global_options_set instead of rs6000_explicit_options.
2891 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2892 global_options_set instead of rs6000_explicit_options.
2893 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2894 global_options_set instead of rs6000_explicit_options.
2895 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2896 definition.
2897 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2898 global_options_set instead of rs6000_explicit_options.
2899 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2900 (rs6000_cmodel): New Enum and EnumValue entries.
2901 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2902 global_options_set instead of rs6000_explicit_options.
2903 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2904 (mtls-size=): Use Enum and Var.
2905 (rs6000_tls_size): New Enum and EnumValue entries.
2906
2907 2011-05-05 Michael Matz <matz@suse.de>
2908
2909 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2910 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2911 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2912 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2913 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2914 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2915 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2916 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2917 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2918 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2919 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2920 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2921 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2922 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2923 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2924 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2925
2926 2011-05-05 Richard Guenther <rguenther@suse.de>
2927
2928 * expmed.c (expand_variable_shift): Rename to ...
2929 (expand_shift_1): ... this. Take an expanded shift amount.
2930 For rotates recurse directly not building trees for the shift amount.
2931 (expand_variable_shift): Wrap around expand_shift_1.
2932 (expand_shift): Adjust.
2933
2934 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2935
2936 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2937
2938 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2939
2940 * tree.h (get_pending_sizes): Remove prototype.
2941 (put_pending_size): Likewise.
2942 (put_pending_sizes): Likewise.
2943 * stor-layout.c (pending_sizes): Delete.
2944 (get_pending_sizes): Likewise.
2945 (put_pending_size): Likewise.
2946 (put_pending_sizes): Likewise.
2947 (variable_size): Do not call put_pending_size and tidy up.
2948 * function.h (struct function): Remove dont_save_pending_sizes_p.
2949 * lto-streamer-in.c (input_function): Do not stream it.
2950 * lto-streamer-out.c (output_function): Likewise.
2951 * tree-inline.c (initialize_cfun): Do not copy it.
2952 * c-decl.c (store_parm_decls): Do not set it.
2953 * omp-low.c (create_task_copyfn): Likewise.
2954 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2955
2956 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2957
2958 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2959 conditions.
2960 (*movdf_internal): Ditto.
2961 (*movdf_internal_nointeger): Ditto.
2962 (*movsf_internal): Ditto.
2963
2964 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2965
2966 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2967 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2968 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2969 (c_variable_size): Remove.
2970 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2971 call put_pending_sizes.
2972 (get_parm_info): Add parameter expr. Use it to set
2973 arg_info->pending_sizes.
2974 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2975 get_pending_sizes.
2976 * c-parser.c (c_parser_parms_declarator): Update call to
2977 c_parser_parms_list_declarator.
2978 (c_parser_parms_list_declarator): Take parameter expr. Update
2979 call to push_parm_decl. Update recursive call. Don't call
2980 get_pending_sizes. Update calls to get_parm_info.
2981 (c_parser_objc_method_definition): Update calls to
2982 c_parser_objc_method_decl and objc_start_method_definition.
2983 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2984 (c_parser_objc_method_decl): Add parameter expr. Update call to
2985 grokparm.
2986 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2987 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2988 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2989
2990 2011-05-05 Michael Hope <michael.hope@linaro.org>
2991
2992 PR pch/45979
2993 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2994 __ARM_EABI__ hosts.
2995
2996 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2997
2998 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2999 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3000 (spu_output_mi_thunk): New function.
3001
3002 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3003
3004 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3005 targetm.asm_out.print_operand.
3006 * config/sol2.c: Include target.h.
3007
3008 2011-05-04 Jan Hubicka <jh@suse.cz>
3009
3010 * ipa-inline.c (reset_edge_caches): New function.
3011 (update_caller_keys): Add check_inlinablity_for; do not
3012 reset edge caches; remove now unnecesary loop.
3013 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3014 (update_all_callee_keys): Likewise.
3015 (inline_small_functions): Sanity check cache; update code
3016 recomputing it.
3017
3018 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3019
3020 PR rtl-optimization/47612
3021 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3022 as the last insn of the sequence to be moved.
3023
3024 2011-05-04 Tobias Burnus <burnus@net-b.de>
3025
3026 PR fortran/48864
3027 * doc/invoke.texi (Ofast): Document that it
3028 enables Fortran's -fno-protect-parens.
3029
3030 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3031
3032 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3033
3034 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3035
3036 * stor-layout.c (variable_size): Do not issue errors.
3037
3038 2011-05-04 Richard Guenther <rguenther@suse.de>
3039
3040 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3041 for array-ref indices.
3042 (tree_coverage_counter_addr): Likewise.
3043 (build_fn_info_type): Use size_int for index types.
3044 (build_gcov_info): Likewise.
3045
3046 2011-05-04 Richard Guenther <rguenther@suse.de>
3047
3048 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3049 to build_int_cst.
3050 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3051 for constructor indices.
3052 (push_init_level): Likewise.
3053
3054 2011-05-04 Richard Guenther <rguenther@suse.de>
3055
3056 * explow.c (promote_mode): Move variable declarations before code.
3057
3058 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3059
3060 * tree.h (build_function_type_array): Declare.
3061 (build_varargs_function_type_array): Declare.
3062 (build_function_type_vec, build_varargs_function_type_vec): Define.
3063 * tree.c (build_function_type_array_1): New function.
3064 (build_function_type_array): New function.
3065 (build_varargs_function_type_array): New function.
3066
3067 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3068
3069 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3070 before setting STMT_VINFO_TYPE.
3071
3072 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3073
3074 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3075 instead of spu_pass_by_reference.
3076
3077 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3078
3079 * calls.c (emit_library_call_value_1): Invoke
3080 promote_function_mode hook on libcall arguments.
3081 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3082 argument being NULL.
3083 * targhooks.c (default_promote_function_mode): Lisewise.
3084 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3085 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3086
3087 * doc/tm.texi: Document that TYPE argument might be NULL.
3088
3089 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3090
3091 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3092
3093 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3094
3095 From Bernd Schmidt
3096 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3097
3098 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3099
3100 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3101 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3102 Move ...
3103 * mips-tfile.c: ... here.
3104 Don't include coretypes.h, tm.h, filenames.h.
3105 (saber_stop): Remove definition and all calls.
3106 [__SABER__]: Remove.
3107 (__LINE__): Remove default.
3108 (Size_t, Ptrdiff_t): Remove definitions.
3109 Replace by size_t, ptrdiff_t.
3110 [!MIPS_DEBUGGING_INFO]: Remove.
3111 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3112 (progname): Add const.
3113 (STATIC): Remove.
3114 Replace all uses by static.
3115 (ALIGN_SYMTABLE_OFFSET): Remove default.
3116 * mips-tdump.c: Don't include coretypes.h, tm.h.
3117 Remove !MIPS_IS_STAB guard.
3118 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3119 $(TM_H), filenames.h dependencies.
3120 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3121
3122 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3123
3124 From Jie Zhang
3125 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3126 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3127
3128 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3129
3130 From Bernd Schmidt
3131 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3132 account and save/restore RETS.
3133 (PROFILE_BEFORE_PROLOGUE): Define.
3134 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3135 the push insn to use predecrement.
3136
3137 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3138
3139 From Jie Zhang
3140 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3141
3142 2011-05-04 Nick Clifton <nickc@redhat.com>
3143
3144 * config/mn10300/mn10300.c: Include cfgloop.h.
3145 (DUMP): New macro.
3146 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3147 Lcc or a FLcc insn into the instruction stream.
3148 (mn10300_block_contains_call): New function. Returns true if the
3149 given basic block contains a CALL insn.
3150 (mn10300_loop_contains_call_insn): New function. Returns true if
3151 the given loop contains a CALL insn.
3152 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3153 to use the SETLB and Lcc or FLcc insns.
3154 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3155 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3156 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3157 disable the SETLB optimization.
3158 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3159 __SETLB__ or __NO_SETLB__.
3160 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3161 (movsf_internal): Handle MDR register.
3162 (cmpsi): Make visible.
3163 (setlb): New pattern.
3164 (Lcc): New pattern.
3165 (FLcc): New pattern.
3166
3167 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3168
3169 PR target/48860
3170 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3171 for reg<->xmm moves.
3172 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3173 (vec_concatv2di_rex64_sse): Ditto.
3174 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3175 (*vec_extractv2di_1_rex64): Ditto.
3176
3177 Revert:
3178 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3179
3180 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3181 reg<->xmm moves.
3182 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3183
3184 2011-05-04 Richard Guenther <rguenther@suse.de>
3185
3186 * tree.h (int_const_binop): Remove notrunc argument.
3187 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3188 create integer constants that are properly truncated.
3189 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3190 (const_binop): Remove zero notrunc argument to int_const_binop.
3191 (size_binop_loc): Likewise.
3192 (fold_div_compare): Likewise.
3193 (maybe_canonicalize_comparison_1): Likewise.
3194 (fold_comparison): Likewise.
3195 (fold_binary_loc): Likewise.
3196 (multiple_of_p): Likewise.
3197 * expr.c (store_constructor): Likewise.
3198 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3199 (maybe_fold_stmt_addition): Likewise.
3200 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3201 * stor-layout.c (layout_type): Likewise.
3202 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3203 * tree-sra.c (build_ref_for_offset): Likewise.
3204 (build_user_friendly_ref_for_offset): Likewise.
3205 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3206 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3207 * tree-ssa-loop-niter.c (inverse): Likewise.
3208 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3209 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3210 * tree-switch-conversion.c (check_range): Likewise.
3211 (build_constructors): Likewise.
3212 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3213 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3214 (extract_range_from_assert): Likewise.
3215 (vrp_int_const_binop): Likewise.
3216 (extract_range_from_binary_expr): Likewise.
3217 (extract_range_from_unary_expr): Likewise.
3218 (check_array_ref): Likewise.
3219 (find_case_label_range): Likewise.
3220 (simplify_div_or_mod_using_ranges): Likewise.
3221 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3222 comparing case labels for merging.
3223
3224 2011-05-03 Mark Wielaard <mjw@redhat.com>
3225
3226 * dwarf2out.c (debug_str_hash_forced): Removed.
3227 (gen_label_for_indirect_string): Removed.
3228 (get_debug_string_label): Removed.
3229 (AT_string_form): Generate label directly.
3230 (output_indirect_string): Test indirect_string_node for
3231 DW_FORM_strp instead of checking label and refcount.
3232 (prune_indirect_string): Removed.
3233 (prune_unused_types): Don't check debug_str_hash_forced or
3234 call prune_indirect_string.
3235
3236 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3237
3238 PR other/48093
3239 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3240
3241 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3242
3243 PR debug/47994
3244 PR debug/47919
3245 * combine.c (try_combine): Skip debug insns at m_split tests.
3246
3247 2011-04-26 Mark Wielaard <mjw@redhat.com>
3248
3249 PR42288
3250 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3251 when info_section_emitted.
3252
3253 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3254
3255 * config/mips/mips-opts.h: New.
3256 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3257 to mips-opts.h.
3258 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3259 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3260 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3261 via opts pointer.
3262 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3263 mips-opts.h.
3264 (mips_abi, mips_code_readable): Don't declare.
3265 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3266 (mabi=): Use Enum and Var.
3267 (mips_abi): New Enum and EnumValue entries.
3268 (mcode-readable=): Use Enum and Var.
3269 (mips_code_readable_setting): New Enum and EnumValue entries.
3270 (mr10k-cache-barrier=): Use Enum and Var.
3271 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3272
3273 2011-05-03 Jan Hubicka <jh@suse.cz>
3274
3275 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3276 replace hash by pointer map.
3277 (cgraph_node_set_element_def, cgraph_node_set_element,
3278 const_cgraph_node_set_element, varpool_node_set_element_def,
3279 varpool_node_set_element, const_varpool_node_set_element): Remove.
3280 (free_cgraph_node_set, free_varpool_node_set): New function.
3281 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3282 * tree-emutls.c: Free varpool node set.
3283 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3284 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3285 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3286 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3287 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3288 Move here from ipa.c; implement using pointer_map
3289 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3290 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3291 debug_cgraph_node_set, varpool_node_set_new,
3292 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3293 dump_varpool_node_set, debug_varpool_node_set):
3294 Move to ipa-uitls.c.
3295 * passes.c (ipa_write_summaries): Update.
3296
3297 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3298
3299 From Mike Frysinger:
3300 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3301 bf542/bf544/bf547/bf548/bf549.
3302
3303 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3304
3305 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3306
3307 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3308
3309 From Bernd Schmidt:
3310 * config/bfin/bfin.md (MOVCC): New mode_macro.
3311 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3312 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3313 comments from generated assembly.
3314
3315 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3316
3317 From Bernd Schmidt
3318 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3319 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3320 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3321 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3322 * config/bfin/lib1funcs.asm (___muldi3): New function.
3323
3324 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3325
3326 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3327 build_function_type_list instead of build_function_type.
3328 Rearrange initialization of `args' to do so.
3329
3330 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3331
3332 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3333 instead of build_function_type.
3334
3335 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3336
3337 * config/rs6000/rs6000.c (spe_init_builtins): Call
3338 build_function_type_list instead of build_function_type.
3339 (paired_init_builtins, altivec_init_builtins): Likewise.
3340 (builtin_function_type): Likewise.
3341
3342 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3343
3344 * config/sh/sh.c (sh_media_init_builtins): Call
3345 build_function_type_list instead of build_function_type.
3346
3347 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3348
3349 * config/sparc/sparc.c (sparc_file_end): Call
3350 build_function_type_list instead of build_function_type.
3351
3352 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3353
3354 * config/alpha/alpha.c (alpha_init_builtins): Call
3355 build_function_type_list instead of build_function_type.
3356
3357 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3358
3359 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3360 build_function_type_list instead of build_function_type.
3361
3362 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3363
3364 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3365 build_function_type_list instead of build_function_type.
3366 Delete `endlink' variable.
3367
3368 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3369
3370 * config/avr/avr.c (avr_init_builtins): Call
3371 build_function_type_list instead of build_function_type.
3372
3373 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3374
3375 * config/picochip/picochip.c (picochip_init_builtins): Call
3376 build_function_type_list instead of build_function_type.
3377 Delete `endlink' variable.
3378
3379 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3380
3381 * config/bfin/bfin.c (bfin_init_builtins): Call
3382 build_function_type_list instead of build_function_type.
3383
3384 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3385
3386 From Bernd Schmidt
3387 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3388 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3389
3390 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3391
3392 From Jie Zhang:
3393 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3394 libbffastfp overrides libgcc when -mfast-fp.
3395
3396 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3397
3398 Originally from Bernd Schmidt
3399 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3400 * config/bfin/bfin.c (override_options): Test it and error if
3401 TARGET_FDPIC.
3402
3403 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3404
3405 Originally From Bernd Schmidt
3406 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3407 FD-PIC.
3408
3409 2011-05-03 Jeff Law <law@redhat.com>
3410
3411 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3412 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3413 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3414 than accessing AUX field directly. Free the AUX field before
3415 clearing it.
3416 (thread_block, thread_through_loop_header): Likewise.
3417 (thread_single_edge, mark_threaded_blocks): Likewise.
3418 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3419 (register_jump_thread): Do not attempt to thread to a NULL edge.
3420
3421 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3422
3423 * function.c (init_function_start): Call decide_function_section.
3424 * varasm.c (decide_function_section): New function.
3425 (assemble_start_function): When not using
3426 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3427 or first_function_block_is_cold.
3428 * rtl.h (decide_function_section): Declare.
3429
3430 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3431 Jakub Jelinek <jakub@redhat.com>
3432
3433 PR target/48774
3434 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3435 only succeed if req_mode is the same as set_mode.
3436
3437 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3438
3439 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3440 * genemit.c (gen_exp): Handle RETURN.
3441 * emit-rtl.c (verify_rtx_sharing): Likewise.
3442 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3443 * rtl.c (copy_rtx): RETURN is shared.
3444 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3445 (ret_rtx): New.
3446 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3447 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3448 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3449 * config/cris/cris.c (cris_expand_return): Likewise.
3450 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3451 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3452 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3453 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3454 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3455 Likewise.
3456 * config/v850/v850.c (expand_epilogue): Likewise.
3457 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3458 * config/arm/arm.md (epilogue): Likewise.
3459 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3460 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3461 variable to ret_reg.
3462
3463 2011-05-03 Richard Guenther <rguenther@suse.de>
3464
3465 PR lto/48846
3466 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3467 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3468 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3469
3470 2011-05-03 Richard Guenther <rguenther@suse.de>
3471
3472 * c-decl.c (grokdeclarator): Instead of looking at
3473 TREE_OVERFLOW check if the constant fits in the index type.
3474
3475 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3476
3477 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3478 (vec_store_lanes<mode><mode>): Likewise.
3479
3480 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3481
3482 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3483 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3484 convert_optab_index values.
3485 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3486 * genopinit.c (optabs): Initialize the new optabs.
3487 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3488 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3489 (expand_STORE_LANES): New functions.
3490 * tree.h (build_array_type_nelts): Declare.
3491 * tree.c (build_array_type_nelts): New function.
3492 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3493 (vect_model_load_cost): Likewise.
3494 (vect_store_lanes_supported, vect_load_lanes_supported)
3495 (vect_record_strided_load_vectors): Declare.
3496 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3497 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3498 (vect_transform_strided_load): Split out statement recording into...
3499 (vect_record_strided_load_vectors): ...this new function.
3500 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3501 (write_vector_array, create_array_ref): New functions.
3502 (vect_model_store_cost): Add store_lanes_p argument.
3503 (vect_model_load_cost): Add load_lanes_p argument.
3504 (vectorizable_store): Try to use store-lanes functions for
3505 interleaved stores.
3506 (vectorizable_load): Likewise load-lanes and loads.
3507 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3508 to vect_model_store_cost.
3509 (vect_build_slp_tree): Likewise vect_model_load_cost.
3510
3511 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3512
3513 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3514 * hooks.c (hook_bool_mode_uhwi_false): New function.
3515 * target.def (array_mode_supported_p): New hook.
3516 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3517 * doc/tm.texi: Regenerate.
3518 * stor-layout.c (mode_for_array): New function.
3519 (layout_type): Use it.
3520 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3521 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3522
3523 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3524
3525 PR target/48723
3526 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3527 for -fstack-check if the size to allocate is negative.
3528
3529 2011-05-02 Lawrence Crowl <crowl@google.com>
3530
3531 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3532 (timevar_cond_start): New for starting a timer only when it is not
3533 already running.
3534 (timevar_cond_stop): New for stopping a timer when it was not already
3535 running.
3536
3537 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3538 (timevar_cond_start): New as above.
3539 (timevar_cond_stop): New as above.
3540
3541 * timevar.def: Add start/stop timers for compiler phases,
3542 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3543 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3544 and TV_PHASE_FINALIZE.
3545 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3546 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3547 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3548 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3549 Make unused TV_OVERLOAD into a start/stop timer.
3550
3551 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3552 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3553 to indicate that they are start/stop timers.
3554
3555 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3556 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3557 Move initialization to do_compile.
3558 (do_compile): Add initialization from above.
3559 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3560
3561 * c-decl.c (c_write_global_declarations): Add start/stop of
3562 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3563
3564 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3565 or TV_PARSE_INLINE, as appropriate.
3566 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3567 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3568
3569 2011-05-02 Jason Merrill <jason@redhat.com>
3570
3571 PR c++/40975
3572 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3573
3574 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3575
3576 PR c/35445
3577 * c-decl.c (finish_decl): Only create a composite if the types are
3578 compatible.
3579
3580 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3581
3582 * config/fr30/fr30-protos.h (Mmode): Don't define.
3583 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3584 definition where used.
3585 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3586 define. Expand definitions where used.
3587 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3588 Expand definitions where used.
3589 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3590 rx_function_arg, rx_function_arg_advance,
3591 rx_function_arg_boundary): Expand definitions of those macros.
3592 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3593 definition where used.
3594
3595 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3596
3597 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3598 reg<->xmm moves.
3599 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3600 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3601 with *movv2sf_internal_rex64_avx.
3602 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3603 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3604 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3605 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3606 "vex" in "prefix" attribute calculation.
3607 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3608
3609 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3610
3611 PR target/47951
3612 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3613 inputs match the output.
3614
3615 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3616
3617 PR target/47955
3618 * config/m68k/m68k.c (m68k_expand_prologue): Set
3619 current_function_static_stack_size.
3620
3621 2011-05-02 Jan Hubicka <jh@suse.cz>
3622
3623 * lto-streamer.c (lto_streamer_cache_insert_1,
3624 lto_streamer_cache_lookup, lto_streamer_cache_create,
3625 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3626 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3627
3628 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3629
3630 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3631 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3632 config/m68k/t-opts: New files.
3633 * config/m68k/m68k-tables.opt: New file (generated).
3634 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3635 extra_options and m68k/t-opts to tmake_file.
3636 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3637 (all_isas): Initialize using m68k-isas.def.
3638 (all_microarchs): Initialize using m68k-microarchs.def.
3639 (m68k_find_selection): Remove.
3640 (m68k_handle_option): Don't assert that global structures are in
3641 use. Use error_at. Access variables via opts pointer. Don't
3642 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3643 directly for -m68020-40 and -m68020-60.
3644 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3645 m68k_tune_entry here.
3646 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3647 to m68k-opts.h.
3648 (m68k_library_id_string): Remove declaration.
3649 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3650 (m68k_library_id_string): New Variable.
3651 (march=, mcpu=, mtune=): Use Enum and Var.
3652
3653 2011-05-02 Richard Guenther <rguenther@suse.de>
3654
3655 * varasm.c (output_constructor_regular_field): Compute zero-based
3656 index with double-ints. Make sure to ICE instead of producing
3657 wrong code.
3658 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3659 in asserts. Properly use a signed type.
3660
3661 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3662
3663 * config/i386/sse.md (V): New mode iterator.
3664 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3665 TARGET_SSE2.
3666 (V_256): Rename from AVX256MODE.
3667 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3668 condition to all users.
3669 (VF1): Ditto.
3670 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3671 condition to all users.
3672 (VF_128): Make V4SF mode unconditional.
3673 (VF_256): Rename from AVX256MODEF2P.
3674 (VI4F_128): Rename from SSEMODE4S.
3675 (VI8F_128): Rename from SSEMODE2D.
3676 (VI4F_256): Rename from AVX256MODE8P.
3677 (VI8F_256): Rename from AVX256MODE4P.
3678 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3679 (ssescalarmodesuffix): Remove SF and DF modes.
3680 (SSEMODE124): Remove.
3681 (SSEMODE1248): Ditto.
3682 (SSEMODEF2P): Ditto.
3683 (AVXMODEF2P): Ditto.
3684 (AVXMODEFDP): Ditto.
3685 (AVXMODEFSP): Ditto.
3686 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3687 unconditional.
3688 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3689 unconditional.
3690 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3691 xop_pcmov_<mode>256. Use V mode iterator.
3692
3693 Adjust RTX patterns globally for renamed mode attributes.
3694
3695 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3696
3697 * haifa-sched.c (sched_emit_insn): Emit insn before first
3698 non-scheduled insn. Inform back-end about new insn. Add
3699 new insn to scheduled_insns list.
3700
3701 2011-05-02 Richard Guenther <rguenther@suse.de>
3702
3703 PR tree-optimization/48822
3704 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3705 (process_scc): Indicate which iteration we start.
3706
3707 2011-05-02 Jan Hubicka <jh@suse.cz>
3708
3709 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3710 (lto_section_overrun): New.
3711 * lto-section-out.c (append_block): Rename to ...
3712 (lto_append_block): ... this one; export.
3713 (lto_output_1_stream): Move lto lto-streamer.h
3714 (lto_output_data_stream): Update.
3715 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3716 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3717 functions.
3718
3719 2011-05-02 Richard Guenther <rguenther@suse.de>
3720
3721 * tree.c (tree_code_counts): New global array.
3722 (record_node_allocation_statistics): Count individual tree codes.
3723 (dump_tree_statistics): Dump individual code stats.
3724
3725 2011-05-01 Jan Hubicka <jh@suse.cz>
3726
3727 * ipa-inline.c (caller_growth_limits): Fix thinko when
3728 looking for largest stack frame.
3729 * ipa-inline.h (dump_inline_summary): Declare.
3730 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3731 on stack usage.
3732 (dump_inline_summary): Export.
3733 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3734
3735 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3736
3737 * reginfo.c (memory_move_cost): Change rclass argument type form
3738 'enum reg_class' to reg_class_t.
3739 * reload.h (memory_move_cost): Update prototype.
3740 * postreload.c reload_cse_simplify_set): Change type dclass var to
3741 reg_class_t.
3742 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3743 Update prototype.
3744 (ira_allocate_and_set_costs): Change aclass argument type form
3745 'enum reg_class' to reg_class_t.
3746 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3747 Change aclass argument type to reg_class_t.
3748 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3749 to reg_class_t.
3750 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3751 memory_move_cost call.
3752
3753 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3754 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3755 Change type tmp var to reg_class_t.
3756
3757 2011-04-30 Jan Hubicka <jh@suse.cz>
3758
3759 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3760 inlining into function with flatten attribute.
3761 (want_inline_small_function_p): Be more realistic about inlining
3762 cold calls where callee size grows.
3763
3764 2011-04-30 Jan Hubicka <jh@suse.cz>
3765
3766 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3767 flags.
3768
3769 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3770
3771 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3772 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3773 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3774 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3775 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3776 (print_operand): Rename to...
3777 (sparc_print_operand): ...this. Make static. Adjust
3778 sparc_print_operand function call.
3779 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3780 functions.
3781
3782 2011-04-30 Jan Hubicka <jh@suse.cz>
3783
3784 PR middle-end/48752
3785 * ipa-inline.c (early_inliner): Disable when doing late
3786 addition of function.
3787
3788 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3789
3790 * dwarf2out.c (get_address_mode): New inline.
3791 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3792 if not dwarf_strict emit
3793 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3794 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3795 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3796 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3797 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3798 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3799 mem_loc_descriptor callers.
3800 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3801 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3802 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3803 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3804 (base_types): New variable.
3805 (get_base_type_offset, calc_base_type_die_sizes,
3806 base_type_for_mode, mark_base_types, base_type_cmp,
3807 move_marked_base_types): New functions.
3808 (calc_die_sizes): Assert that die_offset is 0 or equal to
3809 next_die_offset.
3810 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3811 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3812 callers. If not dwarf_strict, call mem_loc_descriptor even for
3813 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3814 (gen_subprogram_die): Don't give up on call site parameters
3815 with non-integral or large integral modes. Adjust
3816 mem_loc_descriptor callers.
3817 (prune_unused_types): Call prune_unused_types_mark on base_types
3818 vector entries.
3819 (resolve_addr): Call mark_base_types.
3820 (dwarf2out_finish): Call move_marked_base_types.
3821
3822 PR tree-optimization/48809
3823 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3824 type.
3825 (gen_inbound_check): Don't compute index_expr - range_min in utype
3826 again, instead reuse SSA_NAME initialized in build_arrays.
3827 Remove two useless gsi_for_stmt calls.
3828
3829 2011-04-29 Jeff Law <law@redhat.com>
3830
3831 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3832
3833 2011-04-29 Martin Jambor <mjambor@suse.cz>
3834
3835 * cgraph.h (cgraph_postorder): Remove declaration.
3836 * ipa-utils.h (ipa_free_postorder_info): Declare.
3837 (ipa_reverse_postorder): Likewise.
3838 * cgraphunit.c: Include ipa-utils.h.
3839 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3840 * ipa-inline.c: Include ipa-utils.h.
3841 (ipa_inline): Update call to ipa_reverse_postorder.
3842 * ipa-pure-const.c (propagate_pure_const): Update call to
3843 ipa_reduced_postorder and ipa_print_order. Call
3844 ipa_free_postorder_info to clean up.
3845 (propagate_nothrow): Likewise.
3846 * ipa-reference.c (propagate): Removed a useless call to
3847 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3848 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3849 * ipa.c: Include ipa-utils.h.
3850 (ipa_profile): Update call to ipa_reverse_postorder.
3851 (cgraph_postorder): Moved to...
3852 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3853 (ipa_utils_print_order): Renamed to ipa_print_order.
3854 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3855 comments.
3856 (ipa_free_postorder_info): New function.
3857 * passes.c: Include ipa-utils.h.
3858 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3859 (ipa_write_summaries): Likewise.
3860 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3861 (cgraphunit.o): Likewise.
3862 (ipa.o): Likewise.
3863 (ipa-inline.o): Likewise.
3864
3865 2011-04-29 Jan Hubicka <jh@suse.cz>
3866
3867 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3868 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3869 * ipa-inline.h (clause_t): Turn into unsigned int.
3870 * ipa-inline-analysis.c (add_clause): Do more simplification.
3871 (and_predicates): Shortcut more cases.
3872 (predicates_equal_p): Move forward; check that clauses are properly
3873 ordered.
3874 (or_predicates): Shortcut more cases.
3875 (edge_execution_predicate): Rewrite as...
3876 (set_cond_stmt_execution_predicate): ... this function; handle
3877 __builtin_constant_p.
3878 (set_switch_stmt_execution_predicate): New .
3879 (compute_bb_predicates): New.
3880 (will_be_nonconstant_predicate): Update TODO.
3881 (estimate_function_body_sizes): Use compute_bb_predicates
3882 and free them later, always try to estimate if stmt is constant.
3883 (estimate_time_after_inlining, estimate_size_after_inlining):
3884 Gracefully handle optimized out edges.
3885 (read_predicate): Fix off by one error.
3886
3887 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3888
3889 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3890
3891 2011-04-27 Xinliang David Li <davidxl@google.com>
3892
3893 * tree-profile.c (init_ic_make_global_vars): Set
3894 tls attribute on ic vars.
3895 * coverage.c (coverage_end_function): Initialize
3896 function_list with zero.
3897
3898 2011-04-29 Richard Guenther <rguenther@suse.de>
3899
3900 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3901 for the type of the result.
3902 (fold_builtin_isascii): Likewise.
3903 (fold_builtin_toascii): Use integer_type_node where appropriate.
3904 (fold_builtin_logb): Likewise.
3905 (fold_builtin_frexp): Likewise.
3906 (fold_builtin_strstr): Likewise.
3907 (fold_builtin_strpbrk): Likewise.
3908 (fold_builtin_fputs): Likewise.
3909 (fold_builtin_sprintf): Likewise.
3910 (fold_builtin_snprintf): Likewise.
3911 (fold_builtin_printf): Likewise.
3912 (do_mpfr_remquo): Use a proper type for the assigned constant.
3913 (do_mpfr_lgamma_r): Likewise.
3914 * dwarf2out.c (resolve_one_addr): Use size_int.
3915 * except.c (init_eh): Likewise.
3916 (assign_filter_values): Use integer_type_node for filter values.
3917 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3918 indices.
3919 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3920 for EH region numbers.
3921 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3922 for the shift amount.
3923
3924 2011-04-29 Richard Guenther <rguenther@suse.de>
3925
3926 * expr.h (expand_shift): Rename to ...
3927 (expand_variable_shift): ... this.
3928 (expand_shift): Take a constant shift amount.
3929 * expmed.c (expand_shift): Rename to ...
3930 (expand_variable_shift): ... this.
3931 (expand_shift): New wrapper around expand_variable_shift.
3932 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3933 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3934 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3935 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3936 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3937 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3938 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3939 emit_store_flag_1, emit_store_flag): Likewise.
3940 * builtins.c (expand_builtin_signbit): Likewise.
3941 * calls.c (load_register_parameters): Likewise.
3942 * function.c (assign_parm_setup_block): Likewise.
3943 * lower-subreg.c (resolve_shift_zext): Likewise.
3944 * optabs.c (widen_bswap, expand_abs_nojump,
3945 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3946 * spu/spu.c (spu_expand_extv): Likewise.
3947 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3948
3949 2011-04-29 Richard Guenther <rguenther@suse.de>
3950
3951 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3952 for the remapped region number.
3953 * predict.c (build_predict_expr): Use integer_type_node for the
3954 predict kind.
3955 * fold-const.c (fold_binary_loc): Use integer_type_node for
3956 the shift amount. Use a proper type for the PLUS_EXPR operand.
3957
3958 2011-04-29 Michael Matz <matz@suse.de>
3959
3960 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3961 other trees that just builtins.
3962 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3963
3964 2011-04-29 Richard Guenther <rguenther@suse.de>
3965
3966 * tree-nested.c (get_trampoline_type): Use size_int.
3967 (get_nl_goto_field): Likewise.
3968 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3969 for all indexes.
3970 (lower_eh_constructs_2): Likewise.
3971 (lower_resx): Likewise.
3972 (lower_eh_dispatch): Likewise.
3973 * tree-mudflap.c (mf_build_string): Use size_int.
3974 (mudflap_register_call): Use integer_type_node for the flag.
3975 (mudflap_enqueue_constant): Use size_int.
3976 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3977 instead of rebuilding it.
3978
3979 2011-04-29 Richard Guenther <rguenther@suse.de>
3980
3981 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3982 Handle OBJ_TYPE_REF.
3983 (find_func_aliases_for_call): Use it more consistently.
3984
3985 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3986
3987 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3988 (rank_for_schedule): Use it.
3989 (schedule_block): Set it.
3990
3991 2011-04-28 David Li <davidxl@google.com>
3992
3993 * tree.c (crc32_string): Use crc32_byte.
3994 (crc32_byte): New function.
3995 * tree.h (crc32_byte): New function.
3996 * gcov.c (read_graph_file): Handle new cfg_cksum.
3997 (read_count_file): Ditto.
3998 * profile.c (instrument_values): Ditto.
3999 (get_exec_counts): Ditto.
4000 (read_profile_edge_counts): Ditto.
4001 (compute_branch_probabilities): Ditto.
4002 (compute_value_histograms): Ditto.
4003 (branch_prob): Ditto.
4004 (end_branch_prob): Ditto.
4005 * coverage.c (read_counts_file): Ditto.
4006 (get_coverage_counts): Ditto.
4007 (tree_coverage_counter_addr): Ditto.
4008 (coverage_checksum_string): Ditto.
4009 (coverage_begin_output): Ditto.
4010 (coverage_end_function): Ditto.
4011 (build_fn_info_type): Ditto.
4012 (build_fn_info_value): Ditto.
4013 * libgcov.c (gcov_exit): Ditto.
4014 * gcov-dump.c (tag_function): Ditto.
4015 (compute_checksum): Remove.
4016
4017 2011-04-29 Alan Modra <amodra@gmail.com>
4018
4019 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4020 unspec plus offset. Tidy macho code.
4021
4022 2011-04-29 Martin Jambor <mjambor@suse.cz>
4023
4024 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4025 node instead of a decl. Update all callers.
4026 * cgraph.h: Update declaration.
4027
4028 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4029
4030 PR tree-optimization/48765
4031 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4032 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4033 to indicate if loop aware SLP is being used. Scan the statements
4034 and update the vectorization factor according to the type of
4035 vectorization before statement analysis.
4036 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4037 pass it to vect_analyze_loop_operations.
4038 (vectorizable_reduction): Set number of copies to 1 in case of pure
4039 SLP statement.
4040 * tree-vect-stmts.c (vectorizable_conversion,
4041 vectorizable_assignment, vectorizable_shift,
4042 vectorizable_operation, vectorizable_type_demotion,
4043 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4044 Likewise.
4045 (vectorizable_condition): Move the check that it is not SLP
4046 vectorization before the number of copies check.
4047 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4048 to vectorize the loop using SLP.
4049
4050 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4051
4052 PR middle-end/48597
4053 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4054 inline asm.
4055
4056 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4057
4058 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4059 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4060 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4061 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4062 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4063 linux*.h headers.
4064 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4065 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4066 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4067 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4068 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4069 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4070 REG_NAME.
4071 * config/i386/linux.h (REG_NAME): Don't define.
4072 * config/i386/linux64.h (REG_NAME): Don't define.
4073 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4074 Undefine before defining.
4075
4076 2011-04-28 Jan Hubicka <jh@suse.cz>
4077
4078 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4079 nonconstant_names array.
4080 (estimate_function_body_sizes): Build nonconstant_names array; handle
4081 BUILT_IN_CONSTANT_P.
4082
4083 2011-04-28 Richard Guenther <rguenther@suse.de>
4084
4085 PR bootstrap/48804
4086 Revert
4087 2011-04-28 Richard Guenther <rguenther@suse.de>
4088
4089 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4090 as late as possible.
4091
4092 2011-04-28 Richard Guenther <rguenther@suse.de>
4093
4094 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4095 (debug_constraint): Do it here.
4096 (dump_constraints): And here.
4097 (rewrite_constraints): And here.
4098 (dump_constraint_edge): Remove.
4099 (dump_constraint_graph): Rewrite to produce DOT output.
4100 (solve_constraints): Build succ graph as late as possible.
4101 Dump constraint graphs before and after solving.
4102
4103 2011-04-28 Richard Guenther <rguenther@suse.de>
4104
4105 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4106 New function split out from ...
4107 (find_func_aliases): ... here. Call it.
4108 (find_func_aliases_for_call): Likewise.
4109
4110 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4111
4112 * internal-fn.h (internal_fn_name_array): Declare.
4113 (internal_fn_flags_array): Likewise.
4114
4115 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4116
4117 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4118 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4119 Move from sse.md.
4120 (ssemodefsuffix): Remove.
4121 (ssevecmodesuffix): New mode attribute.
4122 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4123 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4124 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4125 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4126 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4127 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4128 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4129 ssemodesuffix mode attribute.
4130 (float splitters): Use ssevecmodesuffix mode attribute.
4131 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4132 (sseinsmode): Rename from avxvecmode.
4133 (avxsizesuffix): Rename from avxmodesuffix.
4134 (sseintvecmode): Rename from avxpermvecmode.
4135 (ssedoublevecmode): Rename from ssedoublesizemode.
4136 (ssehalfvecmode): Rename from avxhalfvecmode.
4137 (ssescalarmode): Rename from avxscalarmode.
4138 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4139 templates for ssemodesuffix mode attribute.
4140 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4141 mode attribute.
4142
4143 Adjust RTX patterns globally for renamed mode attributes.
4144
4145 2011-04-27 Jan Hubcika <jh@suse.cz>
4146
4147 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4148 * ipa-inline-analysis.c: Include alloc-pool.h.
4149 (edge_predicate_pool): New.
4150 (trye_predicate_p): New function
4151 (false_predicate_p): New function.
4152 (add_clause): Sanity check that false clauses are "optimized";
4153 never add clauses to predicate that is already known to be false.
4154 (and_predicate): Use flase_predicate_p.
4155 (evaulate_predicate): Rename to ...
4156 (evaluate_predicate): ... this one; update all callers; assert
4157 that false is not listed among possible truths.
4158 (dump_predicate): Use true_predicate_p.
4159 (account_size_time): Use false_predicate_p.
4160 (evaulate_conditions_for_edge): Rename to ...
4161 (evaluate_conditions_for_edge) ... this one.
4162 (edge_set_predicate): New function.
4163 (inline_edge_duplication_hook): Duplicate edge predicates.
4164 (inline_edge_removal_hook): Free edge predicates.
4165 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4166 (dump_inline_summary): Update.
4167 (estimate_function_body_sizes): Set edge predicates.
4168 (estimate_calls_size_and_time): Handle predicates.
4169 (estimate_callee_size_and_time): Update.
4170 (remap_predicate): Add toplev_predicate; update comment.
4171 (remap_edge_predicates): New function.
4172 (inline_merge_summary): Compute toplev predicate; update.
4173 (read_predicate): New function.
4174 (read_inline_edge_summary): Use it.
4175 (inline_read_section): Likewise.
4176 (write_predicate): New function.
4177 (write_inline_edge_summary): Use it.
4178 (inline_write_summary): Likewise.
4179 (inline_free_summary): Free alloc pool and edge summary vec.
4180
4181 2011-04-27 Richard Guenther <rguenther@suse.de>
4182
4183 * tree-ssa-structalias.c (changed_count): Remove.
4184 (changed): Use a bitmap.
4185 (unify_nodes): Adjust.
4186 (do_sd_constraint): Likewise.
4187 (do_ds_constraint): Likewise.
4188 (do_complex_constraint): Likewise.
4189 (solve_graph): Likewise.
4190
4191 2011-04-27 Jan Hubicka <jh@suse.cz>
4192
4193 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4194
4195 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4196
4197 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4198 (avx_vperm2f128_*_operand): Ditto.
4199 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4200 Use avx_vpermilp_parallel in insn condition.
4201 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4202 Use avx_vperm2f128_parallel in insn condition.
4203
4204 2011-04-27 Richard Guenther <rguenther@suse.de>
4205
4206 * Makefile.in (tree-ssa-structalias.o): Remove
4207 gt-tree-ssa-structalias.h dependency.
4208 (GTFILES): Remove tree-ssa-structalias.c.
4209 * tree.c (allocate_decl_uid): New function.
4210 (make_node_stat): Use it.
4211 (copy_node_stat): Likewise.
4212 * tree.h (allocate_decl_uid): Declare.
4213 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4214 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4215 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4216 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4217 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4218 (struct heapvar_map): Likewise.
4219 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4220 heapvar_insert): Likewise.
4221 (make_heapvar_for): Rename to ...
4222 (make_heapvar): ... this. Simplify.
4223 (fake_var_decl_obstack): New global var.
4224 (build_fake_var_decl): New function.
4225 (make_constraint_from_heapvar): Adjust.
4226 (handle_lhs_call): Likewise.
4227 (create_function_info_for): Likewise.
4228 (intra_create_variable_infos): Likewise.
4229 (init_alias_vars): Allocate fake_var_decl_obstack.
4230 (init_alias_heapvars, delete_alias_heapvars): Remove.
4231 (compute_points_to_sets): Do not call init_alias_heapvars.
4232 (ipa_pta_execute): Likewise.
4233 (delete_points_to_sets): Free fake_var_decl_obstack.
4234
4235 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4236
4237 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4238 (si_from_UTItype, si_to_UTItype): New functions.
4239 (__udivmodti4): Use them to implement type-punning.
4240 * config/spu/multi3.c (union qword_TItype): New data type.
4241 (si_from_TItype, si_to_TItype): New functions.
4242 (__multi3): Use them to implement type-punning.
4243
4244 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4245
4246 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4247
4248 2011-04-27 Jan Hubicka <jh@suse.cz>
4249
4250 * ipa-prop.c (function_insertion_hook_holder): New holder.
4251 (ipa_add_new_function): New function.
4252 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4253 Register/deregister holder.
4254
4255 2011-04-27 Richard Guenther <rguenther@suse.de>
4256
4257 PR tree-optimization/48772
4258 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4259
4260 2011-04-27 Richard Guenther <rguenther@suse.de>
4261
4262 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4263 TARGET_MEM_REF handling.
4264
4265 2011-04-27 Nick Clifton <nickc@redhat.com>
4266
4267 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4268 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4269 (REG_CLASS_NAMES): Likewise.
4270 (REG_CLASS_CONTENTS): Likewise.
4271 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4272 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4273 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4274 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4275 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4276 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4277 duplicate register classes.
4278 (frv_class_likely_spilled_p): Likewise.
4279 (frv_register_move_cost): Likewise.
4280
4281 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4282 end of the regno_reg_class array.
4283
4284 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4285
4286 PR c/48742
4287 * c-typeck.c (build_binary_op): Don't wrap arguments if
4288 int_operands is true.
4289
4290 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4291
4292 PR target/48767
4293 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4294 targetm.calls.must_pass_in_stack for void type.
4295
4296 2011-04-26 Jan Hubicka <jh@suse.cz>
4297
4298 * cgraphbuild.c (build_cgraph_edges): Update call
4299 of cgraph_create_edge and cgraph_create_indirect_edge.
4300 * cgraph.c (cgraph_create_edge_including_clones,
4301 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4302 cgraph_update_edges_for_call_stmt_node): Do not take nest
4303 argument; do not initialize call_stmt_size/time.
4304 (dump_cgraph_node): Do not dump nest.
4305 (cgraph_clone_edge): Do not take loop_nest argument;
4306 do not propagate it; do not clone call_stmt_size/time.
4307 (cgraph_clone_node): Likewise.
4308 (cgraph_create_virtual_clone): Update.
4309 * cgraph.h (struct cgraph_edge): Remove
4310 call_stmt_size/call_stmt_time/loop_nest.
4311 (cgraph_create_edge, cgraph_create_indirect_edge,
4312 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4313 prototype.
4314 * tree-emutls.c (gen_emutls_addr): Update.
4315 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4316 loop_nest; handle indirect calls, too.
4317 (clone_inlined_nodes): Do not care about updating inline summaries.
4318 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4319 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4320 stream call_stmt_size/call_stmt_time/loop_nest.
4321 * ipa-inline.c (edge_badness): Update.
4322 (ipa_inline): dump summaries after inlining.
4323 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4324 New.
4325 (inline_edge_summary): New function.
4326 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4327 (inline_edge_removal_hook): Handle edge summaries.
4328 (inline_edge_duplication_hook): New hook.
4329 (inline_summary_alloc): Alloc hooks.
4330 (initialize_growth_caches): Do not register removal hooks.
4331 (free_growth_caches); Do not free removal hook.
4332 (dump_inline_edge_summary): New function.
4333 (dump_inline_summary): Use it.
4334 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4335 (inline_update_callee_summaries): New function.
4336 (inline_merge_summary): Use it.
4337 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4338 (read_inline_edge_summary): New function.
4339 (inline_read_section): Use it.
4340 (write_inline_edge_summary): New function.
4341 (inline_write_summary): Use it.
4342 (inline_free_summary): Free edge new holders.
4343 * tree-inline.c (copy_bb): Update.
4344
4345 2011-04-26 Jason Merrill <jason@redhat.com>
4346
4347 * tree-eh.c (lower_try_finally_switch): Create the label along with
4348 the CASE_LABEL_EXPR.
4349
4350 2011-04-26 David S. Miller <davem@davemloft.net>
4351 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4352
4353 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4354 * configure: Regenerate.
4355
4356 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4357
4358 PR target/48258
4359 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4360 reduction.
4361 (VEC_reduc): New code iterator and splitters for vector reduction.
4362 (VEC_reduc_name): Ditto.
4363 (VEC_reduc_rtx): Ditto.
4364 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4365 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4366
4367 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4368 support for extracting SF on VSX.
4369
4370 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4371 generating xscvspdp.
4372 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4373 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4374 double add, minimum, maximum vector reduction.
4375 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4376 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4377 optimize double vector reduction.
4378 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4379
4380 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4381
4382 * config/fr30/fr30.h (inhibit_libc): Don't define.
4383 * config/m32r/m32r-protos.h: Correct comment.
4384 * config/v850/v850.h (GHS_default_section_names,
4385 GHS_current_section_names): Use tree, not union tree_node *.
4386
4387 2011-04-26 Xinliang David Li <davidxl@google.com>
4388
4389 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4390 * c-family/c-opts.c (c_common_handle_option): Set
4391 warn_maybe_uninitialized.
4392 * opts.c (common_handle_option): Ditto.
4393 * common.opt: New option.
4394 * tree-ssa.c (warn_uninit): Add one more parameter.
4395 (warn_uninitialized_var): Pass warning code.
4396 * tree-flow.h: Interface change.
4397
4398
4399 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4400
4401 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4402 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4403 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4404
4405 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4406
4407 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4408 * config/mips/mips.opt (mmips-tfile): Remove.
4409
4410 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4411 mips-tdump reference to ...
4412 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4413 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4414 reference by Tru64 UNIX.
4415
4416 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4417
4418 PR debug/48768
4419 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4420 is error_mark_node, set value to NULL.
4421
4422 PR tree-optimization/48734
4423 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4424 if return value from maybe_fold_*_comparsions isn't something
4425 the code is prepared to handle.
4426
4427 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4428
4429 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4430 mode check.
4431 (ext_QIreg_nomode_operands): Remove.
4432 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4433 (*andsi_1): Ditto.
4434 (*andhi_1): Ditto.
4435
4436 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4437
4438 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4439
4440 2011-04-26 Richard Guenther <rguenther@suse.de>
4441
4442 * c-typeck.c (build_unary_op): Do not expand array-refs via
4443 pointer arithmetic. Only adjust qualifiers for function types.
4444
4445 2011-04-26 Richard Guenther <rguenther@suse.de>
4446
4447 PR middle-end/48694
4448 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4449 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4450 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4451 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4452
4453 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4454
4455 * doc/extend.texi: Document __underlying_type.
4456
4457 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4458
4459 * config/rs6000/titan.md (automata_option "progress"): Remove.
4460
4461 2011-04-25 Jeff Law <law@redhat.com>
4462
4463 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4464
4465 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4466
4467 * system.h (ENUM_BITFIELD): Remove.
4468
4469 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4470 Eric Botcazou <ebotcazou@adacore.com>
4471
4472 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4473 for STORE_FLAG_VALUE==-1 case.
4474
4475 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4476
4477 PR target/43804
4478 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4479 LEGITIMATE_PIC_OPERAND_P.
4480
4481 2011-04-24 Jan Hubicka <jh@suse.cz>
4482
4483 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4484 WPA hack.
4485 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4486 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4487 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4488 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4489 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4490 Sanity check predicate length.
4491 (remap_predicate): Likewise; sanity check jump functions.
4492 (inline_read_section, inline_write_summary): Sanity check
4493 predicate length.
4494
4495 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4496
4497 PR other/48748
4498 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4499 __is_literal_type, and __is_trivial; update throughout about
4500 possibly cv-qualified void types.
4501
4502 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4503
4504 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4505 testsuite and make it version agnostic.
4506
4507 2011-04-22 Jan Hubicka <jh@suse.cz>
4508
4509 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4510
4511 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4512
4513 PR c/48685
4514 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4515 to VOID_TYPE even around MODIFY_EXPR.
4516
4517 2011-04-22 Mike Stump <mikestump@comcast.net>
4518
4519 * gensupport.c (read_md_rtx): Fix typo in comment.
4520 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4521 comment.
4522
4523 2011-04-22 Jan Hubicka <jh@suse.cz>
4524
4525 * gengtype.c (open_base_files): Add ipa-inline.h include.
4526 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4527 ipa-prop.c; update all uses.
4528 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4529 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4530 merge summary of inlined function into former caller.
4531 * ipa-inline.c (max_benefit): Remove.
4532 (edge_badness): Compensate for removal of benefits.
4533 (update_caller_keys): Use
4534 reset_node_growth_cache/reset_edge_growth_cache.
4535 (update_callee_keys): Likewise.
4536 (update_all_callee_keys): Likewise.
4537 (inline_small_functions): Do not collect max_benefit; do not reset
4538 estimated_growth; call free_growth_caches and initialize_growth_caches.
4539 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4540 struct size_time_entry): New structures.
4541 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4542 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4543 and estimated_growth.
4544 (edge_growth_cache_entry): New structure.
4545 (node_growth_cache, edge_growth_cache): New global vars.
4546 (estimate_growth): Turn into inline.
4547 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4548 initialize_growth_caches, free_growth_caches): Declare.
4549 (estimate_edge_growth): Rewrite.
4550 (estimate_edge_time): Implement as inline cache lookup.
4551 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4552 functions.
4553 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4554 (NUM_CONDITIONS): New constant.
4555 (predicate_conditions): New enum.
4556 (IS_NOT_CONSTANT): New constant.
4557 (edge_removal_hook_holder): New var.
4558 (node_growth_cache, edge_growth_cache): New global vars.
4559 (true_predicate, single_cond_predicate, false_predicate,
4560 not_inlined_predicate, add_condition, add_clause, and_predicates,
4561 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4562 dump_clause, dump_predicate, account_size_time,
4563 evaulate_conditions_for_edge): New functions.
4564 (inline_summary_alloc): Move to heap.
4565 (inline_node_removal_hook): Clear condition and entry vectors.
4566 (inline_edge_removal_hook): New function.
4567 (initialize_growth_caches, free_growth_caches): New function.
4568 (dump_inline_summary): Update.
4569 (edge_execution_predicate): New function.
4570 (will_be_nonconstant_predicate): New function.
4571 (estimate_function_body_sizes): Compute BB and constantness predicates.
4572 (compute_inline_parameters): Do not clear estimated_growth.
4573 (estimate_edge_size_and_time): New function.
4574 (estimate_calls_size_and_time): New function.
4575 (estimate_callee_size_and_time): New function.
4576 (remap_predicate): New function.
4577 (inline_merge_summary): New function.
4578 (do_estimate_edge_time): New function based on...
4579 (estimate_edge_time): ... this one.
4580 (do_estimate_edge_growth): New function.
4581 (do_estimate_growth): New function based on....
4582 (estimate_growth): ... this one.
4583 (inline_analyze_function): Analyze after deciding on jump functions.
4584 (inline_read_section): New function.
4585 (inline_read_summary): Use it.
4586 (inline_write_summary): Write all the new data.
4587 * ipa-prop.c (ipa_get_param_decl_index): Export.
4588 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4589 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4590 Declare.
4591 (ipa_get_lattice): Move here from ipa-cp.c
4592 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4593 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4594 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4595 cgraph_edge_inlinable_p): Remove.
4596 * cgraphunit.c: Include ipainline.h
4597 (cgraph_process_new_functions): Update call of
4598 compute_inline_parameters.
4599
4600 2011-04-22 Richard Guenther <rguenther@suse.de>
4601
4602 * tree.c (build_int_cst): Properly create canonicalized integer
4603 constants.
4604 (build_int_cst_type): Remove scary comments.
4605
4606 2011-04-22 Xinliang David Li <davidxl@google.com>
4607
4608 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4609 by default when -Wno-error is not specified.
4610 * opts-global.c (decode_options): Remove call to
4611 control_warning_options.
4612
4613 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4614
4615 PR tree-optimization/48717
4616 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4617 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4618
4619 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4620
4621 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4622 definition where used.
4623
4624 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4625
4626 PR c/48716
4627 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4628 TREE_STATIC variables declared inside of some OpenMP construct.
4629
4630 2011-04-22 Martin Jambor <mjambor@suse.cz>
4631
4632 PR middle-end/48585
4633 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4634
4635 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4636
4637 PR c/36750
4638 * c-typeck.c (pop_init_level): Do not warn about initializing
4639 with ` = {0}'.
4640
4641 2011-04-22 Alan Modra <amodra@gmail.com>
4642
4643 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4644 when returning call_cookie.
4645 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4646 pointers, to functions with no more vector args than the current
4647 function, and some non-local calls for ABI_V4.
4648 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4649 sibcall_nonlocal_aix64): Combine to ..
4650 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4651 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4652 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4653 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4654 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4655 operand.
4656 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4657 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4658 sibcall_value_symbolic_64): Delete.
4659
4660 2011-04-21 Xinliang David Li <davidxl@google.com>
4661
4662 * cgraph.h: Remove pid.
4663 * cgraph.c: Remove pid.
4664 * value-prof.c (init_node_map): New function.
4665 (del_node_map): New function.
4666 (find_func_by_funcdef_no): New function.
4667 (gimple_ic_transform): Call new function.
4668 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4669 * function.c (get_last_funcdef_no): New function.
4670 * function.h (get_last_funcdef_no): New function.
4671 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4672 to libgcov function.
4673 (tree-profiling): Call node map init and delete function.
4674
4675 2011-04-21 Ian Lance Taylor <iant@google.com>
4676
4677 * godump.c (go_format_type): Use exported Go name for anonymous
4678 field name.
4679
4680 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4681
4682 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4683 Call builtin_function_type_list instead of builtin_function_type.
4684 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4685
4686 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4687
4688 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4689 build_function_type_list instead of build_function_type.
4690 Delete variable `endlink'.
4691
4692 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4693
4694 * config/s390/s390.c (s390_init_builtins): Call
4695 build_function_type_list instead of build_function_type.
4696
4697 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4698
4699 * config/ia64/ia64.c (ia64_init_builtins): Call
4700 build_function_type_list instead of builtin_function_type.
4701
4702 2011-04-21 Easwaran Raman <eraman@google.com>
4703
4704 * cfgexpand.c (stack_var): Remove OFFSET...
4705 (add_stack_var): ...and its reference here...
4706 (expand_stack_vars): ...and here.
4707 (stack_var_cmp): Sort by descending order of size.
4708 (partition_stack_vars): Change heuristic.
4709 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4710 (dump_stack_var_partition): Add newline after each partition.
4711
4712 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4713 Jeff Law <law@redhat.com>
4714
4715 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4716 * gengtype.c (matching_file_name_substitute): Likewise.
4717
4718 2011-04-21 Richard Guenther <rguenther@suse.de>
4719
4720 PR lto/48703
4721 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4722
4723 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4724
4725 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4726
4727 2011-04-21 Richard Guenther <rguenther@suse.de>
4728
4729 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4730 file name.
4731
4732 2011-04-21 Richard Guenther <rguenther@suse.de>
4733
4734 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4735 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4736 Use DECL_P, not SSA_VAR_P.
4737 (ptr_derefs_may_alias_p): Likewise.
4738 (ptr_deref_may_alias_ref_p_1): Likewise.
4739 (decl_refs_may_alias_p): Likewise.
4740 (refs_may_alias_p_1): Likewise.
4741 (ref_maybe_used_by_call_p_1): Likewise.
4742 (call_may_clobber_ref_p_1): Likewise.
4743 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4744 are either MEM_REF or TARGET_MEM_REF.
4745 (indirect_refs_may_alias_p): Likewise.
4746 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4747 for MEM_EXPR of indirect calls.
4748
4749 2011-04-21 Tristan Gingold <gingold@adacore.com>
4750
4751 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4752 (dst_file_info_struct): Remove flen field.
4753 (lookup_filename): Remove code that set flen field.
4754
4755 2011-04-21 Tristan Gingold <gingold@adacore.com>
4756
4757 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4758
4759 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4760
4761 PR target/48708
4762 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4763 vec_extract and vec_concat for non-SSE4_1 targets.
4764
4765 2011-04-21 Richard Guenther <rguenther@suse.de>
4766
4767 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4768 return statements.
4769
4770 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4771
4772 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4773 undefine.
4774 (FILE): Don't undefine.
4775
4776 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4777
4778 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4779 struct rtx_def *.
4780 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4781 struct rtx_def *.
4782 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4783 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4784 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4785 rtx_def *.
4786 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4787 definitions where used.
4788 * config/microblaze/microblaze.h (struct microblaze_args): Use
4789 rtx, not struct rtx_def *.
4790 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4791 rtx_def *.
4792 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4793 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4794 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4795 not struct rtx_def *.
4796 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4797 struct rtx_def *.
4798 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4799 rtx_def *.
4800 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4801
4802 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4803
4804 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4805 operand_equal_p to compare DR_BASE_ADDRESSes.
4806 (vect_check_interleaving): Likewise.
4807
4808 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4809
4810 PR target/46329
4811 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4812 for all Neon struct constants.
4813
4814 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4815
4816 * target.def (legitimate_constant_p): New hook.
4817 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4818 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4819 * doc/tm.texi: Regenerate.
4820 * hooks.h (hook_bool_mode_rtx_true): Declare.
4821 * hooks.c (hook_bool_mode_rtx_true): Define.
4822 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4823 * calls.c (precompute_register_parameters): Replace uses of
4824 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4825 (emit_library_call_value_1): Likewise.
4826 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4827 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4828 * ira-costs.c (scan_one_insn): Likewise.
4829 * recog.c (general_operand, immediate_operand): Likewise.
4830 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4831 * reload1.c (init_eliminable_invariants): Likewise.
4832
4833 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4834 mode argument.
4835 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4836 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4837 argument.
4838 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4839 * config/alpha/predicates.md (input_operand): Update call to
4840 alpha_legitimate_constant_p.
4841
4842 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4843 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4844 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4845 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4846 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4847 (arm_legitimate_constant_p): New functions.
4848 (arm_cannot_force_const_mem): Make static.
4849
4850 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4851
4852 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4853 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4854 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4855 instead of bfin_legitimate_constant_p.
4856 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4857 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4858
4859 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4860
4861 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4862
4863 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4864 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4865 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4866 (frv_legitimate_constant_p): Make static. Add a mode argument.
4867
4868 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4869 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4870 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4871
4872 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4873 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4874 * config/i386/i386.c (legitimate_constant_p): Rename to...
4875 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4876 argument.
4877 (ix86_cannot_force_const_mem): Update accordingly.
4878 (ix86_legitimate_address_p): Likewise.
4879 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4880 * config/i386/i386.md: Update commentary.
4881
4882 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4883 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4884 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4885 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4886
4887 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4888
4889 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4890 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4891 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4892 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4893
4894 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4895 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4896 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4897
4898 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4899 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4900 (m32r_legitimate_constant_p): New function.
4901
4902 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4903 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4904 LEGITIMATE_CONSTANT_P.
4905 (LEGITIMATE_CONSTANT_P): Delete.
4906 * config/m68k/m68k.c (m68k_expand_prologue): Call
4907 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4908 (m68k_legitimate_constant_p): New function.
4909 * config/m68k/m68k.md: Update comments.
4910
4911 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4912 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4913 (mcore_legitimate_constant_p): New function.
4914
4915 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4916 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4917 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4918 Add a mode argument.
4919 (mep_legitimate_address): Update accordingly.
4920 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4921
4922 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4923 Delete.
4924 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4925 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4926 static. Check OP's mode for VOIDmode.
4927 (microblaze_legitimate_constant_p): New function.
4928 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4929
4930 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4931 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4932 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4933 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4934 * config/mips/predicates.md: Update comments.
4935
4936 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4937 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4938 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4939 (mmix_legitimate_constant_p): Make static, return a bool, and take
4940 a mode argument.
4941 (mmix_print_operand_address): Update accordingly.
4942
4943 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4944 Delete.
4945 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4946 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4947 static. Add a mode argument.
4948 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4949
4950 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4951
4952 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4953 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4954 (pa_legitimate_constant_p): New function.
4955
4956 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4957
4958 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4959 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4960 (pdp11_legitimate_constant_p): New function.
4961
4962 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4963 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4964 (rs6000_legitimate_constant_p): New function.
4965
4966 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4967 (rx_legitimate_constant_p): ...this.
4968 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4969 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4970 (rx_legitimate_constant_p): ...this.
4971 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4972 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4973
4974 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4975 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4976 * config/s390/s390.c (legitimate_constant_p): Rename to...
4977 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4978 and add a mode argument.
4979 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4980
4981 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4982
4983 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4984 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4985 (sh_legitimate_constant_p): New function.
4986
4987 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4988 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4989 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4990 (legitimate_constant_p): Rename to...
4991 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4992 argument.
4993 (constant_address_p): Update accordingly.
4994
4995 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4996 argument and return a bool.
4997 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4998 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4999 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5000 (spu_rtx_costs): Update accordingly.
5001 * config/spu/predicates.md (vec_imm_operand): Likewise.
5002
5003 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5004
5005 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5006 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5007 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5008
5009 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5010 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5011 * config/vax/vax.c (legitimate_constant_p): Likewise.
5012
5013 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5014 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5015 (xtensa_legitimate_constant_p): New function.
5016
5017 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5018
5019 * target.def (cannot_force_const_mem): Add a mode argument.
5020 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5021 * doc/tm.texi: Regenerate.
5022 * hooks.h (hook_bool_mode_rtx_false): Declare.
5023 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5024 (hook_bool_mode_const_rtx_true): Likewise.
5025 (hook_bool_mode_rtx_false): New function.
5026 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5027 to be non-VOID. Update call to cannot_force_const_mem.
5028 (find_reloads): Update accordingly.
5029 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5030 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5031 argument.
5032 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5033 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5034 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5035 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5036 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5037 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5038 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5039 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5040 (m68k_cannot_force_const_mem): ...this new function.
5041 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5042 argument.
5043 (mips_const_insns, mips_legitimize_const_move): Update calls.
5044 (mips_secondary_reload_class): Likewise.
5045 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5046 (pa_cannot_force_const_mem): ...this new function.
5047 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5048 (rs6000_cannot_force_const_mem): ...this new function.
5049 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5050 argument.
5051 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5052 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5053 to...
5054 (xtensa_cannot_force_const_mem): ...this new function.
5055
5056 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5057
5058 * config/mips/mips.c (mips16_build_function_stub): Call
5059 build_function_type_list instead of build_function_type.
5060 (mips16_build_call_stub): Likewise.
5061
5062 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5063
5064 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5065 instead of build_function_type.
5066
5067 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5068
5069 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5070 instead of build_function_type.
5071
5072 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5073
5074 PR target/48678
5075 * config/i386/i386.md (insv): Change operand 0 constraint to
5076 "register_operand". Change operand 1 and 2 constraint to
5077 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5078 * config/i386/sse.md (sse4_1_pinsrb): Export.
5079 (sse2_pinsrw): Ditto.
5080 (sse4_1_pinsrd): Ditto.
5081 (sse4_1_pinsrq): Ditto.
5082 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5083 * config/i386/i386.c (ix86_expand_pinsr): New.
5084
5085 2011-04-20 Easwaran Raman <eraman@google.com>
5086
5087 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5088 containing union type only with -fstrict-aliasing.
5089
5090 2011-04-20 Jim Meyering <meyering@redhat.com>
5091
5092 Remove useless if-before-free tests.
5093 * calls.c (expand_call, save_area): Likewise.
5094 * cfgcleanup.c (try_forward_edges): Likewise.
5095 * collect2.c (collect_execute): Likewise.
5096 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5097 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5098 * coverage.c (coverage_checksum_string): Likewise.
5099 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5100 * cselib.c (cselib_init): Likewise.
5101 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5102 (df_set_clean_cfg): Likewise.
5103 * function.c (free_after_compilation): Likewise.
5104 * gcc.c (do_spec_1, main): Likewise.
5105 * gcov.c (create_file_names): Likewise.
5106 * gensupport.c (identify_predicable_attribute): Likewise.
5107 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5108 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5109 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5110 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5111 * ipa-pure-const.c (local_pure_const): Likewise.
5112 * ipa-reference.c (propagate): Likewise.
5113 * ira-costs.c (free_ira_costs): Likewise.
5114 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5115 * matrix-reorg.c (mat_free): Likewise.
5116 * prefix.c (get_key_value): Likewise.
5117 * profile.c (compute_value_histograms): Likewise.
5118 * reload1.c (free_reg_equiv): Likewise.
5119 * sched-deps.c (free_deps): Likewise.
5120 * sel-sched-ir.c (fence_clear): Likewise.
5121 * sese.c (set_rename, if_region_set_false_region): Likewise.
5122 * tree-data-ref.c (free_rdg): Likewise.
5123 * tree-eh.c (lower_try_finally): Likewise.
5124 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5125 * tree-ssa-live.c (delete_var_map): Likewise.
5126 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5127 * tree-ssa-pre.c (phi_trans_add): Likewise.
5128
5129 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5130
5131 PR tree-optimization/48611
5132 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5133 beyond ERT_MUST_NOT_THROW region.
5134
5135 2011-04-20 Catherine Moore <clm@codesourcery.com>
5136
5137 * config/mips/mips.opt (mfix-24k): New.
5138 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5139 * config/mips/mips.md (length): Increase by 4 for stores if
5140 fixing 24K errata.
5141 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5142 all noreorder if fixing 24K errata.
5143 * doc/invoke.texi: Document mfix-24k.
5144
5145 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5146
5147 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5148 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5149
5150 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5151
5152 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5153 (const_ok_for_op): ... to here.
5154
5155 2011-04-20 Kai Tietz <ktietz@redhat.com>
5156
5157 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5158 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5159
5160 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5161
5162 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5163
5164 2011-04-20 Richard Guenther <rguenther@suse.de>
5165
5166 PR tree-optimization/47892
5167 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5168 are if-convertible.
5169
5170 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5171
5172 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5173
5174 2011-04-20 Tristan Gingold <gingold@adacore.com>
5175
5176 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5177
5178 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5179
5180 PR target/18145
5181
5182 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5183 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5184 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5185 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5186 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5187
5188 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5189 New prototype.
5190
5191 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5192 (avr_asm_named_section, avr_asm_output_aligned_common,
5193 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5194 New functions to update...
5195 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5196 (avr_asm_init_sections): Overwrite section callbacks for
5197 data_section, bss_section.
5198 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5199 from here to...
5200 (avr_file_end): ...here.
5201
5202 2011-04-20 Richard Guenther <rguenther@suse.de>
5203
5204 PR middle-end/48695
5205 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5206 objects and types here. Adjust for their offset before comparing.
5207
5208 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5209
5210 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5211 statement per copy.
5212
5213 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5214
5215 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5216 (GIMPLE_H): Include $(INTERNAL_FN_H).
5217 (OBJS-common): Add internal-fn.o.
5218 (internal-fn.o): New rule.
5219 * internal-fn.def: New file.
5220 * internal-fn.h: Likewise.
5221 * internal-fn.c: Likewise.
5222 * gimple.h: Include internal-fn.h.
5223 (GF_CALL_INTERNAL): New gf_mask.
5224 (gimple_statement_call): Put fntype into a union with a new
5225 internal_fn field.
5226 (gimple_build_call_internal): Declare.
5227 (gimple_build_call_internal_vec): Likewise.
5228 (gimple_call_same_target_p): Likewise.
5229 (gimple_call_internal_p): New function.
5230 (gimple_call_internal_fn): Likewise.
5231 (gimple_call_fntype): Return null for internal calls.
5232 (gimple_call_set_fntype): Assert that the function is not internal.
5233 (gimple_call_set_fn): Likewise.
5234 (gimple_call_set_fndecl): Likewise.
5235 (gimple_call_set_internal_fn): New function.
5236 (gimple_call_addr_fndecl): Handle null functions.
5237 (gimple_call_return_type): Likewise null types.
5238 * gimple.c (gimple_build_call_internal_1): New function.
5239 (gimple_build_call_internal): Likewise.
5240 (gimple_build_call_internal_vec): Likewise.
5241 (gimple_call_same_target_p): Likewise.
5242 (gimple_call_flags): Handle calls to internal functions.
5243 (gimple_call_fnspec): New function.
5244 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5245 (gimple_has_side_effects): Handle null functions.
5246 (gimple_rhs_has_side_effects): Likewise.
5247 (gimple_call_copy_skip_args): Handle calls to internal functions.
5248 * cfgexpand.c (expand_call_stmt): Likewise.
5249 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5250 * gimple-fold.c (gimple_fold_call): Handle null functions.
5251 (gimple_fold_stmt_to_constant_1): Don't fold
5252 calls to internal functions.
5253 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5254 functions.
5255 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5256 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5257 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5258 (do_warn_unused_result): Likewise.
5259 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5260 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5261 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5262 the target of a call.
5263 (initialize_hash_element): Update accordingly.
5264 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5265 (iterative_hash_hashable_expr): Handle calls to internal functions.
5266 (print_expr_hash_elt): Likewise.
5267 * tree-ssa-pre.c (can_value_number_call): Likewise.
5268 (eliminate): Handle null functions.
5269 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5270 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5271 (find_func_aliases): Likewise.
5272 * value-prof.c (gimple_ic_transform): Likewise.
5273 (gimple_indirect_call_to_profile): Likewise.
5274 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5275 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5276
5277 2011-04-19 Jan Hubicka <jh@suse.cz>
5278
5279 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5280 * ipa-inline.c (inline_small_functions): Compute summaries first,
5281 populate heap later.
5282
5283 2011-04-19 Jan Hubicka <jh@suse.cz>
5284
5285 * cgraph.h (save_inline_function_body): Remove.
5286 * ipa-inline-transform.c: New file, broke out of...
5287 * ipa-inline.c: ... this one; Update toplevel comment.
5288 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5289 make global.
5290 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5291 (cgraph_mark_inline_edge): Rename to inline_call; move to
5292 ipa-inline-transform.c.
5293 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5294 move to ipa-inline-transform.c
5295 (recursive_inlining, inline_small_functions, flatten_function,
5296 ipa_inline, inline_always_inline_functions,
5297 early_inline_small_functions): Update.
5298 (inline_transform): Move to ipa-inline-transform.c.
5299 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5300 Declare.
5301 * Makefile.in (ipa-inline-transform.o): New file.
5302 * cgraphunit.c (save_inline_function_body): Move to
5303 ipa-inline-transform.c
5304
5305 2011-04-19 DJ Delorie <dj@redhat.com>
5306
5307 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5308 registers if we already know there aren't any.
5309 (m32c_emit_epilogue): Don't emit a barrier here.
5310 (m32c_emit_eh_epilogue): Likewise.
5311 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5312 operands at expand time.
5313 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5314 int" wchar type.
5315 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5316 duplicates. Provide aliases instead.
5317 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5318 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5319 the compiler.
5320
5321 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5322
5323 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5324 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5325 (general_or_i64_p, sparc_register_move_cost): New function.
5326
5327 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5328
5329 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5330 Add lynx, mipssde. Sort table.
5331
5332 2011-04-19 Xinliang David Li <davidxl@google.com>
5333
5334 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5335 not negative.
5336
5337 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5338
5339 PR target/48678
5340 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5341 is a SUBREG with non-MODE_INT mode inside of it.
5342
5343 2011-04-19 Martin Jambor <mjambor@suse.cz>
5344
5345 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5346 also according to actual contants.
5347 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5348 (gimple_fold_call): Use it.
5349 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5350
5351 2011-04-19 Martin Jambor <mjambor@suse.cz>
5352
5353 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5354 non-pointer assignments.
5355
5356 2011-04-19 Martin Jambor <mjambor@suse.cz>
5357
5358 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5359 account anc_offset and otr_type from the indirect edge info.
5360 * ipa-prop.c (get_ancestor_addr_info): New function.
5361 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5362 get_ancestor_addr_info, call it.
5363 (ipa_note_param_call): Do not initialize information about polymorphic
5364 calls, return the indirect call graph edge. Remove the last
5365 parameter, adjust all callers.
5366 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5367 parameters. Initialize polymorphic information in the indirect edge.
5368
5369 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5370
5371 PR lto/48148
5372 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5373 the types if they have different enumeration identifiers.
5374
5375 2011-04-19 Jan Hubicka <jh@suse.cz>
5376
5377 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5378 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5379 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5380 (optimize_function_for_size_p) ... here.
5381
5382 2011-04-19 Richard Guenther <rguenther@suse.de>
5383
5384 PR lto/48207
5385 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5386 langhook.
5387
5388 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5389
5390 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5391 if DECL_NO_INLINE_WARNING_P is set on the function.
5392
5393 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5394
5395 PR fortran/47976
5396 * reload1.c (inc_for_reload): Return void. All callers changed.
5397 (emit_input_reload_insns): Don't try to delete previous output
5398 reloads to a register, or record spill_reg_store for autoincs.
5399
5400 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5401
5402 * gengtype.h: Updated copyright year.
5403 (struct input_file_st): Add inpisplugin field.
5404 (type_fileloc): New function.
5405 * gengtype.c
5406 (write_typed_struct_alloc_def): Add gcc_assert.
5407 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5408 (write_typed_alloc_defns): Don't output for plugin files.
5409 (input_file_by_name): Clear inpisplugin field.
5410 (main): Set inpisplugin field for plugin files.
5411
5412 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5413
5414 * gengtype-state.c (string_eq): New.
5415 (read_state): Use string_eq instead of strcmp when creating the
5416 state_ident_tab.
5417
5418 2011-04-19 Wei Guozhi <carrot@google.com>
5419
5420 PR target/47855
5421 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5422 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5423 linkage.
5424 * config/arm/constraints.md (Uu): New constraint.
5425 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5426
5427 2011-04-19 Tristan Gingold <gingold@adacore.com>
5428
5429 * config.gcc (-*-*-*vms): Added.
5430 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5431 definitions moved.
5432 * config/vms/vms-ld.c: New file.
5433 * config/vms/vms-ar.c: New file.
5434 * config/vms/t-vmsnative: New file.
5435
5436 2011-04-18 Xinliang David Li <davidxl@google.com>
5437
5438 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5439
5440 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5441
5442 PR middle-end/48661
5443 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5444 if TREE_TYPE (v) is non-NULL.
5445
5446 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5447 gimple_get_virt_mehtod_for_binfo.
5448 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5449 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5450 callers.
5451 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5452
5453 2011-04-18 Michael Matz <matz@suse.de>
5454 Steve Ellcey <sje@cup.hp.com>
5455
5456 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5457 use its mode as source mode if it isn't VOIDmode.
5458
5459 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5460
5461 * doc/passes.texi: Fill crossref nodes.
5462
5463 2011-04-18 Jim Meyering <meyering@redhat.com>
5464
5465 Fix doubled-word typos in comments and strings
5466 * config/alpha/vms-unwind.h: s/for for/for/
5467 * config/arm/unwind-arm.h: Likewise.
5468 * config/microblaze/microblaze.c: Likewise.
5469 * config/sh/constraints.md: s/in in/in/
5470 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5471
5472 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5473
5474 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5475 (AVX_FLOAT_MODE_P): Ditto.
5476 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5477 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5478 (AVX_VEC_FLOAT_MODE_P): Ditto.
5479 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5480 (UNSPEC_MASKSTORE): Ditto.
5481 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5482 Merge from <sse>_movmsk<ssemodesuffix> and
5483 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5484 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5485 iterator.
5486 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5487 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5488 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5489
5490 2011-04-18 Jan Hubicka <jh@suse.cz>
5491
5492 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5493
5494 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5495 (want_inline_function_called_once_p): Break out the logic from
5496 ipa_inline.
5497 (edge_badness): Ensure that profile is not misupdated.
5498 (lookup_recursive_calls): Prioritize by call frequencies.
5499 (inline_small_functions): Move program size estimates here;
5500 actually process whole queue even when unit growth has been
5501 met. (to properly compute inline_failed reasons and for the
5502 case unit size decrease.) Revisit comments on recursive inlining.
5503 (ipa_inline): Remove unit summary code; first inline hot calls
5504 of functions called once, cold calls next.
5505 (order, nnodes): Remove unused variables.
5506 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5507 (GTFILES): Remove ipa-inline.c
5508 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5509
5510 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5511
5512 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5513
5514 2011-04-18 Jie Zhang <jie@codesourcery.com>
5515 Richard Earnshaw <rearnsha@arm.com>
5516
5517 * arm.c (neon_builtin_type_bits): Remove.
5518 (typedef enum neon_builtin_mode): New.
5519 (T_MAX): Don't define.
5520 (typedef enum neon_builtin_datum): Remove bits, codes[],
5521 num_vars and base_fcode. Add mode, code and fcode.
5522 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5523 VAR10): Change accordingly.
5524 (neon_builtin_data[]): Change accordingly
5525 (arm_init_neon_builtins): Change accordingly.
5526 (neon_builtin_compare): Remove.
5527 (locate_neon_builtin_icode): Remove.
5528 (arm_expand_neon_builtin): Change accordingly.
5529
5530 * arm.h (enum arm_builtins): Move to ...
5531 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5532
5533 * arm.c (arm_builtin_decl): Declare.
5534 (TARGET_BUILTIN_DECL): Define.
5535 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5536 (arm_builtin_decls[]): New.
5537 (arm_init_neon_builtins): Store builtin declarations in
5538 arm_builtin_decls[].
5539 (arm_init_tls_builtins): Likewise.
5540 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5541 (arm_builtin_decl): New.
5542
5543 2011-04-18 Richard Guenther <rguenther@suse.de>
5544
5545 * tree.c (upper_bound_in_type): Build properly canonicalized
5546 INTEGER_CSTs.
5547 (lower_bound_in_type): Likewise.
5548
5549 2011-04-18 Richard Guenther <rguenther@suse.de>
5550
5551 * gimple.h (gimple_call_addr_fndecl): New function.
5552 (gimple_call_fndecl): Use it.
5553 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5554 for direct calls.
5555 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5556 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5557
5558 2011-04-18 Richard Guenther <rguenther@suse.de>
5559
5560 PR middle-end/48650
5561 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5562
5563 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5564
5565 PR lto/48492
5566 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5567 DECL_IN_CONSTANT_POOL without RTL.
5568
5569 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5570 Ira Rosen <ira.rosen@linaro.org>
5571
5572 PR target/48252
5573 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5574 to match neon_vzip/vuzp/vtrn_internal.
5575 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5576 outputs explicitly dependent on both inputs.
5577 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5578
5579 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5580
5581 PR tree-optimization/48616
5582 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5583 whether the shift is by scalar or vector based on whether all SLP
5584 scalar stmts have the same rhs.
5585
5586 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5587
5588 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5589 memory operands.
5590
5591 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5592
5593 PR target/43700
5594 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5595 registers.
5596
5597 2011-04-17 Jan Hubicka <jh@suse.cz>
5598
5599 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5600 * cgrpahunit.c (cgraph_finalize_function): Do not set
5601 finalized_by_frontend.
5602 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5603 finalized_by_frontend.
5604
5605 2011-04-17 Jan Hubicka <jh@suse.cz>
5606
5607 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5608 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5609 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5610 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5611 method.
5612 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5613 gimple-fold.c
5614 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5615
5616 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5617
5618 PR lto/48538
5619 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5620 is non-null before accessing it.
5621 (input_cgraph): Remove trailing spaces.
5622
5623 2011-04-17 Revital Eres <revital.eres@linaro.org>
5624
5625 * params.def (sms-min-sc): New param flag.
5626 * modulo-sched.c (sms_schedule): Use it.
5627 * doc/invoke.texi (sms-min-sc): Document it.
5628
5629 2011-04-17 Jan Hubicka <jh@suse.cz>
5630
5631 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5632 present, also set gimple_call_set_cannot_inline.
5633 * ipa-inline.c: Update toplevel comment.
5634 (MAX_TIME): Remove.
5635 (cgraph_clone_inlined_nodes): Fix linebreaks.
5636 (cgraph_check_inline_limits): Restructure to ...
5637 (caller_growth_limits): ... this one; be more tolerant
5638 on growth in nested inline chains; add explanatory comment;
5639 fix stack accounting thinko introduced by previous patch.
5640 (cgraph_default_inline_p): Remove.
5641 (report_inline_failed_reason): New function.
5642 (can_inline_edge_p): New function.
5643 (can_early_inline_edge_p): New function.
5644 (leaf_node_p): Move upwards in file.
5645 (want_early_inline_function_p): New function.
5646 (want_inline_small_function_p): New function.
5647 (want_inline_self_recursive_call_p): New function.
5648 (cgraph_edge_badness): Rename to ...
5649 (edge_badness) ... this one; fix linebreaks.
5650 (update_edge_key): Update call of edge_baddness; add
5651 detailed dump about queue updates.
5652 (update_caller_keys): Use can_inline_edge_p and
5653 want_inline_small_function_p.
5654 (cgraph_decide_recursive_inlining): Rename to...
5655 (recursive_inlining): Use can_inline_edge_p and
5656 want_inline_self_recursive_call_p; simplify and remove no longer
5657 valid FIXME.
5658 (cgraph_set_inline_failed): Remove.
5659 (add_new_edges_to_heap): Use can_inline_edge_p and
5660 want_inline_small_function_p.
5661 (cgraph_decide_inlining_of_small_functions): Rename to ...
5662 (inline_small_functions): ... this one; cleanup; use
5663 can/want predicates; cleanup debug ouput; work edges till fibheap
5664 is exhausted and do not stop once unit growth is reached; remove
5665 later loop processing remaining edges.
5666 (cgraph_flatten): Rename to ...
5667 (flatten_function): ... this one; use can_inline_edge_p
5668 and can_early_inline_edge_p predicates.
5669 (cgraph_decide_inlining): Rename to ...
5670 (ipa_inline): ... this one; remove unreachable nodes before
5671 inlining functions called once; simplify the pass.
5672 (cgraph_perform_always_inlining): Rename to ...
5673 (inline_always_inline_functions): ... this one; use
5674 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5675 (cgraph_decide_inlining_incrementally): Rename to ...
5676 (early_inline_small_functions): ... this one; simplify
5677 using new predicates; cleanup; make dumps prettier.
5678 (cgraph_early_inlining): Rename to ...
5679 (early_inliner): newer inline regular functions into always-inlines;
5680 fix updating of call stmt summaries.
5681 (pass_early_inline): Update for new names.
5682 (inline_transform): Fix formating.
5683 (gate_cgraph_decide_inlining): Rename to ...
5684 (pass_ipa_inline): ... this one.
5685 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5686 * ipa-inline-analysis.c (dump_inline_summary): Update.
5687 (compute_inline_parameters): Do not compute disregard_inline_limits;
5688 look for mismatching arguments.
5689 (estimate_growth): Fix handlig of non-trivial self recursion.
5690 (inline_read_summary): Do not read info->disregard_inline_limits.
5691 (inline_write_summary): Do not write info->disregard_inline_limits.
5692 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5693 and move all checks into can_inline_edge_p predicate; re-enable code
5694 comparing optimization levels.
5695 (expand_call_inline): Do not test inline_forbidden_into_p.
5696 * Makefile.in (ipa-inline.o): Update arguments.
5697
5698 2011-04-17 Revital Eres <revital.eres@linaro.org>
5699
5700 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5701
5702 2011-04-17 Revital Eres <revital.eres@linaro.org>
5703
5704 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5705
5706 2011-04-17 Michael Matz <matz@suse.de>
5707
5708 PR tree-optimization/48622
5709 PR lto/48645
5710 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5711 in same order as they're written.
5712
5713 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5714
5715 * config/pa/predicates.md: Reorganize and simplify predicates.
5716 Eliminate duplicate code checks.
5717 (arith_operand): Rename to arith14_operand
5718 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5719 * config/pa/pa.md: Use renamed operands.
5720 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5721 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5722 arith11_operand, adddi3_operand, indexed_memory_operand,
5723 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5724 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5725 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5726 move_dest_operand, move_src_operand, prefetch_cc_operand,
5727 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5728 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5729 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5730 div_operand, int5_operand, movb_comparison_operator,
5731 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5732 arith_double_operand, ireg_operand, lhs_lshift_operand,
5733 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5734 integer_store_memory_operand): Likewise.
5735 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5736 (integer_store_memory_operand, read_only_operand,
5737 function_label_operand, borx_reg_operand,
5738 non_hard_reg_operand): Likewise.
5739 (eq_neq_comparison_operator): Delete unused operator.
5740 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5741 function_label_operand.
5742 (emit_move_sequence): Likewise.
5743
5744 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5745
5746 * config/i386/sse.md (sseunpackmode): New mode attribute.
5747 (ssepackmode): Ditto.
5748 (vec_pack_trunc_<mode>): Macroize expander from
5749 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5750 (vec_unpacks_lo_<mode>): Macroize expander from
5751 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5752 (vec_unpacks_hi_<mode>): Macroize expander from
5753 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5754 (vec_unpacku_lo_<mode>): Macroize expander from
5755 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5756 (vec_unpacku_hi_<mode>): Macroize expander from
5757 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5758 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5759 ix86_expand_sse4_unpack.
5760 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5761
5762 2011-04-16 Jan Hubicka <jh@suse.cz>
5763
5764 * cgraphbuild.c: Include ipa-inline.h.
5765 (reset_inline_failed): Use initialize_inline_failed.
5766 * cgraph.c: Include ipa-inline.h.
5767 (cgraph_create_node_1): Do not initialize estimated_growth.
5768 (initialize_inline_failed): More to ipa-inline-analysis.c
5769 (dump_cgraph_node): Do not dump inline flags.
5770 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5771 and disregard_inline_limits flags.
5772 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5773 time, size, estimated_growth.
5774 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5775 Update.
5776 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5777 DECL_DISREGARD_INLINE_LIMITS.
5778 (cgraph_analyze_function): Do not initialize
5779 node->local.disregard_inline_limits.
5780 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5781 inlinable, versionable and disregard_inline_limits.
5782 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5783 cgraph_check_inline_limits, cgraph_default_inline_p,
5784 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5785 add_new_edges_to_heap): Update.
5786 (cgraph_decide_inlining_of_small_function): Update; set
5787 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5788 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5789 cgraph_decide_inlining_incrementally): Update.
5790 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5791 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5792 time, size and estimated_growth parameters.
5793 (estimate_edge_growth): Update.
5794 (initialize_inline_failed): Declare.
5795 * ipa-split.c: Include ipa-inline.h
5796 (execute_split_functions): Update.
5797 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5798 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5799 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5800 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5801 estimated_growth to INT_MIN.
5802 (inline_node_duplication_hook): Likewise.
5803 (dump_inline_summary): Dump new fields.
5804 (compute_inline_parameters): Update.
5805 (estimate_edge_time, estimate_time_after_inlining,
5806 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5807 inline_write_summary):
5808 (initialize_inline_failed): Move here from cgraph.c.
5809 * tree-sra.c: Include ipa-inline.h.
5810 (ipa_sra_preliminary_function_checks): Update.
5811 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5812 ipa-inline.h.
5813
5814 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5815
5816 * config/i386/sse.md (V16): New mode iterator.
5817 (VI1, VI8): Ditto.
5818 (AVXMODEQI, AVXMODEDI): Remove.
5819 (sse2, sse3): New mode attribute.
5820 (mov<mode>): Use V16 mode iterator.
5821 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5822 (push<mode>1): Use V16 mode iterator.
5823 (movmisalign<mode>): Ditto.
5824 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5825 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5826 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5827 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5828 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5829 avx_movdqu<avxmodesuffix>.
5830 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5831 *avx_movdqu<avxmodesuffix>.
5832 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5833 avx_lddqu<avxmodesuffix>.
5834 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5835 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5836 avx_movnt<AVXMODEDI:mode>.
5837 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5838 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5839
5840 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5841
5842 PR target/48629
5843 * haifa-sched.c (prune_ready_list, schedule_block): Use
5844 sched_pressure_p rather than flag_sched_pressure.
5845
5846 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5847
5848 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5849 cgraph_get_node instead of cgraph_get_create_node.
5850
5851 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5852
5853 * cfgexpand.c (expand_debug_expr): Use
5854 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5855
5856 2011-04-15 Michael Matz <matz@suse.de>
5857
5858 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5859 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5860 * function.c (gimplify_parameters): Ditto.
5861 * gimplify.c (gimplify_vla_decl): Ditto.
5862
5863 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5864 (gimple_call_set_alloca_for_var): New inline function.
5865 (gimple_call_alloca_for_var_p): Ditto.
5866 * gimple.c (gimple_build_call_from_tree): Remember
5867 CALL_ALLOCA_FOR_VAR_P state.
5868 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5869
5870 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5871 calls if they were for VLA objects.
5872
5873 2011-04-15 Martin Jambor <mjambor@suse.cz>
5874
5875 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5876 of ADR_EXPRs.
5877
5878 2011-04-15 Martin Jambor <mjambor@suse.cz>
5879
5880 PR middle-end/48601
5881 * tree-emutls.c (lower_emutls_function_body): Call
5882 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5883 result is non-NULL.
5884
5885 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5886
5887 * c-decl.c (detect_field_duplicates): Call
5888 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5889
5890 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5891
5892 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5893 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5894 * ipa-pure-const.c (check_stmt): Call it.
5895 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5896
5897 2011-04-15 Richard Guenther <rguenther@suse.de>
5898
5899 PR tree-optimization/48290
5900 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5901 Properly decide inhibiting propagation based on the valueized
5902 operand. Do loop-closed SSA form preserving here ...
5903 (init_copy_prop): ... not here.
5904
5905 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5906
5907 PR target/48612
5908 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5909 (*ieee_smax<mode>3): Likewise.
5910
5911 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5912
5913 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5914 Replace match_operand with match_dup for the third operand in
5915 these expanders.
5916
5917 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5918
5919 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5920 to track processing of conditionals. Update all callers.
5921 (try_combine, simplify_if_then_else): Update.
5922
5923 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5924
5925 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5926 -fsched-pressure.
5927
5928 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5929
5930 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5931 instead of match_operand for operand 3.
5932
5933 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5934
5935 * recog.h (insn_operand_data): Add an "allows_mem" field.
5936 * genoutput.c (output_operand_data): Initialize it.
5937 * optabs.c (maybe_legitimize_operand_same_code): New function.
5938 (maybe_legitimize_operand): Use it when matching the original
5939 op->value.
5940
5941 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5942
5943 * gimplify.c: Fix issues in comments throughout.
5944 (voidify_wrapper_expr): Fix long line.
5945 (build_stack_save_restore): Likewise.
5946 (gimplify_loop_expr): Likewise.
5947 (gimplify_compound_lval): Likewise.
5948 (gimplify_init_ctor_eval): Likewise.
5949 (gimplify_modify_expr_rhs): Likewise.
5950 (omp_notice_threadprivate_variable): Likewise.
5951
5952 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5953
5954 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5955 original one if this is not a builtin function.
5956
5957 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5958
5959 PR target/48605
5960 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5961 offset it as needed based on top 2 bits in operands[3], change
5962 MEM mode to SFmode and mask those 2 bits away from operands[3].
5963
5964 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5965
5966 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5967 change from objc_declare_protocols() to objc_declare_protocol().
5968
5969 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5970
5971 * config/i386/sse.md (sse4_1): New mode attribute.
5972 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5973 avx_blend<ssemodesuffix><avxmodesuffix> and
5974 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5975 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5976 avx_blendv<ssemodesuffix><avxmodesuffix> and
5977 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5978 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5979 avx_dp<ssemodesuffix><avxmodesuffix> and
5980 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5981 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5982 (sse4_1_packusdw): Merge with *avx_packusdw.
5983 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5984 (sse4_1_pblendw): Merge with *avx_pblendw.
5985 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5986 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5987 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5988 VF mode iterator.
5989 (sse4_1_round<ssescalarmodesuffix>): Merge with
5990 *avx_round<ssescalarmodesuffix>.
5991 (aesenc): Merge with *avx_aesenc.
5992 (aesenclast): Merge with *avx_aesenclast.
5993 (aesdec): Merge with *avx_aesdec.
5994 (aesdeclast): Merge with *avx_aesdeclast.
5995 (pclmulqdq): Merge with *pclmulqdq.
5996 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5997 New predicate.
5998 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5999
6000 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6001
6002 PR middle-end/48608
6003 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6004 (align_local_variable): This. Update DECL_ALIGN.
6005 (add_stack_var): Updated.
6006 (expand_one_stack_var): Likewise.
6007
6008 2011-04-14 Richard Guenther <rguenther@suse.de>
6009
6010 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6011 Remove.
6012 (dse_initialize_block_local_data, dse_leave_block,
6013 record_voperand_set, get_stmt_uid): Likewise.
6014 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6015 (dse_optimize_stmt): Remove voperand set handling code.
6016 Simplify and improve to handle any kind of killing stmt.
6017 (dse_record_phi): Remove.
6018 (dse_enter_block): Simplify.
6019 (tree_ssa_dse): Likewise.
6020 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6021
6022 2011-04-14 Jan Hubicka <jh@suse.cz>
6023
6024 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6025 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6026 (cgraph_local_info): Remove inline_summary.
6027 * ipa-cp.c: Include ipa-inline.h.
6028 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6029 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6030 accesor.
6031 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6032 (input_overwrite_node): Do not set inline summary.
6033 (input_node): Do not stream inline summary.
6034 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6035 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6036 growth; we do not have inline parameters computed for that anyway.
6037 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6038 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6039 (inline_summary_t): New type and VECtor.
6040 (debug_inline_summary, dump_inline_summaries): Declare.
6041 (inline_summary): Use VOCtor.
6042 (estimate_edge_growth): Kill hack computing call stmt size directly.
6043 * lto-section-in.c (lto_section_name): Add inline section.
6044 * ipa-inline-analysis.c: Include lto-streamer.h
6045 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6046 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6047 (inline_summary_vec): Define.
6048 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6049 dump_inline_summaries): New functions.
6050 (estimate_function_body_sizes): Properly compute size/time of outgoing
6051 calls.
6052 (compute_inline_parameters): Alloc inline_summary; do not compute
6053 size/time of incomming calls.
6054 (estimate_edge_time): Avoid missing time summary hack.
6055 (inline_read_summary): Read inline summary info.
6056 (inline_write_summary): Write inline summary info.
6057 (inline_free_summary): Free all hooks and inline summary vector.
6058 * lto-streamer.h: Add LTO_section_inline_summary section.
6059 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6060 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6061
6062 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6063
6064 * tree-vectorizer.h (vect_strided_store_supported): Add a
6065 HOST_WIDE_INT argument.
6066 (vect_strided_load_supported): Likewise.
6067 (vect_permute_store_chain): Return void.
6068 (vect_transform_strided_load): Likewise.
6069 (vect_permute_load_chain): Delete.
6070 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6071 count argument. Check that the count is a power of two.
6072 (vect_strided_load_supported): Likewise.
6073 (vect_permute_store_chain): Return void. Update after above changes.
6074 Assert that the access is supported.
6075 (vect_permute_load_chain): Likewise.
6076 (vect_transform_strided_load): Return void.
6077 * tree-vect-stmts.c (vectorizable_store): Update calls after
6078 above interface changes.
6079 (vectorizable_load): Likewise.
6080 (vect_analyze_stmt): Don't check for strided powers of two here.
6081
6082 2011-04-14 Richard Guenther <rguenther@suse.de>
6083
6084 PR tree-optimization/48590
6085 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6086 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6087 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6088 BUILT_IN_STACK_SAVE.
6089 * tree-ssa-dce.c (propagate_necessity): Handle
6090 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6091
6092 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6093
6094 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6095 objc_declare_class.
6096
6097 2011-04-14 Richard Guenther <rguenther@suse.de>
6098
6099 * tree.h (get_object_alignment_1): Declare.
6100 * builtins.c (get_object_alignment_1): Split out worker from ...
6101 (get_object_alignment): ... here.
6102 * fold-const.c (get_pointer_modulus_and_residue): Use
6103 get_object_alignment_1.
6104
6105 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6106
6107 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6108 type parameter.
6109 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6110 parameter. Generalise code to handle arrays as well as vectors.
6111 (vect_setup_realignment): Update accordingly.
6112 * tree-vect-stmts.c (vectorizable_store): Likewise.
6113 (vectorizable_load): Likewise.
6114
6115 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6116
6117 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6118 within the per-copy loop.
6119
6120 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6121
6122 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6123 in the dump file.
6124
6125 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6126
6127 * doc/options.texi (Negative): Explicitly mention that the
6128 Negative chain must be circular.
6129
6130 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6131
6132 * function.h (block_chainon): Declare.
6133 * function.c (block_chainon): Define.
6134
6135 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6136 Eric Weddington <eric.weddington@atmel.com>
6137 Georg-Johann Lay <avr@gjlay.de>
6138
6139 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6140 New Includes
6141 (avr_init_builtins, avr_expand_builtin,
6142 avr_expand_delay_cycles, avr_expand_unop_builtin,
6143 avr_expand_binop_builtin ): New functions.
6144 (avr_builtin_id): New enum
6145 (struct avr_builtin_description): New struct
6146 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6147 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6148
6149 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6150 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6151 UNSPECV_DELAY_CYCLES): new enumeration values
6152 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6153 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6154 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6155 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6156 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6157 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6158 "fmulsu"): New insns
6159
6160 * config/avr/avr-c.c: fix line endings
6161 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6162 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6163 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6164 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6165 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6166
6167 * doc/extend.texi (AVR Built-in Functions): New node
6168 (Target Builtins): Add documentation of AVR
6169 built-in functions.
6170
6171 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6172
6173 PR target/44643
6174 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6175 alone. Error if non-const data has attribute progmem.
6176
6177 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6178
6179 * tree.h (struct tree_constructor): Include tree_typed instead of
6180 tree_common.
6181 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6182 TS_TYPED instead of TS_COMMON.
6183
6184 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6185
6186 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6187 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6188 (sse2_psadbw): Merge with *avx_psadbw.
6189 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6190 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6191 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6192 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6193 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6194 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6195 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6196 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6197 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6198 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6199 (ssse3_palignrti): Merge with *avx_palignrti.
6200
6201 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6202
6203 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6204 * tree-ssanames.c (fini_ssanames): VEC_free it.
6205 (make_ssa_name_fn): Update for VECness of free_ssanames.
6206 (release_ssa_name, release_dead_ssa_names): Likewise.
6207 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6208 tree_common.
6209 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6210 TS_TYPED instead of TS_COMMON.
6211
6212 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6213
6214 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6215 statistics_counter_event.
6216 * tree-ssa-copyrename.c (stats): Define.
6217 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6218 statistics_counter_event.
6219 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6220 (bswap_stats, widen_mul_stats): Define.
6221 (insert_reciprocals): Increment rdivs_inserted.
6222 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6223 rfuncs_inserted. Add calls to statistics_counter_event.
6224 (execute_cse_sincos_1): Increment inserted.
6225 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6226 statistics_counter_event.
6227 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6228 of bswap_stats. Add calls to statistics_counter_event.
6229 (convert_mult_to_widen): Increment widen_mults_inserted.
6230 (convert_plusminus_to_widen): Increment maccs_inserted.
6231 (convert_mult_to_fma): Increment fmas_inserted.
6232 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6233 calls to statistics_counter_event.
6234
6235 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6236
6237 PR rtl-optimization/48455
6238 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6239 `temp_costs->mem_cost'.
6240
6241 2011-04-13 Jan Hubicka <jh@suse.cz>
6242
6243 * ipa-inline.h: New file.
6244 * ipa-inline-analysis.c: New file. Broken out of ...
6245 * ipa-inline.c: ... this file; update toplevel comment;
6246 include ipa-inline.h
6247 (inline_summary): Move to ipa-inline.h
6248 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6249 ipa-inline-analysis.c.
6250 (cgraph_estimate_time_after_inlining): Rename to
6251 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6252 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6253 to estimate_edge_growth.
6254 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6255 rename to estimate_size_after_inlining.
6256 (cgraph_mark_inline_edge): Update for new naming convention.
6257 (cgraph_check_inline_limits): Likewise.
6258 (cgraph_edge_badness): Likewise.
6259 (cgraph_decide_recursive_inlining): Likewise.
6260 (cgraph_decide_inlining_of_small_functions): Likewise.
6261 (cgraph_decide_inlining_incrementally): Likewise.
6262 (cgraph_estimate_growth): Rename to estimate_growth; move to
6263 ipa-inline-analysis.c.
6264 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6265 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6266 (compute_inline_parameters): Likewise.
6267 (compute_inline_parameters_for_current): Likewise.
6268 (pass_inline_parameters): Likewise.
6269 (inline_indirect_intraprocedural_analysis): Likewise.
6270 (analyze_function): Rename to inline_analyze_function; likewise.
6271 (add_new_function): Move to ipa-inline-analysis.c.
6272 (inline_generate_summary): Likewise.
6273 (inline_read_summary): Likewise.
6274 (inline_write_summary): Likewise.
6275 * Makefile.in (ipa-inline-analysis.c): New file.
6276
6277 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6278
6279 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6280 * configure: Regenerate.
6281
6282 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6283
6284 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6285 instead of tree_common.
6286 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6287 Likewise.
6288 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6289 TS_TYPED rather than TS_COMMON.
6290 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6291
6292 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6293
6294 PR target/45263
6295 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6296 r20 around calls of __tablejump_elpm__
6297
6298 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6299
6300 PR middle-end/48591
6301 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6302 NULL.
6303 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6304
6305 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6306
6307 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6308 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6309 (cfi_vec): New typedef.
6310 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6311 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6312 (cie_cfi_vec): New static variable.
6313 (cie_cfi_head): Delete.
6314 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6315 declaration changed. Use vector rather than list operations.
6316 (new_cfi): Don't initialize the dw_cfi_next field.
6317 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6318 rather than list operations.
6319 (lookup_cfa): Use vector rather than list operations.
6320 (output_cfis): New argument upto. Accept a cfi_vec rather than
6321 a dw_cfi_ref list head as argument. All callers changed.
6322 Iterate over the vector using upto as a maximum index.
6323 (output_all_cfis): New static function.
6324 (output_fde): Use vector rather than list operations. Use the
6325 new upto argument for output_cfis rather than manipulating a
6326 list.
6327 (dwarf2out_begin_prologue): Change initializations to match
6328 new struct members.
6329 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6330 from the vector length rather than searching for the end of a list.
6331 Use output_all_cfis.
6332 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6333
6334 2011-04-13 Nick Clifton <nickc@redhat.com>
6335
6336 * config/rx/rx.md (movmemsi): Do not use this pattern when
6337 volatile pointers are involved.
6338
6339 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6340
6341 * config/i386/sse.md (pinsrbits): Remove.
6342 (sse2_packsswb): Merge with *avx_packsswb.
6343 (sse2_packssdw): Merge with *avx_packssdw.
6344 (sse2_packuswb): Merge with *avx_packuswb.
6345 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6346 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6347 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6348 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6349 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6350 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6351 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6352 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6353 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6354 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6355 (sse2_loadld): Merge with *avx_loadld.
6356 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6357 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6358 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6359 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6360 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6361
6362 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6363
6364 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6365 calling TREE_CHAIN.
6366 * print-tree.c (print_node): Likewise.
6367 * tree-inline.c (copy_tree_r): Likewise.
6368 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6369 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6370 instead of TS_COMMON.
6371 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6372 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6373 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6374 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6375 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6376 ...and these...
6377 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6378 * tree.h: ...here.
6379 (TREE_CHAIN): Check for a TS_COMMON structure.
6380 (TREE_TYPE): Check for a TS_TYPED structure.
6381
6382 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6383
6384 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6385 cgraph_get_create_node instead of cgraph_node.
6386
6387 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6388
6389 * c-parser.c (c_parser_initelt): Updated call to
6390 objc_build_message_expr.
6391 (c_parser_postfix_expression): Likewise.
6392
6393 2011-04-12 Kai Tietz <ktietz@redhat.com>
6394
6395 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6396 MASK_MS_BITFIELD_LAYOUT bit.
6397
6398 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6399
6400 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6401 assert it is always true.
6402 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6403 moves.
6404
6405 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6406
6407 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6408 compiling Objective-C to be more efficient.
6409
6410 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6411
6412 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6413 argv_copied.
6414
6415 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6416
6417 * recog.h, genoutput.c, optabs.c: Revert last patch.
6418
6419 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6420
6421 PR target/48090
6422 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6423
6424 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6425
6426 * recog.h (insn_operand_data): Add an "allows_mem" field.
6427 * genoutput.c (output_operand_data): Initialize it.
6428 * optabs.c (maybe_legitimize_operand_same_code): New function.
6429 (maybe_legitimize_operand): Use it when matching the original
6430 op->value.
6431
6432 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6433
6434 * genpreds.c (process_define_predicate): Move most processing
6435 to gensupport.c. Continue to validate the expression.
6436 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6437 (process_define_predicate): Move processing to gensupport.c.
6438 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6439 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6440 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6441 argument.
6442 (valid_predicate_name_p): New function, split out from old
6443 genpreds.c:process_define_predicate.
6444 (process_define_predicate): New function, combining code from
6445 old genpreds.c and genrecog.c functions.
6446 (process_rtx): Call it for DEFINE_PREDICATE and
6447 DEFINE_SPECIAL_PREDICATE.
6448
6449 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6450
6451 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6452 size of a '%A' memory reference.
6453 (T_DREG, T_QREG): New neon_builtin_type_bits.
6454 (arm_init_neon_builtins): Assert that the load and store operands
6455 are neon_struct_operands.
6456 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6457 (NEON_ARG_MEMORY): New builtin_arg.
6458 (neon_dereference_pointer): New function.
6459 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6460 Handle NEON_ARG_MEMORY.
6461 (arm_expand_neon_builtin): Update after above interface changes.
6462 Use NEON_ARG_MEMORY for loads and stores.
6463 * config/arm/predicates.md (neon_struct_operand): New predicate.
6464 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6465 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6466 (V_four_elem): Tweak formatting.
6467 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6468 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6469 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6470 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6471 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6472 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6473 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6474 Use %A in the output template.
6475 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6476 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6477 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6478 the width of the memory access. Remove post-increment.
6479 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6480
6481 2011-04-12 Nick Clifton <nickc@redhat.com>
6482
6483 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6484 instruction for interrupt handlers if the target is the basic V850
6485 architecture.
6486 (expand_epilogue): Likewise.
6487
6488 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6489
6490 PR rtl-optimization/48549
6491 * combine.c (propagate_for_debug): Also stop after BB_END of
6492 this_basic_block. Process LAST and just stop processing after it.
6493 (combine_instructions): If last_combined_insn has been deleted,
6494 set last_combined_insn to its PREV_INSN.
6495
6496 2011-04-12 Richard Guenther <rguenther@suse.de>
6497
6498 PR tree-optimization/46076
6499 * gimple.h (struct gimple_statement_call): Add fntype field.
6500 (gimple_call_fntype): Adjust.
6501 (gimple_call_set_fntype): New function.
6502 * gimple.c (gimple_build_call_1): Set the call function type.
6503 * gimplify.c (gimplify_call_expr): Preserve the function
6504 type the frontend used for the call.
6505 (gimplify_modify_expr): Likewise.
6506 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6507 function type.
6508 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6509 function type.
6510 * tree-ssa.c (useless_type_conversion_p): Function pointer
6511 conversions are useless.
6512
6513 2011-04-12 Martin Jambor <mjambor@suse.cz>
6514
6515 * cgraph.h (cgraph_node): Remove function declaration.
6516 (cgraph_create_node): Declare.
6517 (cgraph_get_create_node): Likewise.
6518 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6519 Updated all callers.
6520 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6521 the decl does not already exist. Call cgraph_get_create_node instead
6522 of cgraph_node.
6523 (cgraph_get_create_node): New function.
6524 (cgraph_same_body_alias): Update comment.
6525 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6526 assert it does not return NULL.
6527 (cgraph_update_edges_for_call_stmt): Likewise.
6528 (cgraph_clone_edge): Likewise.
6529 (cgraph_create_virtual_clone): Likewise.
6530 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6531 instead of cgraph_node.
6532 (cgraph_add_new_function): Call cgraph_create_node or
6533 cgraph_get_create_node instead of cgraph_node.
6534 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6535 instead of cgraph_node.
6536 (record_eh_tables): Likewise.
6537 (mark_address): Likewise.
6538 (mark_load): Likewise.
6539 (build_cgraph_edges): Call cgraph_get_create_node instead
6540 of cgraph_node.
6541 (rebuild_cgraph_edges): Likewise.
6542 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6543 instead of cgraph_node.
6544 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6545 cgraph_node.
6546 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6547 cgraph_create_node instead of cgraph_node.
6548 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6549 of cgraph_node.
6550 * lto-cgraph.c (input_node): Likewise.
6551 * lto-streamer-in.c (input_function): Likewise.
6552 * varasm.c (mark_decl_referenced): Likewise.
6553 (assemble_alias): Likewise.
6554
6555 2011-04-12 Martin Jambor <mjambor@suse.cz>
6556
6557 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6558 instead of cgraph_node and assert it does not return NULL.
6559 * lto-streamer-in.c (lto_read_body): Likewise.
6560 * omp-low.c (new_omp_context): Likewise.
6561 (create_task_copyfn): Likewise.
6562 * tree-emutls.c (lower_emutls_function_body): Likewise.
6563 * matrix-reorg.c (transform_allocation_sites): Likewise.
6564
6565 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6566
6567 PR c/48552
6568 * c-typeck.c (build_asm_expr): Error out on attempts to use
6569 void type outputs or inputs for constraints that allow reg or
6570 don't allow memory.
6571
6572 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6573 Richard Earnshaw <rearnsha@arm.com>
6574
6575 PR target/48250
6576 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6577 to use sign-magnitude offsets. Reject unsupported unaligned
6578 cases. Add detailed description in comments.
6579 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6580 condition from TARGET_32BIT to TARGET_ARM.
6581
6582 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6583
6584 * tree.h (struct typed_tree): New.
6585 (struct tree_common): Include it instead of tree_base.
6586 (TREE_TYPE): Update for new location of type field.
6587 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6588 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6589 (union tree_node): Add typed field.
6590 * treestruct.def (TS_TYPED): New.
6591 * lto-streamer.c (check_handled_ts_structures): Handle it.
6592 * tree.c (MARK_TS_TYPED): New macro.
6593 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6594
6595 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6596
6597 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6598 (force_nonfallthru): Do not alter the loop nest if no basic block
6599 was created.
6600
6601 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6602
6603 * config/i386/sse.md (VI): New mode iterator.
6604 (SSEMODEI): Remove.
6605 (AVX256MODEI): Ditto.
6606 (AVXMODEF4P): Ditto.
6607 (avxvecpsmode): Ditto.
6608 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6609 (sse2_andnot<mode>3): New expander.
6610 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6611 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6612 (<any_logic:code><mode>3): Use VI mode iterator.
6613 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6614 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6615 (*andnottf3): Handle AVX three-operand constraints.
6616 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6617
6618 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6619 Robert Millan <rmh@gnu.org>
6620
6621 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6622 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6623 GNU_USER_DYNAMIC_LINKER64): Define.
6624 (REG_NAME): Don't undefine.
6625 (MD_UNWIND_SUPPORT): Undefine.
6626 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6627 (REG_NAME): Don't undefine.
6628 (MD_UNWIND_SUPPORT): Undefine.
6629 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6630
6631 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6632
6633 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6634 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6635
6636 2011-04-11 Xinliang David Li <davidxl@google.com>
6637
6638 * value-profile.c (check_ic_target): New function.
6639 (gimple_ic_transform): Sanity check indirect call target.
6640 * gimple-low.c (gimple_check_call_args): Interface change.
6641 (gimple_check_call_matching_types): New function.
6642 * tree-inline.c (tree_can_inline_p): Call new function.
6643
6644 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6645
6646 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6647 tree-pretty-print.h & realmpfr.h.
6648
6649 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6650
6651 PR middle-end/48464
6652 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6653 (setup_allocno_and_important_classes): Ditto.
6654
6655 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6656
6657 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6658 GNU_USER_DYNAMIC_LINKER.
6659 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6660 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6661 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6662 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6663 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6664 GNU_USER_TARGET_OS_CPP_BUILTINS.
6665 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6667 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6669 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6670 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6671 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6672 GNU_USER_TARGET_OS_CPP_BUILTINS.
6673 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6674 GNU_USER_DYNAMIC_LINKER.
6675 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6676 GNU_USER_TARGET_OS_CPP_BUILTINS.
6677 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6678 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6679 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6680 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6681 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6682 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6683 GNU_USER_DYNAMIC_LINKER64): Remove.
6684 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6685 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6686 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6687 GNU_USER_DYNAMIC_LINKER.
6688 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6689 GNU_USER_TARGET_OS_CPP_BUILTINS.
6690 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6691 GNU_USER_TARGET_OS_CPP_BUILTINS.
6692 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6693 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6694 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6695 GNU_USER_TARGET_OS_CPP_BUILTINS.
6696 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6697 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6698 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6699 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6700 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6701 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6702 GNU_USER_DYNAMIC_LINKER.
6703 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6704 GNU_USER_TARGET_OS_CPP_BUILTINS.
6705 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6706 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6707 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6708 GNU_USER_DYNAMIC_LINKER.
6709 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6710 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6711 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6712 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6713 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6714 GNU_USER_DYNAMIC_LINKER.
6715 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6716 GNU_USER_DYNAMIC_LINKERN32.
6717 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6718 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6719 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6720 GNU_USER_DYNAMIC_LINKER32.
6721 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6722 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6723 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6724 GNU_USER_DYNAMIC_LINKER.
6725 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6726 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6727 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6728 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6729 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6730 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6731 GNU_USER_DYNAMIC_LINKER32.
6732 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6733 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6734 GNU_USER_DYNAMIC_LINKER.
6735 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6736 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6737 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6738 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6739 GNU_USER_DYNAMIC_LINKER64.
6740 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6741 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6742 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6743 GNU_USER_DYNAMIC_LINKER.
6744 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6745 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6746 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6747 GNU_USER_DYNAMIC_LINKER.
6748 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6750 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6751 GNU_USER_DYNAMIC_LINKER32.
6752 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6753 GNU_USER_DYNAMIC_LINKER64.
6754 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6755 GNU_USER_DYNAMIC_LINKER64.
6756 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6757 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6758 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6761
6762 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6763
6764 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6765 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6766 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6767 GNU_USER_DYNAMIC_LINKER.
6768 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6769 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6770 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6771 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6772 GNU_USER_DYNAMIC_LINKER64.
6773 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6774 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6775 GNU_USER_LINK_EMULATION.
6776 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6777 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6778 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6779 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6780 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6781 CPP_SPEC, CC1_SPEC): Remove.
6782 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6783 (GNU_USER_DYNAMIC_LINKER): Define.
6784 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6785 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6786 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6787 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6788 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6789 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6790 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6791 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6792 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6793 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6794 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6795 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6796 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6797 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6798 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6799 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6800 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6801 GNU_USER_DYNAMIC_LINKER.
6802 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6803 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6804 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6805 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6806 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6807 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6808 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6809 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6810 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6811 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6812
6813 2011-04-11 Kai Tietz <ktietz@redhat.com>
6814
6815 PR target/9601
6816 PR target/11772
6817 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6818 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6819 comment.
6820 (ix86_is_msabi_thiscall): Removed.
6821 (ix86_is_type_thiscall): Likewise.
6822 (ix86_get_callcvt): New function.
6823 (ix86_comp_type_attributes): Simplify check.
6824 (ix86_function_regparm): Use ix86_get_callcvt for calling
6825 convention attribute checks.
6826 (ix86_return_pops_args): Likewise.
6827 (ix86_static_chain): Likewise.
6828 (x86_this_parameter): Likewise.
6829 (x86_output_mi_thunk): Likewise.
6830 (ix86_function_type_abi): Optimize check for types without attributes.
6831 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6832 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6833 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6834 by flag-values.
6835 (IX86_BASE_CALLCVT): Helper macro.
6836 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6837 Use ix86_get_callcvt for calling convention attribute checks and avoid
6838 symbol-decoration for stdcall in TARGET_RTD case.
6839 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6840 Likewise.
6841 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6842 for declaration.
6843
6844 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6845
6846 * config/i386/sse.md (VI_128): New mode iterator.
6847 (VI12_128): Rename from SSEMODE12.
6848 (VI14_128): Rename from SSEMODE14.
6849 (VI124_128): New mode iterator.
6850 (VI24_128): Rename from SSEMODE248.
6851 (VI248_128): Rename from SSEMODE248.
6852 (SSEMODE124C8): Remove.
6853 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6854 (*sse2_<plusminus_insn><mode>3): Merge with
6855 *avx_<plusminus_insn><mode>3.
6856 (*mulv8hi3): Merge with *avx_mulv8hi3.
6857 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6858 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6859 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6860 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6861 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6862 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6863 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6864 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6865 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6866 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6867 (*<smaxmin:code>v8hi3): Ditto.
6868 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6869 (*<smaxmin:code>v16qi3): Ditto.
6870 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6871 (*sse2_eq<mode>3): Ditto.
6872 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6873 (*sse2_gt<mode>3): Ditto.
6874 (vcondv2di): Split out of vcond<mode>.
6875 (vconduv2di): Split out of vcondu<mode>.
6876
6877 2011-04-11 Richard Guenther <rguenther@suse.de>
6878
6879 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6880 before calling tree_low_cst.
6881
6882 2011-04-11 Richard Guenther <rguenther@suse.de>
6883
6884 * stor-layout.c (layout_type): Compute all array index size operations
6885 in the original type.
6886 (initialize_sizetypes): Add comment.
6887 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6888
6889 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6890
6891 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6892
6893 2011-04-11 Martin Jambor <mjambor@suse.cz>
6894
6895 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6896 of cgraph_node, handle NULL return value.
6897 (cgraph_global_info): Likewise.
6898 (cgraph_rtl_info): Likewise.
6899 * tree-inline.c (estimate_num_insns): Likewise.
6900 * gimplify.c (unshare_body): Likewise.
6901 (unvisit_body): Likewise.
6902 (gimplify_body): Likewise.
6903 * predict.c (optimize_function_for_size_p): Likewise.
6904 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6905 (call_may_clobber_ref_p_1): Likewise.
6906 * varasm.c (function_section_1): Likewise.
6907 (assemble_start_function): Likewise.
6908
6909 2011-04-11 Martin Jambor <mjambor@suse.cz>
6910
6911 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6912 of cgraph_node.
6913 * final.c (rest_of_clean_state): Likewise.
6914 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6915 * passes.c (pass_init_dump_file): Likewise.
6916 (execute_all_ipa_transforms): Likewise.
6917 (function_called_by_processed_nodes_p): Likewise.
6918 * predict.c (maybe_hot_frequency_p): Likewise.
6919 (probably_never_executed_bb_p): Likewise.
6920 (compute_function_frequency): Likewise.
6921 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6922 (unnest_nesting_tree_1): Likewise.
6923 (lower_nested_functions): Likewise.
6924 * tree-optimize.c (execute_fixup_cfg): Likewise.
6925 (tree_rest_of_compilation): Likewise.
6926 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6927 * tree-sra.c (ipa_early_sra): Likewise.
6928 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6929 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6930 * ipa.c (record_cdtor_fn): Likewise.
6931 * ipa-inline.c (cgraph_early_inlining): Likewise.
6932 (compute_inline_parameters_for_current): Likewise.
6933 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6934 * ipa-pure-const.c (local_pure_const): Likewise.
6935 * ipa-split.c (split_function): Likewise.
6936 (execute_split_functions): Likewise.
6937 * cgraphbuild.c (build_cgraph_edges): Likewise.
6938 (rebuild_cgraph_edges): Likewise.
6939 (cgraph_rebuild_references): Likewise.
6940 (remove_cgraph_callee_edges): Likewise.
6941 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6942 (verify_cgraph_node): Likewise.
6943 (cgraph_analyze_functions): Likewise.
6944 (cgraph_preserve_function_body_p): Likewise.
6945 (save_inline_function_body): Likewise.
6946 (save_inline_function_body): Likewise.
6947 * tree-inline.c (copy_bb): Likewise.
6948 (optimize_inline_calls): Likewise.
6949
6950 2011-04-11 Martin Jambor <mjambor@suse.cz>
6951
6952 PR tree-optimization/48195
6953 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6954 ipa_check_create_edge_args.
6955 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6956 ipa_check_create_edge_args.
6957 * ipa-inline.c (inline_generate_summary): Do not call
6958 ipa_check_create_node_params and ipa_check_create_edge_args.
6959 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6960 ipa_check_create_edge_args.
6961
6962 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6963
6964 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6965 instead of loop.
6966 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6967 * function.c (record_hard_reg_sets): Likewise.
6968 * ira.c (compute_regs_asm_clobbered): Likewise.
6969 * sched-deps.c (sched_analyze_1): Likewise.
6970 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6971
6972 2011-04-09 Xinliang David Li <davidxl@google.com>
6973
6974 PR tree-optimization/PR48484
6975 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6976 has_valid_pred lazily
6977
6978 2011-04-09 Duncan Sands <baldrick@free.fr>
6979
6980 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6981
6982 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6983
6984 * combine.c (combine_validate_cost): Adjust comments. Set registered
6985 cost of I0 to zero at the end, if any.
6986
6987 2011-04-08 Xinliang David Li <davidxl@google.com>
6988
6989 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6990 to insane profile data.
6991
6992 2011-04-08 Xinliang David Li <davidxl@google.com>
6993
6994 * ipa-cp.c (ipcp_update_profiling): Correct
6995 negative scale factor due to insane profile data.
6996
6997 2011-04-08 Xinliang David Li <davidxl@google.com>
6998
6999 * final.c (dump_basic_block_info): New function.
7000 (final): Dump basic block.
7001 (final_scan_insn): Remove old dump.
7002
7003 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7004
7005 PR target/47829
7006 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7007 crtbegin/crtend.
7008
7009 2011-04-08 Michael Matz <matz@suse.de>
7010
7011 PR middle-end/48389
7012 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7013 functions.
7014 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7015 * rtl.h (rebuild_jump_labels_chain): Declare.
7016 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7017 insns inserted on edges.
7018
7019 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7020
7021 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7022 * config/arm/arm-arches.def: New.
7023 * config/arm/arm-opts.h: New.
7024 * config/arm/genopt.sh: New.
7025 * config/arm/arm-tables.opt: New (generated).
7026 * config/arm/arm.c (arm_handle_option, arm_target_help,
7027 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7028 (all_architectures): Get most table contents from arm-arches.def.
7029 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7030 arm_selected_tune here.
7031 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7032 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7033 (march=, mcpu=, mtune=): Use Enum and Var.
7034 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7035 (arm.o): Update dependencies.
7036
7037 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7038
7039 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7040 of header_file.
7041 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7042 (write_typed_alloc_defns): Likewise.
7043 (main): Calls write_typed_alloc_defns with output_header.
7044
7045 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7046
7047 PR inline-asm/48435
7048 * ira-color.c (setup_profitable_hard_regs): Add comments.
7049 Don't take prohibited hard regs into account.
7050 (setup_conflict_profitable_regs): Rename to
7051 get_conflict_profitable_regs.
7052 (check_hard_reg_p): Check prohibited hard regs.
7053
7054 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7055
7056 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7057 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7058 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7059
7060 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7061
7062 PR target/48366
7063 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7064 move from floating point to shift amount register.
7065 (emit_move_sequence): Remove secondary reload support for floating
7066 point to shift amount amount register copies.
7067 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7068 amount register copies.
7069 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7070 register, return false if mode isn't a scalar integer mode.
7071 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7072
7073 2011-04-08 Richard Guenther <rguenther@suse.de>
7074
7075 * gimple.c (gimple_call_flags): Remove kludge.
7076
7077 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7078
7079 * sel-sched.c (sel_region_init): Move call to
7080 sel_setup_region_sched_flags after setup_current_loop_nest.
7081
7082 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7083
7084 PR rtl-optimization/48272
7085 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7086 init_insn_reg_pressure_info. Adjust a caller.
7087 * sched-int.h (init_insn_reg_pressure_info): Declare.
7088 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7089 when sched-pressure is enabled.
7090
7091 2011-04-08 Richard Guenther <rguenther@suse.de>
7092
7093 * gimple.c (gimple_set_modified): Do not queue calls to
7094 MODIFIED_NORETURN_CALLS here ...
7095 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7096
7097 2011-04-08 Richard Guenther <rguenther@suse.de>
7098
7099 PR lto/48467
7100 * toplev.c (lang_dependent_init): Do not open asm_out_file
7101 in WPA mode, nor perform debug machinery initialization.
7102 (finalize): Do not unlink asm_out_file in WPA mode.
7103
7104 2011-04-08 Richard Guenther <rguenther@suse.de>
7105
7106 * gimple.h (gimple_call_fntype): New function.
7107 (gimple_call_return_type): Use it.
7108 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7109 * gimple-low.c (gimple_check_call_args): Likewise.
7110 * gimple.c (gimple_call_flags): Likewise.
7111 (gimple_call_arg_flags): Likewise.
7112 (gimple_call_return_flags): Likewise.
7113 * tree-cfg.c (verify_gimple_call): Likewise.
7114 (do_warn_unused_result): Likewise.
7115 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7116 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7117
7118 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7119
7120 PR rtl-optimization/48235
7121 * sel-sched.c (code_motion_process_successors): Recompute the last
7122 insn in basic block if control flow changed.
7123 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7124 Update condition for ilist_remove.
7125
7126 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7127
7128 PR rtl-optimization/48302
7129 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7130 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7131 it to record added preheader blocks.
7132 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7133 on to sel_add_loop_preheaders.
7134 (sel_region_init): Move call to setup_current_loop_nest after
7135 sel_init_bbs.
7136
7137 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7138
7139 PR target/48273
7140 * cfgloop.h (loop_has_exit_edges): New helper.
7141 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7142 non-clonable.
7143 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7144 that have no exit edges.
7145
7146 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7147
7148 PR rtl-optimization/48442
7149 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7150 all callers. Adjust assert.
7151
7152 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7153
7154 PR tree-optimization/48377
7155 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7156 is_packed to true even for types with smaller TYPE_ALIGN than
7157 TYPE_SIZE.
7158
7159 2011-04-08 Richard Guenther <rguenther@suse.de>
7160
7161 PR bootstrap/48513
7162 * doc/tm.texi: Re-generate.
7163
7164 2011-04-08 Wei Guozhi <carrot@google.com>
7165
7166 PR target/47855
7167 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7168 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7169 * config/arm/arm.md (*push_multi): Change the length computation to
7170 call a C function.
7171
7172 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7173
7174 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7175 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7176 * doc/tm.texi: Regenerate.
7177 * system.h (ASM_OUTPUT_BSS): Poison.
7178 * varasm.c (asm_output_bss): Remove function.
7179 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7180
7181 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7182 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7183 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7184 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7185 Likewise.
7186 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7187 Likewise.
7188 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7189 Likewise.
7190 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7191
7192 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7193
7194 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7195 EnumValue lines.
7196
7197 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7198
7199 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7200 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7201 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7202 OPT_mcpu32.
7203 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7204 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7205 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7206 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7207 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7208 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7209 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7210 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7211 options. Don't map other m68k options manually. Don't handle
7212 old-style options as canonical.
7213 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7214 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7215
7216 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7217
7218 * basic-block.h (force_nonfallthru): Move to...
7219 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7220 (force_nonfallthru): ...here.
7221 * cfghooks.c (force_nonfallthru): New function.
7222 * cfgrtl.c (force_nonfallthru): Rename into...
7223 (rtl_force_nonfallthru): ...this.
7224 (commit_one_edge_insertion): Do not set AUX field.
7225 (commit_edge_insertions): Do not discover new basic blocks.
7226 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7227 (cfg_layout_rtl_cfg_hooks): Likewise.
7228 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7229 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7230 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7231
7232 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7233
7234 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7235 Remove macros.
7236
7237 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7238
7239 * config/i386/sse.md: Update copyright year.
7240 (avxcvtvecmode): Remove.
7241 (sse_movhlps): Merge with *avx_movhlps.
7242 (sse_movlhps): Merge with *avx_movlhps.
7243 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7244 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7245 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7246 (sse_loadhps): Merge with *avx_loadhps.
7247 (sse_storelps): Merge with *avx_storelps.
7248 (sse_loadlps): Merge with *avx_loadlps.
7249 (sse_movss): Merge with *avx_movss.
7250 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7251 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7252 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7253 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7254 (vec_set<mode>_0): Ditto.
7255 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7256 (sse4_1_insertps): Merge with *avx_insertps.
7257 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7258 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7259 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7260 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7261 (sse2_storehpd): Merge with *avx_storehpd.
7262 (sse2_loadhpd): Merge with *avx_loadhpd.
7263 (sse2_loadlpd): Merge with *avx_loadlpd.
7264 (sse2_movsd): Merge with *avx_movsd.
7265 (*vec_concatv2df): Merge with *vec_concatv2df.
7266
7267 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7268
7269 PR debug/48343
7270 * combine.c (combine_instructions): Add last_combined_insn,
7271 update it if insn is after it, pass it to all try_combine calls.
7272 (try_combine): Add last_combined_insn parameter, pass it instead of
7273 i3 to propagate_for_debug.
7274
7275 2011-04-07 Nick Clifton <nickc@redhat.com>
7276
7277 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7278 to handle MDR <-> data register transfers.
7279 (movhi_internal): Likewise.
7280
7281 2011-04-07 Alan Modra <amodra@gmail.com>
7282
7283 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7284 previous stack info.
7285
7286 2011-04-07 Tom de Vries <tom@codesourcery.com>
7287
7288 PR target/43920
7289 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7290 flow_find_cross_jump. Swap variables to implement backward replacement.
7291 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7292
7293 2011-04-07 Tom de Vries <tom@codesourcery.com>
7294
7295 PR target/43920
7296 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7297 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7298 and bb2.
7299 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7300 src1 or src2. Redirect edges to the last basic block. Update
7301 frequency and count on multiple basic blocks in case of fallthru.
7302
7303 2011-04-07 Tom de Vries <tom@codesourcery.com>
7304
7305 PR target/43920
7306 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7307 function.
7308 (old_insns_match_p): Change return type. Replace return false/true
7309 with return dir_none/dir_both. Use can_replace_by.
7310 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7311 direction from dir_p. Register replacement direction in dir, last_dir
7312 and afterlast_dir. Handle new return type of old_insns_match_p using
7313 merge_dir. Return replacement direction in dir_p.
7314 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7315 return type of old_insns_match_p.
7316 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7317 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7318 flow_find_cross_jump.
7319 * basic-block.h (enum replace_direction): New type.
7320 (flow_find_cross_jump): Add parameter to declaration.
7321
7322 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7323
7324 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7325 (AVXMODEDCVTPS2DQ): Ditto.
7326 (VEC_FLOAT_MODE): Ditto.
7327 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7328 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7329 (<any_logic:code><mode>3): Use VF mode iterator.
7330 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7331 Use VF mode iterator.
7332 (copysign<mode>3): Use VF mode iterator.
7333 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7334 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7335 (*<any_logic:code><MODEF:mode>3): Merge with
7336 *avx_<any_logic:code><MODEF:mode>3.
7337 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7338 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7339 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7340 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7341 (sse2_cvtdq2ps): Use %v modifier.
7342 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7343 (avx_cvtps2dq<avxmodesuffix>): Remove.
7344 (sse2_cvtps2dq): Use %v modifier.
7345 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7346 (avx_cvttps2dq<avxmodesuffix>): Remove.
7347 (sse2_cvttps2dq): Use %v modifier.
7348 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7349 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7350 (sse2_cvtsd2siq): Fix insn template.
7351 (sse2_cvtsd2siq_2): Ditto.
7352 (sse2_cvttsd2siq): Ditto.
7353 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7354 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7355
7356 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7357
7358 * gcov-io.c: Use GCC Runtime Library Exception.
7359
7360 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7361
7362 PR debug/48466
7363 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7364 as base_reg whatever register reg has been eliminated to, instead
7365 of hardcoding STACK_POINTER_REGNUM.
7366
7367 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7368
7369 * doc/tm.texi.in: Document C target hooks as separate from general
7370 target hooks.
7371 * doc/tm.texi: Regenerate.
7372 * genhooks.c (struct hook_desc): Add docname field.
7373 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7374 docname field.
7375 (hook_array): Include c-target.def.
7376 (emit_documentation): Use docname field in output.
7377 (emit_init_macros): Take docname argument. Only emit definitions
7378 for hooks matching docname.
7379 (main): Expect additional arguments in all cases. Pass argument
7380 to emit_init_macros.
7381 * target.def: Move initial macro definitions and comments to
7382 target-hooks-macros.h.
7383 (gcc_targetcm): Move to c-family/c-target.def.
7384 * target.h (targetcm): Move declaration to c-family/c-target.h.
7385 * targhooks.c (default_handle_c_option): Move to
7386 c-family/c-opts.c.
7387 * targhooks.h (default_handle_c_option): Move declaration to
7388 c-family/c-common.h.
7389 * target-hooks-macros.h: New file.
7390 * config.gcc (target_has_targetcm): Define and use to add to
7391 c_target_objs and cxx_target_objs.
7392 * config/default-c.c: New file.
7393 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7394 of target.h and target-def.h.
7395 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7396 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7397 darwin_check_cfstring_format_arg): Make static.
7398 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7399 TARGET_STRING_OBJECT_REF_TYPE_P,
7400 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7401 * config/darwin-protos.h (darwin_objc_construct_string,
7402 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7403 declare.
7404 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7405 TARGET_STRING_OBJECT_REF_TYPE_P,
7406 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7407 * config/t-darwin (darwin-c.o): Update dependencies.
7408 * system.h (TARGET_HAS_TARGETCM): Poison.
7409 * Makefile.in (TARGET_H): Update.
7410 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7411 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7412 (default-c.o): New target.
7413 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7414 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7415 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7416 c-target.def.
7417 (build/genhooks.o): Update dependencies.
7418
7419 2011-04-06 Richard Guenther <rguenther@suse.de>
7420
7421 * ipa-inline.c (enum inlining_mode): Remove.
7422 (cgraph_flatten): Use some other token.
7423 (cgraph_edge_early_inlinable_p): New function, split out from ...
7424 (cgraph_perform_always_inlining): New function, split out from ...
7425 (cgraph_decide_inlining_incrementally): ... here.
7426 (cgraph_mark_inline_edge): Adjust.
7427 (cgraph_early_inlining): Re-structure.
7428 (pass_early_inline): Require SSA form.
7429
7430 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7431 Julian Brown <julian@codesourcery.com>
7432 Mark Shinwell <shinwell@codesourcery.com>
7433
7434 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7435 LO_REGS only for Thumb-1.
7436 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7437 be used in short instructions when optimising for size on Thumb-2.
7438
7439 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7440
7441 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7442 associated with user returns to be preserved.
7443
7444 2011-04-06 Tristan Gingold <gingold@adacore.com>
7445
7446 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7447 symbol_queue_size, DBXOUT_DECR_NESTING,
7448 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7449 if XCOFF_DEBUGGING_INFO.
7450
7451 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7452
7453 * config/i386/i386.md (attribute isa): New.
7454 (attribute enabled): New.
7455 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7456 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7457 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7458 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7459 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7460 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7461 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7462 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7463
7464 * config/i386/sse.md (VF): New mode iterator.
7465 (VF1): Ditto.
7466 (VF2): Ditto.
7467 (VF_128): Ditto.
7468 (SSEMODEF4): Remove.
7469 (attribute sse): Handle V8SF and V4DF modes.
7470 (<absneg:code><mode>2): Use VF mode iterator.
7471 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7472 mode iterator.
7473 (<plusminus_insn><mode>3): Use VF mode iterator.
7474 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7475 Use VF mode iterator.
7476 (<sse>_vm<plusminus_insn><mode>3): Merge with
7477 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7478 (mul<mode>3): Use VF mode iterator.
7479 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7480 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7481 mode iterator.
7482 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7483 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7484 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7485 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7486 mode iterator.
7487 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7488 Use VF1 mode iterator.
7489 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7490 (sqrt<VF2:mode>2): New expander.
7491 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7492 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7493 and sqrtv2df2. Use VF mode iterator.
7494 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7495 mode iterator.
7496 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7497 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7498 Use VF1 mode iterator.
7499 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7500 (<smaxmin:code><mode>3): Use VF mode iterator.
7501 (*<smaxmin:code><mode>3_finite): Merge with
7502 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7503 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7504 (<sse>_vm<smaxmin:code><mode>2): Merge with
7505 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7506 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7507 mode iterator.
7508 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7509 mode iterator.
7510 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7511 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7512 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7513 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7514 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7515 VF mode iterator.
7516 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7517 Use VF_128 mode iterator.
7518 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7519 mode iterator.
7520 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7521 VF_128 mode iterator.
7522 (vcond<mode>): Use VF mode iterator.
7523 * config/i386/predicates.md (sse_comparison_operator): Merge with
7524 avx_comparison_float_operator. Do not declare as special_predicate.
7525 * config/i386/i386.c (struct builtin_description): Update for renamed
7526 compare patterns.
7527 (ix86_expand_args_builtin): Ditto.
7528 (ix86_expand_sse_compare_mask): Ditto.
7529
7530 2011-04-06 Richard Guenther <rguenther@suse.de>
7531
7532 * tree-inline.c (estimate_num_insns): For calls simply account
7533 for all passed arguments and a used return value.
7534
7535 2011-04-06 Richard Guenther <rguenther@suse.de>
7536
7537 PR tree-optimization/47663
7538 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7539 call_stmt_time fields.
7540 (cgraph_edge_inlinable_p): Declare.
7541 (cgraph_edge_recursive_p): New inline function.
7542 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7543 (cgraph_clone_edge): Copy it.
7544 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7545 Account for call stmt time.
7546 (cgraph_estimate_time_after_inlining): Take edge argument.
7547 (cgraph_estimate_edge_growth): Account call stmt size.
7548 (cgraph_estimate_size_after_inlining): Take edge argument.
7549 (cgraph_mark_inline_edge): Adjust.
7550 (cgraph_check_inline_limits): Likewise.
7551 (cgraph_recursive_inlining_p): Remove.
7552 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7553 (cgraph_decide_recursive_inlining): Take edge argument and
7554 adjust.
7555 (cgraph_decide_inlining_of_small_functions): Do not avoid
7556 diags for recursive inlining here.
7557 (cgraph_flatten): Adjust.
7558 (cgraph_decide_inlining_incrementally): Likewise.
7559 (estimate_function_body_sizes): Remove call cost handling.
7560 (compute_inline_parameters): Initialize caller edge call costs.
7561 (cgraph_estimate_edge_growth): New function.
7562 (cgraph_estimate_growth): Use it.
7563 (cgraph_edge_badness): Likewise.
7564 (cgraph_check_inline_limits): Take an edge argument.
7565 (cgraph_decide_inlining_of_small_functions): Adjust.
7566 (cgraph_decide_inlining): Likewise.
7567 * tree-inline.c (estimate_num_insns): Only account for call
7568 return value if it is used.
7569 (expand_call_inline): Avoid diagnostics on recursive inline
7570 functions here.
7571 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7572 (input_edge): Input edge call costs.
7573
7574 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575
7576 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7577
7578 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7579
7580 * doc/invoke.texi (Spec Files): Fix typo.
7581
7582 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7583
7584 * profile.c (branch_prob): Move declaration of local variable. Remove
7585 obsolete ??? comment. Expand the location explicitly instead of using
7586 the LOCATION_FILE and LOCATION_LINE macros.
7587
7588 2011-04-06 Wei Guozhi <carrot@google.com>
7589
7590 PR target/47855
7591 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7592 (arm_cond_branch): Likewise.
7593 (arm_cond_branch_reversed): Likewise.
7594 (arm_jump): Likewise.
7595 (push_multi): Likewise.
7596 * config/arm/constraints.md (Py): New constraint.
7597
7598 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7599
7600 PR bootstrap/48471
7601 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7602 Move these...
7603 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7604 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7605 #ifdef DBX_DEBUGGING_INFO.
7606
7607 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7608
7609 PR bootstrap/48403
7610 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7611 if old and new states differ.
7612
7613 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7614
7615 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7616 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7617 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7618 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7619 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7620 mcfv4e): Use Alias.
7621 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7622 ColdFire options to -mcpu= options.
7623
7624 2011-04-05 Jeff Law <law@redhat.com>
7625
7626 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7627 check if BB is a successor of LOOP->header and return
7628 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7629
7630 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7631
7632 * cprop.c (struct reg_use): Remove.
7633 (reg_use_table): Make an array of RTX.
7634 (find_used_regs, constprop_register, local_cprop_pass,
7635 bypass_block): Simplify users of reg_use_table.
7636 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7637 on one of the uses found by find_used_regs.
7638
7639 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7640
7641 PR bootstrap/48469
7642 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7643 declaration.
7644
7645 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7646
7647 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7648 as an rtx.
7649 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7650
7651 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7652
7653 PR middle-end/48441
7654 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7655
7656 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7657
7658 * combine.c: Include obstack.h.
7659 (struct insn_link): Define.
7660 (uid_log_links): Adjust type.
7661 (FOR_EACH_LOG_LINK): New macro.
7662 (insn_link_obstack): Declare.
7663 (alloc_insn_link): Define.
7664 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7665 type of link variables.
7666 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7667 (try_combine, record_promoted_values, distribute_notes): Likewise.
7668 (distribute_links): Likewise. Tweak prototype.
7669 (clear_log_links): Delete.
7670 (adjust_for_new_dest): Call alloc_insn_link.
7671 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7672
7673 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7674
7675 * gcse.c (modify_mem_list): Convert to an array of VECs.
7676 (canon_modify_mem_list, compute_transp): Tweak formatting.
7677 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7678 (load_killed_in_block_p): Likewise.
7679 (record_last_mem_set_info): Likewise.
7680 (clear_modify_mem_tables): Likewise.
7681
7682 2011-04-05 Tom de Vries <tom@codesourcery.com>
7683
7684 PR middle-end/48461
7685 * function.c (emit_use_return_register_into_block): Only define if
7686 HAVE_return.
7687
7688 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7689
7690 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7691
7692 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7693
7694 * config/rx/rx-opts.h: New.
7695 * config/rx/rx.c (rx_cpu_type): Remove.
7696 (rx_handle_option): Don't assert that global structures are in
7697 use. Access variables via opts pointer. Defer most handling of
7698 OPT_mint_register_. Use error_at.
7699 (rx_option_override): Handle deferred OPT_mint_register_ here.
7700 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7701 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7702 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7703 (rx_cpu_types): New Enum and EnumValue entries.
7704 (mint-register=): Use Defer and use Var accordingly.
7705
7706 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7707
7708 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7709 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7710 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7711 Move these...
7712 (debug_free_queue, debug_nesting, symbol_queue_index):
7713 ...and these...
7714 * dbxout.c: ...to here. Make static.
7715
7716 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7717
7718 * gcse.c (modify_pair): Define. Define a VEC of it.
7719 (canon_modify_mem_list): Convert to an array of VECs.
7720 (free_insn_expr_list_list): Delete.
7721 (clear_modify_mem_tables): Call VEC_free instead.
7722 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7723 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7724 (canon_list_insert, compute_transp): Likewise.
7725
7726 2011-04-05 Tom de Vries <tom@codesourcery.com>
7727
7728 PR target/43920
7729 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7730 for size.
7731
7732 2011-04-05 Tom de Vries <tom@codesourcery.com>
7733
7734 PR target/43920
7735 * function.c (emit_use_return_register_into_block): New function.
7736 (thread_prologue_and_epilogue_insns): Use
7737 emit_use_return_register_into_block.
7738
7739 2011-04-05 Tom de Vries <tom@codesourcery.com>
7740
7741 PR target/43920
7742 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7743 insn.
7744
7745 2011-04-05 Tom de Vries <tom@codesourcery.com>
7746
7747 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7748
7749 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7750
7751 * config/arm/arm.md (define_constants for unspec): Replace with
7752 define_c_enum.
7753 (define_constants for unspecv): Replace with define_c_enum.
7754 * config/arm/neon.md (define_constants for unspec): Replace with
7755 define_c_enum.
7756
7757 2011-04-04 Richard Henderson <rth@redhat.com>
7758
7759 PR bootstrap/48400
7760 * dwarf2out.c (output_line_info): Always emit line info from
7761 at least one section.
7762 (dwarf2out_init): Create text_section_line_info here ...
7763 (set_cur_line_info_table): ... not here.
7764
7765 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7766
7767 PR target/48380
7768 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7769 not called.
7770
7771 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7772
7773 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7774
7775 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7776 (expr_equiv_p): Remove.
7777 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7778 (hash_scan_set): Update call to insert_set_in_table.
7779 (dump_hash_table): Dump <dest, src> pair.
7780 (lookup_set): Simplify. Lookup <dest, src> pair.
7781 (compute_transp): Remove, fold heavily simplified code into...
7782 (compute_local_properties): ...here. Expect COMP and TRANSP
7783 unconditionally.
7784 (find_avail_set): Take set directly from struct expr.
7785 (find_bypass-set): Likewise.
7786 (bypass_block): Likewise.
7787 (cprop_insn): Likewise. Remove redundant INSN_P test.
7788
7789 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7790 checks on form of COND from find_implicit_sets to here.
7791 (find_implicit_sets): Cleanup control flow. Split critical edges
7792 if it exposes implicit sets. Allocate/resize implicit_sets as
7793 necessary.
7794 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7795 changed something. Run df_analyze after find_implicit_sets if any
7796 edges were split. Do not allocate implicit_sets here.
7797
7798 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7799 (gcse_obstack): Renamed to cprop_obstack.
7800 (GNEW, GNEWVEC, GNEWVAR): Remove.
7801 (gmalloc): Remove.
7802 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7803 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7804 (gcse_alloc): Likewise, and rename to cprop_alloc.
7805 (alloc_gcse_men, free_gcse_mem): Remove.
7806 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7807 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7808 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7809
7810 * cprop.c (oprs_not_set_p): Remove.
7811 (mark_set, mark_clobber): Remove.
7812 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7813 (reg_not_set_p): New function.
7814 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7815 (cprop_insn): Likewise.
7816 (cprop_jump): Use FOR_EACH_EDGE.
7817
7818 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7819
7820 PR bootstrap/48403
7821 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7822 (rank_for_schedule): Use scheduled_insns vector instead of
7823 last_scheduled_insn.
7824 (ok_for_early_queue_removal): Likewise.
7825 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7826 we have a dbg_cnt.
7827 (choose_ready): Likewise.
7828 (commit_schedule): Use VEC_iterate.
7829 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7830 a dbg_cnt, use it and ensure the first insn is in the ready list.
7831 (haifa_sched_init): Allocate scheduled_insns.
7832 (sched_extend_ready_list): Don't allocate it; reserve space.
7833 (haifa_sched_finish): Free it.
7834
7835 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7836
7837 * optc-gen.awk: Always remove type from Variable entry before
7838 recording in var_seen.
7839
7840 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7841
7842 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7843 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7844 call to tidy_fallthru_edges.
7845
7846 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7847
7848 * doc/options.texi (ToLower): Document.
7849 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7850 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7851 * opts.h (cl_option): Add cl_tolower field.
7852 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7853 arguments with lowercase strings.
7854 * config/rx/rx.opt (mcpu=): Add ToLower.
7855 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7856 argument.
7857
7858 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7859
7860 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7861
7862 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7863
7864 * config/vax/vax.c: Include reload.h.
7865
7866 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7867
7868 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7869 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7870 (sparc_preferred_reload_class): New function.
7871
7872 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7873
7874 PR debug/48401
7875 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7876 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7877
7878 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7879
7880 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7881 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7882
7883 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7884
7885 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7886 (ASM_OUTPUT_ALIGNED_BSS): Define.
7887
7888 2011-04-03 Michael Matz <matz@suse.de>
7889
7890 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7891 and next_slot members.
7892 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7893 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7894 (lto_streamer_cache_append): Declare.
7895 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7896 unsigned index, remove offset parameter, ensure that we append
7897 or update existing entries.
7898 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7899 parameter, update next_slot for append.
7900 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7901 parameter.
7902 (lto_streamer_cache_insert_at): Likewise.
7903 (lto_streamer_cache_append): New function.
7904 (lto_streamer_cache_lookup): Use unsigned index.
7905 (lto_streamer_cache_get): Likewise.
7906 (lto_record_common_node): Don't test tree_node_can_be_shared.
7907 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7908 (lto_streamer_cache_delete): Don't free offsets member.
7909 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7910 (lto_output_string_with_length): Use lto_output_data_stream.
7911 (lto_output_tree_header): Remove ix parameter, don't write it.
7912 (lto_output_builtin_tree): Likewise.
7913 (lto_write_tree): Adjust callers to above, don't track and write
7914 offset, write unsigned index.
7915 (output_unreferenced_globals): Don't emit all global vars.
7916 (write_global_references): Use unsigned indices.
7917 (lto_output_decl_state_refs): Likewise.
7918 (write_symbol): Likewise.
7919 * lto-streamer-in.c (lto_input_chain): Move earlier.
7920 (input_function): Use unsigned index.
7921 (input_alias_pairs): Don't read and then ignore all global vars.
7922 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7923 don't pass it back, use lto_streamer_cache_append.
7924 (lto_register_var_decl_in_symtab): Use unsigned index.
7925 (lto_register_function_decl_in_symtab): Likewise.
7926 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7927 index.
7928 (lto_get_builtin_tree): Don't read index, use
7929 lto_streamer_cache_append.
7930 (lto_read_tree): Adjust call to lto_materialize_tree.
7931
7932 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7933 don't use function calls in arguments to MIN.
7934
7935 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7936 twice.
7937
7938 * gimple.c (gimple_type_leader_entry): Mark deletable.
7939
7940 2011-04-03 Alan Modra <amodra@gmail.com>
7941
7942 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7943
7944 2011-04-03 Michael Matz <matz@suse.de>
7945
7946 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7947 an integer.
7948 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7949
7950 2011-04-03 Michael Matz <matz@suse.de>
7951
7952 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7953 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7954 without function context.
7955 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7956 current_function_decl and cfun.
7957
7958 2011-04-03 Michael Matz <matz@suse.de>
7959
7960 * tree.c (decl_init_priority_insert): Don't create entry for
7961 default priority.
7962 (decl_fini_priority_insert): Ditto.
7963 (fields_compatible_p, find_compatible_field): Remove.
7964 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7965 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7966
7967 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7968
7969 * combine.c (try_combine): Remove useless local variable.
7970
7971 2011-04-03 Richard Guenther <rguenther@suse.de>
7972 Ira Rosen <ira.rosen@linaro.org>
7973
7974 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7975 non-variable offsets and compare the remaining bases of the two
7976 accesses instead of looking for exact same data-ref.
7977
7978 2011-04-02 Kai Tietz <ktietz@redhat.com>
7979
7980 PR target/48416
7981 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7982
7983 * i386.c (ix86_is_msabi_thiscall): New helper function.
7984 (ix86_is_type_thiscall): New helper function.
7985 (ix86_comp_type_attributes): Handle thiscall for method-functions
7986 special.
7987 (init_cumulative_args): Likewise.
7988 (find_drap_reg): Likewise.
7989 (ix86_static_chain): Likewise.
7990 (x86_this_parameter): Likewise.
7991 (x86_output_mi_thunk): Likewise.
7992
7993 2011-04-01 Olivier Hainque <hainque@adacore.com>
7994 Nicolas Setton <setton@adacore.com>
7995 Eric Botcazou <ebotcazou@adacore.com>
7996
7997 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7998 (add_gnat_descriptive_type_attribute): New function.
7999 (gen_array_type_die): Call it.
8000 (gen_enumeration_type_die): Likewise.
8001 (gen_struct_or_union_type_die): Likewise.
8002 (modified_type_die): Likewise.
8003 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8004 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8005 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8006
8007 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8008
8009 PR bootstrap/48148
8010 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8011 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8012
8013 Revert:
8014 2011-03-17 Richard Guenther <rguenther@suse.de>
8015
8016 PR bootstrap/48148
8017 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8018 origin for decls in other ltrans units.
8019 (input_varpool_node): Likewise.
8020
8021 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8022
8023 PR middle-end/48335
8024 * expr.c (expand_assignment): Handle all possibilities
8025 if TO_RTX is CONCAT.
8026 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8027 (store_split_bit_field): If SUBREG_REG (op0) or
8028 op0 itself has smaller mode than word, return it
8029 for offset 0 and const0_rtx for out-of-bounds stores.
8030 If word is const0_rtx, skip it.
8031
8032 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8033
8034 * config/h8300/h8300.c (print_operand_address): Rename to...
8035 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8036 Call h8300_print_operand and h8300_print_operand_address instead of
8037 print_operand and print_operand_address. Declare.
8038 (print_operand): Renake to...
8039 (h8300_print_operand): ...this. Make static. Adjust comments.
8040 Call h8300_print_operand instead of print_operand. Declare.
8041 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8042 (h8300_register_move_cost): Likewise.
8043 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8044 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8045 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8046 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8047 * config/h8300/h8300-protos.h (print_operand): Delete.
8048 (print_operand_address): Delete.
8049
8050 2011-04-01 Richard Henderson <rth@redhat.com>
8051
8052 PR 48400
8053 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8054 in strict mode before dwarf4. Re-order tests to early out
8055 before switching sections.
8056
8057 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8058
8059 * config/h8300/constraints.md: New file.
8060 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8061 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8062 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8063 * config/h8300/predicates.md (bit_operand): Likewise.
8064 (incdec_operand): Use satisfies_constraint_M and
8065 satisfies_constraint_O. Don't use C code block.
8066 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8067 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8068 (compute_mov_length): Use satisfies_constraint_G.
8069 (fix_bit_operand): Use satisfies_constraint_U.
8070 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8071 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8072 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8073 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8074 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8075 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8076 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8077 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8078 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8079 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8080 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8081 (EXTRA_MEMORY_CONSTRAINT): Delete.
8082
8083 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8084 Michael Meissner <meissner@linux.vnet.ibm.com>
8085
8086 PR target/48262
8087 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8088 operands, as per the specifications.
8089
8090 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8091 (vec_extract_evenv4sf): Ditto.
8092 (vec_extract_evenv8hi): Ditto.
8093 (vec_extract_evenv16qi): Ditto.
8094 (vec_extract_oddv4si): Ditto.
8095
8096 2011-03-31 Mark Wielaard <mjw@redhat.com>
8097
8098 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8099 high_pc attribute if the CU has no associated code. Only output
8100 DW_AT_entry_pc for CU if not generating strict dwarf and
8101 dwarf_version < 4.
8102
8103 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8104
8105 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8106 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8107 out of ...
8108 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8109 * final.c (final_start_function): Call the new function rather
8110 than using a NULL argument for dwarf2out_frame_debug.
8111
8112 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8113 that contains the prologue.
8114
8115 * haifa-sched.c (queue_insn): New arg REASON. All callers
8116 changed. Print it in debugging output.
8117
8118 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8119
8120 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8121 Split most of the code into...
8122 (begin_move_insn): ... here. New function.
8123 (ebb_sched_info): Add a pointer to it.
8124 * haifa-sched.c (scheduled_insns): New static variable.
8125 (sched_extend_ready_list): Allocate it.
8126 (schedule_block): Use it to record the order of scheduled insns.
8127 Perform RTL changes to move insns only after all scheduling
8128 decisions have been made.
8129 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8130 begin_move_insn field.
8131 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8132 * sched-int.h (struct haifa_sched_info): Remove second argument
8133 from begin_schedule_ready hook. Add new member begin_move_insn.
8134 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8135 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8136
8137 * haifa-sched.c (prune_ready_list): New function, broken out of
8138 schedule_block.
8139 (schedule_block): Use it.
8140
8141 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8142
8143 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8144
8145 2011-04-01 Kai Tietz <ktietz@redhat.com>
8146
8147 * config.gcc (*-*-mingw*): Allow as option the
8148 posix threading model.
8149 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8150 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8151 definition.
8152 (CPP_SPEC): Add pthread/no-pthread handling.
8153 (LIB_SPEC): Likewise.
8154 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8155 (LIB_SPEC): Likewise.
8156 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8157 flag to pass -pthread option for shared libgcc build.
8158 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8159 for shared libgcc build.
8160 * config/i386/t-mingw-pthread: New file.
8161 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8162 New define to enable use of library pthread by default.
8163 * config/i386/mingw.opt (pthread): New driver option.
8164 (no-pthread): New driver option.
8165 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8166 * config/i386/mingw-w64.opt: Likewise.
8167
8168 2011-04-01 Gary Funck <gary@intrepid.com>
8169
8170 * c-decl.c (grokdeclarator): Fix formatting.
8171
8172 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8173
8174 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8175 instead of n_operands.
8176 (set_storage_via_setmem): Likewise.
8177 * optabs.c (maybe_gen_insn): Likewise.
8178 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8179 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8180 (mips_expand_builtin_direct): Likewise.
8181 * config/spu/spu.c (expand_builtin_args): Likewise.
8182
8183 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8184
8185 * recog.h (insn_data_d): Add n_generator_args.
8186 * genoutput.c (data): Likewise.
8187 (output_insn_data): Print it.
8188 (max_opno, num_dups): Delete.
8189 (scan_operands): Just fill in "d->operand[...]".
8190 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8191
8192 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8193
8194 * gensupport.h (pattern_stats): New structure.
8195 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8196 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8197 (max_operand_1, max_operand_vec): Delete.
8198 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8199
8200 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8201
8202 * emit-rtl.c (emit_pattern_after_setloc): New function.
8203 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8204 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8205 (emit_pattern_after): New function.
8206 (emit_insn_after, emit_jump_insn_after): Call it.
8207 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8208 (emit_pattern_before_setloc): New function.
8209 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8210 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8211 Likewise.
8212 (emit_pattern_before): New function.
8213 (emit_insn_before, emit_jump_insn_before): Call it.
8214 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8215
8216 2011-03-31 Richard Henderson <rth@redhat.com>
8217
8218 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8219 (dw_separate_line_info_entry): Remove.
8220 (enum dw_line_info_opcode): New.
8221 (dw_line_info_entry): Use it.
8222 (dw_line_info_table, dw_line_info_table_p): New.
8223 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8224 (line_info_table, line_info_label_num): Remove.
8225 (line_info_table_in_use): Remove.
8226 (separate_line_info_table): Remove.
8227 (separate_line_info_table_allocated): Remove.
8228 (separate_line_info_table_in_use): Remove.
8229 (LINE_INFO_TABLE_INCREMENT): Remove.
8230 (line_info_label_num): New.
8231 (cur_line_info_table): New.
8232 (text_section_line_info, cold_text_section_line_info): New.
8233 (separate_line_info): New.
8234 (SEPARATE_LINE_CODE_LABEL): Remove.
8235 (print_dwarf_line_table): Remove.
8236 (debug_dwarf): Don't dump it.
8237 (output_one_line_info_table): New.
8238 (output_line_info): Use it.
8239 (new_line_info_table): New.
8240 (set_cur_line_info_table): New.
8241 (dwarf2out_switch_text_section): Use it.
8242 (dwarf2out_begin_function): Likewise.
8243 (push_dw_line_info_entry): New.
8244 (dwarf2out_source_line): Rewrite for new line info tables.
8245 (dwarf2out_init): Remove dead initailizations.
8246
8247 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8248
8249 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8250 various flags.
8251 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8252 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8253 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8254 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8255 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8256 * opt-functions.awk (flag_init, switch_bit_fields): New.
8257 (switch_flags): Don't handle flags moved to bit-fields. Don't
8258 generate CL_MISSING_OK or CL_SAVE.
8259 * optc-gen.awk: Update to generate bit-field output as well as
8260 flags field.
8261 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8262 bit-field instead of CL_REJECT_DRIVER flag.
8263 * opts-common.c (generate_canonical_option,
8264 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8265 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8266 instead of CL_REJECT_NEGATIVE flag.
8267 * toplev.c (print_switch_values): Use cl_report bit-field instead
8268 of CL_REPORT flag.
8269
8270 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8271
8272 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8273 a zero minimum index only if it is redundant.
8274
8275 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8276
8277 PR rtl-optimization/48381
8278 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8279 instead of ira_class_hard_reg_index for calculating conflicting
8280 hard registers.
8281
8282 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8283
8284 * cprop.c: Clean up hash table building.
8285 (reg_avail_info): Remove.
8286 (oprs_available_p): Remove.
8287 (record_last_reg_set_info): Remove.
8288 (record_last_set_info): Remove.
8289 (reg_available_p): New function.
8290 (gcse_constant_p): Do not treat unfolded conditions as constants.
8291 (make_set_regs_unavailable): New function.
8292 (hash_scan_set): Simplify with new reg_available_p.
8293 (compute_hash_table_work): Traverse insns stream only once.
8294 Do not compute reg_avail_info. Traverse insns in reverse order.
8295 Record implicit sets after recording explicit sets from the block.
8296
8297 2011-03-31 Michael Matz <matz@suse.de>
8298
8299 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8300
8301 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8302
8303 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8304 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8305 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8306 (h8300_mode_dependent_address_p): New function.
8307 (h8300_get_index): Make static.
8308
8309 2011-03-31 Jeff Law <law@redhat.com>
8310
8311 * reload1.c (elimination_effects): Fix typo in recent change.
8312
8313 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8314 typo potentially leading to null pointer dereference.
8315
8316 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8317 (setup_save_areas): Corresponding changes to avoid useless
8318 assignments.
8319
8320 * jump.c (reversed_comparison_code_parts): Avoid successive return
8321 statements when REVERSE_CONDITION is defined.
8322
8323 * expr.c (expand_assignment): Avoid useless assignments.
8324 (expand_expr_real_1): Likewise.
8325 (expand_expr_real_2): Avoid useless statements.
8326
8327 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8328
8329 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8330
8331 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8332 statements.
8333
8334 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8335
8336 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8337
8338 PR target/47109
8339 * doc/tm.texi.in (TARGET_VERSION): Remove.
8340 * doc/tm.texi: Regenerate.
8341 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8342 * collect2.c (main): Don't use TARGET_VERSION.
8343 * mips-tdump.c (main): Don't use TARGET_VERSION.
8344 * mips-tfile.c (main): Don't use TARGET_VERSION.
8345 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8346 * config/rs6000/vxworksae.h: Remove.
8347 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8348 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8349 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8350 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8351 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8352 * config/arm/arm.h (TARGET_VERSION): Remove.
8353 * config/arm/coff.h (TARGET_VERSION): Remove.
8354 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8355 * config/arm/elf.h (TARGET_VERSION): Remove.
8356 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8357 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8358 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8359 * config/arm/pe.h (TARGET_VERSION): Remove.
8360 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8361 * config/arm/semi.h (TARGET_VERSION): Remove.
8362 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8363 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8364 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8365 * config/avr/avr.h (TARGET_VERSION): Remove.
8366 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8367 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8368 * config/frv/frv.h (TARGET_VERSION): Remove.
8369 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8370 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8371 * config/i386/darwin.h (TARGET_VERSION): Remove.
8372 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8373 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8374 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8375 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8376 * config/i386/gnu.h (TARGET_VERSION): Remove.
8377 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8378 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8379 * config/i386/linux.h (TARGET_VERSION): Remove.
8380 * config/i386/linux64.h (TARGET_VERSION): Remove.
8381 * config/i386/lynx.h (TARGET_VERSION): Remove.
8382 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8383 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8384 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8385 * config/i386/netware.h (TARGET_VERSION): Remove.
8386 * config/i386/nto.h (TARGET_VERSION): Remove.
8387 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8388 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8389 * config/ia64/elf.h (TARGET_VERSION): Remove.
8390 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8391 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8392 * config/ia64/linux.h (TARGET_VERSION): Remove.
8393 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8394 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8395 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8396 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8397 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8398 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8399 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8400 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8401 * config/m68k/linux.h (TARGET_VERSION): Remove.
8402 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8403 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8404 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8405 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8406 * config/mep/mep.h (TARGET_VERSION): Remove.
8407 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8408 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8409 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8410 * config/mips/linux.h (TARGET_VERSION): Remove.
8411 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8412 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8413 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8414 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8415 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8416 * config/pa/pa.h (TARGET_VERSION): Remove.
8417 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8418 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8419 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8420 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8421 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8422 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8423 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8424 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8425 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8426 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8427 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8428 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8429 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8430 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8431 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8432 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8433 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8434 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8435 * config/s390/linux.h (TARGET_VERSION): Remove.
8436 * config/s390/s390.h (TARGET_VERSION): Remove.
8437 * config/s390/tpf.h (TARGET_VERSION): Remove.
8438 * config/score/score.h (TARGET_VERSION): Remove.
8439 * config/sh/linux.h (TARGET_VERSION): Remove.
8440 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8441 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8442 * config/sh/sh.h (TARGET_VERSION): Remove.
8443 * config/sh/sh64.h (TARGET_VERSION): Remove.
8444 * config/sh/superh.h (TARGET_VERSION): Remove.
8445 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8446 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8447 * config/sparc/linux.h (TARGET_VERSION): Remove.
8448 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8449 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8450 TARGET_NAME32, TARGET_NAME): Remove.
8451 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8452 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8453 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8454 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8455 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8456 * config/spu/spu.h (TARGET_VERSION): Remove.
8457 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8458 * config/v850/v850.h (TARGET_VERSION): Remove.
8459 * config/vax/linux.h (TARGET_VERSION): Remove.
8460 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8461 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8462 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8463
8464 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8465
8466 PR target/48142
8467 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8468 frame-related from frame-unrelated adjustments to the stack pointer.
8469
8470 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8471
8472 * common.opt (fdebug-types-section): Move earlier.
8473 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8474
8475 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8476
8477 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8478 var.
8479
8480 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8481
8482 * tree.h (CASE_CHAIN): Define.
8483 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8484 (gimple_redirect_edge_and_branch): Likewise.
8485
8486 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8487
8488 PR middle-end/48367
8489 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8490 calculation.
8491
8492 2011-03-30 Jeff Law <law@redhat.com>
8493
8494 * PR bootstrap/48371
8495 * reload1.c (reload): Fix botch in last change.
8496
8497 * reload.h (struct reload): Fix typo introduced in last change.
8498
8499 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8500
8501 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8502 Undocumented. Remove help text.
8503 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8504 -mhard-float.
8505
8506 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8507
8508 * doc/options.texi (NegativeAlias): Document.
8509 (Alias): Mention NegativeAlias.
8510 * opt-functions.awk: Handle NegativeAlias.
8511 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8512 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8513 * opts.h (CL_NEGATIVE_ALIAS): Define.
8514 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8515 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8516 OPT_mspe_.
8517 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8518 Alias entries.
8519 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8520 mno-spe and mno-isel instead of mspe=no and -misel=no.
8521
8522 2011-03-29 Mark Wielaard <mjw@redhat.com>
8523
8524 * common.opt (fdebug-types-section): New flag.
8525 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8526 * dwarf2out.c (use_debug_types): New define.
8527 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8528 (print_die): Guard output of type unit signatures using
8529 use_debug_types.
8530 (build_abbrev_table): Replace assert of dwarf_version >= 4
8531 with assert on use_debug_types.
8532 (size_of_die): Likewise.
8533 (unmark_dies): Likewise.
8534 (value_format): Decide AT_ref_external form on use_debug_types.
8535 (output_die): Replace dwarf_version version check guard with
8536 use_debug_types where appropriate.
8537 (modified_type_die): Likewise.
8538 (gen_reference_type_die): Likewise.
8539 (dwarf2out_start_source_file): Likewise.
8540 (dwarf2out_end_source_file): Likewise.
8541 (prune_unused_types_walk_attribs): Likewise.
8542 (dwarf2out_finish): Likewise.
8543
8544 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8545
8546 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8547
8548 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8549
8550 PR rtl-optimization/48332
8551 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8552 mode of input operand N and modeN to its actual mode.
8553
8554 2011-03-30 Jeff Law <law@redhat.com>
8555
8556 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8557 define accessor macro.
8558 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8559 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8560 (reg_equiv_init): Likewise.
8561 (reg_equivs_size): New variable.
8562 (reg_equiv_init_size): Remove.
8563 (allocate_initial_values): Move prototype to here from....
8564 * integrate.h (allocate_initial_values): Remove prototype.
8565 * integrate.c: Include reload.h.
8566 (allocate_initial_values): Corresponding changes.
8567 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8568 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8569 (update_equiv_regs): Corresponding changes.
8570 (ira): Corresponding changes.
8571 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8572 (push_secondary_reload): Corresponding changes.
8573 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8574 (make_memloc, find_reloads_address): Corresponding changes.
8575 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8576 (find_reloads_address_1): Corresponding changes.
8577 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8578 (refers_to_regno_for_reload_p): Corresponding changes.
8579 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8580 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8581 * reload1.c: Include ggc.h.
8582 (grow_reg_equivs): New function.
8583 (replace_pseudos_in, reload): Corresponding changes.
8584 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8585 (eliminate_regs_1, elimination_effects): Corresponding changes.
8586 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8587 (delete_output_reload): Likewise.
8588 * caller-save.c (mark_referenced_regs): Corresponding changes.
8589 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8590 * frv/predicates.md (frv_load_operand): Corresponding changes.
8591 * microblaze/microblaze.c (double_memory_operand): Corresponding
8592 changes.
8593 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8594 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8595 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8596 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8597 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8598 changes.
8599 * pa/pa.c (emit_move_sequence): Corresponding changes.
8600 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8601
8602 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8603
8604 PR target/47551
8605 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8606 structure modes. Don't check neon_vector_mem_operand for
8607 vector or structure modes.
8608
8609 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8610 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8611
8612 PR target/43590
8613 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8614 operand 1 and reshuffle the operands to match.
8615 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8616
8617 2011-03-30 Christian Schüler <cschueler@gmx.de>
8618
8619 PR driver/48208
8620 * config/c.opt (F): Added 'Driver' to -F option.
8621
8622 PR driver/48260
8623 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8624 handler function.
8625 * config/darwin.opt: Added '-arch' option.
8626
8627 2011-03-30 Nick Clifton <nickc@redhat.com>
8628
8629 * config/rx/rx.md: Add peepholes and patterns to combine
8630 extending loads and simple arithmetic instructions.
8631 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8632 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8633 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8634 modes to use pre-decrement and post-increment addressing.
8635 (rx_is_restricted_memory_address): Add range checking of REG+INT
8636 addresses.
8637 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8638 (rx_memory_move_cost): Adjust cost of stores.
8639 (rx_adjust_insn_length): New function.
8640
8641 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8642
8643 PR c/48305
8644 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8645 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8646 matching arg00/arg01 types.
8647
8648 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8649
8650 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8651 last_location to UNKNOWN_LOCATION.
8652
8653 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8654
8655 PR target/48349
8656 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8657 FLOAT_SSE_REGS.
8658
8659 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8660 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8661
8662 PR bootstrap/48337
8663 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8664 Init(PROCESSOR_V7).
8665 (sparc_cpu): Likewise.
8666 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8667 PROCESSOR_V7.
8668
8669 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8670
8671 PR target/48336
8672 PR middle-end/48342
8673 PR rtl-optimization/48345
8674 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8675 hard regs for given mode from profitable regs when doing secondary
8676 allocation.
8677
8678 2011-03-29 Jeff Law <law@redhat.com>
8679
8680 PR bootstrap/48327
8681 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8682 do_not_duplicate field.
8683 (lookup_redirection_data): Corresponding changes.
8684 (create_duplicates): Always create a template block.
8685 (redirect_edges): Remove code which reused the original block
8686 when it was going to become unreachable code.
8687 (thread_block): Don't set do_not_duplicate field.
8688
8689 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8690
8691 * lto-opts.c (register_user_option_p, lto_register_user_option):
8692 Make type argument unsigned.
8693 * lto-streamer.h (lto_register_user_option): Make type argument
8694 unsigned.
8695 * opth-gen.awk: Make CL_* macros unsigned.
8696 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8697 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8698 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8699 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8700 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8701 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8702 (find_opt): Make lang_mask argument unsigned.
8703
8704 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8705
8706 PR rtl-optimization/48331
8707 PR rtl-optimization/48334
8708 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8709 for any used algorithm.
8710
8711 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8712
8713 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8714 to parent_max.
8715
8716 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8717
8718 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8719 (alpha_option_override): Don't set alpha_sr_alias_set.
8720 (emit_frame_store_1): Use gen_frame_mem rather than calling
8721 set_mem_alias_set.
8722 (alpha_expand_epilogue): Ditto.
8723
8724 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8725
8726 PR tree-optimization/48290
8727 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8728 vectorization, check that relevant phis in the basic block after
8729 the inner loop are really inner loop's exit phis.
8730
8731 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8732
8733 PR debug/48190
8734 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8735 (cached_dw_loc_list_def): New structure.
8736 (cached_dw_loc_list): New typedef.
8737 (cached_dw_loc_list_table): New variable.
8738 (cached_dw_loc_list_table_hash): New function.
8739 (cached_dw_loc_list_table_eq): Likewise.
8740 (add_location_or_const_value_attribute): Take a bool cache_p.
8741 Cache the list when the parameter is true.
8742 (gen_formal_parameter_die): Update caller.
8743 (gen_variable_die): Likewise.
8744 (dwarf2out_finish): Likewise.
8745 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8746 while generating debug info for the decl.
8747 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8748 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8749 (resolve_addr): Cache the result of resolving a chain of
8750 location lists.
8751
8752 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8753
8754 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8755 conflict object hard regset nodes have intersecting hard reg sets.
8756
8757 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8758 after regstat_init_n_sets_and_refs.
8759
8760 * ira.c: Add more comments at the top.
8761 (setup_stack_reg_pressure_class, setup_pressure_classes):
8762 Add comments how we compute the register pressure classes.
8763 (setup_allocno_and_important_classes): Add more comments.
8764 (setup_class_translate_array, reorder_important_classes)
8765 (setup_reg_class_relations): Add comments.
8766
8767 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8768 start of the file.
8769
8770 * ira-color.c: Add 2011 to the Copyright line.
8771 (assign_hard_reg): Add more comments.
8772 (improve_allocation): Ditto.
8773
8774 * ira-costs.c: Add 2011 to the Copyright line.
8775 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8776 comments.
8777 (setup_regno_cost_classes_by_mode): Ditto.
8778
8779 Initial patches from ira-improv branch:
8780
8781 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8782
8783 * ira-build.c (ira_create_object): Remove initialization of
8784 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8785 (ira_create_allocno): Remove initialization of
8786 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8787 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8788 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8789 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8790 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8791 Initialize ALLOCNO_ADD_DATA.
8792 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8793 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8794 ALLOCNO_REG.
8795 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8796 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8797
8798 * ira.c (ira_reallocate): Remove.
8799 (setup_pressure_classes): Call
8800 ira_init_register_move_cost_if_necessary. Use
8801 ira_register_move_cost instead of ira_get_register_move_cost.
8802 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8803 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8804
8805 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8806 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8807 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8808 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8809 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8810 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8811 Fix formatting.
8812 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8813 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8814 (struct allocno_color_data): New.
8815 (allocno_color_data_t): New typedef.
8816 (allocno_color_data): New definition.
8817 (ALLOCNO_COLOR_DATA): New macro.
8818 (struct object_color_data): New.
8819 (object_color_data_t): New typedef.
8820 (object_color_data): New definition.
8821 (OBJECT_COLOR_DATA): New macro.
8822 (update_copy_costs, calculate_allocno_spill_cost): Call
8823 ira_init_register_move_cost_if_necessary. Use
8824 ira_register_move_cost instead of ira_get_register_move_cost.
8825 (move_spill_restore, update_curr_costs): Ditto.
8826 (allocno_spill_priority): Make it inline.
8827 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8828 (struct coalesce_data, coalesce_data_t): New.
8829 (allocno_coalesce_data): New definition.
8830 (ALLOCNO_COALESCE_DATA): New macro.
8831 (merge_allocnos, coalesced_allocno_conflict_p): Use
8832 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8833 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8834 (coalesce_allocnos): Ditto.
8835 (setup_coalesced_allocno_costs_and_nums): Ditto.
8836 (collect_spilled_coalesced_allocnos): Ditto.
8837 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8838 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8839 (coalesce_spill_slots): Ditto.
8840 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8841 free allocno_coalesce_data.
8842
8843 * ira-conflicts.c: Fix formatting.
8844 (process_regs_for_copy): Call
8845 ira_init_register_move_cost_if_necessary. Use
8846 ira_register_move_cost instead of ira_get_register_move_cost.
8847 (build_object_conflicts): Optimize.
8848
8849 * ira-costs.c (record_reg_classes): Optimize. Call
8850 ira_init_register_move_cost_if_necessary. Use
8851 ira_register_move_cost, ira_may_move_in_cost, and
8852 ira_may_move_out_cost instead of ira_get_register_move_cost and
8853 ira_get_may_move_cost.
8854 (record_address_regs): Ditto.
8855 (scan_one_insn): Optimize.
8856 (find_costs_and_classes): Optimize.
8857 (process_bb_node_for_hard_reg_moves): Call
8858 ira_init_register_move_cost_if_necessary. Use
8859 ira_register_move_cost instead of ira_get_register_move_cost.
8860
8861 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8862 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8863 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8864 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8865 definitions.
8866 (ira_initiate_emit_data, ira_finish_emit_data)
8867 (create_new_allocno): New functions.
8868 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8869 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8870 Use ira_register_move_cost instead of ira_get_register_move_cost.
8871
8872 * ira-int.h: Fix some comments.
8873 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8874 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8875 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8876 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8877 add_data.
8878 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8879 bitfield after mode. Make hard_regno a short int. Make
8880 hard_regno short. Remove first_coalesced_allocno and
8881 next_coalesced_allocno. Move mem_optimized_dest_p,
8882 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8883 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8884 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8885 temp, colorable_p. Add new member add_data.
8886 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8887 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8888 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8889 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8890 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8891 (ALLOCNO_ADD_DATA): New macro.
8892 (ira_emit_data_t): New typedef.
8893 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8894 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8895 from struct ira_allocno.
8896 (ALLOCNO_EMIT_DATA): New macro.
8897 (ira_allocno_emit_data, allocno_emit_reg): New.
8898 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8899 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8900 (OBJECT_ADD_DATA): New macro.
8901 (ira_reallocate): Remove.
8902 (ira_initiate_emit_data, ira_finish_emit_data): New.
8903 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8904 (ira_init_register_move_cost_if_necessary): New.
8905 (ira_object_conflict_iter_next): Merge into
8906 ira_object_conflict_iter_cond.
8907 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8908
8909 * ira-live.c (process_single_reg_class_operands): Call
8910 ira_init_register_move_cost_if_necessary. Use
8911 ira_register_move_cost instead of ira_get_register_move_cost.
8912
8913 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8914
8915 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8916
8917 * ira-costs.c: Fix formatting.
8918 (cost_classes, cost_classes_num): Remove.
8919 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8920 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8921 (cost_classes_del, cost_classes_htab): New.
8922 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8923 (initiate_regno_cost_classes, setup_cost_classes): New.
8924 (setup_regno_cost_classes_by_aclass): New.
8925 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8926 (record_reg_classes): Use regno_cost_classes instead of
8927 cost_classes. Move checking opposite operand up.
8928 (record_address_regs): Use regno_cost_classes
8929 instead of cost_classes.
8930 (scan_one_insn): Ditto. Use always general register.
8931 (print_allocno_costs): Use regno_cost_classes instead of
8932 cost_classes.
8933 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8934 (find_costs_and_classes): Set up cost classes for each registers.
8935 Use also their mode for this. Use regno_cost_classes instead of
8936 cost_classes.
8937 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8938 cost_classes.
8939 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8940 (ira_costs, ira_set_pseudo_classes): Call
8941 initiate_regno_cost_classes and finish_regno_cost_classes.
8942
8943 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8944
8945 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8946
8947 * target.def (ira_cover_classes): Remove.
8948
8949 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8950
8951 * doc/tm.texi.in: Ditto.
8952
8953 * ira-conflicts.c: Remove mentioning cover classes from the file.
8954 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8955 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8956
8957 * targhooks.c (default_ira_cover_classes): Remove.
8958
8959 * targhooks.h (default_ira_cover_classes): Ditto.
8960
8961 * haifa-sched.c: Remove mentioning cover classes from the file.
8962 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8963 ira_pressure_classes and ira_pressure_classes_num instead of
8964 ira_reg_class_cover_size and ira_reg_class_cover. Use
8965 sched_regno_pressure_class instead of sched_regno_cover_class.
8966 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8967 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8968
8969 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8970 classes from the file.
8971 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8972 (struct object_hard_regs, struct object_hard_regs_node): New.
8973 (struct ira_object): New members profitable_hard_regs,
8974 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8975 (struct ira_allocno): Rename cover_class to aclass. Rename
8976 cover_class_cost and updated_cover_class_cost to class_cost and
8977 updated_class_cost. Remove splay_removed_p and
8978 left_conflict_size. Add new members colorable_p.
8979 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8980 (ALLOCNO_COLORABLE_P): New macro.
8981 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8982 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8983 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8984 (OBJECT_...): Rename parameter C to O.
8985 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8986 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8987 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8988 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8989 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8990 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8991 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8992 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8993 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8994 x_ira_reg_class_subunion.
8995 (ira_max_memory_move_cost, ira_max_register_move_cost)
8996 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8997 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8998 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8999 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9000 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9001 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9002 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9003 (ira_tune_allocno_costs_and_cover_classes): Rename to
9004 ira_tune_allocno_costs.
9005 (ira_debug_hard_regs_forest): New.
9006 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9007 (ira_object_conflict_iter_next): Fix comments.
9008 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9009 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9010 cover_class to aclass.
9011 (ira_allocate_and_accumulate_costs): Ditto.
9012 (ira_allocate_and_set_or_copy_costs): Ditto.
9013
9014 * opts.c (decode_options): Remove ira_cover_class check.
9015
9016 * ira-color.c: Remove mentioning cover classes from the file. Use
9017 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9018 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9019 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9020 (splay-tree.h): Remove include.
9021 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9022 before copy_freq_compare_func.
9023 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9024 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9025 New definitions.
9026 (hard_regs_roots, hard_regs_node_vec): Ditto.
9027 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9028 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9029 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9030 (create_new_object_hard_regs_node): Ditto.
9031 (add_new_object_hard_regs_node_to_forest): Ditto.
9032 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9033 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9034 Ditto.
9035 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9036 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9037 (remove_unused_object_hard_regs_nodes): Ditto.
9038 (enumerate_object_hard_regs_nodes): Ditto.
9039 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9040 (object_hard_regs_subnode_t): Ditto.
9041 (struct object_hard_regs_subnode): Ditto.
9042 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9043 (setup_object_hard_regs_subnode_index): Ditto.
9044 (get_object_hard_regs_subnodes_num): Ditto.
9045 (form_object_hard_regs_nodes_forest): Ditto.
9046 (finish_object_hard_regs_nodes_tree): Ditto.
9047 (finish_object_hard_regs_nodes_forest): Ditto.
9048 (allocnos_have_intersected_live_ranges_p): Rename to
9049 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9050 (pseudos_have_intersected_live_ranges_p): Rename to
9051 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9052 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9053 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9054 (update_copy_costs): Remove assert. Skip cost update if the hard
9055 reg does not belong the class.
9056 (assign_hard_reg): Process only profitable hard regs.
9057 (uncolorable_allocnos_num): Make it scalar.
9058 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9059 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9060 and ira_reg_class_max_nregs.
9061 (bucket_allocno_compare_func): Check frequency first.
9062 (sort_bucket): Add compare function as a parameter.
9063 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9064 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9065 (push_allocno_to_stack): Rewrite for checking new allocno
9066 colorability.
9067 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9068 (push_only_colorable): Pass new parameter to sort_bucket.
9069 (push_allocno_to_spill): Remove.
9070 (allocno_spill_priority_compare): Make it inline and rewrite.
9071 (splay_tree_allocate, splay_tree_free): Remove.
9072 (allocno_spill_sort_compare): New function.
9073 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9074 build and use splay tree. Choose first allocno in uncolorable
9075 allocno bucket to spill. Remove setting spill cost.
9076 (all_conflicting_hard_regs): Remove.
9077 (setup_allocno_available_regs_num): Check only profitable hard
9078 regs. Print info about hard regs nodes.
9079 (setup_allocno_left_conflicts_size): Remove.
9080 (put_allocno_into_bucket): Don't call
9081 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9082 (improve_allocation): New.
9083 (color_allocnos): Call setup_profitable_hard_regs,
9084 form_object_hard_regs_nodes_forest, improve_allocation,
9085 finish_object_hard_regs_nodes_forest. Setup spill cost.
9086 (print_loop_title): Use pressure classes.
9087 (color_allocnso): Ditto.
9088 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9089 and allocnos_for_spilling.
9090 (ira_sort_regnos_for_alter_reg): Don't setup members
9091 {first,next}_coalesced_allocno.
9092 (color): Remove allocating and freeing removed_splay_allocno_vec.
9093 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9094 prohibited_class_mode_regs.
9095
9096 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9097 formatting.
9098 (update_allocno_pressure_excess_length): Use pressure classes.
9099 (inc_register_pressure, dec_register_pressure): Check for pressure
9100 class.
9101 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9102 pressure class. Use ira_reg_class_nregs instead of
9103 ira_reg_class_max_nregs.
9104 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9105 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9106 (single_reg_class): Use ira_reg_class_nregs instead of
9107 ira_reg_class_max_nregs.
9108 (process_bb_node_lives): Use pressure classes.
9109
9110 * ira-emit.c: Remove mentioning cover classes from the file. Use
9111 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9112 (change_loop): Use pressure classes.
9113 (modify_move_list): Call ira_set_allocno_class instead of
9114 ira_set_allocno_cover_class.
9115
9116 * ira-build.c: Remove mentioning cover classes from the file. Use
9117 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9118 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9119 ALLOCNO_UPDATED_CLASS_COST instead of
9120 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9121 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9122 (ira_create_allocno): Remove initialization of
9123 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9124 ALLOCNO_COLORABLE_P.
9125 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9126 Update conflict regs for the objects.
9127 (create_cap_allocno): Remove assert. Don't propagate
9128 ALLOCNO_AVAILABLE_REGS_NUM.
9129 (ira_free_allocno_costs): New function.
9130 (finish_allocno): Change a part of code into call of
9131 ira_free_allocno_costs.
9132 (low_pressure_loop_node_p): Use pressure classes.
9133 (object_range_compare_func): Don't compare classes.
9134 (setup_min_max_conflict_allocno_ids): Ditto.
9135
9136 * loop-invariant.c: Remove mentioning cover classes from the file.
9137 Use ira_pressure_classes and ira_pressure_classes_num instead of
9138 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9139 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9140 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9141 Use reg_allocno_class instead of reg_cover_class.
9142 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9143 STACK_REG_COVER_CLASS.
9144 (get_regno_cover_class): Rename to get_regno_pressure_class.
9145 (move_loop_invariants): Initialize and finalize regstat.
9146
9147 * ira.c: Remove mentioning cover classes from the file. Add
9148 comments about coloring without cover classes. Use ALLOCNO_CLASS
9149 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9150 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9151 setup_class_subset_and_memory_move_costs.
9152 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9153 (setup_cover_and_important_classes): Rename to
9154 setup_allocno_and_important_classes.
9155 (setup_class_translate_array): New.
9156 (setup_class_translate): Call it for allocno and pressure classes.
9157 (cover_class_order): Rename to allocno_class_order.
9158 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9159 of ira_class_translate.
9160 (reorder_important_classes): Set up ira_important_class_nums.
9161 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9162 (print_class_cover): Rename to print_classes. Add parameter.
9163 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9164 Print pressure classes too.
9165 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9166 setup_reg_subclasses.
9167 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9168 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9169 (setup_prohibited_class_mode_regs): Use
9170 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9171 (clarify_prohibited_class_mode_regs): New function.
9172 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9173 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9174 (ira_init_once): Initialize them.
9175 (free_register_move_costs): Process them.
9176 (ira_init): Move calls of find_reg_classes and
9177 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9178 Call clarify_prohibited_class_mode_regs.
9179 (ira_no_alloc_reg): Remove.
9180 (too_high_register_pressure_p): Use pressure classes.
9181
9182 * sched-deps.c: Remove mentioning cover classes from the file.
9183 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9184 ira_pressure_classes and ira_pressure_classes_num instead of
9185 ira_reg_class_cover_size and ira_reg_class_cover.
9186 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9187 sched_regno_pressure_class instead of sched_regno_cover_class.
9188 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9189 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9190
9191 * ira.h: Add 2010 to Copyright.
9192 (ira_no_alloc_reg): Remove external.
9193 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9194 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9195 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9196 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9197 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9198 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9199 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9200 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9201 x_ira_no_alloc_regs.
9202 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9203 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9204 ira_allocno_classes_num and ira_allocno_classes.
9205 (ira_class_translate): Rename to ira_allocno_class_translate.
9206 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9207 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9208 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9209 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9210 (ira_no_alloc_regs): New.
9211
9212 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9213 classes from the file. Use ALLOCNO_CLASS instead of
9214 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9215 ALLOCNO_COVER_CLASS_COST.
9216 (regno_cover_class): Rename to regno_aclass.
9217 (record_reg_classes): Use ira_reg_class_subunion instead of
9218 ira_reg_class_union.
9219 (record_address_regs): Check overflow.
9220 (scan_one_insn): Ditto.
9221 (print_allocno_costs): Print total mem cost fore regional allocation.
9222 (print_pseudo_costs): Use REG_N_REFS.
9223 (find_costs_and_classes): Use classes intersected with them on the
9224 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9225 ira_reg_class_union. Use ira_allocno_class_translate and
9226 regno_aclass instead of ira_class_translate and regno_cover_class.
9227 Modify code for finding regno_aclass. Setup preferred classes for
9228 the next pass.
9229 (setup_allocno_cover_class_and_costs): Rename to
9230 setup_allocno_class_and_costs. Use regno_aclass instead of
9231 regno_cover_class. Use ira_set_allocno_class instead of
9232 ira_set_allocno_cover_class.
9233 (init_costs, finish_costs): Use regno_aclass instead of
9234 regno_cover_class.
9235 (ira_costs): Use setup_allocno_class_and_costs instead of
9236 setup_allocno_cover_class_and_costs.
9237 (ira_tune_allocno_costs_and_cover_classes): Rename to
9238 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9239 by processing objects. Use ira_reg_class_max_nregs instead of
9240 ira_reg_class_nregs.
9241
9242 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9243
9244 * sched-int.h: Remove mentioning cover classes from the file.
9245 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9246
9247 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9248 classes from the file.
9249 (struct reg_pref): Rename coverclass into allocnoclass.
9250 (reg_cover_class): Rename to reg_allocno_class.
9251
9252 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9253
9254 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9255
9256 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9257
9258 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9259
9260 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9261
9262 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9263
9264 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9265
9266 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9267
9268 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9269
9270 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9271
9272 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9273 (i386_ira_cover_classes): Ditto.
9274
9275 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9276
9277 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9278
9279 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9280
9281 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9282
9283 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9284
9285 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9286
9287 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9288 (mips_ira_cover_classes): Ditto.
9289
9290 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9291
9292 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9293
9294 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9295
9296 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9297
9298 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9299
9300 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9301 (IRA_COVER_CLASSES_VSX): Ditto.
9302
9303 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9304 (rs6000_ira_cover_classes): Ditto.
9305
9306 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9307
9308 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9309
9310 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9311
9312 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9313
9314 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9315
9316 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9317
9318 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9319
9320 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9321
9322 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9323
9324 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9325
9326 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9327
9328 PR debug/48253
9329 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9330 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9331 dw_fde_unlikely_section_end_label, cold_in_std_section,
9332 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9333 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9334 fields.
9335 (output_fde): Use dw_fde_second_{begin,end} if second is
9336 true, otherwise dw_fde_{begin,end}.
9337 (output_call_frame_info): Test dw_fde_second_begin != NULL
9338 instead of dw_fde_switched_sections.
9339 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9340 fields, initialize new fields. Initialize in_std_section
9341 unconditionally from the first partition.
9342 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9343 dw_fde_second_begin is non-NULL.
9344 (dwarf2out_switch_text_section): Stop initializing removed
9345 dw_fde_struct fields, initialize new fields, initialize
9346 also dw_fde_end here. Set dw_fde_switch_cfi even when
9347 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9348 (struct var_loc_list_def): Add last_before_switch field.
9349 (arange_table, arange_table_allocated, arange_table_in_use,
9350 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9351 (size_of_aranges): Count !in_std_section and !second_in_std_section
9352 hunks in fdes, instead of looking at arange_table_in_use.
9353 (output_aranges): Add aranges_length argument, don't call
9354 size_of_aranges here. Instead of using aranges_table*
9355 emit ranges for fdes when !in_std_section resp.
9356 !second_in_std_section.
9357 (dw_loc_list): Break ranges crossing section switch.
9358 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9359 use dw_fde_second_end instead of dw_fde_end as end of last range.
9360 (gen_subprogram_die): Don't call add_arange. Use
9361 dw_fde_{begin,end} for first partition and if switched
9362 section dw_fde_second_{begin,end} for the second.
9363 (var_location_switch_text_section_1,
9364 var_location_switch_text_section): New functions.
9365 (dwarf2out_begin_function): Initialize cold_text_section even
9366 when function_section () isn't text_section.
9367 (prune_unused_types): Don't walk arange_table.
9368 (dwarf2out_finish): Don't needlessly test
9369 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9370 If info_section_emitted, call size_of_aranges and if it indicates
9371 non-empty .debug_aranges, call output_aranges with the computed
9372 size. Stop using removed dw_fde_struct fields, use
9373 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9374 for second.
9375
9376 PR debug/48203
9377 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9378 create ENTRY_VALUE if incoming or address of incoming's MEM
9379 is a hard REG.
9380 * dwarf2out.c (mem_loc_descriptor): Don't emit
9381 DW_OP_GNU_entry_value of DW_OP_fbreg.
9382 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9383 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9384 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9385 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9386 ENTRY_VALUE_EXPs.
9387 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9388 is a REG_P or MEM_P with REG_P address, compute hash directly
9389 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9390 (preserve_only_constants): Don't clear VALUES forwaring
9391 ENTRY_VALUE to some other VALUE.
9392
9393 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9394
9395 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9396 instead of GEN_INT.
9397
9398 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9399
9400 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9401 block before expanding the statement.
9402 (expand_gimple_stmt_1): Likewise. Set them here...
9403 (expand_gimple_stmt): ...and not here. Tidy.
9404 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9405 unknown.
9406
9407 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9408
9409 * Makefile.in: New rule for cprop.o.
9410 * gcse.c: Move constant/copy propagation to cprop.c.
9411 (compute_local_properties): Only handle expression tables.
9412 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9413 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9414 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9415 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9416 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9417 compute_cprop_data, find_used_regs, try_replace_reg,
9418 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9419 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9420 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9421 find_bypass_set, reg_killed_on_edge, bypass_block,
9422 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9423 execute_rtl_cprop, pass_rtl_cprop): Move to...
9424 * cprop.c: ...here. New file, constant/copy propagation for RTL
9425 moved from gcse.c to here with minor cleanups in duplicated code.
9426
9427 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9428
9429 * config/i386/i386.c (flag_opts): Fix a typo in
9430 -mavx256-split-unaligned-store.
9431
9432 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9433
9434 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9435 LIBCALL_VALUE): Remove macros.
9436 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9437 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9438 (h8300_function_value, h8300_libcall_value,
9439 h8300_function_value_regno_p): New functions.
9440
9441 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9442
9443 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9444
9445 2011-03-28 Jeff Law <law@redhat.com>
9446
9447 * tree-ssa-threadupdate.c (redirect_edges): Call
9448 create_edge_and_update_destination_phis as needed.
9449 (create_edge_and_update_destination_phis): Accept new BB argument.
9450 All callers updated.
9451 (thread_block): Do not update the profile when threading around
9452 intermediate blocks.
9453 (thread_single_edge): Likewise.
9454 (determine_bb_domination_status): If BB is not a successor of the
9455 loop header, return NONDOMINATING.
9456 (register_jump_thread): Note when we register a jump thread around
9457 an intermediate block.
9458 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9459 (thread_across_edge): Use it.
9460
9461 2011-03-28 Tristan Gingold <gingold@adacore.com>
9462
9463 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9464 when for_return is 2.
9465
9466 2011-03-28 Jeff Law <law@redhat.com>
9467
9468 * var-tracking.c (canonicalize_values_mark): Delete unused
9469 lhs assignment.
9470 (canonicalize_values_star, set_variable_part): Likewise.
9471 (clobber_variable_part, delete_variable_part): Likewise.
9472
9473 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9474
9475 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9476
9477 2011-03-28 Martin Jambor <mjambor@suse.cz>
9478
9479 * tree-inline.c (expand_call_inline): Do not check that destination
9480 node is analyzed.
9481 (optimize_inline_calls): Assert that destination node is analyzed.
9482 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9483 not call tree_lowering_passes.
9484 * cgraph.h (cgraph_analyze_function): Declare.
9485 * cgraphunit.c (cgraph_analyze_function): Make public.
9486
9487 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9488
9489 * config/sparc/sparc-opts.h: New.
9490 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9491 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9492 (sparc_option_override): Store processor_type enumeration rather
9493 than string in cpu_default. Remove name and enumeration from
9494 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9495 without using sparc_select. Use target_flags_explicit instead of
9496 fpu_option_set.
9497 * config/sparc/sparc.h (enum processor_type): Move to
9498 sparc-opts.h.
9499 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9500 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9501 HeaderInclude entry.
9502 (mcpu=, mtune=): Use Var and Enum.
9503 (sparc_processor_type): New Enum and EnumValue entries.
9504
9505 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9506 Iain Sandoe <iains@gcc.gnu.org>
9507
9508 PR target/48245
9509 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9510
9511 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9512
9513 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9514 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9515 Insert new statements at it in lieu of STMT.
9516 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9517 * tree-vect-stmts.c (vectorizable_store): Likewise.
9518 (vectorizable_load): Likewise.
9519
9520 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9521
9522 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9523 (divtf3): Ditto.
9524 (multf3): Ditto.
9525 (subtf3): Ditto.
9526
9527 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9528
9529 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9530 unaligned 256bit load/store.
9531 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9532 (*avx_movdqu<avxmodesuffix>): Likewise.
9533
9534 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9535
9536 PR target/48288
9537 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9538 * config/pa/pa.md (iordi3): Use new predicate in expander.
9539 (iorsi3): Likewise.
9540
9541 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9542
9543 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9544 FUNCTION_VALUE_REGNO_P): Remove macros.
9545 * config/mips/mips-protos.h (mips_function_value): Remove.
9546 * config/mips/mips.c (mips_function_value): Rename to...
9547 (mips_function_value_1): ... this. Make static. Handle receiving
9548 the function type in 'fn_decl_or_type' argument.
9549 (mips_function_value, mips_libcall_value,
9550 mips_function_value_regno_p): New function.
9551 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9552 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9553
9554 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9555
9556 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9557 and -mavx256-split-unaligned-store.
9558 (ix86_option_override_internal): Split 32-byte AVX unaligned
9559 load/store by default.
9560 (ix86_avx256_split_vector_move_misalign): New.
9561 (ix86_expand_vector_move_misalign): Use it.
9562
9563 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9564 -mavx256-split-unaligned-store.
9565
9566 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9567 256bit load/store. Generate unaligned store on misaligned memory
9568 operand.
9569 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9570 256bit load/store.
9571 (*avx_movdqu<avxmodesuffix>): Likewise.
9572
9573 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9574 -mavx256-split-unaligned-store.
9575
9576 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9577
9578 PR target/38598
9579 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9580 Update commentary.
9581
9582 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9583
9584 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9585 opno arguments with an expand_operand. Use create_input_operand.
9586 (mips_prepare_builtin_target): Delete.
9587 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9588 functions.
9589 (mips_expand_builtin_direct): Use create_output_operand and
9590 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9591 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9592 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9593
9594 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9595
9596 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9597 function.
9598 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9599
9600 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9601
9602 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9603 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9604 basic blocks and call commit_edge_insertions directly.
9605 (fixup_abnormal_edges): Move from here to...
9606 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9607 on the edges and return whether some have actually been inserted.
9608 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9609 compensation code.
9610
9611 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9612
9613 PR rtl-optimization/48144
9614 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9615 (merge_expr_data): ... here.
9616 (av_set_intersect): Rename to av_set_code_motion_filter.
9617 Update all callers. Call merge_history_vect when an expression
9618 is found in both sets.
9619 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9620
9621 2011-03-26 Alan Modra <amodra@gmail.com>
9622
9623 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9624 cmodel medium addresses.
9625 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9626 64-bit gpr loads and stores.
9627 (rs6000_secondary_reload_ppc64): New function.
9628 * config/rs6000/rs6000-protos.h: Declare it.
9629 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9630
9631 2011-03-26 Alan Modra <amodra@gmail.com>
9632
9633 PR target/47487
9634 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9635 GNU Go in traceback table.
9636
9637 2011-03-25 Richard Henderson <rth@redhat.com>
9638
9639 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9640 if there are exactly 6 operands.
9641 (set_storage_via_setmem): Similarly.
9642
9643 2011-03-25 Kai Tietz <ktietz@redhat.com>
9644
9645 * collect2.c (write_c_file_stat): Handle backslash
9646 as right-hand directory separator.
9647 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9648 checking just for slash.
9649 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9650 instead of checking for trailing slash.
9651 * gcc.c (record_temp_file): Use filename_cmp instead
9652 of strcmp.
9653 (do_spec_1): Likewise.
9654 (replace_outfile_spec_function): Likewise.
9655 (is_directory): Use filename_ncmp instead of strncmp.
9656 (print_multilib_info): Likewise.
9657 * gcov.c (find_source): Use filename_cmp instead
9658 instead of strcmp.
9659 (make_gcov_file_name): Fix order of slash/backslash
9660 checks.
9661 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9662 (add_standard_paths): Likewise.
9663 * mips-tfile.c (saber_stop): Handle backslash.
9664 * prefix.c (update_path): Use filename_ncmp instead of
9665 strncmp.
9666 * profile.c (output_location): Use filename_cmp instead
9667 of strcmp.
9668 * read-md.c (handle_toplevel_file): Handle backslash.
9669 * tlink.c (frob_extension): Likewise.
9670 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9671 strcmp.
9672 * tree-dump.c (dequeue_and_dump): Handle backslash.
9673 * tree.c (get_file_function_name): Likewise.
9674 * gengtype.c (read_input_list): Likewise.
9675 (get_file_realbasename): Likewise.
9676 (get_output_file_with_visibility): Use filename_cmp
9677 instead of strcmp.
9678
9679 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9680
9681 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9682 case to VFPv1.
9683
9684 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9685
9686 * fold-const.c (expr_location_or): New function.
9687 (fold_truth_not_expr): Call it.
9688
9689 2011-03-25 Jeff Law <law@redhat.com>
9690
9691 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9692 va_end.
9693 * c-family/c-common.c (def_fn_type): Likewise.
9694 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9695 * emit-rtl.c (gen_rtvec): Likewise.
9696 * lto/lto-lang.c (def_fn_type): Likewise.
9697
9698 2011-03-25 Richard Guenther <rguenther@suse.de>
9699
9700 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9701 also generate copies.
9702 (fini_copy_prop): Handle constant values properly.
9703
9704 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9705
9706 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9707 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9708 (hash_loc_operands, compare_loc_operands): Handle
9709 DW_OP_GNU_entry_value.
9710
9711 2011-03-25 Kai Tietz <ktietz@redhat.com>
9712
9713 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9714 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9715 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9716 comment and use macro TARGET_64BIT_MS_ABI instead.
9717 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9718 and change default behavior for 32-bit MS_ABI.
9719 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9720 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9721 32-bit, too.
9722 (ix86_cfun_abi): Likewise.
9723 (ix86_maybe_switch_abi): Adjust comment.
9724 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9725 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9726 instead of checking for SYSV_ABI.
9727 (ix86_nsaved_sseregs): Likewise.
9728 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9729 to 16 bytes.
9730 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9731 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9732 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9733 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9734 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9735
9736 2011-03-25 Richard Guenther <rguenther@suse.de>
9737
9738 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9739 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9740 (verify_gimple): Remove.
9741 * tree-cfg.c (verify_gimple_call): Merge verification
9742 from verify_stmts.
9743 (verify_gimple_phi): Merge verification from verify_stmts.
9744 (verify_gimple_label): New function.
9745 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9746 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9747 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9748 (verify_stmts): Rename to verify_gimple_in_cfg.
9749 (verify_gimple_in_cfg): New function.
9750 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9751 * tree-ssa.c (verify_ssa): Likewise.
9752 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9753
9754 2011-03-25 Richard Guenther <rguenther@suse.de>
9755
9756 * passes.c (init_optimization_passes): Add FRE pass after
9757 early SRA.
9758
9759 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9760 Andrew Stubbs <ams@codesourcery.com>
9761
9762 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9763 for Cortex-A8.
9764 (arm_movdi_vfp_cortexa8): New pattern.
9765 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9766 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9767 instructions when tuning for Cortex-A8. Set attribute "arch".
9768 * config/arm/arm.md: Move include arm-tune.md up a bit.
9769 (define_attr "arch"): Add "onlya8" and "nota8" values.
9770 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9771
9772 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9773
9774 PR bootstrap/48282
9775 Revert:
9776 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9777
9778 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9779 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9780 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9781 * passes.c (init_optimization_passes): Move
9782 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9783
9784 2011-03-25 Kai Tietz <ktietz@redhat.com>
9785
9786 * c-typeck.c (comptypes_internal): Replace target
9787 hook call of comp_type_attributes by version in tree.c file.
9788 * gimple.c (gimple_types_compatible_p_1): Likewise.
9789 * tree-ssa.c (useless_type_conversion_p): Likewise.
9790 * tree.c (build_type_attribute_qual_variant): Likewise.
9791 (attribute_value_equal): New static helper function.
9792 (comp_type_attributes): New function.
9793 (merge_attributes): Use attribute_value_equal for comparison.
9794 (attribute_list_contained): Likewise.
9795 * tree.h (comp_type_attributes): New prototype.
9796
9797 2011-03-25 Richard Guenther <rguenther@suse.de>
9798
9799 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9800 of complex types at -O0.
9801 (verify_gimple_assign_binary): Likewise.
9802 (verify_gimple_assign_ternary): Likewise.
9803
9804 2011-03-24 Mark Wielaard <mjw@redhat.com>
9805
9806 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9807 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9808
9809 2011-03-24 Mark Wielaard <mjw@redhat.com>
9810
9811 PR debug/48041
9812 * dwarf2out.c (output_abbrev_section): Only write table when
9813 abbrev_die_table_in_use > 1.
9814
9815 2011-02-24 Richard Henderson <rth@redhat.com>
9816
9817 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9818 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9819 (alpha_expand_unaligned_load_words): Use extql.
9820 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9821 (emit_insxl): Handle all modes for consistency.
9822
9823 2011-02-24 Richard Henderson <rth@redhat.com>
9824
9825 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9826 (alpha_expand_unaligned_load): Likewise.
9827 (alpha_expand_unaligned_store): Likewise.
9828 (alpha_expand_unaligned_load_words): Likewise.
9829 (alpha_expand_unaligned_store_words): Likewise.
9830 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9831 (alpha_split_lock_test_and_set_12): Likewise.
9832 (print_operand, alpha_fold_builtin_extxx): Likewise.
9833 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9834 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9835 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9836 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9837 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9838 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9839 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9840 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9841 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9842 (extwl, extll, extql): Similarly.
9843 (inswh, inslh, insqh): Similarly.
9844 (mskbl, mskwl, mskll, mskql): Similarly.
9845 (mskwh, msklh, mskqh): Similarly.
9846
9847 2011-02-24 Richard Henderson <rth@redhat.com>
9848
9849 * config/alpha/alpha.md (attribute isa): Add er, ner.
9850 (attribute enabled): Handle them.
9851 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9852
9853 2011-02-24 Richard Henderson <rth@redhat.com>
9854
9855 * config/alpha/alpha.md (attribute isa): Add vms.
9856 (attribute enabled): Handle it.
9857 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9858 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9859 (*movtf): Rename from *movtf_internal for consistency.
9860 (*movsi): Merge with *movsi_nt_vms.
9861 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9862 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9863 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9864 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9865
9866 2011-02-24 Richard Henderson <rth@redhat.com>
9867
9868 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9869 (extendqisi2, extendhisi2): Likewise.
9870 (extendqidi2): Simplify BWX/non-BWX expansions.
9871 (extendhidi2): Similarly.
9872
9873 2011-02-24 Richard Henderson <rth@redhat.com>
9874
9875 * config/alpha/alpha.md (attribute isa): New.
9876 (attribute enabled): New.
9877 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9878 (zero_extendqisi2, zero_extendqidi2): Similarly.
9879 (zero_extendhisi2, zero_extendhidi2): Similarly.
9880 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9881
9882 2011-02-24 Richard Henderson <rth@redhat.com>
9883
9884 * config/alpha/predicates.md (input_operand): Revert last change;
9885 update comment to mention 32-bit VMS rather than Windows.
9886
9887 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9888
9889 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9890 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9891 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9892 * passes.c (init_optimization_passes): Move
9893 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9894
9895 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9896
9897 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9898
9899 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9900
9901 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9902 correctly.
9903
9904 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9905
9906 PR debug/48204
9907 * simplify-rtx.c (simplify_const_unary_operation): Call
9908 real_convert when changing mode class with FLOAT_EXTEND.
9909
9910 2011-03-24 Nick Clifton <nickc@redhat.com>
9911
9912 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9913 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9914 * config/rx/rx.c (rx_option_override): Set align_jumps,
9915 align_loops and align_labels if not set by the user.
9916 (rx_align_for_label): New function.
9917 (rx_max_skip_for_label): New function.
9918 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9919 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9920 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9921 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9922 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9923
9924 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9925
9926 PR rtl-optimization/48263
9927 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9928 and original commutative_p handling. Use maybe_gen_insn.
9929
9930 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9931
9932 * reload.c (find_reloads_subreg_address): Add address_reloaded
9933 parameter and return true there if the full address has been
9934 reloaded.
9935 (find_reloads_toplev): Pass address_reloaded flag.
9936 (find_reloads_address_1): Don't use address_reloaded parameter.
9937
9938 2011-03-24 Jeff Law <law@redhat.com>
9939
9940 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9941 unused variable "ann".
9942 (remove_unused_locals): Likewise.
9943
9944 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9945 statement.
9946
9947 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9948 after it is freed.
9949
9950 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9951
9952 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9953 for invalid symbolic addresses.
9954 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9955 larl operands.
9956
9957 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9958
9959 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9960 the argument in calls to fold_truth_not_expr.
9961
9962 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9963
9964 * tree.c (record_node_allocation_statistics): New function.
9965 (make_node_stat, copy_node_stat, build_string): Call it.
9966 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9967 (build1_stat, build_omp_clause): Likewise.
9968
9969 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9970
9971 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9972 last commit.
9973
9974 2011-03-24 Richard Guenther <rguenther@suse.de>
9975
9976 PR tree-optimization/48271
9977 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9978 blocks that still exist.
9979
9980 2011-03-24 Richard Guenther <rguenther@suse.de>
9981
9982 PR tree-optimization/48270
9983 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9984 not free datarefs before ddrs.
9985
9986 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9987
9988 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9989 from the address built for a reference with variable offset.
9990
9991 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9992
9993 PR target/48237
9994 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9995 alternatives that can be handled with movq or movabsq insn.
9996 (*movdf_internal): Disable for !TARGET_64BIT.
9997 (*movdf_internal_nointeger): Ditto.
9998 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9999
10000 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10001
10002 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10003 (FUNCTION_ARG_ADVANCE): Likewise.
10004 * tm.texi.in: Change references to them to hook references.
10005 * tm.texi: Regenerate.
10006 * targhooks.c (default_function_arg): Eliminate check for target macro.
10007 (default_function_incoming_arg): Likewise.
10008 (default_function_arg_advance): Likewise.
10009 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10010 (function_arg_advance): Likewise.
10011 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10012
10013 2011-03-24 Richard Guenther <rguenther@suse.de>
10014
10015 PR middle-end/48269
10016 * tree-object-size.c (addr_object_size): Do not double-account
10017 for MEM_REF offsets.
10018
10019 2011-03-24 Diego Novillo <dnovillo@google.com>
10020
10021 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10022 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10023 (lto_input_data_block): Move from lto-opts.c. Make extern.
10024 Update all users.
10025 (lto_input_string): Rename from input_string. Make extern.
10026 Update all users.
10027 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10028 output_string_with_length.
10029 Output 0 to indicate a non-NULL string. Update all callers to
10030 not emit 0.
10031 (lto_output_string): Rename from output_string. Make extern.
10032 Update all users.
10033 (lto_output_decl_state_streams): Make extern.
10034 (lto_output_decl_state_refs): Make extern.
10035 * lto-streamer.h (lto_input_string): Declare.
10036 (lto_input_data_block): Declare.
10037 (lto_output_string): Declare.
10038 (lto_output_string_with_length): Declare.
10039 (lto_output_decl_state_streams): Declare.
10040 (lto_output_decl_state_refs): Declare.
10041
10042 2011-03-24 Richard Guenther <rguenther@suse.de>
10043
10044 PR tree-optimization/46562
10045 * tree.c (build_invariant_address): New function.
10046 * tree.h (build_invariant_address): Declare.
10047 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10048 a renamed function moved ...
10049 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10050 Take valueization callback parameter.
10051 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10052 * gimple-fold.h: New file.
10053 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10054 (ccp_fold, fold_const_aggregate_ref,
10055 fold_ctor_reference, fold_nonarray_ctor_reference,
10056 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10057 get_base_constructor): Move ...
10058 * gimple-fold.c: ... here.
10059 (gimple_fold_stmt_to_constant_1): New function
10060 split out from ccp_fold. Take a valueization callback parameter.
10061 Valueize all operands.
10062 (gimple_fold_stmt_to_constant): New wrapper function.
10063 (fold_const_aggregate_ref_1): New function split out from
10064 fold_const_aggregate_ref. Take a valueization callback parameter.
10065 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10066 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10067 invariant POINTER_PLUS_EXPRs to invariant form.
10068 (vn_valueize): New function.
10069 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10070 * tree-vrp.c (vrp_valueize): New function.
10071 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10072 to fold statements to constants.
10073 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10074 function declarations.
10075 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10076 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10077
10078 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10079
10080 * config/h8300/predicates.md (jump_address_operand): Fix register
10081 mode check.
10082
10083 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10084
10085 * doc/invoke.texi (max-stores-to-sink): Document.
10086 * params.h (MAX_STORES_TO_SINK): Define.
10087 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10088 if either vectorization or if-conversion is disabled.
10089 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10090 tree-vect-data-refs.c vect_equal_offsets.
10091 (dr_equal_offsets_p): New function.
10092 (find_data_references_in_bb): Remove static.
10093 * tree-data-ref.h (find_data_references_in_bb): Declare.
10094 (dr_equal_offsets_p): Likewise.
10095 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10096 (vect_drs_dependent_in_basic_block): Update calls to
10097 vect_equal_offsets.
10098 (vect_check_interleaving): Likewise.
10099 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10100 (cond_if_else_store_replacement): Rename to...
10101 (cond_if_else_store_replacement_1): ... this. Change arguments and
10102 documentation.
10103 (cond_if_else_store_replacement): New function.
10104 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10105 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10106
10107 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10108
10109 PR target/46934
10110 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10111 to subtract lower bound instead of GEN_INT().
10112
10113 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10114
10115 PR other/48179
10116 PR other/48221
10117 PR other/48234
10118 * doc/extend.texi (Alignment): Move section to match order in TOC.
10119 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10120 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10121
10122 2011-03-23 Jeff Law <law@redhat.com>
10123
10124 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10125 before removing the edge.
10126
10127 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10128 it may have been freed by redirect_branch_edge or
10129 redirect_edge_succ_nodup.
10130
10131 2011-03-23 Richard Guenther <rguenther@suse.de>
10132
10133 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10134 (check_va_list_escapes): Likewise.
10135 (check_all_va_list_escapes): Likewise.
10136
10137 2011-03-23 Richard Guenther <rguenther@suse.de>
10138
10139 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10140 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10141 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10142 (alias.o): Likewise.
10143 (ipa-type-escape.o): Remove.
10144 (ipa-struct-reorg.o): Likewise.
10145 (GTFILES): Remove ipa-struct-reorg.c.
10146 * alias.c: Do not include ipa-type-escape.h.
10147 * tree-ssa-alias.c: Likewise.
10148 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10149 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10150 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10151 and ipa-type-escape passes.
10152 * tree-pass.h (pass_ipa_type_escape): Remove.
10153 (pass_ipa_struct_reorg): Likewise.
10154 * ipa-struct-reorg.h: Remove.
10155 * ipa-struct-reorg.c: Likewise.
10156 * ipa-type-escape.h: Likewise.
10157 * ipa-type-escape.c: Likewise.
10158 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10159 (--param struct-reorg-cold-struct-ratio): Likewise.
10160 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10161 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10162 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10163
10164 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10165
10166 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10167 cpu attribute value.
10168 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10169 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10170 * config/s390/s390.c (processor_flags_table): New constant array.
10171 (s390_handle_arch_option): Remove.
10172 (s390_handle_option): Remove s390_handle_arch_option invocations
10173 and OPT_mwarn_framesize_ handling.
10174 (s390_option_override): Remove s390_handle_arch_option invocation.
10175 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10176 warnings.
10177 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10178 * config/s390/s390.opt (s390_tune, s390_arch)
10179 (march=): Replace s390_arch_option enum and values with
10180 processor_type. Set variable name to s390_arch. Set
10181 initialization value.
10182 (mtune=): Replace s390_arch_option with processor_type. Set
10183 variable name to s390_tune. Set initialization value.
10184
10185 2011-03-23 Julian Brown <julian@codesourcery.com>
10186
10187 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10188 accesses which are not naturally aligned.
10189
10190 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10191
10192 PR target/47553
10193 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10194
10195 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10196
10197 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10198 parameter from "int" to "enum insn_code".
10199 (expand_operand_type): New enum.
10200 (expand_operand): New structure.
10201 (create_expand_operand): New function.
10202 (create_fixed_operand, create_output_operand): Likewise
10203 (create_input_operand, create_convert_operand_to): Likewise.
10204 (create_convert_operand_from, create_address_operand): Likewise.
10205 (create_integer_operand): Likewise.
10206 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10207 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10208 (expand_insn, expand_jump_insn): Likewise.
10209 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10210 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10211 (expand_movstr, expand_builtin___clear_cache): Likewise.
10212 (expand_builtin_lock_release): Likewise.
10213 * explow.c (allocate_dynamic_stack_space): Likewise.
10214 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10215 and use the default handling in that case.
10216 * expmed.c (check_predicate_volatile_ok): Delete.
10217 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10218 (emit_cstore): Likewise.
10219 * expr.c (emit_block_move_via_movmem): Likewise.
10220 (set_storage_via_setmem, expand_assignment): Likewise.
10221 (emit_storent_insn, try_casesi): Likewise.
10222 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10223 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10224 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10225 (expand_twoval_unop, expand_twoval_binop): Likewise.
10226 (expand_unop_direct, emit_indirect_jump): Likewise.
10227 (emit_conditional_move, vector_compare_rtx): Likewise.
10228 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10229 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10230 (expand_sync_lock_test_and_set): Likewise.
10231 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10232 (emit_unop_insn): Likewise.
10233 (expand_copysign_absneg): Change icode to an insn_code.
10234 (create_convert_operand_from_type): New function.
10235 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10236 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10237 (expand_insn, expand_jump_insn): Likewise.
10238 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10239 than const_int_operand for operand 2.
10240
10241 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10242
10243 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10244 if possible.
10245
10246 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10247
10248 * emit-rtl.c (emit_pattern_before_noloc): New function.
10249 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10250 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10251 (emit_pattern_after_noloc): New function.
10252 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10253 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10254
10255 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10256
10257 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10258 (__ffsDI2): Likewise.
10259
10260 2011-03-22 Richard Henderson <rth@redhat.com>
10261
10262 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10263 of !TARGET_ABI_OPEN_VMS.
10264 (alpha_trampoline_init, alpha_start_function): Likewise.
10265 (alpha_expand_epilogue, alpha_file_start): Likewise.
10266 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10267 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10268 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10269 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10270 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10271
10272 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10273
10274 * config/s390/s390-opts.h: New.
10275 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10276 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10277 s390_stack_guard): Remove.
10278 (s390_handle_arch_option): Return void. Take enum
10279 s390_arch_option value instead of string and searching array.
10280 (s390_handle_option): Don't assert that global structures are in
10281 use. Access variables via opts pointer. Use error_at. Don't use
10282 sscanf for -mstack-guard= or -mstack-size=. Update call to
10283 s390_handle_arch_option.
10284 (s390_option_override): Update call to s390_handle_arch_option.
10285 (s390_emit_prologue): Use %d format for s390_stack_size in
10286 diagnostic. Use %wd for HOST_WIDE_INT.
10287 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10288 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10289 * config/s390/s390.opt (config/s390/s390-opts.h): New
10290 HeaderInclude entry.
10291 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10292 s390_arch_flags, s390_warn_framesize): New Variable entries.
10293 (s390_arch_option): New Enum and EnumValue entries.
10294 (march=): Use Enum instead of Var.
10295 (mstack-guard=, mstack-size=): Use UInteger and Var.
10296 (mtune=): Use Enum.
10297
10298 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10299
10300 * config/score/score.c (score_handle_option): Don't assert that
10301 global structures are in use. Access target_flags via opts
10302 pointer. Use value of -march= option to determine target_flags
10303 settings.
10304 * config/score/score.opt (march=): Use Enum.
10305 (score_arch): New Enum and EnumValue entries.
10306
10307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10308
10309 * config/mep/mep.c (option_mtiny_specified): Remove.
10310 (mep_option_override): Move register handling for -mivc2 from
10311 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10312 instead of option_mtiny_specified.
10313 (mep_handle_option): Access target_flags via opts pointer. Don't
10314 assert that global structures are in use. Defer part of -mivc2
10315 handling and move it to mep_option_override.
10316 * config/mep/mep.opt (IVC2): New Mask entry.
10317 (mivc2): Use Var and Defer instead of Mask.
10318
10319 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10320
10321 * config/v850/v850-opts.h: New.
10322 * config/v850/v850.c (small_memory): Replace with
10323 small_memory_physical_max array. Make that array static const.
10324 (v850_handle_memory_option): Take integer value of argument. Take
10325 gcc_options pointer, option text and location. Return void.
10326 Update for changes to small memory structures.
10327 (v850_handle_option): Access target_flags via opts pointer. Don't
10328 assert that global structures are in use. Update calls to
10329 v850_handle_memory_option.
10330 (v850_encode_data_area): Update references to small memory settings.
10331 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10332 (enum small_memory_type): Move to v850-opts.h.
10333 * config/v850/v850.opt (config/v850/v850-opts.h): New
10334 HeaderInclude entry.
10335 (small_memory_max): New Variable entry.
10336 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10337 (mtda, mzda): Likewise.
10338
10339 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10340
10341 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10342 pointer. Don't assert that global structures are in use.
10343
10344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10345
10346 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10347 via opts pointer. Don't assert that global structures are in use.
10348
10349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10350
10351 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10352 (munix=93): Use Var.
10353 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10354 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10355 * config/pa/pa-opts.h: New.
10356 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10357 (pa_handle_option): Don't assert that global structures are in
10358 use. Access target_flags via opts pointer. Don't handle
10359 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10360 OPT_munix_98 here.
10361 (pa_option_override): Handle deferred OPT_mfixed_range_.
10362
10363 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10364
10365 * config/mn10300/mn10300-opts.h: New.
10366 * config/mn10300/mn10300.c (mn10300_processor,
10367 mn10300_tune_string): Remove.
10368 (mn10300_handle_option): Don't assert that global structures are
10369 in use. Access mn10300_processor via opts pointer. Don't handle
10370 OPT_mtune_ here.
10371 * config/mn10300/mn10300.h (enum processor_type): Move to
10372 mn10300-opts.h.
10373 (mn10300_processor): Remove.
10374 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10375 HeaderInclude entry.
10376 (mn10300_processor): New Variable entry.
10377 (mtune=): Use Var.
10378
10379 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10380
10381 * config/microblaze/microblaze.c: Don't include opts.h.
10382 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10383 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10384 (mno-clearbss): Use Var and Warn.
10385
10386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10387
10388 * config/m32r/m32r-opts.h: New.
10389 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10390 (m32r_handle_option): Don't assert that global structures are in
10391 use. Access target_flags and m32r_cache_flush_func via opts
10392 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10393 OPT_mno_flush_trap here.
10394 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10395 include of m32r-opts.h.
10396 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10397 HeaderInclude entry.
10398 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10399 (mmodel=): Use Enum and Var.
10400 (m32r_model): New Enum and EnumValue entries.
10401 (mno-flush-trap): Use Var.
10402 (msdata=): Use Enum and Var.
10403 (m32r_sdata): New Enum and EnumValue entries.
10404
10405 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10406
10407 * config/m32c/m32c.c: Don't include opts.h.
10408 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10409 m32c_handle_option): Remove.
10410 (m32c_option_override): Check global_options_set.x_target_memregs
10411 instead of target_memregs_set.
10412 * config/m32c/m32c.h (target_memregs): Remove.
10413 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10414 variable.
10415
10416 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10417
10418 * config/iq2000/iq2000-opts.h: New.
10419 * config/iq2000/iq2000.c: Don't include opts.h.
10420 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10421 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10422 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10423 HeaderInclude entry.
10424 (iq2000_tune): New Variable entry.
10425 (march=): Add comment. Use Enum.
10426 (iq2000_arch): New Enum and EnumValue entries.
10427 (mcpu=): Use Enum and Var.
10428 (iq2000_tune): New Enum and EnumValue entries.
10429
10430 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10431
10432 * config/ia64/ia64-opts.h: New.
10433 * config/ia64/ia64.c (ia64_tune): Remove.
10434 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10435 here. Use error_at.
10436 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10437 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10438 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10439 HeaderInclude entry.
10440 (ia64_tune): New Variable entry.
10441 (mfixed-range=): Use Defer and Var.
10442 (mtune=): Use Enum and Var.
10443 (ia64_tune): New Enum and EnumValue entries.
10444
10445 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10446
10447 * config/frv/frv-opts.h: New.
10448 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10449 frv-opts.h.
10450 (frv_cpu_type): Remove.
10451 * config/frv/frv.c: Don't include opts.h.
10452 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10453 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10454 (frv_cpu_type): New Variable entry.
10455 (frv_cpu): New Enum and EnumValue entries.
10456
10457 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10458
10459 * config/cris/cris.c (cris_handle_option): Access target_flags via
10460 opts pointer. Don't assert that global structures are in use.
10461 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10462 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10463
10464 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10465
10466 * config/bfin/bfin-opts.h: New.
10467 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10468 bfin_si_revision, bfin_workarounds): Remove.
10469 (bfin_cpus): Make static const.
10470 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10471 not bfin_lib_id_given.
10472 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10473 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10474 pointer. Use error_at. Don't assert that global structures are in use.
10475 * config/bfin/bfin.h: Include bfin-opts.h.
10476 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10477 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10478 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10479 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10480 entries.
10481
10482 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10483
10484 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10485 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10486 or -msoft-float here.
10487 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10488 -msoft-float and -mhard-float.
10489 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10490 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10491 msoft-float.
10492 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10493 -msoft-float.
10494 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10495 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10496 not mhard-float.
10497 (LIBGCC_SPEC): Don't handle -msoft-float.
10498 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10499 -mhard-float.
10500 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10501 msoft-float.
10502 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10503 -mfloat-abi=*, not -msoft-float and -mhard-float.
10504 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10505 -msoft-float.
10506 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10507 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10508 mhard-float and msoft-float.
10509 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10510 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10511 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10512 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10513 mhard-float.
10514 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10515 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10516 msoft-float.
10517 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10518 not mhard-float.
10519 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10520 not msoft-float.
10521
10522 2011-03-22 Richard Henderson <rth@redhat.com>
10523
10524 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10525 TARGET_ABI_WINDOWS_NT.
10526 (alpha_output_function_end_prologue): Likewise.
10527 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10528 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10529 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10530 (trap, *movsi_nt_vms): Likewise.
10531 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10532 (*tablejump_osf_nt_internal): Remove.
10533 * config/alpha/predicates.md (input_operand): Only test Pmode.
10534
10535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10536
10537 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10538 via opts pointer. Use error_at. Don't assert that global
10539 structures are in use.
10540
10541 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10542
10543 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10544 (ix86_handle_option): Access ix86_isa_flags and
10545 ix86_isa_flags_explicit via opts pointer. Don't assert that
10546 global structures are in use.
10547 (ix86_function_specific_save, ix86_function_specific_restore):
10548 Update ix86_isa_flags_explicit field name.
10549 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10550 (ix86_isa_flags_explicit): Rename TargetSave entry to
10551 x_ix86_isa_flags_explicit.
10552
10553 2011-03-22 Richard Henderson <rth@redhat.com>
10554
10555 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10556 (alpha_option_override, direct_return): Likewise.
10557 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10558 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10559 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10560 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10561 (alpha_expand_epilogue, alpha_end_function): Likewise.
10562 (alpha_init_libfuncs): Likewise.
10563 (struct machine_function): Remove unicosmk members.
10564 (print_operand) ['t']: Remove.
10565 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10566 unicosmk_output_module_name, unicosmk_output_common,
10567 current_section_align, unicosmk_output_text_section_asm_op,
10568 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10569 unicosmk_section_type_flags, unicosmk_unique_section,
10570 unicosmk_asm_named_section, unicosmk_insert_attributes,
10571 unicosmk_output_align, unicosmk_defer_case_vector,
10572 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10573 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10574 unicosmk_output_ssib, unicosmk_add_call_info_word,
10575 unicosmk_extern_head, unicosmk_output_default_externs,
10576 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10577 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10578 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10579 * config/alpha/alpha-protos.h: Update.
10580 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10581 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10582 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10583 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10584 (*mulsi_se, mulvsi3): Likewise.
10585 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10586 (*divmodsi_internal, call, call_value, realign): Likewise.
10587 (moddi3, umoddi3): Likewise; remove duplicate expander.
10588 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10589 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10590 (*movdi_nofix): Remove r/U alternative.
10591 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10592 * config/alpha/constraints.md ("U"): Remove.
10593 * config/alpha/predicates.md (call_operand"): Don't test
10594 TARGET_ABI_UNICOSMK.
10595
10596 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10597
10598 * target.def (handle_option): Take gcc_options and
10599 cl_decoded_option pointers and location_t.
10600 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10601 * doc/tm.texi: Regenerate.
10602 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10603 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10604 * lto-opts.c (lto_reissue_options): Generate option structure for
10605 targetm.handle_option call.
10606 * opts.c (target_handle_option): Update call to
10607 targetm.handle_option. Remove assertions about values now passed
10608 down to hook.
10609 * targhooks.c (default_target_handle_option): New.
10610 * targhooks.h (default_target_handle_option): Declare.
10611 * config/alpha/alpha.c: Include opts.h.
10612 (alpha_handle_option): Update to new hook interface.
10613 * config/arm/arm.c: Include opts.h.
10614 (arm_handle_option): Update to new hook interface.
10615 * config/arm/t-arm (arm.o): Update dependencies.
10616 * config/bfin/bfin.c: Include opts.h.
10617 (bfin_handle_option): Update to new hook interface.
10618 * config/cris/cris.c: Include opts.h.
10619 (cris_handle_option): Update to new hook interface.
10620 * config/frv/frv.c: Include opts.h.
10621 (frv_handle_option): Update to new hook interface.
10622 * config/i386/i386.c: Include opts.h.
10623 (ix86_handle_option): Update to new hook interface.
10624 (ix86_valid_target_attribute_inner_p): Generate option structure
10625 for call to ix86_handle_option.
10626 * config/i386/t-i386 (i386.o): Update dependencies.
10627 * config/ia64/ia64.c: Include opts.h.
10628 (ia64_handle_option): Update to new hook interface.
10629 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10630 * config/iq2000/iq2000.c: Include opts.h.
10631 (iq2000_handle_option): Update to new hook interface.
10632 * config/m32c/m32c.c: Include opts.h.
10633 (m32c_handle_option): Update to new hook interface.
10634 * config/m32r/m32r.c: Include opts.h.
10635 (m32r_handle_option): Update to new hook interface.
10636 * config/m68k/m68k.c: Include opts.h.
10637 (m68k_handle_option): Update to new hook interface.
10638 * config/mep/mep.c: Include opts.h.
10639 (mep_handle_option): Update to new hook interface.
10640 * config/microblaze/microblaze.c: Include opts.h.
10641 (microblaze_handle_option): Update to new hook interface.
10642 * config/mips/mips.c: Include opts.h.
10643 (mips_handle_option): Update to new hook interface.
10644 * config/mn10300/mn10300.c: Include opts.h.
10645 (mn10300_handle_option): Update to new hook interface.
10646 * config/pa/pa.c: Include opts.h.
10647 (pa_handle_option): Update to new hook interface.
10648 * config/pdp11/pdp11.c: Include opts.h.
10649 (pdp11_handle_option): Update to new hook interface.
10650 * config/rs6000/rs6000.c: Include opts.h.
10651 (rs6000_handle_option): Update to new hook interface.
10652 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10653 * config/rx/rx.c: Include opts.h.
10654 (rx_handle_option): Update to new hook interface.
10655 * config/s390/s390.c: Include opts.h.
10656 (s390_handle_option): Update to new hook interface.
10657 * config/score/score.c: Include opts.h.
10658 (score_handle_option): Update to new hook interface.
10659 * config/sh/sh.c: Include opts.h.
10660 (sh_handle_option): Update to new hook interface.
10661 * config/sparc/sparc.c: Include opts.h.
10662 (sparc_handle_option): Update to new hook interface.
10663 * config/v850/v850.c: Include opts.h.
10664 (v850_handle_option): Update to new hook interface.
10665
10666 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10667
10668 * gcc.c (driver_unknown_option_callback): Only permit and save
10669 unknown -Wno- options.
10670 (driver_wrong_lang_callback): Save options directly instead of via
10671 driver_unknown_option_callback.
10672
10673 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10674
10675 * combine.c (simplify_set): Try harder to find the best CC mode when
10676 simplifying a nested COMPARE on the RHS.
10677
10678 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10679
10680 * config/alpha/gnu.h: Remove.
10681 * config/arc: Remove directory.
10682 * config/arm/netbsd.h: Remove.
10683 * config/arm/t-pe: Remove.
10684 * config/crx: Remove directory.
10685 * config/i386/netbsd.h: Remove.
10686 * config/m68hc11: Remove directory.
10687 * config/m68k/uclinux-oldabi.h: Remove.
10688 * config/mcore/mcore-pe.h: Remove.
10689 * config/mcore/t-mcore-pe: Remove.
10690 * config/netbsd-aout.h: Remove.
10691 * config/rs6000/gnu.h: Remove.
10692 * config/sh/sh-symbian.h: Remove.
10693 * config/sh/symbian-base.c: Remove.
10694 * config/sh/symbian-c.c: Remove.
10695 * config/sh/symbian-cxx.c: Remove.
10696 * config/sh/symbian-post.h: Remove.
10697 * config/sh/symbian-pre.h: Remove.
10698 * config/sh/t-symbian: Remove.
10699 * config/svr3.h: Remove.
10700 * config/vax/netbsd.h: Remove.
10701 * config.build: Don't handle i[34567]86-*-pe.
10702 * config.gcc: Remove handling of deprecations for most deprecated
10703 targets.
10704 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10705 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10706 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10707 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10708 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10709 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10710 Remove cases.
10711 * config.host: Don't handle i[34567]86-*-pe.
10712 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10713 (ASM_SPEC32): Don't handle -mcall-gnu.
10714 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10715 -mcall-gnu.
10716 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10717 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10718 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10719 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10720 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10721 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10722 conditional on SYMBIAN.
10723 * configure.ac: Don't handle powerpc*-*-gnu*.
10724 * configure: Regenerate.
10725 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10726 * doc/install-old.texi (m6811, m6812): Don't mention.
10727 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10728 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10729 (m68k-uclinuxoldabi): Don't mention.
10730 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10731 Remove.
10732 (-mcall-gnu): Remove.
10733 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10734 families): Remove constraint documentation.
10735
10736 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10737
10738 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10739 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10740 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10741
10742 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10743
10744 PR target/48226
10745 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10746 vector when peeking at the next token for vector, don't expand the
10747 keywords.
10748
10749 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10750
10751 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10752 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10753 * config/avr/avr.c (init_cumulative_args)
10754 (avr_function_arg_advance): Use it.
10755 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10756 sibcall epilogues.
10757 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10758 (avr_function_ok_for_sibcall): ...this new function.
10759 (avr_lookup_function_attribute1): New static Function.
10760 (avr_naked_function_p, interrupt_function_p)
10761 (signal_function_p, avr_OS_task_function_p)
10762 (avr_OS_main_function_p): Use it.
10763 * config/avr/avr.md ("sibcall", "sibcall_value")
10764 ("sibcall_epilogue"): New expander.
10765 ("*call_insn", "*call_value_insn"): New insn.
10766 ("call_insn", "call_value_insn"): Remove
10767 ("call", "call_value", "epilogue"): Change expander to handle
10768 sibling calls.
10769
10770 2011-03-21 Nick Clifton <nickc@redhat.com>
10771
10772 * doc/invoke.texi (Overall Options): Move closing brace to end of
10773 options list.
10774 (Optimization Options): Add missing @gol.
10775 (Directory Options): Likewise.
10776 (i386 and x86-64 Options): Likewise.
10777 (RS6000 and PowerPC Options): Likewise.
10778 (i386 and x86-64 Windows Options): Likewise.
10779 (V850 Options): Add text missing from descriptions.
10780
10781 2011-03-22 Richard Henderson <rth@redhat.com>
10782
10783 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10784 (avr_incoming_return_addr_rtx): New.
10785 (emit_push_byte): New.
10786 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10787 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10788 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10789 (emit_pop_byte): New.
10790 (expand_epilogue): Use it. Pop frame pointer by bytes.
10791 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10792 (INCOMING_RETURN_ADDR_RTX): New.
10793 (INCOMING_FRAME_SP_OFFSET): New.
10794 (ARG_POINTER_CFA_OFFSET): New.
10795 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10796 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10797 (pophi): Remove.
10798
10799 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10800
10801 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10802
10803 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10804 (FUNCTION_ARG_ADVANCE): Likewise.
10805 * tm.texi.in: Change references to them to hook references.
10806 * tm.texi: Regenerate.
10807 * targhooks.c (default_function_arg): Eliminate check for target
10808 macro.
10809 (default_function_incoming_arg): Likewise.
10810 (default_function_arg_advance): Likewise.
10811 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10812 (function_arg_advance): Likewise.
10813 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10814
10815 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10816
10817 * tree.c (build_call_1): New function.
10818 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10819
10820 2011-03-22 Richard Guenther <rguenther@suse.de>
10821
10822 PR tree-optimization/48228
10823 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10824 for single-arg PHIs.
10825
10826 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10827
10828 PR rtl-optimization/48143
10829 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10830 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10831 sse2_cvtps2pd): Likewise.
10832
10833 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10834
10835 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10836
10837 2011-03-22 Richard Guenther <rguenther@suse.de>
10838
10839 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10840 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10841 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10842 and REALIGN_LOAD_EXPR.
10843 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10844 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10845 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10846 DOT_PROD_EXPR case ...
10847 (expand_expr_real_2): ... here.
10848 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10849 and REALIGN_LOAD_EXPR.
10850 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10851 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10852 (vect_create_epilog_for_reduction): Likewise.
10853 (vectorizable_reduction): Likewise.
10854 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10855 * tree-vect-stmts.c (vectorizable_load): Likewise.
10856
10857 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10858
10859 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10860
10861 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10862
10863 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10864 handling for PLTOFF/GOTOFF.
10865
10866 2011-03-22 Nick Clifton <nickc@redhat.com>
10867
10868 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10869 trailing backslash from the end of the macro definition.
10870
10871 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10872
10873 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10874 and PLT unspecs.
10875
10876 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10877
10878 * expr.h (prepare_operand): Move to...
10879 * optabs.h (prepare_operand): ...here and change the insn code
10880 parameter from "int" to "enum insn_code".
10881 (insn_operand_matches): Declare.
10882 * expr.c (init_expr_target): Use insn_operand_matches.
10883 (compress_float_constant): Likewise.
10884 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10885 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10886 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10887 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10888 Likewise.
10889 (gen_cond_trap): Likewise.
10890 (prepare_operand): Likewise. Change icode to an insn_code.
10891 (insn_operand_matches): New function.
10892 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10893 * reload1.c (gen_reload): Likewise.
10894 * targhooks.c (default_secondary_reload): Likewise.
10895
10896 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10897
10898 * config/alpha/alpha.md (unspec): New define_c_enum.
10899 (unspecv): Ditto.
10900
10901 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10902
10903 PR debug/48214
10904 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10905 between a call and its CALL_ARG_LOCATION note.
10906
10907 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10908
10909 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10910
10911 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10912
10913 PR c/42544
10914 PR c/48197
10915 * c-common.c (shorten_compare): If primopN is first sign-extended
10916 to opN and then zero-extended to result type, set primopN to opN.
10917
10918 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10919
10920 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10921 for barrier handlers.
10922
10923 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10924
10925 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10926 UNSPEC constants to be in the unspec enumeration, and redefine
10927 all UNSPECV constants to be in the unspecv enumeration, so that
10928 dumps print which unspec/unspec_volatile this is.
10929 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10930 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10931 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10932 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10933 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10934
10935 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10936 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10937 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10938 * config/rs6000/sync.md (isync, lwsync): Ditto.
10939
10940 2011-03-21 Richard Guenther <rguenther@suse.de>
10941
10942 * params.def (lto-min-partition): Fix typo.
10943
10944 2011-03-21 Richard Guenther <rguenther@suse.de>
10945
10946 PR c/47939
10947 * c-decl.c (grokdeclarator): Drop to the main variant only
10948 for array types. Drop flag_gen_aux_info check.
10949
10950 2011-03-21 Richard Guenther <rguenther@suse.de>
10951
10952 PR translation/47911
10953 * params.def (lto-partitions): Fix typo.
10954 (lto-min-partition): Fix wording.
10955
10956 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10957
10958 * config/rs6000/t-freebsd: Remove duplication from file.
10959
10960 2011-03-21 Richard Guenther <rguenther@suse.de>
10961
10962 PR middle-end/47661
10963 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10964
10965 2011-03-21 Richard Guenther <rguenther@suse.de>
10966
10967 PR lto/48210
10968 * params.def (lto-partitions): Require at least 1 partition.
10969
10970 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10971
10972 * gthr-solaris.h: Remove.
10973 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10974 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10975 (LIB_SPEC): Likewise.
10976 * config/sol2.opt (threads): Remove.
10977 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10978 (sparc*-*-solaris2*): Likewise.
10979 * configure.ac (enable_threads): Enable solaris support.
10980 * configure: Regenerate.
10981 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10982 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10983 solaris.
10984
10985 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10986
10987 * config.gcc: Obsolete *-*-solaris2.8*.
10988 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10989
10990 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10991
10992 PR bootstrap/48135
10993 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10994 reference. Solaris 8 perl works.
10995
10996 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10997
10998 PR bootstrap/48135
10999 * doc/install.texi (Prerequisites): Move jar etc. up.
11000 Explain support library version requirements.
11001
11002 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11003
11004 PR bootstrap/48135
11005 * doc/install.texi (Prerequisites): Move Perl to build
11006 requirements. Always necessary on Solaris 2 with Sun ld.
11007
11008 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11009
11010 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11011 binutils 2.21.
11012 (Specific, i?86-*-solaris2.[89]): Likewise.
11013 (Specific, i?86-*-solaris2.10): Likewise.
11014 (Specific, mips-sgi-irix6): Likewise.
11015 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11016 Update for binutils 2.21.
11017
11018 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11019
11020 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11021 Allow -fuse-linker-plugin for non-default plugin linker.
11022 * configure: Regenerate.
11023
11024 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11025
11026 PR bootstrap/48167
11027 * gengtype.c (files_rules): Added rule for cp/parser.h.
11028
11029 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11030
11031 PR target/48213
11032 * config/s390/s390.c (s390_delegitimize_address): Don't call
11033 lowpart_subreg if orig_x has BLKmode.
11034
11035 2011-03-21 Kai Tietz <ktietz@redhat.com>
11036
11037 PR target/12171
11038 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11039 * tree.h (attribute_spec): Add new member affects_type_identity.
11040 * attribs.c (empty_attribute_table): Adjust attribute_spec
11041 initializers.
11042 * config/alpha/alpha.c: Likewise.
11043 * config/arc/arc.c: Likewise.
11044 * config/arm/arm.c: Likewise.
11045 * config/avr/avr.c: Likewise.
11046 * config/bfin/bfin.c: Likewise.
11047 * config/crx/crx.c: Likewise.
11048 * config/darwin.h: Likewise.
11049 * config/h8300/h8300.c: Likewise.
11050 * config/i386/cygming.h: Likewise.
11051 * config/i386/i386.c: Likewise.
11052 * config/ia64/ia64.c: Likewise.
11053 * config/m32c/m32c.c: Likewise.
11054 * config/m32r/m32r.c: Likewise.
11055 * config/m68hc11/m68hc11.c: Likewise.
11056 * config/m68k/m68k.c: Likewise.
11057 * config/mcore/mcore.c: Likewise.
11058 * config/mep/mep.c: Likewise.
11059 * config/microblaze/microblaze.c: Likewise.
11060 * config/mips/mips.c: Likewise.
11061 * config/rs6000/rs6000.c: Likewise.
11062 * config/rx/rx.c: Likewise.
11063 * config/sh/sh.c: Likewise.
11064 * config/sol2.h: Likewise.
11065 * config/sparc/sparc.c: Likewise.
11066 * config/spu/spu.c: Likewise.
11067 * config/stormy16/stormy16.c: Likewise.
11068 * config/v850/v850.c: Likewise.
11069
11070 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11071
11072 * simplify-rtx.c (simplify_binary_operation_1): Handle
11073 (xor (and A B) C) case when B and C are both constants.
11074
11075 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11076
11077 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11078
11079 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11080
11081 PR bootstrap/48168
11082 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11083
11084 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11085
11086 PR rtl-optimization/48156
11087 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11088 assume df and df_lr are not NULL.
11089
11090 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11091
11092 PR debug/48023
11093 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11094 between a call and its CALL_ARG_LOCATION note.
11095
11096 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11097
11098 PR debug/48178
11099 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11100 between a call and its corresponding CALL_ARG_LOCATION note.
11101
11102 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11103
11104 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11105 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11106 * haifa-sched.c (setup_ref_regs): Ditto.
11107 * caller-save.c (add_used_regs_1): Ditto.
11108 * dse.c (look_for_hardregs): Ditto.
11109 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11110 * sched-rgn.c (check_live_1): Ditto.
11111
11112 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11113
11114 * c-decl.c (diagnose_mismatched_decls): Give an error for
11115 redefining a typedef with variably modified type.
11116
11117 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11118
11119 * c-decl.c (grokfield): Don't allow typedefs for structures or
11120 unions with no tag by default.
11121 * doc/extend.texi (Unnamed Fields): Update.
11122
11123 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11124
11125 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11126 Rewrite using indirect functions.
11127 (lwp_slwpcb): Ditto.
11128 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11129 (avx_vinsertf128<mode>): Ditto.
11130
11131 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11132
11133 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11134 unspecs.
11135
11136 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11137
11138 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11139 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11140
11141 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11142
11143 PR rtl-optimization/48170
11144 * gcse.c (hoist_code): Remove bogus asserts.
11145
11146 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11147
11148 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11149 computation for prologue/epilogue.
11150
11151 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11152
11153 * Makefile.in (check-consistency): Remove.
11154
11155 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11156
11157 PR debug/48176
11158 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11159 arange_table_in_use is 0, but either text_section_used or
11160 cold_text_section_used is true. Don't call it if
11161 !info_section_emitted.
11162
11163 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11164
11165 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11166 FUNCTION_VALUE_REGNO_P): Remove.
11167 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11168 Remove.
11169 * config/avr/avr.c (avr_ret_register): Make static inline.
11170 (avr_function_value_regno_p): New function.
11171 (avr_libcall_value): Make static. Add 'func' argument.
11172 (avr_function_value): Make static. Rename 'func' argument to
11173 'fn_decl_or_type', forward it to avr_libcall_value. Call
11174 avr_ret_register function instead of RET_REGISTER macro.
11175 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11176
11177 2011-03-18 Jason Merrill <jason@redhat.com>
11178
11179 PR c++/23372
11180 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11181
11182 2011-03-18 Richard Guenther <rguenther@suse.de>
11183
11184 * doc/install.texi (--enable-gold): Remove.
11185 (--with-plugin-ld): Document.
11186 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11187
11188 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11189
11190 PR middle-end/47790
11191 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11192 again after expansion changes.
11193
11194 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11195
11196 * combine.c (try_combine): Do simplification only call of
11197 subst() on i2 even when i1 is present. Update comments.
11198
11199 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11200
11201 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11202 and UNSPEC_PCREL_SYMOFF.
11203
11204 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11205
11206 * config/s390/s390.md: Use define_c_enum for the unspec constant
11207 definitions.
11208
11209 2011-03-18 Richard Henderson <rth@redhat.com>
11210 Jakub Jelinek <jakub@redhat.com>
11211
11212 PR bootstrap/48161
11213 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11214 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11215
11216 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11217
11218 PR middle-end/47725
11219 * combine.c (cant_combine_insn_p): Don't check zero/sign
11220 extended hard registers.
11221
11222 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11223
11224 PR middle-end/47725
11225 * combine.c (cant_combine_insn_p): Check zero/sign extended
11226 hard registers.
11227
11228 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11229
11230 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11231 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11232 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11233 Change return type to bool.
11234 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11235
11236 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11237
11238 PR debug/48163
11239 * var-tracking.c (prepare_call_arguments): If CALL target
11240 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11241 pc instead of looking it up using cselib_lookup and use
11242 Pmode for it if x has VOIDmode.
11243 * dwarf2out.c (gen_subprogram_die): If also both first and
11244 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11245
11246 PR debug/48163
11247 * function.c (assign_parms): For data.passed_pointer parms
11248 use MEM of data.entry_parm instead of data.entry_parm itself
11249 as DECL_INCOMING_RTL.
11250 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11251 also when passed and declared mode is the same, DECL_RTL
11252 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11253 a MEM too.
11254
11255 2011-03-16 Jeff Law <law@redhat.com>
11256
11257 PR rtl-optimization/37273
11258 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11259 handle them like argument loads from stack slots. Do not double
11260 count memory for memory constants and argument loads from stack slots.
11261
11262 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11263
11264 PR debug/48160
11265 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11266
11267 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11268
11269 PR target/48171
11270 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11271
11272 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11273
11274 PR bootstrap/48153
11275 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11276 if dwarf_strict.
11277 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11278 Clear call_arg_locations and call_arg_loc_last always.
11279
11280 PR middle-end/48152
11281 * var-tracking.c (prepare_call_arguments): If argument needs to be
11282 passed by reference, adjust argtype and mode.
11283
11284 2011-03-17 Richard Guenther <rguenther@suse.de>
11285
11286 PR middle-end/48134
11287 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11288 a value make sure to fold the statement.
11289
11290 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11291
11292 PR target/43872
11293 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11294 return condition with !cfun->calls_alloca.
11295
11296 2011-03-17 Richard Guenther <rguenther@suse.de>
11297
11298 PR bootstrap/48148
11299 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11300 origin for decls in other ltrans units.
11301 (input_varpool_node): Likewise.
11302
11303 2011-03-17 Richard Guenther <rguenther@suse.de>
11304
11305 PR middle-end/48165
11306 * tree-object-size.c (compute_object_offset): Properly return
11307 the offset operand of MEM_REFs as sizetype.
11308
11309 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11310
11311 PR rtl-optimization/48141
11312 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11313 * dse.c: Include params.h.
11314 (active_local_stores_len): New variable.
11315 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11316 to NULL.
11317 (record_store, check_mem_read_rtx): Decrease it when removing
11318 from the chain.
11319 (scan_insn): Likewise. Increase it when adding to chain, if it
11320 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11321 set active_local_stores to NULL before the addition.
11322 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11323
11324 PR rtl-optimization/48141
11325 * dse.c (record_store): If no positions are needed in an insn
11326 that cannot be deleted, at least unchain it from active_local_stores.
11327
11328 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11329
11330 PR debug/47510
11331 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11332 (lookup_type_die_strip_naming_typedef): ... here.
11333 (get_context_die): Use it.
11334 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11335 the anonymous struct named by the naming typedef.
11336
11337 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11338
11339 PR target/48154
11340 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11341 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11342
11343 2011-03-16 Jeff Law <law@redhat.com>
11344
11345 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11346 check for operands of conditional. Allow type to be a pointer.
11347
11348 2011-03-16 Richard Guenther <rguenther@suse.de>
11349
11350 PR tree-optimization/48149
11351 * fold-const.c (fold_binary_loc): Fold
11352 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11353
11354 2011-03-16 Richard Guenther <rguenther@suse.de>
11355
11356 PR tree-optimization/26134
11357 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11358 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11359 (non_rewritable_mem_ref_base): Handle complex type component
11360 accesses, constrain offsets for vector and complex extracts
11361 more properly.
11362
11363 2011-03-16 Richard Guenther <rguenther@suse.de>
11364
11365 PR tree-optimization/48146
11366 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11367 operands avoiding the need for renaming.
11368
11369 2011-03-16 Richard Guenther <rguenther@suse.de>
11370
11371 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11372 constant folding. Move MEM_REF canonicalization first.
11373 Rely on fold_const_aggregate_ref for initializer folding.
11374 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11375
11376 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11377
11378 PR middle-end/48136
11379 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11380 arg0/arg1 or their arguments are always fold converted to matching
11381 types.
11382
11383 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11384 to nargs.
11385
11386 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11387
11388 PR lto/46944
11389 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11390 Handle in-tree gold.
11391 (ld_vers): Extract binutils version for gold.
11392 (gcc_cv_ld_hidden): Handle gold here.
11393 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11394 * configure: Regenerate.
11395 * config.in: Regenerate.
11396 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11397 -fuse-linker-plugin otherwise.
11398 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11399 (LINK_COMMAND_SPEC): Use it.
11400 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11401
11402 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11403
11404 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11405 * calls.c: Remove debug.h include.
11406 (emit_call_1): Don't call virtual_call_token debug hook.
11407 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11408 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11409 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11410 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11411 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11412 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11413 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11414 dwarf2out_virtual_call): Remove.
11415 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11416 copy_call_info and virtual_call hooks.
11417 (dwarf2out_init): Don't initialize vcall_insn_table,
11418 debug_dcall_section and debug_vcall_section.
11419 (prune_unused_types): Don't mark nodes from dcall_table.
11420 (dwarf2out_finish): Don't output dcall or vcall tables.
11421 * final.c (final_scan_insn): Don't call direct_call or
11422 virtual_call debug hooks.
11423 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11424 virtual_call_token, copy_call_info and virtual_call hooks.
11425 (debug_nothing_uid): Remove prototype.
11426 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11427 copy_call_info and virtual_call hooks.
11428 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11429 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11430 * debug.c (do_nothing_debug_hooks): Likewise.
11431 (debug_nothing_uid): Remove.
11432 * doc/invoke.texi (-fenable-icf-debug): Remove.
11433 * common.opt (-fenable-icf-debug): Likewise.
11434
11435 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11436 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11437 call's MEM. Handle functions returning aggregate through a hidden
11438 first pointer. For virtual calls add clobbered pc to call arguments
11439 chain.
11440 * dwarf2out.c (gen_subprogram_die): Emit
11441 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11442 can't be emitted.
11443
11444 PR debug/45882
11445 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11446 * rtl.h (ENTRY_VALUE_EXP): Define.
11447 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11448 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11449 * print-rtl.c (print_rtx): Likewise.
11450 * gengtype.c (adjust_field_rtx_def): Likewise.
11451 * var-tracking.c (vt_add_function_parameter): Adjust
11452 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11453 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11454 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11455 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11456 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11457
11458 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11459 Call var_location debug hook even on CALL_INSNs.
11460 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11461 * rtl.def (ENTRY_VALUE): New.
11462 * dwarf2out.c: Include cfglayout.h.
11463 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11464 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11465 (struct call_arg_loc_node): New type.
11466 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11467 tail_call_site_count): New variables.
11468 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11469 DW_TAG_GNU_call_site_parameter.
11470 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11471 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11472 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11473 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11474 and DW_AT_GNU_all_source_call_sites.
11475 (mem_loc_descriptor): Handle ENTRY_VALUE.
11476 (add_src_coords_attributes): Don't add enything if
11477 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11478 (dwarf2out_abstract_function): Save and clear call_arg_location,
11479 call_site_count and tail_call_site_count around dwarf2out_decl call.
11480 (gen_call_site_die): New function.
11481 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11482 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11483 (dwarf2out_function_decl): Clear call_arg_locations,
11484 call_arg_loc_last, set call_site_count and tail_call_site_count
11485 to -1 and free block_map.
11486 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11487 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11488 followed by any real instructions.
11489 (dwarf2out_begin_function): Set call_site_count and
11490 tail_call_site_count to 0.
11491 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11492 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11493 attempt to force a DIE for it and worst case remove the attribute.
11494 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11495 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11496 the decl itself.
11497 * var-tracking.c: Include tm_p.h.
11498 (vt_stack_adjustments): For calls call note_register_arguments.
11499 (argument_reg_set): New variable.
11500 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11501 ensure the VALUE is resolved.
11502 (call_arguments): New variable.
11503 (prepare_call_arguments): New function.
11504 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11505 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11506 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11507 always use the best expression.
11508 (vt_expand_loc): Add ignore_cur_loc argument.
11509 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11510 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11511 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11512 note for all calls.
11513 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11514 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11515 argument. Don't call cselib_preserve_only_values and
11516 cselib_reset_table.
11517 (note_register_arguments): New function.
11518 (vt_initialize): Compute argument_reg_set. Call
11519 vt_add_function_parameters before processing basic blocks instead of
11520 afterwards. For calls call prepare_call_arguments before calling
11521 cselib_process_insn.
11522 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11523 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11524 (var-tracking.o): Depend on $(TM_P_H).
11525 * cfglayout.h (insn_scope): New prototype.
11526 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11527 * cfglayout.c (insn_scope): No longer static.
11528 * insn-notes.def (CALL_ARG_LOCATION): New.
11529 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11530 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11531 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11532 nothing for DECL_EXTERNAL BLOCK_VARS.
11533
11534 2011-03-16 Alan Modra <amodra@gmail.com>
11535
11536 PR target/45844
11537 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11538 create invalid offset address for vsx splat insn.
11539 * config/rs6000/predicates.md (splat_input_operand): New.
11540 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11541
11542 2011-03-15 Xinliang David Li <davidxl@google.com>
11543
11544 PR c/47837
11545 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11546 (normalize_preds): New function.
11547 (is_use_properly_guarded): Normalize def predicates.
11548
11549 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11550
11551 PR target/46788
11552 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11553 in the output template.
11554
11555 2011-03-15 Richard Guenther <rguenther@suse.de>
11556
11557 PR middle-end/47650
11558 * tree-pretty-print.c (dump_function_declaration): Properly
11559 dump unprototyped and varargs function types.
11560
11561 2011-03-15 Richard Guenther <rguenther@suse.de>
11562
11563 PR tree-optimization/13954
11564 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11565 and friends.
11566
11567 2011-03-15 Richard Guenther <rguenther@suse.de>
11568
11569 PR tree-optimization/48037
11570 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11571 selects into BIT_FIELD_REFs.
11572 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11573 vector select.
11574
11575 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11576
11577 PR tree-optimization/48129
11578 * builtins.c (fold_builtin_snprintf): Convert to type of
11579 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11580 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11581
11582 2011-03-15 Richard Guenther <rguenther@suse.de>
11583
11584 PR tree-optimization/41490
11585 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11586 value but with VUSE.
11587 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11588 return statements.
11589 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11590 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11591 * tree-tailcall.c (find_tail_calls): Ignore returns.
11592
11593 2011-03-15 Richard Guenther <rguenther@suse.de>
11594
11595 PR middle-end/48031
11596 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11597 or variable-indexed array accesses when in gimple form.
11598
11599 2011-03-15 Richard Guenther <rguenther@suse.de>
11600
11601 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11602
11603 2011-03-15 Alan Modra <amodra@gmail.com>
11604
11605 PR target/48032
11606 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11607 presume symbol_refs without a symbol_ref_decl are suitably
11608 aligned, nor other trees we may see here. Handle anchor symbols.
11609 (legitimate_constant_pool_address_p): Comment. Add mode param.
11610 Check cmodel=medium addresses. Adjust all calls.
11611 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11612 creating cmodel=medium optimized access to locals.
11613 * config/rs6000/constraints.md (R): Pass QImode to
11614 legitimate_constant_pool_address_p.
11615 * config/rs6000/predicates.md (input_operand): Pass mode to
11616 legitimate_constant_pool_address_p.
11617 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11618 Update prototype.
11619
11620 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11621
11622 PR target/48053
11623 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11624 64-bit constants being loaded into registers other than GPRs such
11625 as loading 0 into a VSX register.
11626
11627 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11628
11629 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11630
11631 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11632
11633 PR middle-end/47917
11634 * builtins.c (fold_builtin_snprintf): New function.
11635 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11636 (fold_builtin_4): Likewise.
11637
11638 PR middle-end/38878
11639 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11640 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11641 and C - X == X also strip nops from +/-/p+ operand.
11642 When optimizing -X == C, fold C to arg0's type.
11643
11644 PR debug/47946
11645 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11646 emit it as add_AT_int instead of add_AT_unsigned.
11647
11648 2011-03-14 Tom Tromey <tromey@redhat.com>
11649
11650 * unwind-dw2.c: Include sys/sdt.h if it exists.
11651 (_Unwind_DebugHook): Use STAP_PROBE2.
11652 * config.in, configure: Rebuild.
11653 * configure.ac: Check for sys/sdt.h.
11654
11655 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11656
11657 * config/i386/i386.md (ROUND_FLOOR): New constant.
11658 (ROUND_CEIL): Ditto.
11659 (ROUND_TRUNC): Ditto.
11660 (ROUND_MXCSR): Ditto.
11661 (ROUND_NO_EXC): Ditto.
11662 (rint<mode>2): Use new defines instead of numerical constants.
11663 (floor<mode>2): Ditto.
11664 (ceil<mode>2): Ditto.
11665 (btrunc<mode>2): Ditto.
11666 * config/i386/i386-builtin-types.def: Define ROUND function type
11667 aliases.
11668 * config/i386/i386.c (enum ix86_builtins): Add
11669 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11670 (struct builtin_description): Add
11671 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11672 (ix86_expand_sse_round): New static function.
11673 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11674 function types.
11675 (ix86_builtin_vectorized_function): Handle
11676 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11677
11678 2011-03-14 Tom Tromey <tromey@redhat.com>
11679
11680 * c-parser.c (c_parser_asm_string_literal): Clear
11681 warn_overlength_strings.
11682
11683 2011-03-14 Tom Tromey <tromey@redhat.com>
11684
11685 * c-parser.c (disable_extension_diagnostics): Save
11686 warn_overlength_strings.
11687 (restore_extension_diagnostics): Restore warn_overlength_strings.
11688
11689 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11690
11691 * BASE-VER: Change to 4.7.0.
11692
11693 2011-03-14 Richard Guenther <rguenther@suse.de>
11694
11695 PR middle-end/48098
11696 * tree.c (build_vector_from_val): Adjust assert to requirements
11697 and reality.
11698
11699 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11700
11701 PR bootstrap/48102
11702 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11703
11704 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11705
11706 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11707 terms of target_flags_explicit. Adjust copyright year.
11708
11709 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11710 * config/rs6000/t-freebsd: New file. Add override for
11711 LIB2FUNCS_EXTRA.
11712
11713 2011-03-13 Chris Demetriou <cgd@google.com>
11714
11715 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11716 (-fno-diagnostics-show-option): this, to reflect current default.
11717 (-Werror=): Update text about -fno-diagnostics-show-option.
11718
11719 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11720
11721 PR target/48053
11722 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11723 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11724 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11725 mode is not V2DImode or V2DFmode.
11726 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11727 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11728 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11729 registers to 0.
11730 (movdi_internal64): Likewise.
11731
11732 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11733
11734 PR tree-optimization/47127
11735 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11736 parameter.
11737 (set_cloog_options): Same.
11738 (scop_to_clast): Same.
11739 (print_clast_stmt): Do not call cloog_state_malloc and
11740 cloog_state_free.
11741 (print_generated_program): Same.
11742 (gloog): Same.
11743 * graphite-clast-to-gimple.h (cloog_state): Declared.
11744 (scop_to_clast): Adjust declaration.
11745 * graphite.c (cloog_state): Defined here.
11746 (graphite_initialize): Call cloog_state_malloc.
11747 (graphite_finalize): Call cloog_state_free.
11748
11749 2011-03-11 Jason Merrill <jason@redhat.com>
11750
11751 * attribs.c (lookup_attribute_spec): Take const_tree.
11752 * tree.h: Adjust.
11753
11754 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11755
11756 * config/sparc/sparc.c (sparc_option_override): Use
11757 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11758
11759 2011-03-11 Richard Guenther <rguenther@suse.de>
11760
11761 PR tree-optimization/48067
11762 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11763 multiplication result will be only used once on the target
11764 stmt.
11765
11766 2011-03-11 Richard Guenther <rguenther@suse.de>
11767
11768 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11769
11770 2011-03-11 Richard Guenther <rguenther@suse.de>
11771
11772 PR lto/48073
11773 * tree.c (find_decls_types_r): Do not walk types only reachable
11774 from IDENTIFIER_NODEs.
11775
11776 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11777
11778 PR middle-end/48044
11779 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11780 all vnode->force_output nodes as needed.
11781
11782 2011-03-11 Jason Merrill <jason@redhat.com>
11783
11784 PR c++/48069
11785 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11786 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11787
11788 2011-03-11 Martin Jambor <mjambor@suse.cz>
11789
11790 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11791 cgraph_node.
11792
11793 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11794
11795 PR tree-optimization/48063
11796 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11797 inline functions called once if !tree_can_inline_p (node->callers).
11798
11799 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11800
11801 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11802 extra_objs.
11803 * config/score/score3.c: Delete.
11804 * config/score/score3.h: Delete.
11805 * config/score/mul-div.S: Delete.
11806 * config/score/sfp-machine.h: Add new file.
11807 * config/score/constraints.md: Add new file.
11808 * config/score/t-score-softfp: Add new file.
11809 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11810 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11811 (score7_extra_constraint): Delete.
11812 (score7_option_override): Remove unused code.
11813 * config/score/score.c: Remove score3 and score5 define and code.
11814 * config/score/score.h: Remove score3 and score5 define and code.
11815 * config/score/score.md: Remove score3 template and unusual insn.
11816 * config/score/score.opt: Remove score3 and score5 options.
11817
11818 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11819
11820 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11821 when _HPUX_SOURCE is defined.
11822 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11823
11824 2011-03-10 Jason Merrill <jason@redhat.com>
11825
11826 PR c++/48029
11827 * stor-layout.c (layout_type): Don't set structural equality
11828 on arrays of incomplete type.
11829 * tree.c (type_hash_eq): Handle comparing them properly.
11830
11831 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11832
11833 PR debug/48043
11834 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11835 result mode matches original rtl mode.
11836
11837 2011-03-10 Nick Clifton <nickc@redhat.com>
11838
11839 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11840 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11841
11842 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11843
11844 PR rtl-optimization/47866
11845 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11846 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11847 if target wasn't scalar.
11848 * function.c (assign_stack_temp_for_type): Assert that neither
11849 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11850 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11851 macro.
11852 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11853
11854 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11855
11856 * config/s390/s390-protos.h (s390_label_align): New prototype.
11857 * config/s390/s390.c (s390_label_align): New function.
11858 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11859
11860 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11861
11862 PR target/47755
11863 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11864 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11865 (output_vec_const_move): Ditto.
11866
11867 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11868
11869 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11870 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11871 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11872 Change 'rclass' argument and result type to reg_class_t.
11873 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11874
11875 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11876
11877 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11878 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11879 (TARGET_MEMORY_MOVE_COST): Define.
11880 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11881
11882 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11883
11884 PR debug/47881
11885 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11886 removed anything.
11887
11888 PR tree-optimization/48022
11889 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11890 for EQ/NE_EXPR.
11891
11892 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11893
11894 PR debug/47991
11895 * var-tracking.c (find_use_val): Return NULL for
11896 cui->sets && cui->store_p BLKmode MEMs.
11897
11898 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11899
11900 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11901 Remove.
11902 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11903 xstormy16_print_operand_address): Remove.
11904 * config/stormy16/stormy16.c (xstormy16_print_operand,
11905 xstormy16_print_operand_address): Make static.
11906 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11907
11908 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11909
11910 PR target/47862
11911 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11912 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11913 before definition.
11914
11915 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11916
11917 PR bootstrap/48000
11918 * cfgloopmanip.c (fix_bb_placements): Return immediately
11919 if FROM is BASE_LOOP's header.
11920
11921 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11922
11923 * gimplify.c (gimplify_function_tree): Fix building calls
11924 to __builtin_return_address.
11925
11926 2011-03-07 Alan Modra <amodra@gmail.com>
11927
11928 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11929 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11930 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11931 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11932 return_mode args.
11933 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11934 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11935 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11936 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11937 * config/rs6000/rs6000.c
11938 (rs6000_elf_end_indicate_exec_stack): Rename to..
11939 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11940 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11941 (rs6000_file_start): ..here.
11942 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11943 file scope variables.
11944 (call_ABI_of_interest): New function.
11945 (init_cumulative_args): Set above vars when function return value
11946 is a float, vector, or small struct.
11947 (rs6000_function_arg_advance_1): Likewise for function args.
11948 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11949 references float args.
11950
11951 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11952
11953 * doc/cfg.texi: Remove "See" before @ref.
11954 * doc/invoke.texi: Likewise.
11955
11956 2011-03-05 Jason Merrill <jason@redhat.com>
11957
11958 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11959
11960 2011-03-05 Anthony Green <green@moxielogic.com>
11961
11962 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11963
11964 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11965
11966 PR rtl-optimization/47899
11967 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11968 to flow_loop_nested_p when moving the loop upward.
11969
11970 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11971
11972 PR target/47719
11973 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11974
11975 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11976
11977 PR tree-optimization/47967
11978 * ipa-cp.c (build_const_val): Return NULL instead of creating
11979 VIEW_CONVERT_EXPR for mismatching sizes.
11980 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11981 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11982 give up on versioning.
11983
11984 2011-03-05 Alan Modra <amodra@gmail.com>
11985
11986 PR target/47986
11987 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11988 full cmodel medium/large lo_sum + high addresses.
11989
11990 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11991
11992 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11993 pool references in UNSPEC_LTREL_OFFSET.
11994
11995 2011-03-04 Jan Hubicka <jh@suse.cz>
11996
11997 PR lto/47497
11998 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11999 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12000 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12001 Add node pointers.
12002 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12003 cgraph_add_thunk): Add node pointers.
12004 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12005 associated to right node.
12006 (input_node): Update use of cgraph_same_body_alias
12007 and cgraph_add_thunk.
12008
12009 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12010
12011 * config/i386/i386.opt (mprefer-avx128): New flag.
12012 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12013 modes when the flag -mprefer-avx128 is on.
12014
12015 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12016
12017 * dwarf2out.c (compare_loc_operands): Fix address handling.
12018
12019 2011-03-04 Alan Modra <amodra@gmail.com>
12020
12021 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12022
12023 2011-03-04 Richard Guenther <rguenther@suse.de>
12024
12025 PR middle-end/47968
12026 * expmed.c (extract_bit_field_1): Prefer vector modes that
12027 vec_extract patterns can handle.
12028
12029 2011-03-04 Richard Guenther <rguenther@suse.de>
12030
12031 PR middle-end/47975
12032 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12033
12034 2011-03-04 Richard Henderson <rth@redhat.com>
12035
12036 * explow.c (emit_stack_save): Remove 'after' parameter.
12037 (emit_stack_restore): Likewise.
12038 * expr.h: Update to match.
12039 * builtins.c, calls.c, stmt.c: Likewise.
12040 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12041 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12042 * function.c (expand_function_end): Insert the emit_stack_save
12043 sequence before parm_birth_insn instead of after.
12044
12045 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12046
12047 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12048 (ssse3_pmaddubsw128): Ditto.
12049 (ssse3_pmaddubsw): Ditto.
12050
12051 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12052
12053 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12054
12055 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12056
12057 PR c/47963
12058 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12059 on TYPE_SIZE_UNIT if it is a DECL.
12060
12061 PR debug/47283
12062 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12063 first operand is not is_gimple_mem_ref_addr, try to fold it.
12064 If the operand still isn't is_gimple_mem_ref_addr, clear
12065 MEM_EXPR on op0.
12066
12067 2011-03-03 Richard Guenther <rguenther@suse.de>
12068
12069 PR middle-end/47283
12070 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12071 match comment.
12072 (refs_may_alias_p_1): For release branches return true if
12073 we are confused by our input.
12074
12075 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12076
12077 * config/s390/s390.c (s390_function_value): Rename to ...
12078 (s390_function_and_libcall_value): ... this.
12079 (s390_function_value): New function.
12080 (s390_libcall_value): New function.
12081 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12082 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12083 target macro definitions.
12084 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12085
12086 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12087
12088 * config/i386/freebsd64.h (CC1_SPEC): Define.
12089 * config/i386/linux64.h (CC1_SPEC): Define.
12090 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12091
12092 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12093
12094 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12095 Remove.
12096 * config/stormy16/stormy16.c: Include reload.h.
12097 (xstormy16_memory_move_cost): New function.
12098 (TARGET_MEMORY_MOVE_COST): Define.
12099
12100 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12101
12102 PR rtl-optimization/47925
12103 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12104 with side effects. Remove the more-specific check for volatile asms.
12105
12106 2011-03-02 Alan Modra <amodra@gmail.com>
12107
12108 PR target/47935
12109 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12110 toc relative addresses for valid offsets.
12111
12112 2011-03-01 Richard Guenther <rguenther@suse.de>
12113
12114 PR tree-optimization/47890
12115 * tree-vect-loop.c (get_initial_def_for_induction): Set
12116 related stmt properly.
12117
12118 2011-03-01 Richard Guenther <rguenther@suse.de>
12119
12120 PR lto/47924
12121 * lto-streamer.c (lto_record_common_node): Also register
12122 the canonical type.
12123
12124 2011-03-01 Richard Guenther <rguenther@suse.de>
12125
12126 PR lto/46911
12127 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12128 Do not stream DECL_ABSTRACT_ORIGIN.
12129 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12130 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12131 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12132 Do not stream DECL_ABSTRACT_ORIGIN.
12133 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12134 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12135
12136 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12137
12138 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12139 FUNCTION_VALUE_REGNO_P): Remove.
12140 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12141 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12142 Add 'outgoing' argument.
12143 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12144 function.
12145 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12146 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12147
12148 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12149
12150 PR debug/28047
12151 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12152 (lookup_filename): Likewise.
12153 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12154
12155 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12156 Jakub Jelinek <jakub@redhat.com>
12157
12158 PR middle-end/47893
12159 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12160 (assign_stack_local_1): Change last argument type to int.
12161 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12162 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12163 don't record padding space into frame_space_list nor use those areas.
12164 (assign_stack_local): Adjust caller.
12165 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12166 of assign_stack_local, pass 0 as last argument.
12167 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12168 callers.
12169
12170 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12171
12172 PR debug/47283
12173 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12174 Use target address_mode and pointer_mode hooks instead of hardcoded
12175 Pmode and ptr_mode. Handle some simple cases of extending if
12176 POINTERS_EXTEND_UNSIGNED < 0.
12177 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12178 Call convert_debug_memory_address.
12179 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12180 convert_debug_memory_address.
12181
12182 PR middle-end/46790
12183 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12184 * configure: Regenerated.
12185 * config.in: Regenerated.
12186 * varasm.c (default_function_section): Return NULL
12187 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12188
12189 2011-02-28 Martin Jambor <mjambor@suse.cz>
12190
12191 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12192 the description to match the printed values.
12193
12194 2011-02-28 Richard Guenther <rguenther@suse.de>
12195
12196 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12197 of the copied scope tree.
12198
12199 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12200
12201 * doc/extend.texi (Function Attributes): Avoid deeply (and
12202 wrongly) nested tables.
12203
12204 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12205
12206 PR middle-end/47903
12207 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12208 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12209 r isn't op0 nor op1.
12210
12211 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12212
12213 * config/avr/avr.md: Remove magic comment for emacs.
12214
12215 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12216
12217 PR target/45261
12218 * config/avr/avr.c (avr_option_override): Use error on bad options.
12219 (avr_help): New function.
12220 (TARGET_HELP): Define.
12221
12222 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12223
12224 PR target/42240
12225 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12226 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12227
12228 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12229
12230 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12231 (ARM Options): Ditto.
12232 (i386 and x86-64 Options): Ditto.
12233 (RX Options): Ditto.
12234 (SPARC Options): Ditto.
12235
12236 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12237
12238 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12239 FreeBSD 6 and later. Generally use cpu generic.
12240
12241 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12242
12243 * doc/cpp.texi: Update copyright years.
12244
12245 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12246
12247 PR target/46898
12248 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12249
12250 2011-02-25 Jon Beniston <jon@beniston.com>
12251
12252 PR target/46898
12253 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12254 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12255 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12256 (lm32_block_move_inline): Add type cast to remove warning.
12257 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12258 (gen_int_relational): Move declarations to start of function.
12259
12260 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12261
12262 PR tree-optimization/45470
12263 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12264 can throw internally only.
12265 * tree-vect-stmts.c (vectorizable_call): Likewise.
12266
12267 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12268
12269 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12270 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12271 * config/stormy16/stormy16-protos.h
12272 (xstormy16_preferred_reload_class): Remove.
12273 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12274 static. Change 'rclass' argument and return type to reg_class_t.
12275 (TARGET_PREFERRED_RELOAD_CLASS,
12276 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12277
12278 2011-02-24 Richard Guenther <rguenther@suse.de>
12279
12280 * lto-streamer-in.c (input_bb): Do not find referenced vars
12281 in debug statements.
12282
12283 2011-02-23 Jason Merrill <jason@redhat.com>
12284
12285 * common.opt (fabi-version): Document v5 and v6.
12286
12287 2011-02-23 Richard Guenther <rguenther@suse.de>
12288
12289 PR tree-optimization/47849
12290 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12291
12292 2011-02-23 Jie Zhang <jie@codesourcery.com>
12293
12294 * opts-common.c (decode_cmdline_option): Print empty string
12295 argument as "" in decoded->orig_option_with_args_text.
12296 * gcc.c (execute): Print empty string argument as ""
12297 in the verbose output.
12298 (do_spec_1): Keep empty string argument.
12299
12300 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12301
12302 * config.gcc: Declare score-* and crx-* obsolete.
12303
12304 2011-02-23 Jie Zhang <jie@codesourcery.com>
12305
12306 PR rtl-optimization/47763
12307 * web.c (web_main): Ignore naked clobber when replacing register.
12308
12309 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12310
12311 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12312 Remove.
12313
12314 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12315
12316 PR doc/47848
12317 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12318
12319 2011-02-22 Mike Stump <mikestump@comcast.net>
12320
12321 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12322 assembler.
12323 * configure: Regenerate.
12324
12325 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12326
12327 PR rtl-optimization/46002
12328 * ira-color.c (update_copy_costs): Change class intersection
12329 test to reg_class_contents[] test of 'hard_regno'.
12330
12331 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12332
12333 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12334 than Driver option.
12335 * config/hpux11.opt (mt): Likewise.
12336 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12337 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12338 * config/vax/elf.opt (mno-asm-pic): Likewise.
12339 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12340
12341 2011-02-21 Mike Stump <mikestump@comcast.net>
12342
12343 PR target/47822
12344 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12345 tree so we can get save the type.
12346 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12347 for CFString instead of trying to use past the end of the builtins.
12348 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12349 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12350 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12351 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12352 Rename to darwin_builtin_cfstring.
12353 (darwin_init_cfstring_builtins): Return the built type.
12354
12355 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12356
12357 PR target/47840
12358 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12359 (_mm256_insert_epi64): Use _mm_insert_epi64.
12360
12361 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12362
12363 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12364 * config/stormy16/stormy16-protos.h
12365 (xstormy16_mode_dependent_address_p): Remove.
12366 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12367 Make static. Change return type to bool. Change argument type to
12368 const_rtx. Remove dead code.
12369 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12370
12371 2011-02-21 Richard Guenther <rguenther@suse.de>
12372
12373 PR lto/47820
12374 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12375 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12376 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12377 TUs context.
12378 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12379 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12380
12381 2011-02-20 Richard Guenther <rguenther@suse.de>
12382
12383 PR lto/47822
12384 * tree.c (free_lang_data_in_decl): Clean builtins from
12385 the TU decl BLOCK_VARS.
12386
12387 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12388
12389 PR debug/47620
12390 PR debug/47630
12391 * haifa-sched.c (fix_tick_ready): Skip tick computation
12392 for debug insns.
12393
12394 2011-02-19 Richard Guenther <rguenther@suse.de>
12395
12396 PR lto/47647
12397 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12398 Remove lazy BLOCK_VARS streaming.
12399 (lto_input_ts_block_tree_pointers): Likewise.
12400 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12401
12402 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12403
12404 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12405
12406 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12407
12408 * config/i386/biarch32.h, config/i386/mach.h,
12409 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12410
12411 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12412
12413 PR target/47800
12414 * config/i386/i386.md (peephole2 for shift and plus): Use
12415 operands[1] original mode in the first insn.
12416
12417 2011-02-18 Mike Stump <mikestump@comcast.net>
12418
12419 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12420
12421 2011-02-18 Jan Hubicka <jh@suse.cz>
12422
12423 PR middle-end/47788
12424 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12425 to zero when the function is not inlinable at all.
12426
12427 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12428
12429 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12430 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12431 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12432 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12433 * config/pa/t-pa64: Likewise.
12434 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12435
12436 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12437
12438 PR driver/47787
12439 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12440
12441 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12442
12443 PR target/47792
12444 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12445
12446 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12447
12448 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12449 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12450 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12451 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12452 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12453 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12454 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12455 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12456 m32r_legitimate_address_p): New functions.
12457 * config/m32r/constraints.md (constraint "S"): Don't use
12458 STORE_PREINC_PREDEC_P.
12459 (constraint "U"): Don't use LOAD_POSTINC_P.
12460
12461 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12462
12463 PR rtl-optimization/46178
12464 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12465 compute ira_hard_regno_cover_class[].
12466
12467 2011-02-18 Richard Guenther <rguenther@suse.de>
12468
12469 PR lto/47798
12470 * lto-streamer.h (lto_global_var_decls): Declare.
12471 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12472 statics for global var processing.
12473
12474 2011-02-18 Richard Guenther <rguenther@suse.de>
12475
12476 PR tree-optimization/47737
12477 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12478 edge dominance check.
12479
12480 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12481
12482 PR debug/47780
12483 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12484 avoid invalid rtx sharing.
12485
12486 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12487
12488 * doc/cpp.texi (Obsolete Features): Add background on the
12489 origin of assertions.
12490
12491 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12492
12493 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12494 objc_abi == 2.
12495 * config/darwin.c (output_objc_section_asm_op): Added support for
12496 ABI v1 and v2.
12497 (is_objc_metadata): New.
12498 (darwin_objc2_section): New.
12499 (darwin_objc1_section): New.
12500 (machopic_select_section): Added support for ABI v1 and v2.
12501 (darwin_emit_objc_zeroed): New.
12502 (darwin_output_aligned_bss): Detect objc metadata and treat it
12503 appropriately.
12504 (darwin_asm_output_aligned_decl_common): Same.
12505 (darwin_asm_output_aligned_decl_local): Same.
12506 * config/darwin-sections.def: Updated for ABI v1 and v2.
12507 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12508 compiling Objective-C code for the NeXT runtime, default to using
12509 ABI version 0 for 32-bit, and version 2 for 64-bit.
12510
12511 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12512
12513 * common.opt (optimize_fast): New Variable.
12514 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12515 instead of local variable ofast.
12516
12517 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12518
12519 * doc/invoke.texi (fobjc-abi-version): Documented.
12520 (fobjc-nilcheck): Documented.
12521 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12522 version.
12523
12524 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12525
12526 PR driver/47390
12527 * common.opt (export-dynamic): New Driver option.
12528 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12529
12530 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12531
12532 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12533
12534 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12535 Jan Hubicka <jh@suse.cz>
12536
12537 PR debug/47106
12538 PR debug/47402
12539 * cfgexpand.c (account_used_vars_for_block): Remove.
12540 (estimated_stack_frame_size): Use referenced vars.
12541 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12542 that were referenced in the original function. Test src_fn
12543 rather than cfun. Drop redundant get_var_ann.
12544 (setup_one_parameter): Drop redundant get_var_ann.
12545 (declare_return_variable): Likewise.
12546 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12547 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12548 * ipa-inline.c (compute_inline_parameters): Do not compute
12549 disregard_inline_limits here.
12550 (compute_inlinable_for_current, pass_inlinable): New.
12551 (pass_inline_parameters): Require PROP_referenced_vars.
12552 * cgraphunit.c (cgraph_process_new_functions): Don't run
12553 compute_inline_parameters explicitly unless function is in SSA form.
12554 (cgraph_analyze_function): Set .disregard_inline_limits.
12555 * tree-sra.c (convert_callers): Compute inliner parameters
12556 only for functions already in SSA form.
12557
12558 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12559
12560 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12561 -mlittle-endian-data.
12562
12563 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12564
12565 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12566 -mno-fpu, not -fpu and -no-fpu.
12567 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12568 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12569
12570 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12571
12572 PR target/43653
12573 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12574 input reload with PLUS RTX.
12575
12576 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12577
12578 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12579 of InverseVar(MDMX).
12580
12581 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12582
12583 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12584 --m4-340.
12585
12586 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12587
12588 * config/mn10300/mn10300.opt (mno-crt0): New.
12589
12590 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12591
12592 * config/m68k/uclinux.opt (static-libc): New Driver option.
12593
12594 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12595
12596 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12597
12598 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12599
12600 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12601 %{muser-extend-enabled}.
12602
12603 2011-02-16 Richard Guenther <rguenther@suse.de>
12604
12605 PR tree-optimization/47738
12606 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12607 the TODO from tree_predictive_commoning.
12608
12609 2011-02-15 Jeff Law <law@redhat.com>
12610
12611 Revert
12612 2011-01-25 Jeff Law <law@redhat.com>
12613
12614 PR rtl-optimization/37273
12615 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12616 handle them like argument loads from stack slots. Do not double
12617 count memory for memory constants and argument loads from stack slots.
12618
12619 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12620
12621 PR middle-end/47725
12622 * combine.c (cant_combine_insn_p): Revert the last change.
12623
12624 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12625
12626 PR target/47755
12627 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12628 mode for vector constants. Remove code that checks for TImode.
12629
12630 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12631
12632 PR debug/47106
12633 PR debug/47402
12634 * cgraph.h (compute_inline_parameters): Return void.
12635 * ipa-inline.c (compute_inline_parameters): Adjust.
12636
12637 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12638
12639 PR debug/47106
12640 PR debug/47402
12641 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12642 rather than decl.
12643 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12644 * ipa-inline.c (compute_inline_parameters): Adjust.
12645
12646 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12647
12648 PR debug/47106
12649 PR debug/47402
12650 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12651 Adjust all users. Pass FN to...
12652 * tree-flow-inline.h (first_referenced_var): ... this. Add
12653 fn argument.
12654 * ipa-struct-reorg.c: Adjust.
12655 * tree-dfa.c: Adjust.
12656 * tree-into-ssa.c: Adjust.
12657 * tree-sra.c: Adjust.
12658 * tree-ssa-alias.c: Adjust.
12659 * tree-ssa-live.c: Adjust.
12660 * tree-ssa.c: Adjust.
12661 * tree-ssanames.c: Adjust.
12662 * tree-tailcall.c: Adjust.
12663
12664 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12665
12666 PR debug/47106
12667 PR debug/47402
12668 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12669 Adjust all callers.
12670 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12671 * tree-flow-inline.h: Adjust.
12672 * gimple-pretty-print.c: Adjust.
12673 * tree-into-ssa.c: Adjust.
12674 * tree-ssa.c: Adjust.
12675 * cfgexpand.c: Adjust.
12676
12677 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12678
12679 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12680 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12681 (EXTRA_CONSTRAINT): Delete.
12682 * config/iq2000/constraints.md: New file.
12683 * config/iq2000/iq2000.md: Include it.
12684 (define_insn ""): Delete.
12685 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12686 unsupported constraint letters from patterns.
12687 (call_value, call_value_internal1): Likewise.
12688 (call_value_multiple_internal1): Likewise.
12689
12690 2011-02-15 Nick Clifton <nickc@redhat.com>
12691
12692 * config/mn10300/mn10300.c: Include tm-constrs.h.
12693 (struct liw_data): New data structure describing an LIW candidate
12694 instruction.
12695 (extract_bundle): Use struct liw_data. Allow small integer
12696 operands for some instructions.
12697 (check_liw_constraints): Use struct liw_data. Remove swapped
12698 parameter. Add comments describing the checks. Fix bug when
12699 assigning the source of liw1 to the source of liw2.
12700 (liw_candidate): Delete. Code moved into extract_bundle.
12701 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12702 before swapping.
12703 * config/mn10300/predicates.md (liw_operand): New predicate.
12704 Allows registers and small integer constants.
12705 * config/mn10300/constraints.md (O): New constraint. Accetps
12706 integers in the range -8 to +7 inclusive.
12707 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12708 for moving a small integer into a register. Give this alternative
12709 LIW attributes.
12710 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12711 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12712 using the J,K,L and M constraints,
12713 (liw): Remove SI mode on second operands to allow for HI and QI
12714 mode values.
12715 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12716 instruction.
12717
12718 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12719
12720 PR middle-end/47725
12721 * combine.c (cant_combine_insn_p): Check zero/sign extended
12722 hard registers.
12723
12724 2011-02-15 Richard Guenther <rguenther@suse.de>
12725
12726 PR tree-optimization/47743
12727 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12728 for a non-type-compatible VN lookup bail out.
12729
12730 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12731
12732 * config/fr30/constraints.md: New file.
12733 * config/fr30/fr30.md: Include it.
12734 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12735 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12736 (EXTRA_CONSTRAINT): Delete.
12737
12738 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12739
12740 * config/frv/constraints.md: New file.
12741 * config/frv/predicates.md: Include it.
12742 * config/frv/frv.c (reg_class_from_letter): Delete.
12743 (frv_option_override): Don't initialize it.
12744 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12745 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12746 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12747 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12748 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12749 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12750 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12751 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12752 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12753 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12754 (REG_CLASS_FROM_CONSTRAINT): Delete.
12755
12756 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12757
12758 PR middle-end/47581
12759 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12760 if frame size is 0 in a leaf function.
12761
12762 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12763
12764 PR pch/14940
12765 * config/alpha/host-osf.c: New file.
12766 * config/alpha/x-osf: New file.
12767 * config.host (alpha*-dec-osf*): Use it.
12768
12769 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12770
12771 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12772 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12773 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12774 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12775 type to const_rtx.
12776 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12777
12778 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12779
12780 * config/stormy16/constraints.md: New file.
12781 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12782 Use satisfies_constraint_Q and satisfies_constraint_R.
12783 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12784 Delete.
12785 (xstormy16_legitiamte_address_p): Declare.
12786 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12787 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12788 (EXTRA_CONSTRAINT): Delete.
12789 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12790 Un-staticize.
12791 (xstormy16_extra_constraint_p): Delete.
12792
12793 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12794
12795 PR tree-optimization/46494
12796 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12797 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12798 (pass_rtl_loop_done): Add TODO_verify_flow.
12799 * fwprop.c (pass_rtl_fwprop): Likewise.
12800 * modulo-sched.c (pass_sms): Likewise.
12801 * tree-ssa-dom.c (pass_dominator): Likewise.
12802 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12803 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12804 (pass_tree_loop_done): Likewise.
12805 * tree-ssa-pre.c (execute_pre): Likewise.
12806 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12807 * tree-ssa-sink.c (pass_sink_code): Likewise.
12808 * tree-vrp.c (pass_vrp): Likewise.
12809
12810 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12811
12812 * config/v850/constraints.md: New file.
12813 * config/v850/v850.md: Include it.
12814 * config/v850/predicates.md (reg_or_0_operand): Use
12815 satisfies_constraint_G.
12816 (special_symbolref_operand): Use satisfies_constraint_K.
12817 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12818 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12819 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12820 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12821 (EXTRA_CONSTRAINT): Delete.
12822 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12823 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12824 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12825
12826 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12827
12828 PR target/47696
12829 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12830 description.
12831
12832 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12833
12834 * config/mcore/constraints.md: New file.
12835 * config/mcore/mcore.md: Include it.
12836 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12837 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12838 (REG_CLASS_FROM_LETTER): Delete.
12839 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12840 insn_const_int_ok_for_constraint.
12841 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12842 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12843 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12844 (EXTRA_CONSTRAINT): Delete.
12845
12846 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12847
12848 PR ada/41929
12849 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12850 (IS_SIGHANDLER): Define.
12851 (sparc64_is_sighandler): New function, split off from
12852 sparc64_fallback_frame_state.
12853 (sparc_is_sighandler): New function, split off from
12854 sparc_fallback_frame_state.
12855 (sparc64_fallback_frame_state): Merge with ...
12856 (sparc_fallback_frame_state): ... this into ...
12857 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12858 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12859 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12860 stack instead of hardcoded offsets.
12861
12862 2011-02-14 Andriy Gapon <avg@freebsd.org>
12863
12864 PR target/45808
12865 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12866
12867 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12868
12869 * configure: Regenerate.
12870
12871 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12872
12873 PR driver/45731
12874 * gcc.c (asm_options): Correct spec matching --target-help.
12875
12876 2011-02-12 Martin Jambor <mjambor@suse.cz>
12877
12878 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12879 to gimple call error.
12880
12881 2011-02-12 Mike Stump <mikestump@comcast.net>
12882
12883 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12884 comments in backslash regions.
12885
12886 2011-02-12 Mike Stump <mikestump@comcast.net>
12887 Jakub Jelinek <jakub@redhat.com>
12888 Iain Sandoe <iains@gcc.gnu.org>
12889
12890 PR target/47324
12891 * dwarf2out.c (output_cfa_loc): When required, apply the
12892 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12893 (output_loc_sequence): Likewise.
12894 (output_loc_operands_raw): Likewise.
12895 (output_loc_sequence_raw): Likewise.
12896 (output_cfa_loc): Likewise.
12897 (output_loc_list): Suppress register number adjustment when
12898 calling output_loc_sequence()
12899 (output_die): Likewise.
12900
12901 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12902
12903 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12904 Remove macros.
12905 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12906 xtensa_memory_move_cost): New functions.
12907 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12908
12909 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12910
12911 PR lto/47225
12912 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12913 in the current directory.
12914 * configure: Rebuilt.
12915
12916 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12917
12918 * config/darwin.c (darwin_override_options): Add a hunk missed
12919 from the commit of r168571. Trim comment line lengths and
12920 correct indents of the preceding block.
12921
12922 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12923
12924 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12925 the switch.
12926
12927 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12928
12929 * common.opt (nostartfiles): New Driver option.
12930
12931 2011-02-11 Xinliang David Li <davidxl@google.com>
12932
12933 PR tree-optimization/47707
12934 * tree-chrec.c (convert_affine_scev): Keep type precision.
12935
12936 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12937
12938 PR tree-optimization/47420
12939 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12940
12941 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12942
12943 PR rtl-optimization/47614
12944 * rtl.h (check_for_inc_dec): Declare.
12945 * dse.c (check_for_inc_dec): Externalize...
12946 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12947 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12948
12949 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12950
12951 PR driver/47678
12952 * gcc.c (main): Do not compile inputs if there were errors in
12953 option handling.
12954 * opts-common.c (read_cmdline_option): Check for wrong language
12955 after other error checks.
12956
12957 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12958
12959 * cgraph.c: Fix comment typos.
12960 * cgraph.h: Likewise.
12961 * cgraphunit.c: Likewise.
12962 * ipa-cp.c: Likewise.
12963 * ipa-inline.c: Likewise.
12964 * ipa-prop.c: Likewise.
12965 * ipa-pure-const.c: Likewise.
12966 * ipa-ref.c: Likewise.
12967 * ipa-reference.c: Likewise.
12968
12969 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12970
12971 PR debug/47684
12972 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12973
12974 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12975
12976 PR testsuite/47400
12977 * doc/sourcebuild.texi (Require Support): Document
12978 dg-require-ascii-locale.
12979
12980 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12981
12982 * doc/lto.texi (Write summary): Fix missing parentheses.
12983
12984 2011-02-10 DJ Delorie <dj@redhat.com>
12985
12986 * config/m32c/m32c.c (m32c_option_override): Disable
12987 -fcombine-stack-adjustments until flag value tracking and compare
12988 optimization can be rewritten.
12989
12990 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12991
12992 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12993 PROCESSOR_POWER7.
12994 (PROCESSOR_DEFAULT64): Likewise.
12995
12996 2011-02-10 Richard Henderson <rth@redhat.com>
12997
12998 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12999 change from 2011-02-03.
13000 * config/rx/rx.c (flags_from_code): Likewise.
13001 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13002 is valid, n/pz otherwise.
13003 (rx_select_cc_mode): Return CCmode if Y is not zero.
13004
13005 2011-02-10 Richard Guenther <rguenther@suse.de>
13006
13007 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13008
13009 2011-02-10 Richard Guenther <rguenther@suse.de>
13010
13011 PR tree-optimization/47677
13012 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13013
13014 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13015
13016 PR target/47665
13017 * combine.c (make_compound_operation): Only change shifts into
13018 multiplication for SCALAR_INT_MODE_P.
13019
13020 2011-02-10 Jie Zhang <jie@codesourcery.com>
13021
13022 PR testsuite/47622
13023 Revert
13024 2011-02-05 Jie Zhang <jie@codesourcery.com>
13025 PR debug/42631
13026 * web.c (entry_register): Don't clobber the number of the
13027 first uninitialized reference in used[].
13028
13029 2011-02-09 Richard Guenther <rguenther@suse.de>
13030
13031 PR tree-optimization/47664
13032 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13033 all edges again.
13034
13035 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13036
13037 PR target/46481
13038 PR target/47032
13039 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13040 PROCESSOR_POWER7.
13041 (PROCESSOR_DEFAULT64): Same.
13042 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13043
13044 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13045
13046 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13047
13048 2011-02-09 Martin Jambor <mjambor@suse.cz>
13049
13050 PR middle-end/45505
13051 * tree-sra.c (struct access): New flags grp_scalar_read and
13052 grp_scalar_write. Changed description of assignment read and write
13053 flags.
13054 (dump_access): Dump new flags, reorder all of them.
13055 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13056 to detect multiple scalar reads.
13057 (analyze_access_subtree): Use the new scalar read write flags instead
13058 of the old flags. Adjusted comments.
13059
13060 2011-02-08 DJ Delorie <dj@redhat.com>
13061
13062 PR target/47548
13063 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13064 patterns.
13065
13066 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13067
13068 * config/m68k/uclinux.opt: New.
13069 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13070
13071 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13072
13073 * config/cris/elf.opt (sim): New Driver option.
13074
13075 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13076
13077 * config/xtensa/elf.opt: New.
13078 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13079
13080 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13081
13082 * config/vax/elf.opt: New.
13083 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13084
13085 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13086
13087 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13088
13089 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13090
13091 * config/gnu-user.opt: New.
13092 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13093 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13094 *-*-uclinux*): Use gnu-user.opt.
13095
13096 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13097
13098 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13099 * config/i386/gnu.h (CPP_SPEC): Likewise.
13100
13101 2011-02-08 Ian Lance Taylor <iant@google.com>
13102
13103 * common.opt (fcx-limited-range): Add SetByCombined flag.
13104 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13105 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13106 (fassociative-math, freciprocal-math): Likewise.
13107 (funsafe-math-optimizations): Likewise.
13108 * opth-gen.awk: Handle SetByCombined.
13109 * optc-gen.awk: Likewise.
13110 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13111 (set_unsafe_math_optimizations_flags): Likewise.
13112 * doc/options.texi (Option properties): Document SetByCombined.
13113
13114 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13115
13116 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13117 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13118 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13119 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13120 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13121
13122 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13123
13124 PR tree-optimization/46834
13125 PR tree-optimization/46994
13126 PR tree-optimization/46995
13127 * graphite-sese-to-poly.c (used_outside_reduction): New.
13128 (detect_commutative_reduction): Call used_outside_reduction.
13129 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13130 translate_scalar_reduction_to_array only when at least one
13131 loop-phi/close-phi tuple has been detected.
13132
13133 2011-02-08 Richard Guenther <rguenther@suse.de>
13134
13135 PR middle-end/47639
13136 * tree-vect-generic.c (expand_vector_operations_1): Update
13137 stmts here ...
13138 (expand_vector_operations): ... not here. Cleanup EH info
13139 and the CFG if required.
13140
13141 2011-02-08 Richard Guenther <rguenther@suse.de>
13142
13143 PR tree-optimization/47641
13144 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13145 require type compatibility.
13146
13147 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13148
13149 * gimple-low.c (lower_function_body): Don't remove the location of
13150 the return statement here.
13151 (lower_gimple_return): Do it here instead but only if the return
13152 statement is actually used twice.
13153
13154 2011-02-08 Richard Guenther <rguenther@suse.de>
13155
13156 PR tree-optimization/47632
13157 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13158 unused up_to_stmt parameter, return whether cfg-cleanup is
13159 necessary, remove EH info properly.
13160 (forward_propagate_into_gimple_cond): Adjust caller.
13161 (forward_propagate_into_cond): Likewise.
13162 (forward_propagate_comparison): Likewise.
13163 (tree_ssa_forward_propagate_single_use_vars): Make
13164 forward_propagate_comparison case similar to the two others.
13165
13166 2011-02-08 Nick Clifton <nickc@redhat.com>
13167
13168 * config/mn10300/mn10300.opt (mliw): New command line option.
13169 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13170 (liw_bundling): New automaton.
13171 (liw): New attribute.
13172 (liw_op): New attribute.
13173 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13174 (movsi_internal): Add LIW attributes.
13175 (andsi3): Likewise.
13176 (iorsi3): Likewise.
13177 (xorsi3): Likewise.
13178 (addsi3): Separate register and immediate alternatives.
13179 Add LIW attributes.
13180 (subsi3): Likewise.
13181 (cmpsi): Likewise.
13182 (aslsi3): Likewise.
13183 (lshrsi3): Likewise.
13184 (ashrsi3): Likewise.
13185 (liw): New pattern.
13186 * config/mn10300/mn10300.c (liw_op_names): New
13187 (mn10300_print_operand): Handle 'W' operand descriptor.
13188 (extract_bundle): New function.
13189 (check_liw_constraints): New function.
13190 (liw_candidate): New function.
13191 (mn10300_bundle_liw): New function.
13192 (mn10300_reorg): New function.
13193 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13194 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13195 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13196 __LIW__ or __NO_LIW__.
13197 * doc/invoke.texi: Describe the -mliw command line option.
13198
13199 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13200
13201 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13202 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13203 pthread_mutex_unlock): Remove.
13204 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13205 * config/pa/t-pa64: Likewise.
13206 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13207 shared libc if not linking against libpthread.
13208 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13209
13210 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13211
13212 PR target/47558
13213 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13214 on 10.6 and later to ensure that we always use the unwinder from
13215 the system. Only add -no_compact_unwind when tarteting darwin
13216 10.6 or later.
13217
13218 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13219
13220 PR target/46997
13221 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13222 (vec_interleave_lowv2sf): Ditto.
13223 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13224 (vec_extract_oddv2sf): Ditto.
13225
13226 2011-02-07 Mike Stump <mikestump@comcast.net>
13227
13228 PR target/42333
13229 Add __ieee_divdc3 entry point.
13230 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13231 entry point.
13232 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13233 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13234 * config/darwin.c (darwin_rename_builtins): Add.
13235 * config/darwin-protos.h (darwin_rename_builtins): Add.
13236
13237 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13238
13239 PR target/47636
13240 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13241 for the condition.
13242
13243 2011-02-07 Mike Stump <mikestump@comcast.net>
13244
13245 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13246
13247 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13248
13249 PR target/47534
13250 * config/avr/libgcc.S (exit): Move .endfunc
13251
13252 2011-02-07 Richard Guenther <rguenther@suse.de>
13253
13254 PR tree-optimization/47615
13255 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13256 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13257 (run_scc_vn): Initialize it.
13258 (visit_reference_op_load): Use it.
13259 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13260
13261 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13262
13263 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13264 DImode trapping arithmetic libfuncs.
13265
13266 2011-02-07 Richard Guenther <rguenther@suse.de>
13267
13268 PR tree-optimization/47621
13269 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13270 two duplicates ...
13271 (execute_update_addresses_taken): ... here. Make it more
13272 conservative in what we accept.
13273
13274 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13275
13276 * config/sparc/freebsd.h (ASM_SPEC): Define.
13277 * config/sparc/vxworks.h (ASM_SPEC): Define.
13278
13279 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13280
13281 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13282
13283 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13284
13285 * doc/invoke.texi: Remove reference to compiler internals from
13286 user documentation.
13287
13288 * reg-notes.def: Remove REG_VALUE_PROFILE.
13289 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13290
13291 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13292
13293 PR middle-end/47610
13294 * varasm.c (default_section_type_flags): If decl is NULL,
13295 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13296
13297 2011-02-05 Jie Zhang <jie@codesourcery.com>
13298
13299 PR debug/42631
13300 * web.c (entry_register): Don't clobber the number of the
13301 first uninitialized reference in used[].
13302
13303 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13304
13305 PR tree-optimization/46194
13306 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13307 (build_classic_dist_vector_1): Do not represent classic distance
13308 vectors when the access functions are variating in different loops.
13309
13310 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13311
13312 * config/mips/iris6.opt: New.
13313 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13314
13315 2011-02-04 Richard Henderson <rth@redhat.com>
13316 Steve Ellcey <sje@cup.hp.com>
13317
13318 PR target/46997
13319 * config/ia64/predicates.md (mux1_brcst_element): New.
13320 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13321 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13322 (ia64_unpack_sign): New.
13323 (ia64_expand_unpack): Rewrite using new routines.
13324 (ia64_expand_widen_sum): Ditto.
13325 (ia64_expand_dot_prod_v8qi): Ditto.
13326 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13327 routines, add endian check.
13328 (pmpy2_even): Rename from pmpy2_r, add endian check.
13329 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13330 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13331 (vec_widen_smult_hi_v4hi): Ditto.
13332 (vec_widen_umult_lo_v4hi): Ditto.
13333 (vec_widen_umult_hi_v4hi): Ditto.
13334 (mulv2si3): Change endian checks.
13335 (sdot_prodv4hi): Rewrite with new calls.
13336 (udot_prodv4hi): New.
13337 (vec_pack_ssat_v4hi): Add endian check.
13338 (vec_pack_usat_v4hi): Ditto.
13339 (vec_pack_ssat_v2si): Ditto.
13340 (max1_even): Rename from max1_r, add endian check.
13341 (max1_odd): Rename from max1_l, add endian check.
13342 (*mux1_rev): Format change.
13343 (*mux1_mix): Ditto.
13344 (*mux1_shuf): Ditto.
13345 (*mux1_alt): Ditto.
13346 (*mux1_brcst_v8qi): Use new predicate.
13347 (vec_extract_evenv8qi): Remove endian check.
13348 (vec_extract_oddv8qi): Ditto.
13349 (vec_interleave_lowv4hi): Format change.
13350 (vec_interleave_highv4hi): Ditto.
13351 (mix2_even): Rename from mix2_r, add endian check.
13352 (mix2_odd): Rename from mux2_l, add endian check.
13353 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13354 (vec_extract_evenodd_helper): Format change.
13355 (vec_extract_evenv4hi): Remove endian check.
13356 (vec_extract_oddv4hi): Remove endian check.
13357 (vec_interleave_lowv2si): Format change.
13358 (vec_interleave_highv2si): Format change.
13359 (vec_initv2si): Remove endian check.
13360 (vecinit_v2si): Add endian check.
13361 (reduc_splus_v2sf): Add endian check.
13362 (reduc_smax_v2sf): Ditto.
13363 (reduc_smin_v2sf): Ditto.
13364 (vec_initv2sf): Remove endian check.
13365 (fpack): Add endian check.
13366 (fswap): Add endian check.
13367 (vec_interleave_highv2sf): Add endian check.
13368 (vec_interleave_lowv2sf): Add endian check.
13369 (fmix_lr): Add endian check.
13370 (vec_setv2sf): Format change.
13371 (*vec_extractv2sf_0_be): Use shift to extract operand.
13372 (*vec_extractv2sf_1_be): New.
13373 (vec_pack_trunc_v4hi): Add endian check.
13374 (vec_pack_trunc_v2si): Format change.
13375
13376 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13377
13378 PR inline-asm/23200
13379 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13380 do bb, locus and block comparison and disallow loads if it is not set.
13381 (stmt_is_replaceable_p): New function.
13382 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13383 callers.
13384 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13385 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13386 SSA_NAME_DEF_STMT.
13387 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13388
13389 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13390
13391 * config/rs6000/xilinx.opt: New.
13392 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13393
13394 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13395
13396 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13397
13398 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13399
13400 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13401 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13402 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13403 secondary_reload_info, xtensa_secondary_reload): Remove.
13404 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13405 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13406 (xtensa_preferred_reload_class): Make static. Change return and
13407 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13408 Use CONST_DOUBLE_P predicate.
13409 (xtensa_preferred_output_reload_class): New function.
13410 (xtensa_secondary_reload): Make static.
13411
13412 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13413
13414 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13415 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13416 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13417
13418 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13419
13420 PR middle-end/31490
13421 * output.h (SECTION_RELRO): Define.
13422 (SECTION_MACH_DEP): Adjust.
13423 (get_variable_section): New prototype.
13424 * varpool.c (varpool_finalize_named_section_flags): New function.
13425 (varpool_assemble_pending_decls): Call it.
13426 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13427 * cgraphunit.c (cgraph_output_in_order): Call
13428 varpool_finalize_named_section_flags.
13429 * varasm.c (get_section): Allow section flags conflicts between
13430 relro and read-only sections if the section hasn't been declared yet.
13431 Set SECTION_OVERRIDE after diagnosing section type conflict.
13432 (get_variable_section): No longer static.
13433 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13434 readonly sections that need relocations.
13435 (decl_readonly_section_1): New function.
13436 (decl_readonly_section): Use it.
13437
13438 Revert:
13439 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13440 Steve Ellcey <sje@cup.hp.com>
13441
13442 PR middle-end/31490
13443 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13444 if section attribute used.
13445
13446 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13447
13448 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13449 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13450 (darwin_init_sections): Remove assertion.
13451
13452 2011-02-03 Nick Clifton <nickc@redhat.com>
13453
13454 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13455 lt and ge.
13456 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13457 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13458 instead of "n" and "pz".
13459 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13460 CC_FLAG_S.
13461
13462 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13463
13464 PR target/47312
13465 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13466 fma, expand FMA_EXPR as fma{,f,l} call.
13467
13468 PR lto/47274
13469 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13470 copy them into a unsigned char variable and pass address of it to
13471 lto_output_data_stream.
13472
13473 PR target/47564
13474 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13475 around backend_init_target and lang_dependent_init_target calls.
13476 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13477 (verify_cgraph_node): Don't call set_cfun here. Use
13478 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13479 Set error_found for incorrectly represented calls to thunks.
13480
13481 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13482
13483 PR debug/43092
13484 PR rtl-optimization/43494
13485 * rtl.h (for_each_inc_dec_fn): New type.
13486 (for_each_inc_dec): Declare.
13487 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13488 (for_each_inc_dec_find_inc_dec): New fn.
13489 (for_each_inc_dec_find_mem): New fn.
13490 (for_each_inc_dec): New fn.
13491 * dse.c (struct insn_size): Remove.
13492 (replace_inc_dec, replace_inc_dec_mem): Remove.
13493 (emit_inc_dec_insn_before): New fn.
13494 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13495 (canon_address): Pass mem modes to cselib_lookup.
13496 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13497 (cselib_lookup_from_insn): Likewise.
13498 (cselib_subst_to_values): Likewise.
13499 * cselib.c (find_slot_memmode): New var.
13500 (cselib_find_slot): New fn. Use it instead of
13501 htab_find_slot_with_hash everywhere.
13502 (entry_and_rtx_equal_p): Use find_slot_memmode.
13503 (autoinc_split): New fn.
13504 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13505 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13506 Deal with autoinc. Special-case recursion into MEMs.
13507 (cselib_hash_rtx): Likewise.
13508 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13509 address and MEM modes.
13510 (cselib_subst_to_values): Add memmode, pass it on.
13511 Deal with autoinc.
13512 (cselib_lookup): Add memmode argument, pass it on.
13513 (cselib_lookup_from_insn): Add memmode.
13514 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13515 (struct cselib_record_autoinc_data): New.
13516 (cselib_record_autoinc_cb): New fn.
13517 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13518 mode to cselib_lookup. Reset autoinced REGs here instead of...
13519 (cselib_process_insn): ... here.
13520 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13521 to cselib_lookup.
13522 (add_uses): Likewise, also to cselib_subst_to_values.
13523 (add_stores): Likewise.
13524 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13525 cselib_subst_to_values.
13526 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13527 * gcse.c (do_local_cprop): Adjusted.
13528 * postreload.c (reload_cse_simplify_set): Adjusted.
13529 (reload_cse_simplify_operands): Adjusted.
13530 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13531
13532 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13533
13534 PR tree-optimization/45122
13535 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13536 unsafe assumptions when there's more than one loop exit.
13537
13538 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13539
13540 PR target/47272
13541 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13542 Document using vector double with the load/store builtins, and
13543 that the load/store builtins always use Altivec instructions.
13544
13545 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13546 to use altivec memory instructions, even on VSX.
13547 (vector_altivec_store_<mode>): Ditto.
13548
13549 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13550 function.
13551
13552 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13553 V2DF, V2DI support to load/store overloaded builtins.
13554
13555 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13556 altivec load/store builtins for V2DF/V2DI types.
13557
13558 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13559 set avoid indexed addresses on power6 if -maltivec.
13560 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13561 vector_altivec_load/vector_altivec_store builtins.
13562 (altivec_expand_st_builtin): Ditto.
13563 (altivec_expand_builtin): Add VSX memory builtins.
13564 (rs6000_init_builtins): Add V2DI types to internal types.
13565 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13566 load/store builtins.
13567 (rs6000_address_for_altivec): Insure memory address is appropriate
13568 for Altivec.
13569
13570 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13571 vec_vsx_ld and vec_vsx_st.
13572 (vsx_store_<mode>): Ditto.
13573
13574 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13575 variables to hold long long types for VSX vector memory builtins.
13576 (RS6000_BTI_unsigned_long_long): Ditto.
13577 (long_long_integer_type_internal_node): Ditti.
13578 (long_long_unsigned_type_internal_node): Ditti.
13579
13580 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13581 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13582 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13583
13584 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13585 short cuts.
13586 (vec_vsx_st): Ditto.
13587
13588 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13589
13590 * config/pa/pa-hpux10.opt: New.
13591 * config/hpux11.opt (pthread): New Driver option.
13592 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13593 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13594
13595 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13596
13597 * config/ia64/vms.opt: New.
13598 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13599
13600 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13601
13602 PR target/47580
13603 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13604 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13605 generator functions.
13606 (vsx_floatuns<VSi><mode>2): Ditto.
13607 (vsx_fix_trunc<mode><VSi>2): Ditto.
13608 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13609
13610 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13611
13612 * config/i386/djgpp.opt (posix): New Driver option.
13613
13614 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13615
13616 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13617 Move to the unsupported targets list.
13618
13619 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13620
13621 PR rtl-optimization/47525
13622 * df-scan.c: Update copyright years.
13623 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13624 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13625
13626 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13627
13628 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13629 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13630 (ASM_OUTPUT_ASCII): Remove.
13631 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13632
13633 2011-02-02 Jeff Law <law@redhat.com>
13634
13635 PR middle-end/47543
13636 * reload.c (find_reloads_address): Handle reg+d address where both
13637 components are invalid by reloading the entire address.
13638
13639 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13640 Richard Guenther <rguenther@suse.de>
13641
13642 PR tree-optimization/40979
13643 PR bootstrap/47044
13644 * passes.c (init_optimization_passes): After LIM call copy_prop
13645 and DCE to clean up.
13646 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13647
13648 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13649
13650 PR tree-optimization/47576
13651 PR tree-optimization/47555
13652 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13653 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13654 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13655 * tree-scalar-evolution.c (follow_ssa_edge): Use
13656 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13657
13658 2011-02-02 Richard Guenther <rguenther@suse.de>
13659
13660 PR tree-optimization/47566
13661 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13662
13663 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13664
13665 PR debug/47106
13666 PR debug/47402
13667 * tree-inline.c (declare_return_variable): Remove unused caller
13668 variable.
13669
13670 PR debug/47106
13671 PR debug/47402
13672 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13673 * cfgexpand.c (account_used_vars_for_block): Use them.
13674 * tree-nrv.c (tree_nrv): Likewise.
13675 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13676 (dump_scope_block): Likewise.
13677 (remove_unused_locals): Likewise.
13678
13679 PR debug/47106
13680 PR debug/47402
13681 * tree-inline.c (declare_return_variable): Add result decl to
13682 local decls only once.
13683 * gimple-low.c (record_vars_into): Mark newly-created variables
13684 as referenced.
13685
13686 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13687
13688 PR debug/47498
13689 PR debug/47501
13690 PR debug/45136
13691 PR debug/45130
13692 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13693 debug insns.
13694 (no_real_insns_p, schedule_block, set_priorities): Drop special
13695 treatment of boundary debug insns.
13696 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13697 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13698 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13699 (BOUNDARY_DEBUG_INSN_P): Likewise.
13700 (SCHEDULE_DEBUG_INSN_P): Likewise.
13701 * sched-rgn.c (init_ready_list): Drop special treatment of
13702 boundary debug insns.
13703 * final.c (rest_of_clean_state): Clear notes' BB.
13704
13705 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13706
13707 * config/openbsd.opt (assert=): New Driver option.
13708
13709 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13710
13711 * config/i386/nto.opt: New.
13712 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13713
13714 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13715
13716 * config/i386/netware.opt: New.
13717 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13718
13719 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13720
13721 * config/interix.opt (posix): New Driver option.
13722
13723 2011-02-01 DJ Delorie <dj@redhat.com>
13724
13725 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13726
13727 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13728 class for A0/A1.
13729
13730 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13731
13732 PR tree-optimization/47561
13733 * toplev.c (process_options): Print the Graphite flags. Add
13734 flag_loop_flatten to the list of options requiring Graphite.
13735
13736 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13737
13738 * config/i386/cygming.opt (posix): New Driver option.
13739
13740 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13741
13742 * config/arm/vxworks.opt: New.
13743 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13744
13745 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13746
13747 * config/alpha/elf.opt: New.
13748 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13749 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13750
13751 2011-02-01 Richard Guenther <rguenther@suse.de>
13752
13753 PR tree-optimization/47559
13754 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13755 store-motion on references that can throw.
13756
13757 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13758
13759 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13760 * tree-pass.h (TDF_CSELIB): New macro.
13761 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13762 cselib_lookup): Check for it rather than for TDF_DETAILS.
13763
13764 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13765
13766 PR driver/47547
13767 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13768 is HOST_BIT_BUCKET.
13769
13770 * opts.c (finish_options): Don't add x_aux_base_name if it is
13771 HOST_BIT_BUCKET.
13772
13773 2011-02-01 Richard Guenther <rguenther@suse.de>
13774
13775 PR tree-optimization/47555
13776 Revert
13777 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13778
13779 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13780
13781 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13782
13783 PR gcc/46692
13784 * config/lm32/t-lm32: Add multilib for all CPU options.
13785
13786 2011-02-01 Richard Guenther <rguenther@suse.de>
13787
13788 PR tree-optimization/47541
13789 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13790 sure to have a field at offset zero.
13791
13792 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13793
13794 * config/arc/arc.opt (EB, EL): New Driver options.
13795
13796 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13797
13798 * config/alpha/osf5.opt: New.
13799 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13800
13801 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13802
13803 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13804
13805 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13806
13807 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13808 -floop-interchange.
13809 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13810 is an alias of -floop-interchange and that it requires the
13811 Graphite infrastructure.
13812 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13813 flag_loop_interchange based on the value of flag_tree_loop_linear.
13814
13815 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13816 Richard Guenther <rguenther@suse.de>
13817
13818 PR tree-optimization/47538
13819 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13820 type instead of r1type, except for comparisons. For right
13821 shifts and comparisons punt if there are mismatches in
13822 sizetype vs. non-sizetype types.
13823
13824 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13825
13826 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13827 avx_runtime.
13828
13829 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13830
13831 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13832 version number.
13833 * configure: Regenerate.
13834
13835 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13836
13837 * configure.ac (gcc_cv_ld_static_option): Define.
13838 (gcc_cv_ld_dynamic_option): Define.
13839 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13840 instead.
13841 (HAVE_LD_STATIC_DYNAMIC): Update message.
13842 (LD_STATIC_OPTION): Define.
13843 (LD_DYNAMIC_OPTION): Define.
13844 * configure: Regenerate.
13845 * config.in: Regenerate.
13846 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13847 HAVE_LD_STATIC_DYNAMIC]: Use them.
13848
13849 2011-01-31 Nick Clifton <nickc@redhat.com>
13850
13851 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13852 registers inside interrupt handlers if the handler is not a leaf
13853 function.
13854
13855 2011-01-31 Nick Clifton <nickc@redhat.com>
13856
13857 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13858 reg_renumber returning an INVALID_REGNUM.
13859
13860 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13861
13862 PR libgcj/44341
13863 * doc/install.texi: Document host options discarded when cross
13864 configuring target libraries.
13865
13866 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13867
13868 Reverted:
13869 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13870 PR debug/45136
13871 PR debug/45130
13872 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13873 debug insns.
13874 (no_real_insns_p, schedule_block, set_priorities): Drop special
13875 treatment of boundary debug insns.
13876 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13877 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13878 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13879 (BOUNDARY_DEBUG_INSN_P): Likewise.
13880 (SCHEDULE_DEBUG_INSN_P): Likewise.
13881 * sched-rgn.c (init_ready_list): Drop special treatment of
13882 boundary debug insns.
13883 * final.c (rest_of_clean-state): Clear notes' BB.
13884
13885 2011-01-31 Alan Modra <amodra@gmail.com>
13886
13887 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13888 toc relative expressions as we do in print_operand_address.
13889
13890 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13891
13892 * doc/extend.texi: Follow spelling conventions.
13893 * doc/invoke.texi: Fix a typo.
13894
13895 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13896
13897 * config/hpux11.opt: New.
13898 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13899 ia64*-*-hpux*): Use hpux11.opt.
13900
13901 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13902
13903 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13904 to tmake_file.
13905
13906 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13907
13908 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13909 support sites.
13910
13911 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13912
13913 * doc/install.texi (Binaries): Remove outdated reference for
13914 Motorola 68HC11/68HC12 downloads.
13915
13916 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13917
13918 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13919 Drepper's paper.
13920
13921 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13922
13923 PR bootstrap/47147
13924 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13925 used by NetBSD.
13926
13927 2011-01-28 Ahmad Sharif <asharif@google.com>
13928
13929 * value-prof.c (check_counter): Corrected error message.
13930
13931 2011-01-29 Jie Zhang <jie@codesourcery.com>
13932
13933 * config/arm/arm.c (arm_legitimize_reload_address): New.
13934 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13935 arm_legitimize_reload_address.
13936 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13937
13938 2011-01-28 Ian Lance Taylor <iant@google.com>
13939
13940 * godump.c (go_define): Ignore macros whose definitions include
13941 two adjacent operands.
13942
13943 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13944
13945 PR target/42894
13946 * varasm.c (force_const_mem): Store copy of x in desc->constant
13947 instead of x itself.
13948 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13949 itself into REG_EQUAL note.
13950
13951 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13952
13953 * config/freebsd.opt (posix, rdynamic): New Driver options.
13954
13955 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13956
13957 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13958 -Bstatic/-Bdynamic.
13959 * configure: Regenerate.
13960
13961 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13962
13963 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13964 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13965
13966 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13967
13968 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13969 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13970 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13971 (s390_preferred_reload_class): Make static. Change return and
13972 'rclass' argument type to reg_class_t.
13973
13974 2011-01-27 Jan Hubicka <jh@suse.cz>
13975
13976 PR middle-end/46949
13977 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13978 (process_function_and_variable_attributes): Check defined weakrefs.
13979
13980 2011-01-27 Martin Jambor <mjambor@suse.cz>
13981
13982 PR tree-optimization/47228
13983 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13984 build_ref_for_offset.
13985
13986 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13987
13988 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13989
13990 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13991
13992 PR rtl-optimization/46856
13993 * postreload.c (reload_combine_recognize_const_pattern): Do not
13994 separate cc0 setter and user on cc0 targets.
13995
13996 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13997
13998 PR c/43082
13999 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14000 passed a VOID_TYPE expression, immediately emit an error and
14001 return error_mark_node.
14002
14003 2011-01-26 Jeff Law <law@redhat.com>
14004
14005 PR rtl-optimization/47464
14006 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14007 rather than may_trap_p as needed.
14008
14009 2011-01-26 DJ Delorie <dj@redhat.com>
14010
14011 PR rtl-optimization/46878
14012 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14013 setter/user dependency as well.
14014
14015 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14016
14017 PR rtl-optimization/44469
14018 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14019 after removing trivially dead basic blocks.
14020
14021 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14022
14023 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14024 * config/frv/frv.h (LINK_SPEC): Likewise.
14025 * config/i386/netware.h (LINK_SPEC): Likewise.
14026 * config/m68k/linux.h (ASM_SPEC): Likewise.
14027 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14028 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14029 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14030 * config/sparc/linux.h (ASM_SPEC): Likewise.
14031 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14032 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14033
14034 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14035
14036 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14037 * config/frv/frv.h (ASM_SPEC): Likewise.
14038 * config/m68k/linux.h (ASM_SPEC): Likewise.
14039 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14040 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14041 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14042 * config/sparc/linux.h (ASM_SPEC): Likewise.
14043 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14044 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14045
14046 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14047
14048 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14049 * config/frv/frv.h (LINK_SPEC): Likewise.
14050 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14051
14052 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14053
14054 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14055 * config/frv/frv.h (ASM_SPEC): Likewise.
14056 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14057 * config/m68k/linux.h (ASM_SPEC): Likewise.
14058 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14059 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14060 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14061 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14062 * config/sparc/linux.h (ASM_SPEC): Likewise.
14063 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14064 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14065 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14066
14067 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14068
14069 PR target/46997
14070 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14071 (*mux2): Ditto.
14072 (vec_extract_evenodd_help): Ditto.
14073 (vec_extract_evenv4hi): Ditto.
14074 (vec_extract_oddv4hi): Ditto.
14075 (vec_interleave_lowv2si): Ditto.
14076 (vec_interleave_highv2si): Ditto.
14077 (vec_extract_evenv2si): Ditto.
14078 (vec_extract_oddv2si: Ditto.
14079 (vec_pack_trunc_v2si): Ditto.
14080
14081 2011-01-22 Jan Hubicka <jh@suse.cz>
14082
14083 PR target/47237
14084 * cgraph.h (cgraph_local_info): New field can_change_signature.
14085 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14086 signature can change.
14087 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14088 can change.
14089 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14090 (cgraph_function_versioning): We can not change signature of functions
14091 that don't allow that.
14092 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14093 (lto_input_node): Likewise.
14094 * ipa-inline.c (compute_inline_parameters): Compute
14095 local.can_change_signature.
14096 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14097 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14098 functions that can not change signature.
14099 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14100 init_cumulative_args): Do not use local calling conventions
14101 for functions that can not change signature.
14102
14103 2011-01-22 Jan Hubicka <jh@suse.cz>
14104
14105 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14106
14107 2011-01-26 Richard Guenther <rguenther@suse.de>
14108
14109 PR tree-optimization/47190
14110 * cgraphunit.c (process_common_attributes): New function.
14111 (process_function_and_variable_attributes): Use it.
14112
14113 2011-01-26 Richard Guenther <rguenther@suse.de>
14114
14115 PR lto/47423
14116 * cgraphbuild.c (record_eh_tables): Record reference to personality
14117 function.
14118
14119 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14120
14121 PR debug/45454
14122 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14123 non-debug insns from moving up.
14124
14125 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14126
14127 PR target/40125
14128 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14129 t-dlldir{,-x} fragment for build and add it to tmake_file.
14130 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14131 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14132 * config/i386/t-dlldir: New file.
14133 (SHLIB_DLLDIR): Define.
14134 * config/i386/t-dlldir-x: New file.
14135 (SHLIB_DLLDIR): Define.
14136 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14137 (SHLIB_INSTALL): Use it.
14138
14139 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14140
14141 PR target/47246
14142 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14143 lower bound of the allowed Thumb-2 coprocessor load/store
14144 index range to -256. Add explaining comment.
14145
14146 2011-01-25 Ian Lance Taylor <iant@google.com>
14147
14148 * godump.c (go_define): Improve lexing of macro expansion to only
14149 accept expressions which match Go spec.
14150
14151 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14152
14153 PR c++/43601
14154 * tree.c (handle_dll_attribute): Handle it.
14155 * doc/extend.texi (@item dllexport): Mention it.
14156 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14157
14158 2011-01-25 Ian Lance Taylor <iant@google.com>
14159
14160 PR tree-optimization/26854
14161 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14162 (decl_jump_unsafe): Move higher in file, with no other change.
14163 (bind): Set has_jump_unsafe_decl if appropriate.
14164 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14165 (check_earlier_gotos): Likewise.
14166 (c_check_switch_jump_warnings): Likewise.
14167
14168 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14169
14170 * doc/invoke.texi (Warning Options): Add missing hyphen.
14171 (-fprofile-dir): Minor grammatical fixes.
14172 (-fbranch-probabilities): Likewise.
14173
14174 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14175
14176 PR debug/45136
14177 PR debug/45130
14178 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14179 debug insns.
14180 (no_real_insns_p, schedule_block, set_priorities): Drop special
14181 treatment of boundary debug insns.
14182 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14183 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14184 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14185 (BOUNDARY_DEBUG_INSN_P): Likewise.
14186 (SCHEDULE_DEBUG_INSN_P): Likewise.
14187 * sched-rgn.c (init_ready_list): Drop special treatment of
14188 boundary debug insns.
14189 * final.c (rest_of_clean-state): Clear notes' BB.
14190
14191 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14192
14193 * Makefile.in (LAMBDA_H): Removed.
14194 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14195 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14196 lambda-trans.o, and tree-loop-linear.o.
14197 (lto-symtab.o): Remove dependence on LAMBDA_H.
14198 (tree-loop-linear.o): Remove rule.
14199 (lambda-mat.o): Same.
14200 (lambda-trans.o): Same.
14201 (lambda-code.o): Same.
14202 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14203 (tree-vect-slp.o): Same.
14204 * hwint.h (gcd): Moved here.
14205 (least_common_multiple): Same.
14206 * lambda-code.c: Removed.
14207 * lambda-mat.c: Removed.
14208 * lambda-trans.c: Removed.
14209 * lambda.h: Removed.
14210 * tree-loop-linear.c: Removed.
14211 * lto-symtab.c: Do not include lambda.h.
14212 * omega.c (gcd): Removed.
14213 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14214 * tree-data-ref.c (print_lambda_vector): Moved here.
14215 (lambda_vector_copy): Same.
14216 (lambda_matrix_copy): Same.
14217 (lambda_matrix_id): Same.
14218 (lambda_vector_first_nz): Same.
14219 (lambda_matrix_row_add): Same.
14220 (lambda_matrix_row_exchange): Same.
14221 (lambda_vector_mult_const): Same.
14222 (lambda_vector_negate): Same.
14223 (lambda_matrix_row_negate): Same.
14224 (lambda_vector_equal): Same.
14225 (lambda_matrix_right_hermite): Same.
14226 * tree-data-ref.h: Do not include lambda.h.
14227 (lambda_vector): Moved here.
14228 (lambda_matrix): Same.
14229 (dependence_level): Same.
14230 (lambda_transform_legal_p): Removed declaration.
14231 (lambda_collect_parameters): Same.
14232 (lambda_compute_access_matrices): Same.
14233 (lambda_vector_gcd): Same.
14234 (lambda_vector_new): Same.
14235 (lambda_vector_clear): Same.
14236 (lambda_vector_lexico_pos): Same.
14237 (lambda_vector_zerop): Same.
14238 (lambda_matrix_new): Same.
14239 * tree-flow.h (least_common_multiple): Removed declaration.
14240 * tree-parloops.c (lambda_trans_matrix): Moved here.
14241 (LTM_MATRIX): Same.
14242 (LTM_ROWSIZE): Same.
14243 (LTM_COLSIZE): Same.
14244 (LTM_DENOMINATOR): Same.
14245 (lambda_trans_matrix_new): Same.
14246 (lambda_matrix_vector_mult): Same.
14247 (lambda_transform_legal_p): Same.
14248 * tree-pass.h (pass_linear_transform): Removed declaration.
14249 * tree-ssa-loop.c (tree_linear_transform): Removed.
14250 (gate_tree_linear_transform): Removed.
14251 (pass_linear_transform): Removed.
14252 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14253 flag_loop_interchange.
14254
14255 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14256
14257 PR tree-optimization/47265
14258 PR tree-optimization/47443
14259 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14260 if name still has some uses.
14261
14262 2011-01-25 Martin Jambor <mjambor@suse.cz>
14263
14264 PR tree-optimization/47382
14265 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14266 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14267
14268 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14269
14270 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14271 sjlj_except_unwind_info.
14272
14273 2011-01-25 Richard Guenther <rguenther@suse.de>
14274
14275 PR tree-optimization/47426
14276 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14277 visible functions results escape.
14278
14279 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14280
14281 PR target/45701
14282 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14283 (arm_get_frame_offsets): Use it.
14284
14285 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14286 Jakub Jelinek <jakub@redhat.com>
14287
14288 PR tree-optimization/47271
14289 * tree-if-conv.c (bb_postdominates_preds): New.
14290 (if_convertible_bb_p): Call bb_postdominates_preds.
14291 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14292 (predicate_scalar_phi): Call bb_postdominates_preds.
14293
14294 2011-01-25 Nick Clifton <nickc@redhat.com>
14295
14296 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14297 * config/rx/rx.c (rx_function_value): Likewise.
14298 (rx_promote_function_mode): Likewise.
14299 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14300 in order to make it legitimate.
14301 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14302 make sure that the first operand is the same as the result register.
14303 (addsi3_unspec): Delete.
14304 (subdi3): Do not accept immediate operands.
14305 (subdi3_internal): Likewise.
14306
14307 2011-01-25 Jeff Law <law@redhat.com>
14308
14309 PR rtl-optimization/37273
14310 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14311 handle them like argument loads from stack slots. Do not double
14312 count memory for memory constants and argument loads from stack slots.
14313
14314 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14315
14316 PR tree-optimization/47427
14317 PR tree-optimization/47428
14318 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14319 coalesce if the new root var would be TREE_READONLY.
14320
14321 2011-01-25 Richard Guenther <rguenther@suse.de>
14322
14323 PR middle-end/47414
14324 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14325 correct type for TBAA.
14326
14327 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14328
14329 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14330 (close_phi_written_to_memory): Call for_each_index with
14331 dr_indices_valid_in_loop.
14332
14333 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14334
14335 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14336 when it is initialized.
14337
14338 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14339
14340 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14341 call to graphite_find_data_references_in_stmt.
14342 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14343 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14344 call to graphite_find_data_references_in_stmt.
14345 (analyze_drs_in_stmts): Same.
14346 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14347 in which the scalar analysis of indices is performed.
14348 (create_data_ref): Same. Update call to dr_analyze_indices.
14349 (find_data_references_in_stmt): Update call to create_data_ref.
14350 (graphite_find_data_references_in_stmt): Same.
14351 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14352 declaration.
14353 (create_data_ref): Same.
14354 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14355 call to create_data_ref.
14356
14357 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14358
14359 * graphite-sese-to-poly.c (build_poly_scop): Move
14360 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14361
14362 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14363
14364 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14365 VAR_DECL, PARM_DECL, and RESULT_DECL.
14366
14367 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14368
14369 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14370 in a reduction PBB.
14371 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14372 that have already been marked as PBB_IS_REDUCTION.
14373
14374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14375
14376 * graphite-scop-detection.c (same_close_phi_node): New.
14377 (remove_duplicate_close_phi): New.
14378 (make_close_phi_nodes_unique): New.
14379 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14380
14381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14382
14383 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14384 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14385 of both data references to be the same.
14386
14387 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14388
14389 * graphite-dependences.c (build_lexicographical_constraint): Remove
14390 the gdim parameter.
14391 (build_lexicographical_constraint): Adjust call to
14392 ppl_powerset_is_empty.
14393 (dependence_polyhedron): Same.
14394 (graphite_legal_transform_dr): Same.
14395 (graphite_carried_dependence_level_k): Same.
14396 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14397 parameter.
14398 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14399
14400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14401
14402 * graphite-sese-to-poly.c
14403 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14404 (close_phi_written_to_memory): New.
14405 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14406 and unshare_expr.
14407
14408 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14409
14410 * doc/install.texi: Update the expected version number of PPL to 0.11.
14411 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14412 #if PPL_VERSION_MINOR < 11.
14413
14414 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14415
14416 * graphite-dependences.c: Include graphite-cloog-util.h.
14417 (new_poly_ddr): Inlined into dependence_polyhedron.
14418 (free_poly_ddr): Moved close by new_poly_ddr.
14419 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14420 Early return NULL when ppl_powerset_is_empty returns true.
14421 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14422 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14423 (graphite_legal_transform_dr): Call new_poly_ddr.
14424 (graphite_carried_dependence_level_k): Same.
14425 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14426 (dot_transformed_deps_stmt_1): Removed.
14427 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14428 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14429 (dot_deps_1): Call dot_deps_2.
14430 * Makefile.in (graphite-dependences.o): Add missing dependence on
14431 graphite-cloog-util.h.
14432
14433 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14434
14435 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14436 (build_lexicographical_constraint): Same.
14437 (dependence_polyhedron_1): Same.
14438 (graphite_legal_transform_dr): Same.
14439 (graphite_carried_dependence_level_k): Same.
14440 * graphite-ppl.c (ppl_powerset_is_empty): New.
14441 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14442 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14443
14444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14445
14446 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14447 the "a followed by b" relation and document it.
14448
14449 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14450
14451 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14452 iteration when the bag of constraints is empty.
14453
14454 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14455
14456 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14457
14458 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14459
14460 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14461 nest and two loop depths as parameters.
14462 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14463 lst_perfect_nestify.
14464
14465 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14466
14467 * graphite-dependences.c (print_pddr): Call
14468 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14469
14470 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14471
14472 * graphite-ppl.c (debug_gmp_value): New.
14473 * graphite-ppl.h (debug_gmp_value): Declared.
14474
14475 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14476
14477 * doc/install.texi: Document availability of cloog-0.16.
14478
14479 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14480
14481 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14482 invalid postdominance info.
14483
14484 2011-01-24 Jan Hubicka <jh@suse.cz>
14485
14486 PR c/21659
14487 * doc/extend.texi (weak pragma): Drop claim that it must
14488 appear before definition.
14489 * varasm.c (merge_weak, declare_weak): Only sanity check
14490 that DECL is not output at a time it is declared weak.
14491
14492 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14493
14494 * machmode.def: Fixed comments.
14495
14496 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14497
14498 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14499
14500 2011-01-24 Paul Koning <ni1d@arrl.net>
14501
14502 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14503 WORDS_BIG_ENDIAN.
14504
14505 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14506
14507 PR target/46519
14508 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14509 (block_info): Add scanned and prev.
14510 (move_or_delete_vzeroupper_2): Return if the basic block
14511 has been scanned and the upper 128bit state is unchanged
14512 from the last scan.
14513 (move_or_delete_vzeroupper_1): Return true if the exit
14514 state is changed.
14515 (move_or_delete_vzeroupper): Visit basic blocks using the
14516 work-list based algorithm based on vt_find_locations in
14517 var-tracking.c.
14518
14519 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14520
14521 2011-01-24 Nick Clifton <nickc@redhat.com>
14522
14523 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14524 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14525 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14526 then define __v850e1__.
14527 * doc/invoke.texi: Document -mv850es.
14528
14529 2011-01-24 Richard Henderson <rth@redhat.com>
14530
14531 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14532 compound unordered comparisons.
14533 * config/rx/rx.c (rx_split_fp_compare): Remove.
14534 * config/rx/rx-protos.h: Update.
14535 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14536 (cbranchsf4): Don't call rx_split_fp_compare.
14537 (*cbranchsf4): Use rx_split_cbranch.
14538 (*cmpsf): Don't accept "i" constraint.
14539 (*conditional_branch): Only valid after reload.
14540 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14541
14542 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14543
14544 PR target/47385
14545 * config/rs6000/altivec.md (vector constant splitters): Add
14546 support for creating vector single precision constants if -mvsx is
14547 used and we would create the constant using Altivec primitives.
14548
14549 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14550 Richard Sandiford <rdsandiford@googlemail.com>
14551
14552 PR rtl-optimization/47166
14553 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14554 mechanism for PRE_MODIFY and POST_MODIFY.
14555 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14556 reloadreg.
14557
14558 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14559
14560 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14561
14562 2011-01-22 Jan Hubicka <jh@suse.cz>
14563
14564 PR lto/47333
14565 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14566
14567 2011-01-22 Jan Hubicka <jh@suse.cz>
14568
14569 PR tree-optimization/43884
14570 PR lto/44334
14571 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14572 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14573
14574 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14575
14576 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14577 * config/s390/s390.c (s390_register_move_cost,
14578 s390_memory_move_cost): New.
14579 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14580
14581 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14582
14583 PR middle-end/47401
14584 * except.c (sjlj_assign_call_site_values): Move setting the
14585 crtl->uses_eh_lsda flag to ...
14586 (sjlj_mark_call_sites): ... here.
14587 (sjlj_emit_function_enter): Support NULL dispatch label.
14588 (sjlj_build_landing_pads): In a function with no landing pads
14589 that still has must-not-throw regions, generate code to register
14590 a personality function with empty LSDA.
14591
14592 2011-01-21 Richard Henderson <rth@redhat.com>
14593
14594 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14595
14596 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14597
14598 * compare-elim.c: New file.
14599 * Makefile.in (OBJS-common): Add it.
14600 (compare-elim.o): New.
14601 * common.opt (fcompare-elim): New.
14602 * opts.c (default_options_table): Add OPT_fcompare_elim.
14603 * tree-pass.h (pass_compare_elim_after_reload): New.
14604 * passes.c (init_optimization_passes): Add it.
14605 * recog.h: Protect against re-inclusion.
14606 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14607 * doc/invoke.texi (-fcompare-elim): Document it.
14608 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14609 * doc/tm.texi: Rebuild.
14610
14611 2011-01-22 Nick Clifton <nickc@redhat.com>
14612
14613 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14614 rx_split_fp_compare.
14615
14616 2011-01-22 Nick Clifton <nickc@redhat.com>
14617
14618 * config/rx/rx.md (UNSPEC_CONST): New.
14619 (deallocate_and_return): Wrap the amount popped off the stack in
14620 an UNSPEC_CONST in order to stop it being rejected by
14621 -mmax-constant-size.
14622 (pop_and_return): Add a "(return)" rtx.
14623 (call): Drop the immediate operand.
14624 (call_internal): Likewise.
14625 (call_value): Likewise.
14626 (call_value_internal): Likewise.
14627 (sibcall_internal): Likewise.
14628 (sibcall_value_internal): Likewise.
14629 (sibcall): Likewise. Generate an explicit call using
14630 sibcall_internal.
14631 (sibcall_value): Likewise.
14632 (mov<>): FAIL if a constant operand is not legitimate.
14633 (addsi3_unpsec): New pattern.
14634
14635 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14636 (ok_for_max_constant): New function.
14637 (gen_safe_add): New function.
14638 (rx_expand_prologue): Use gen_safe_add.
14639 (rx_expand_epilogue): Likewise.
14640 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14641 UNSPEC CONSTs.
14642
14643 2011-01-21 Jeff Law <law@redhat.com>
14644
14645 PR tree-optimization/47053
14646 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14647 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14648 statements are deleted.
14649 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14650 is nonempty, then purge dead edges and cleanup the CFG.
14651
14652 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14653
14654 PR debug/47402
14655 Temporarily revert:
14656 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14657 PR debug/47106
14658 * tree-dfa.c (create_var_ann): Mark variable as used.
14659
14660 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR middle-end/45566
14663 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14664 notes from other section in hot/cold partitioning even if
14665 last_action is -3. Increment call_site_base.
14666
14667 PR rtl-optimization/47366
14668 * fwprop.c (forward_propagate_into): Return bool. If
14669 any changes are made, -fnon-call-exceptions is used and
14670 REG_EH_REGION note is present, call purge_dead_edges
14671 and return true if it purged anything.
14672 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14673 any EH edges were purged.
14674
14675 2011-01-21 Jeff Law <law@redhat.com>
14676
14677 PR rtl-optimization/41619
14678 * caller-save.c (setup_save_areas): Break out code to determine
14679 which hard regs are live across calls by examining the reload chains
14680 so that it is always used.
14681 Eliminate code which checked REG_N_CALLS_CROSSED.
14682
14683 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14684
14685 PR tree-optimization/47355
14686 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14687 NOP has non-debug uses beyond PHIs in new_bb.
14688
14689 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14690
14691 PR debug/47106
14692 * cfgexpand.c (account_used_vars_for_block): Only account vars
14693 that are annotated as used.
14694 (estimated_stack_frame_size): Don't set TREE_USED.
14695 * tree-dfa.c (create_var_ann): Mark variable as used.
14696
14697 2011-01-21 Richard Guenther <rguenther@suse.de>
14698
14699 PR middle-end/47395
14700 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14701
14702 2011-01-21 Richard Guenther <rguenther@suse.de>
14703
14704 PR tree-optimization/47365
14705 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14706 (vn_reference_lookup_pieces): Adjust.
14707 (vn_reference_lookup): Likewise.
14708 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14709 (vn_reference_lookup_3): Only look through kills if in
14710 VN_WALKREWRITE mode.
14711 (vn_reference_lookup_pieces): Adjust.
14712 (vn_reference_lookup): Likewise.
14713 (visit_reference_op_load): Likewise.
14714 (visit_reference_op_store): Likewise.
14715 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14716 (compute_avail): Likewise.
14717 (eliminate): Likewise.
14718
14719 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14720
14721 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14722 DECL_IGNORED_P non-reg vars if they are used.
14723
14724 PR tree-optimization/47391
14725 * varpool.c (const_value_known_p): Return false if
14726 decl is volatile.
14727
14728 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14729
14730 PR bootstrap/47215
14731 * config/i386/i386.c (ix86_local_alignment): Handle
14732 case for va_list_type_node is nil.
14733 (ix86_canonical_va_list_type): Likewise.
14734
14735 2011-01-21 Alan Modra <amodra@gmail.com>
14736
14737 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14738 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14739
14740 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14741
14742 * config/arm/arm.md (define_attr type): Rename f_load
14743 and f_store to f_fpa_load and f_fpa_store. Update.
14744 (write_conflict): Deal with rename fallout.
14745 (*push_fp_multi): Likewise.
14746 * config/arm/fpa.md (f_load): Use f_fpa_load.
14747 (f_store): Use f_fpa_store.
14748 (*movsf_fpa): Likewise.
14749 (*movdf_fpa): Likewise.
14750 (*movxf_fpa): Likewise.
14751 (*thumb2_movsf_fpa): Likewise.
14752 (*thumb2_movdf_fpa): Likewise.
14753 (*thumb2_movxf_fpa): Likewise.
14754 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14755 f_loadd and f_stored.
14756 (*thumb2_movdi_vfp): Likewise.
14757 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14758 (*thumb2_movsi_vfp): Likewise.
14759 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14760 Use f_loads instead of f_load.
14761 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14762
14763 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14764
14765 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14766 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14767 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14768 (xtensa_mode_dependent_address_p): New function.
14769 (constantpool_address_p): Make static. Change return type to bool.
14770 Change argument type to const_rtx. Use CONST_INT_P predicate.
14771
14772 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14773
14774 PR debug/46583
14775 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14776
14777 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14778
14779 PR debug/47283
14780 * cfgexpand.c (expand_debug_expr): Instead of generating
14781 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14782 etc. handling.
14783
14784 2011-01-20 Richard Guenther <rguenther@suse.de>
14785
14786 PR middle-end/47370
14787 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14788 the pointer operand of MEM_REFs.
14789
14790 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14791
14792 PR tree-optimization/46130
14793 * ipa-split.c (consider_split): If return_bb contains non-virtual
14794 PHIs other than for retval or if split_function would not adjust it,
14795 refuse to split.
14796
14797 2011-01-20 Richard Guenther <rguenther@suse.de>
14798
14799 PR tree-optimization/47167
14800 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14801 Revert previous change, only avoid enumeral type changes.
14802
14803 2011-01-19 Mike Stump <mikestump@comcast.net>
14804
14805 * doc/tm.texi.in (BRANCH_COST): Englishify.
14806 * doc/tm.texi (BRANCH_COST): Likewise.
14807
14808 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14809
14810 PR c++/47291
14811 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14812 (gen_scheduled_generic_parms_dies): New functions.
14813 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14814 generation for the end of CU compilation.
14815 (dwarf2out_finish): Generate template parameters DIEs here.
14816
14817 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14818
14819 PR debug/46240
14820 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14821 debug bind stmt on merge edges.
14822
14823 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14824
14825 PR debug/47079
14826 PR debug/46724
14827 * function.c (instantiate_expr): Instantiate incoming rtl of
14828 implicit arguments, and recurse on VALUE_EXPRs.
14829 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14830 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14831
14832 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14833
14834 * c-parser.c (c_parser_for_statement): Initialize
14835 collection_expression.
14836
14837 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14838
14839 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14840
14841 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14842
14843 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14844 (LINK_SHLIB_SPEC): Don't use %(link_path).
14845 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14846
14847 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14848
14849 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14850 (NO_SHARED_LIB_SUPPORT): Remove.
14851 (LINK_SHLIB_SPEC): Remove one conditional definition.
14852
14853 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14854
14855 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14856 %{call_shared}.
14857 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14858 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14859 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14860 %{call_shared} and conditionals on these options not being passed.
14861 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14862 %{call_shared}.
14863
14864 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14865
14866 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14867 simplify.
14868
14869 * ipa-split.c: Spelling fixes.
14870
14871 2011-01-19 Richard Henderson <rth@redhat.com>
14872
14873 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14874 (*mulsi3): Likewise.
14875
14876 * longlong.h [__mn10300__] (count_leading_zeros): New.
14877 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14878 [__mn10300__] (add_ssaaaa, subddmmss): New.
14879 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14880 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14881
14882 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14883
14884 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14885
14886 2011-01-19 Richard Henderson <rth@redhat.com>
14887
14888 * config/mn10300/mn10300.md (addsi3_flags): New.
14889 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14890 (subsi3_flags, subc_internal, subdi3): New.
14891 (subdi3_internal, *subdi3_degenerate): New.
14892 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14893
14894 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14895 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14896 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14897 * config/mn10300/mn10300-protos.h: Update.
14898 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14899 (return_ret): Likewise. Rename from return_internal_regs.
14900 (return_internal): Remove.
14901
14902 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14903 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14904 (mn10300_legitimate_constant_p): Likewise.
14905 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14906 (mn10300_frame_size): New.
14907 (mn10300_expand_prologue): Use it.
14908 (mn10300_expand_epilogue): Likewise.
14909 (mn10300_initial_offset): Likewise.
14910 * config/mn10300/mn10300-protos.h: Update.
14911 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14912 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14913 (prologue, epilogue, return_internal): Tidy output code.
14914 (mn10300_store_multiple_operation, return): Likewise.
14915 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14916 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14917 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14918 (load_pic, am33_load_pic): New.
14919 (mn10300_load_pic0, mn10300_load_pic1): New.
14920
14921 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14922 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14923 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14924 (cc_flags_for_mode, cc_flags_for_code): New.
14925 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14926 overflow flag is not valid. Validate that the flags we need
14927 for the comparison are valid.
14928 (mn10300_output_cmp): Remove.
14929 (mn10300_output_add): New.
14930 (mn10300_select_cc_mode): Use cc_flags_for_code.
14931 (mn10300_split_cbranch): New.
14932 (mn10300_match_ccmode): New.
14933 (mn10300_split_and_operand_count): New.
14934 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14935 to the function.
14936 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14937 (addsi3): ... here. Use mn10300_output_add.
14938 (*addsi3_flags): New.
14939 (*am33_subsi3, *mn10300_subsi3): Merge...
14940 (subsi3): ... here. Use attribute isa.
14941 (*subsi3_flags): New.
14942 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14943 when possible.
14944 (*am33_andsi3, *mn10300_andsi3): Merge...
14945 (andsi3): ... here.
14946 (*andsi3_flags): New.
14947 (andsi3 splitters): New.
14948 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14949 (iorsi3): ... here.
14950 (*iorsi3_flags): New.
14951 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14952 (xorsi3): ... here.
14953 (*xorsi3_flags): New.
14954 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14955 (one_cmplsi2): ... here.
14956 (*one_cmplsi2_flags): New.
14957 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14958 instead of "dax" in constraints. Use mn10300_split_cbranch.
14959 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14960 use matching constraints to eliminate a self-comparison.
14961 (*integer_conditional_branch): Rename from integer_conditional_branch.
14962 Use int_mode_flags to match CC_REG.
14963 (*cbranchsi4_btst, *btstsi): New.
14964 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14965 mn10300_split_cbranch.
14966 (*am33_cmpsf): Rename from am33_cmpsf.
14967 (*float_conditional_branch): Rename from float_conditional_branch.
14968 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14969 (zero_extendqisi2): ... here.
14970 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14971 (zero_extendhisi2): ... here.
14972 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14973 (extendqisi2): ... here.
14974 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14975 (extendhisi2): ... here.
14976 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14977 (ashlsi3): ... here.
14978 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14979 (lshrsi3): ... here.
14980 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14981 (ashrsi3): ... here.
14982 (consecutive add peephole): Remove.
14983 * config/mn10300/predicates.md (label_ref_operand): New.
14984 (int_mode_flags): New.
14985 (CCZN_comparison_operator): New.
14986
14987 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14988 (throughput_42_latency_43): New reservation.
14989 (mulsidi3, umulsidi3): New expanders.
14990 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14991 the MDR register to allocation; separately allocate the low and
14992 high parts of the DImode result.
14993 (umulsidi3_internal): Similarly.
14994 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14995 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14996 (udivsi3, umodsi3): Remove.
14997 (udivmodsi4, divmodsi4): New expanders.
14998 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14999 (*divmodsi4): Simiarly.
15000 (ext_internal): New.
15001
15002 * config/mn10300/constraints.md ("z"): New constraint.
15003 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15004 (FIXED_REGISTERS): Don't fix MDR.
15005 (CALL_USED_REGSITERS): Reformat nicely.
15006 (REG_ALLOC_ORDER): Add MDR.
15007 (enum regclass): Add MDR_REGS.
15008 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15009 (IRA_COVER_CLASSES): Add MDR_REGS.
15010 (REGNO_REG_CLASS): Handle MDR_REG.
15011 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15012 (mn10300_register_move_cost): Likewise.
15013 * config/mn10300/mn10300.md (MDR_REG): New.
15014 (*movsi_internal): Handle moves to/from MDR_REGS.
15015
15016 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15017 POST_MODIFY.
15018 (mn10300_secondary_reload): Tidy combination reload classes.
15019 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15020 addresses for AM33. Allow symbolic offsets for reg+imm.
15021 (mn10300_regno_in_class_p): New.
15022 (mn10300_legitimize_reload_address): New.
15023 * config/mn10300/mn10300.h (enum reg_class): Remove
15024 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15025 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15026 SP_OR_GENERAL_REGS.
15027 (REG_CLASS_NAMES): Update to match.
15028 (REG_CLASS_CONTENTS): Likewise.
15029 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15030 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15031 (REGNO_IN_RANGE_P): Remove.
15032 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15033 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15034 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15035 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15036 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15037 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15038 (REGNO_GENERAL_P): New.
15039 (HAVE_POST_MODIFY_DISP): New.
15040 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15041 (LEGITIMIZE_RELOAD_ADDRESS): New.
15042 * config/mn10300/mn10300-protos.h: Update.
15043
15044 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15045 DATA_REGS for AM33 stack-pointer destination.
15046 (mn10300_preferred_output_reload_class): Likewise.
15047 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15048 into a form appropriate for ...
15049 (TARGET_SECONDARY_RELOAD): New.
15050 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15051 * config/mn10300/mn10300-protos.h: Update.
15052 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15053 reload_insi; use the "A" constraint for the scratch; handle AM33
15054 moves of sp to non-address registers.
15055
15056 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15057 (*movqi_internal): ... here.
15058 (*am33_movhi, *mn10300_movhi): Merge into...
15059 (*movhi_internal): ... here.
15060 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15061 as the source/destination of moves from/to SP.
15062 (movsf): Only allow for AM33-2.
15063 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15064 any integer constant constraint. Only allow for AM33-2. Tidy
15065 all of the alternative outputs.
15066 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15067 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15068 for MN103.
15069 (udivsi3, umodsi3): New patterns for MN103 only.
15070
15071 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15072
15073 * doc/tm.texi.in: Spell out that a lack of register class unions
15074 can lead to ICEs.
15075 * doc/tm.texi: Regenerate.
15076
15077 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15078
15079 PR rtl-optimization/47337
15080 * dce.c (check_argument_store): New function.
15081 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15082
15083 PR tree-optimization/47290
15084 * tree-eh.c (infinite_empty_loop_p): New function.
15085 (cleanup_empty_eh): Use it.
15086
15087 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15088
15089 PR target/46997
15090 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15091 (a64_expand_widen_sum): Ditto.
15092 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15093 (vec_extract_evenodd_help): Ditto.
15094 (vec_extract_evenv4hi): Ditto.
15095 (vec_extract_oddv4hi): Ditto.
15096 (vec_extract_evenv2si): Ditto.
15097 (vec_extract_oddv2si): Ditto.
15098 (vec_extract_evenv2sf): Ditto.
15099 (vec_extract_oddv2sf): Ditto.
15100 (vec_pack_trunc_v4hi: Ditto.
15101 (vec_pack_trunc_v2si): Ditto.
15102 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15103 (vec_interleave_highv8qi): Ditto.
15104 (mix1_r): Ditto.
15105 (vec_extract_oddv8qi): Ditto.
15106 (vec_interleave_lowv4hi): Ditto.
15107 (vec_interleave_highv4hi): Ditto.
15108 (vec_interleave_lowv2si): Ditto.
15109 (vec_interleave_highv2si): Ditto.
15110
15111 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15112
15113 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15114 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15115 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15116 (pa_c_mode_for_suffix): New.
15117 (TARGET_EXPAND_BUILTIN): Define.
15118 (TARGET_C_MODE_FOR_SUFFIX): Define.
15119 (pa_builtins): Define.
15120 (pa_init_builtins): Register __float128 type and init new support
15121 builtins.
15122 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15123 * config/pa/quadlib.c (_U_Qfcopysign): New.
15124
15125 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15126
15127 PR middle-end/46894
15128 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15129 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15130 are defined.
15131
15132 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15133
15134 PR tree-optimization/47179
15135 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15136 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15137
15138 2011-01-18 Richard Guenther <rguenther@suse.de>
15139
15140 PR rtl-optimization/47216
15141 * emit-rtl.c: Include tree-flow.h.
15142 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15143 of replicating it with different semantics.
15144 * Makefile.in (emit-rtl.o): Adjust.
15145
15146 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15147
15148 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15149 (cortex_a9_dp): Handle neon types correctly.
15150
15151 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15152
15153 PR rtl-optimization/47299
15154 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15155 subtarget. Use normal multiplication if both operands are constants.
15156 * expmed.c (expand_widening_mult): Don't try to optimize constant
15157 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15158 before using it.
15159
15160 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15161
15162 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15163 spacing after 'e.g.', typos, comma, hyphenation.
15164
15165 2011-01-17 Richard Henderson <rth@redhat.com>
15166
15167 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15168 (rx_restricted_mem_operand): New.
15169 (rx_shift_operand): Use register_operand.
15170 (rx_source_operand, rx_compare_operand): Likewise.
15171 * config/rx/rx.md (addsi3_flags): New expander.
15172 (adddi3): Rewrite as expander.
15173 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15174 (subsi3_flags): New expander.
15175 (subdi3): Rewrite as expander.
15176 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15177
15178 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15179 (rx_init_builtins): Remove sat builtin.
15180 (rx_expand_builtin): Likewise.
15181 * config/rx/rx.md (ssaddsi3): New.
15182 (*sat): Rename from sat. Represent the CC_REG input.
15183
15184 * config/rx/predicates.md (rshift_operator): New.
15185 * config/rx/rx.c (rx_expand_insv): Remove.
15186 * config/rx/rx-protos.h: Update.
15187 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15188 operand to the canonical position.
15189 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15190 (*bitclr, *bitclr_in_memory): Similarly.
15191 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15192 (insv): Retain the zero_extract in the expansion.
15193
15194 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15195 (bswaphi2, bitinvert, revw): Likewise.
15196
15197 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15198 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15199 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15200 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15201 (bitset, bitset_in_memory): Likewise.
15202 (bitinvert, bitinvert_in_memory): Likewise.
15203 (bitclr, bitclr_in_memory): Likewise.
15204 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15205 (rx_strend, rx_cmpstrn): Likewise.
15206 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15207 (bitop peep2 patterns): Remove.
15208
15209 * config/rx/rx.c (rx_match_ccmode): New.
15210 * config/rx/rx-protos.h: Update.
15211 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15212 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15213 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15214 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15215 (fix_truncsfsi2, floatsisf2): Likewise.
15216 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15217 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15218 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15219 (*subsi3_flags, *xorsi3_flags): New.
15220
15221 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15222
15223 * config/rx/rx.c (rx_print_operand): Remove workaround for
15224 unsplit comparison operations.
15225
15226 * config/rx/rx.md (movsicc): Split after reload.
15227 (*movsicc): Merge *movsieq and *movsine via match_operator.
15228 (*stcc): New pattern.
15229
15230 * config/rx/rx.c (rx_float_compare_mode): Remove.
15231 * config/rx/rx.h (rx_float_compare_mode): Remove.
15232 * config/rx/rx.md (cstoresi4): Split after reload.
15233 (*sccc): New pattern.
15234
15235 * config/rx/predicates.md (label_ref_operand): New.
15236 (rx_z_comparison_operator): New.
15237 (rx_zs_comparison_operator): New.
15238 (rx_fp_comparison_operator): New.
15239 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15240 Validate that the flags are set properly for the comparison.
15241 (rx_gen_cond_branch_template): Remove.
15242 (rx_cc_modes_compatible): Remove.
15243 (mode_from_flags): New.
15244 (flags_from_code): Rename from flags_needed_for_conditional.
15245 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15246 (rx_select_cc_mode): Likewise.
15247 (rx_split_fp_compare): New.
15248 (rx_split_cbranch): New.
15249 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15250 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15251 (*cbranchsf4): Similarly.
15252 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15253 match_operator and rx_split_cbranch.
15254 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15255 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15256 (*cmpsi): Rename from cmpsi.
15257 (*tstsi): Rename from tstsi.
15258 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15259 (*conditional_branch): Rename from conditional_branch.
15260 (*reveresed_conditional_branch): Remove.
15261 (b<code>): Remove expander.
15262 * config/rx/rx-protos.h: Update.
15263
15264 * config/rx/rx.c (rx_compare_redundant): Remove.
15265 * config/rx/rx.md (cmpsi): Don't use it.
15266 * config/rx/rx-protos.h: Update.
15267
15268 * config/rx/rx-modes.def (CC_F): New mode.
15269 * config/rx/rx.c (rx_select_cc_mode): New.
15270 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15271 * config/rx/rx-protos.h: Update.
15272
15273 2011-01-17 Richard Henderson <rth@redhat.com>
15274
15275 * except.c (dump_eh_tree): Fix stray ; after for statement.
15276
15277 2011-01-17 Richard Guenther <rguenther@suse.de>
15278
15279 PR tree-optimization/47313
15280 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15281 handling before copying the body. Properly deal with
15282 by-reference result in SSA form.
15283
15284 2011-01-17 Ian Lance Taylor <iant@google.com>
15285
15286 PR target/47219
15287 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15288 (struct_value_alias_set): Don't define.
15289 (sparc_option_override): Don't set sparc_sr_alias_set and
15290 struct_value_alias_set.
15291 (save_or_restore_regs): Use gen_frame_mem rather than calling
15292 set_mem_alias_set.
15293 (sparc_struct_value_rtx): Likewise.
15294
15295 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15296
15297 PR target/47318
15298 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15299 (_mm_maskstore_pd): Likewise.
15300 (_mm_maskload_ps): Likewise.
15301 (_mm_maskstore_ps): Likewise.
15302 (_mm256_maskload_pd): Change mask to __m256i.
15303 (_mm256_maskstore_pd): Likewise.
15304 (_mm256_maskload_ps): Likewise.
15305 (_mm256_maskstore_ps): Likewise.
15306
15307 * config/i386/i386-builtin-types.def: Updated.
15308 (ix86_expand_special_args_builtin): Likewise.
15309
15310 * config/i386/i386.c (bdesc_special_args): Update
15311 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15312 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15313 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15314 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15315
15316 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15317 Use <avxpermvecmode> on mask register.
15318 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15319
15320 2011-01-17 Olivier Hainque <hainque@adacore.com>
15321 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15322 Eric Botcazou <ebotcazou@adacore.com>
15323
15324 PR target/46655
15325 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15326 if <= USHRT_MAX in 32-bit mode.
15327
15328 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15329
15330 * doc/install.texi (Configuration, Specific): Wrap long
15331 lines in examples. Allow line wrapping in long options
15332 and URLs where beneficial for PDF output.
15333
15334 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15335
15336 * config/mips/mips.c (mips_classify_symbol): Don't return
15337 SYMBOL_PC_RELATIVE for nonlocal labels.
15338
15339 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15340
15341 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15342
15343 2011-01-15 Jan Hubicka <jh@suse.cz>
15344
15345 PR tree-optimization/47276
15346 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15347 declarations as needed.
15348
15349 2011-01-15 Martin Jambor <mjambor@suse.cz>
15350
15351 * common.opt (fdevirtualize): New flag.
15352 * doc/invoke.texi (Option Summary): Document it.
15353 * opts.c (default_options_table): Add devirtualize flag.
15354 * ipa-prop.c (detect_type_change): Return immediately if
15355 devirtualize flag is not set.
15356 (detect_type_change_ssa): Likewise.
15357 (compute_known_type_jump_func): Likewise.
15358 (ipa_analyze_virtual_call_uses): Likewise.
15359
15360 2011-01-14 Martin Jambor <mjambor@suse.cz>
15361
15362 PR tree-optimization/45934
15363 PR tree-optimization/46302
15364 * ipa-prop.c (type_change_info): New type.
15365 (stmt_may_be_vtbl_ptr_store): New function.
15366 (check_stmt_for_type_change): Likewise.
15367 (detect_type_change): Likewise.
15368 (detect_type_change_ssa): Likewise.
15369 (compute_complex_assign_jump_func): Check for dynamic type change.
15370 (compute_complex_ancestor_jump_func): Likewise.
15371 (compute_known_type_jump_func): Likewise.
15372 (compute_scalar_jump_functions): Likewise.
15373 (ipa_analyze_virtual_call_uses): Likewise.
15374 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15375
15376 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15377
15378 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15379 * config/i386/i386.opt (msse5): New Alias.
15380
15381 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15382
15383 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15384 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15385 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15386 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15387
15388 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15389
15390 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15391 -mcpu options.
15392 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15393 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15394 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15395 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15396 Likewise.
15397 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15398
15399 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15400
15401 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15402
15403 2011-01-14 Mike Stump <mikestump@comcast.net>
15404
15405 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15406 * config/fr30/fr30.md: Likweise
15407 (movsi_push): Likewise.
15408 (movsi_pop): Likewise.
15409 (enter_func): Likewise.
15410 * config/moxie/moxie.md (movsi_push): Likewise.
15411 (movsi_pop): Likewise.
15412
15413 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15414
15415 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15416 %{no_archive} %{exact_version}.
15417 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15418 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15419 %{no_archive} %{exact_version}.
15420 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15421 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15422 * config/mips/vxworks.h: Likewise.
15423
15424 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15425
15426 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15427
15428 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15429
15430 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15431 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15432
15433 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15434
15435 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15436 -nodefaultlib.
15437
15438 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15439
15440 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15441 for mcpu not cpu.
15442 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15443 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15444 not cpu.
15445 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15446 Don't handle -shlib.
15447
15448 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15449
15450 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15451 (CC1_SPEC): Don't handle -profile.
15452
15453 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15454
15455 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15456 * config/mips/mips.h (CC1_SPEC): Likewise.
15457
15458 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15459
15460 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15461 * config/mips/mips.h (CC1_SPEC): Likewise.
15462
15463 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15464
15465 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15466 * config/m32r/linux.h (LINK_SPEC): Likewise.
15467 * config/mips/linux.h (LINK_SPEC): Likewise.
15468 * config/mips/linux64.h (LINK_SPEC): Likewise.
15469 * config/sparc/linux.h (LINK_SPEC): Likewise.
15470 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15471 LINK_SPEC): Likewise.
15472 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15473
15474 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15475
15476 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15477 %{version:-v}.
15478 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15479
15480 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15481
15482 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15483 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15484
15485 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15486
15487 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15488
15489 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15490
15491 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15492 supports -Bstatic/-Bdynamic.
15493 * configure: Regenerate.
15494
15495 2011-01-14 Jan Hubicka <jh@suse.cz>
15496 Jack Howarth <howarth@bromo.med.uc.edu>
15497
15498 PR target/46037
15499 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15500 when checking debug_info_level. Test write_symbols instead of
15501 debug_hooks->var_location when setting flag_var_tracking_uninit.
15502
15503 2011-01-14 Richard Guenther <rguenther@suse.de>
15504
15505 PR tree-optimization/47179
15506 * target.def (ref_may_alias_errno): New target hook.
15507 * targhooks.h (default_ref_may_alias_errno): Declare.
15508 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15509 (default_ref_may_alias_errno): New function.
15510 * target.h (struct ao_ref_s): Declare.
15511 * tree-ssa-alias.c: Include target.h.
15512 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15513 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15514 (targhooks.o): Likewise.
15515 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15516 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15517
15518 2011-01-14 Richard Guenther <rguenther@suse.de>
15519
15520 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15521
15522 2011-01-14 Richard Guenther <rguenther@suse.de>
15523
15524 PR tree-optimization/47280
15525 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15526 return CFG changes.
15527 (tree_ssa_forward_propagate_single_use_vars): Deal with
15528 CFG changes from associate_plusminus.
15529
15530 2011-01-14 Richard Guenther <rguenther@suse.de>
15531
15532 PR middle-end/47281
15533 Revert
15534 2011-01-11 Richard Guenther <rguenther@suse.de>
15535
15536 PR tree-optimization/46076
15537 * tree-ssa.c (useless_type_conversion_p): Conversions from
15538 unprototyped to empty argument list function types are useless.
15539
15540 2011-01-14 Richard Guenther <rguenther@suse.de>
15541
15542 PR tree-optimization/47286
15543 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15544
15545 2011-01-14 Martin Jambor <mjambor@suse.cz>
15546
15547 PR middle-end/46823
15548 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15549
15550 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15551
15552 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15553 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15554 * config/xtensa/xtensa.c (xtensa_libcall_value,
15555 xtensa_function_value_regno_p): New functions.
15556 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15557
15558 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15559
15560 PR c++/47213
15561 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15562 PE specific hook.
15563 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15564 New function prototype.
15565 * config/i386/winnt.c (i386_pe_assemble_visibility):
15566 Warn only if attribute was specified by user.
15567
15568 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15569
15570 PR target/47251
15571 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15572 floating point.
15573 (floatunsdidf2_fcfidu): Ditto.
15574
15575 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15576
15577 * config/s390/s390.c (print_operand_address): Replace 'error' with
15578 'output_operand_lossage'.
15579 (print_operand): Likewise.
15580
15581 2011-01-13 Jeff Law <law@redhat.com>
15582
15583 PR rtl-optimization/39077
15584 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15585 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15586 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15587 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15588 * gcse.c (prune_insertions_deletions): New function.
15589 (compute_pre_data): Use it.
15590
15591 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15592
15593 PR debug/PR46973
15594 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15595 static function.
15596 (prune_unused_types_mark): Use it.
15597
15598 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15599
15600 PR rtl-optimization/45352
15601 * sel-sched.c: Update copyright years.
15602 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15603 in the advancing loop when we have issued issue_rate insns.
15604
15605 2011-01-12 Richard Henderson <rth@redhat.com>
15606
15607 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15608 (TARGET_MD_ASM_CLOBBERS): New.
15609
15610 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15611 (TARGET_DELEGITIMIZE_ADDRESS): New.
15612
15613 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15614 (clzsi2, *bsch): New patterns.
15615
15616 * config/mn10300/mn10300.md (INT): New mode iterator.
15617 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15618
15619 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15620 flag_split_wide_types.
15621
15622 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15623 (mn10300_trampoline_init): Rewrite without a template, an immediate
15624 load and a direct branch.
15625 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15626
15627 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15628
15629 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15630 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15631 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15632 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15633
15634 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15635
15636 PR debug/47209
15637 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15638 of type.
15639
15640 2011-01-12 Jan Hubicka <jh@suse.cz>
15641
15642 PR driver/47244
15643 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15644 (PLUGIN_COND_CLOSE): New macro.
15645 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15646
15647 2011-01-12 Richard Guenther <rguenther@suse.de>
15648
15649 PR lto/47259
15650 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15651 register variables in a MEM_REF.
15652
15653 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15654
15655 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15656 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15657 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15658 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15659 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15660 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15661 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15662 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15663 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15664 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15665 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15666 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15667 * config/gnu-user.h: New. Copied from linux.h.
15668 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15669 GNU_USER_TARGET_STARTFILE_SPEC.
15670 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15671 GNU_USER_TARGET_ENDFILE_SPEC.
15672 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15673 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15674 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15675 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15676 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15677 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15678 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15679 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15680 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15681 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15682 * config/arm/linux-eabi.h (CC1_SPEC): Use
15683 GNU_USER_TARGET_CC1_SPEC.
15684 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15685 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15686 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15687 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15688 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15689 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15690 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15691 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15692
15693 2011-01-12 Richard Guenther <rguenther@suse.de>
15694
15695 PR other/46946
15696 * doc/invoke.texi (ffast-math): Document it is turned on
15697 with -Ofast.
15698
15699 2011-01-12 Jan Hubicka <jh@suse.cz>
15700
15701 PR tree-optimization/47233
15702 * opts.c (common_handle_option): Disable ipa-reference with profile
15703 feedback.
15704
15705 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15706
15707 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15708 error message.
15709
15710 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15711
15712 * c-parser.c (c_lex_one_token): Updated and reindented some
15713 comments. No changes in code.
15714
15715 2011-01-11 Ian Lance Taylor <iant@google.com>
15716
15717 * godump.c (go_output_var): Don't output the variable if there is
15718 already a type with the same name.
15719
15720 2011-01-11 Ian Lance Taylor <iant@google.com>
15721
15722 * godump.c (go_format_type): Don't generate float80.
15723
15724 2011-01-11 Richard Henderson <rth@redhat.com>
15725
15726 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15727 declaration. Rewrite for both speed and size.
15728 (mn10300_address_cost_1): Remove.
15729 (mn10300_register_move_cost): New.
15730 (mn10300_memory_move_cost): New.
15731 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15732 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15733 extensions, shifts, BSWAP, CLZ.
15734 (mn10300_wide_const_load_uses_clr): Remove.
15735 (TARGET_REGISTER_MOVE_COST): New.
15736 (TARGET_MEMORY_MOVE_COST): New.
15737 * config/mn10300/mn10300-protos.h: Update.
15738 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15739
15740 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15741 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15742 * config/mn10300/mn10300-protos.h: Update.
15743 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15744 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15745 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15746 (*test_int_bitfield, *test_byte_bitfield): Remove.
15747 (*bit_test, *subreg_bit_test): Remove.
15748 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15749
15750 * config/mn10300/constraints.md ("c"): Rename from "A".
15751 ("A", "D"): New constraint letters.
15752 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15753 (fmssf4, fnmasf4, fnmssf4): Likewise.
15754
15755 * config/mn10300/mn10300.md (isa): New attribute.
15756 (enabled): New attribute.
15757
15758 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15759 (abssf2, negsf2): Define only for hardware fp.
15760 (sqrtsf2): Reformat.
15761 (addsf3, subsf3, mulsf3): Merge expander and insn.
15762
15763 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15764 (DEBUGGER_AUTO_OFFSET): Remove.
15765 (DEBUGGER_ARG_OFFSET): Remove.
15766
15767 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15768 Emit register stores with the same offsets as the hardware.
15769 (mn10300_store_multiple_operation): Don't check that the register
15770 save offsets are monotonic.
15771 * config/mn10300/mn10300-protos.h: Update.
15772
15773 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15774
15775 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15776 in terms of the value on the stack, not the MDR register.
15777
15778 2011-01-11 Jan Hubicka <jh@suse.cz>
15779
15780 PR lto/45721
15781 PR lto/45375
15782 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15783 (symbol_alias_set_destroy, symbol_alias_set_contains,
15784 propagate_aliases_backward): Declare.
15785 * lto-streamer-out.c (struct sets): New sturcture.
15786 (trivally_defined_alias): New function.
15787 (output_alias_pair_p): Rewrite.
15788 (output_unreferenced_globals): Fix output of alias pairs.
15789 (produce_symtab): Likewise.
15790 * ipa.c (function_and_variable_visibility): Set weak alias destination
15791 as needed in lto.
15792 * varasm.c (symbol_alias_set_t): Remove.
15793 (symbol_alias_set_destroy): Export.
15794 (propagate_aliases_forward, propagate_aliases_backward): New functions
15795 based on ...
15796 (compute_visible_aliases): ... this one; remove.
15797 (trivially_visible_alias): New
15798 (trivially_defined_alias): New.
15799 (remove_unreachable_alias_pairs): Rewrite.
15800 (finish_aliases_1): Reorganize code checking if alias is defined.
15801 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15802 in LTO mode.
15803
15804 2011-01-11 Richard Guenther <rguenther@suse.de>
15805
15806 PR tree-optimization/46076
15807 * tree-ssa.c (useless_type_conversion_p): Conversions from
15808 unprototyped to empty argument list function types are useless.
15809
15810 2011-01-11 Richard Guenther <rguenther@suse.de>
15811
15812 PR middle-end/45235
15813 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15814 volatile MEMs as MEM_READONLY_P.
15815
15816 2011-01-11 Richard Guenther <rguenther@suse.de>
15817
15818 PR tree-optimization/47239
15819 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15820
15821 2011-01-11 Jeff Law <law@redhat.com>
15822
15823 PR tree-optimization/47086
15824 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15825 IVs from statements that might throw.
15826
15827 2011-01-10 Jan Hubicka <jh@suse.cz>
15828
15829 PR lto/45375
15830 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15831
15832 2011-01-10 Jan Hubicka <jh@suse.cz>
15833
15834 PR lto/45375
15835 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15836 when correcting profile.
15837
15838 2011-01-10 Jan Hubicka <jh@suse.cz>
15839
15840 PR lto/46083
15841 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15842 DECL_FINI_PRIORITY.
15843 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15844 Restore DECL_FINI_PRIORITY.
15845
15846 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15847
15848 * doc/gimple.texi: Fix quoting of multi-word return values in
15849 @deftypefn statements. Ensure presence of return value. Wrap
15850 overlong @deftypefn lines.
15851 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15852 descriptions of removed functions.
15853 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15854 of multi-word return value in @deftypefn statement.
15855
15856 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15857
15858 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15859 (Conditional Expressions, Logical Operators)
15860 (Statement and operand traversals): Do not indent smallexample
15861 code. Fix duplicate function argument in example.
15862
15863 2011-01-10 Jeff Law <law@redhat.com>
15864
15865 PR tree-optimization/47141
15866 * ipa-split.c (split_function): Handle case where we are
15867 returning a value and the return block has a virtual operand phi.
15868
15869 2011-01-10 Jan Hubicka <jh@suse.cz>
15870
15871 PR tree-optimization/47234
15872 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15873 (pass_feedback_split_functions): Declare.
15874 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15875 tree-profile.
15876 * ipa-split.c (gate_split_functions): Update comments; disable
15877 split-functions for profile_arc_flag and branch_probabilities.
15878 (gate_feedback_split_functions): New function.
15879 (execute_feedback_split_functions): New function.
15880 (pass_feedback_split_functions): New global var.
15881
15882 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15883
15884 PR lto/46760
15885 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15886 calling gimple_call_set_cannot_inline.
15887
15888 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15889
15890 * config/darwin-sections.def: Remove unused section.
15891
15892 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15893
15894 PR c++/47218
15895 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15896
15897 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15898
15899 PR objc/47232
15900 * c-parser.c (c_parser_declaration_or_fndef): Improved
15901 error message.
15902
15903 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15904
15905 * config/i386/winnt.c (i386_pe_start_function): Make sure
15906 to switch back to function's section.
15907
15908 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15909
15910 PR gcc/46902
15911 PR testsuite/46912
15912 * plugin.c: Move include of dlfcn.h from here...
15913 * system.h: ... to here.
15914
15915 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15916
15917 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15918 file name.
15919 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15920 two extra empty pages in PDF output.
15921
15922 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15923
15924 PR objc/47078
15925 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15926 for error recovery purposes behave as if it was not specified so
15927 that the default type is usd.
15928
15929 2011-01-07 Jan Hubicka <jh@suse.cz>
15930
15931 PR tree-optmization/46469
15932 * ipa.c (function_and_variable_visibility): Clear needed flags on
15933 nodes with external decls; handle weakrefs merging correctly.
15934
15935 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15936
15937 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15938 not false.
15939
15940 2011-01-07 Jan Hubicka <jh@suse.cz>
15941
15942 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15943 and no longer claim that gold is required for linker plugin.
15944 * configure: Regenerate.
15945 * gcc.c (PLUGIN_COND): New macro.
15946 (LINK_COMMAND_SPEC): Use it.
15947 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15948 * config.in (HAVE_LTO_PLUGIN): New.
15949 * configure.ac (--with-lto-plugin): New parameter; autodetect
15950 HAVE_LTO_PLUGIN.
15951
15952 2011-01-07 Jan Hubicka <jh@suse.cz>
15953
15954 PR tree-optimization/46367
15955 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15956 when we can update original.
15957 (cgraph_mark_inline_edge): Sanity check.
15958 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15959
15960 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15961
15962 * config/spu/spu.h (ASM_COMMENT_START): Define.
15963
15964 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15965
15966 PR driver/42445
15967 * gcc.c (%>S): New.
15968 (SWITCH_KEEP_FOR_GCC): Likewise.
15969 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15970 (do_spec_1): Handle "%>".
15971
15972 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15973
15974 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15975
15976 PR target/47201
15977 * config/i386/i386.c (ix86_delegitimize_address): If
15978 simplify_gen_subreg fails, return orig_x.
15979
15980 PR bootstrap/47187
15981 * value-prof.c (gimple_stringop_fixed_value): Handle
15982 lhs of the call properly.
15983
15984 2011-01-07 Jan Hubicka <jh@suse.cz>
15985
15986 PR lto/45375
15987 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15988
15989 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15990
15991 * target.def (function_switched_text_sections): New hook.
15992 * doc/tm.texi: Regenerated.
15993 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15994 * final.c (default_function_switched_text_sections): New.
15995 (final_scan_insn): Call function_switched_text_sections when a
15996 mid-function section change occurs.
15997 * output.h (default_function_switched_text_sections): Declare.
15998 * config/darwin-protos.h (darwin_function_switched_text_sections):
15999 Likewise.
16000 * config/darwin.c (darwin_function_switched_text_sections): New.
16001 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16002
16003 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16004
16005 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16006 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16007 the secondary code fragment when outputting for DWARF == 2.
16008
16009 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16010
16011 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16012 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16013 Remove.
16014 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16015 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16016
16017 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16018
16019 PR debug/46704
16020 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16021 when it is not empty.
16022
16023 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16024
16025 Bobcat Enablement
16026 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16027 (case ${target}): Add btver1.
16028 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16029 -march=native recognize btver1 processors.
16030 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16031 btver1 def_and_undef
16032 * config/i386/i386.c (struct processor_costs btver1_cost): New
16033 btver1 cost table.
16034 (m_BTVER1): New definition.
16035 (m_AMD_MULTIPLE): Includes m_BTVER1.
16036 (initial_ix86_tune_features): Add btver1 tune.
16037 (processor_target_table): Add btver1 entry.
16038 (static const char *const cpu_names): Add btver1 entry.
16039 (software_prefetching_beneficial_p): Add btver1.
16040 (ix86_option_override_internal): Add btver1 instruction sets.
16041 (ix86_issue_rate): Add btver1.
16042 (ix86_adjust_cost): Add btver1.
16043 * config/i386/i386.h (TARGET_BTVER1): New definition.
16044 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16045 (enum processor_type): Add PROCESSOR_BTVER1.
16046 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16047
16048 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16049
16050 PR target/43309
16051 * config/i386/i386.c (legitimize_tls_address)
16052 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16053 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16054 (tls_initial_exec_64_sun): New pattern.
16055
16056 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16057
16058 * doc/invoke.texi (Overall Options): Improve wording and markup
16059 of the description of -wrapper.
16060
16061 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16062
16063 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16064 rdynamic, threads): New Driver options.
16065
16066 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16067
16068 PR target/38118
16069 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16070 if coming from .tdata.
16071 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16072
16073 2011-01-06 Jan Hubicka <jh@suse.cz>
16074
16075 PR lto/47188
16076 * collect2.c (main): Do not enable LTOmode when plugin is active.
16077
16078 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16079
16080 PR other/45915
16081 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16082 --version output if supported.
16083 * configure: Regenerate.
16084
16085 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16086
16087 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16088 Driver options.
16089
16090 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16091
16092 PR c/47150
16093 * c-convert.c (convert): When converting a complex expression
16094 other than COMPLEX_EXPR to a different complex type, ensure
16095 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16096 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16097 when converting COMPLEX_TYPE.
16098
16099 2011-01-06 Ira Rosen <irar@il.ibm.com>
16100
16101 PR tree-optimization/47139
16102 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16103 only the last reduction value is used outside the loop. Update
16104 documentation.
16105
16106 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16107
16108 * config/rtems.opt: New.
16109 * config.gcc (*-*-rtems*): Use rtems.opt.
16110
16111 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16112
16113 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16114 processors do not support 3DNow instructions.
16115
16116 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16117
16118 * config/spu/spu.c (spu_option_override): Set parameter
16119 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16120
16121 2011-01-05 Jan Hubicka <jh@suse.cz>
16122
16123 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16124 at the command line.
16125
16126 2011-01-05 Martin Jambor <mjambor@suse.cz>
16127
16128 PR lto/47162
16129 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16130 deltas on streamed outgoing edges.
16131 (output_node_opt_summary): Output info for outgoing edges only when
16132 the node is in new parameter set.
16133 (output_cgraph_opt_summary): New parameter set, passed to the two
16134 aforementioned functions. Update its forward declaration and its
16135 callee too.
16136
16137 2011-01-05 Tom Tromey <tromey@redhat.com>
16138
16139 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16140 operator to c_finish_omp_atomic.
16141 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16142 (build_unary_op): Update.
16143 (build_modify_expr): Update.
16144 (build_asm_expr): Update.
16145
16146 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16147
16148 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16149 newly inserted insns.
16150 (pad_bb): Likewise.
16151 (spu_emit_branch_hint): Likewise.
16152 (insert_hbrp_for_ilb_runout): Likewise.
16153 (spu_machine_dependent_reorg): Call df_finish_pass after
16154 schedule_insns returns.
16155
16156 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16157
16158 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16159
16160 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16161
16162 PR tree-optimization/47005
16163 * tree-sra.c (struct access): Add 'non_addressable' bit.
16164 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16165 (decide_one_param_reduction): Return 0 if the parameter is passed by
16166 reference and one of the accesses in the group is non_addressable.
16167
16168 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16169
16170 PR tree-optimization/47056
16171 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16172 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16173 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16174
16175 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16176
16177 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16178 initializer. Skip view conversions from aggregate types.
16179
16180 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16181
16182 PR bootstrap/47055
16183 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16184
16185 2011-01-04 Philipp Thomas <pth@suse.de>
16186
16187 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16188 obvious typo.
16189
16190 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16191
16192 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16193 on empty epilogue sequences.
16194
16195 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16196
16197 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16198 non-static): New Driver options.
16199
16200 2011-01-04 Jie Zhang <jie@codesourcery.com>
16201
16202 PR driver/47137
16203 * gcc.c (default_compilers[]): Set combinable field to 0
16204 for all assembly languages.
16205
16206 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16207
16208 * config/mips/loongson3a.md: New file.
16209 * config/mips/mips.md: Include loongson3a.md.
16210 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16211 TUNE_LOONGSON_3A.
16212
16213 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16214
16215 PR middle-end/47017
16216 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16217 instead of convert_memory_address_addr_space on the base expression.
16218
16219 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16220
16221 * config/spu/spu.c (spu_option_override): Update error text
16222 for bad -march= / -mtune= values.
16223
16224 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16225
16226 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16227 if branch-hint optimization will be performed.
16228
16229 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16230
16231 PR tree-optimization/47148
16232 * ipa-split.c (split_function): Convert arguments to
16233 DECL_ARG_TYPE if possible.
16234
16235 PR tree-optimization/47155
16236 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16237 when computing uns.
16238
16239 PR rtl-optimization/47157
16240 * combine.c (try_combine): If undobuf.other_insn becomes
16241 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16242 and set *new_direct_jump_p too.
16243
16244 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16245
16246 PR tree-optimization/47021
16247 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16248
16249 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16250
16251 * gcc.c (process_command): Update copyright notice dates.
16252 * gcov.c (print_version): Likewise.
16253 * gcov-dump.c (print_version): Likewise.
16254 * mips-tfile.c (main): Likewise.
16255 * mips-tdump.c (main): Likewise.
16256
16257 2011-01-03 Martin Jambor <mjambor@suse.cz>
16258
16259 PR tree-optimization/46801
16260 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16261 aggregate fields start at byte boundary instead of the bit-field flag.
16262
16263 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16264
16265 PR driver/47137
16266 * gcc.c (main): Revert revision 168407.
16267
16268 2011-01-03 Martin Jambor <mjambor@suse.cz>
16269
16270 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16271
16272 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16273
16274 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16275 vector optab to expand vector/scalar shift, update gimple to vector.
16276
16277 2011-01-03 Martin Jambor <mjambor@suse.cz>
16278
16279 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16280 a thunk.
16281
16282 2011-01-03 Martin Jambor <mjambor@suse.cz>
16283
16284 PR tree-optimization/46984
16285 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16286 HOST_WIDE_INT.
16287 (cgraph_create_indirect_edge): Fixed line length.
16288 (cgraph_indirect_call_info): Declare.
16289 (cgraph_make_edge_direct) Update declaration.
16290 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16291 (cgraph_create_indirect_edge): Use it.
16292 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16293 callees.
16294 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16295 the new thunk_delta representation.
16296 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16297 HOST_WIDE_INT.
16298 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16299 (ipa_read_indirect_edge_info): Likewise.
16300 * lto-cgraph.c (output_edge_opt_summary): New function.
16301 (output_node_opt_summary): Call it on all outgoing edges.
16302 (input_edge_opt_summary): New function.
16303 (input_node_opt_summary): Call it on all outgoing edges.
16304
16305 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16306
16307 PR driver/47137
16308 * gcc.c (main): Don't check have_o when settting combine_inputs.
16309
16310 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16311
16312 * regrename.c: Add general comment describing the pass.
16313 (struct du_head): Remove 'length' field.
16314 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16315 (regrename_optimize): Do not sort chains. Rework comments, add others.
16316 Force renaming to the preferred class (if any) in the first pass and do
16317 not consider registers that belong to it in the second pass.
16318 (create_new_chain): Do not set 'length' field.
16319 (scan_rtx_reg): Likewise.
16320
16321 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16322
16323 PR tree-optimization/47140
16324 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16325 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16326 to bit_value_binop.
16327
16328 PR rtl-optimization/47028
16329 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16330 parm_birth_insn instead of at the beginning of first bb.
16331
16332 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16333
16334 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16335 Remove the word "see" before "@pxref".
16336 * doc/rtl.texi: Remove the word "see" before "@pxref".
16337
16338 2011-01-01 Jan Hubicka <jh@suse.cz>
16339
16340 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16341 memory.
16342
16343 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16344
16345 PR target/38662
16346 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16347
16348 \f
16349 Copyright (C) 2011 Free Software Foundation, Inc.
16350
16351 Copying and distribution of this file, with or without modification,
16352 are permitted in any medium without royalty provided the copyright
16353 notice and this notice are preserved.