OSDN Git Service

Better function header dump
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-01  David Li  <davidxl@google.com>
2
3         * tree-pretty-print.c (dump_function_header): New function.
4         * final.c (rest_of_clean_state): Use header dumper.
5         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6         * passes.c (pass_init_dump_file): Use header dumper.
7
8 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
9
10         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13         New functions.
14         (mem_loc_descriptor): Use them.
15
16         * var-tracking.c (create_entry_value): New function.
17         (vt_add_function_parameter): Use it.
18
19 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20
21         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
22         Include <signal.h>, <ucontext.h>.
23         (sigill_caught): Define.
24         (sigill_hdlr): New function.
25         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
26         insns can be executed.
27         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math
28         etc.
29         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
30
31 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32
33         * config/t-slibgcc-darwin: Move to ...
34         * config/t-slibgcc-dummy: .. this.
35         Clarify comments.
36         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
37         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
38         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
39         (i[34567]86-*-rtems*): Remove extra_parts.
40         Use i386/t-rtems.
41         Remove i386/t-crtstuff from tmake_file.
42         (i[34567]86-*-solaris2*): Remove t-svr4,
43         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
44         t-slibgcc-dummy.
45         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
46         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
47         sparc/t-crtfm from tmake_file.
48         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
49         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
50         Remove extra_parts.
51         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
52         * config/i386/t-nwld (SHLIB_LINK): Remove.
53         * config/i386/t-rtems-i386: Rename to ...
54         * config/i386/t-rtems: ... this.
55         ($(T)crti.o, $(T)crtn.o): Remove.
56         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
57         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
58         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
59         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
60         EXTRA_MULTILIB_PARTS): Remove.
61         * config/sparc/t-sol2-64: Likewise.
62         * config/sparc/t-sol2: Remove.
63         * config/sparc/t-crtin: Remove.
64         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
65         * config/i386/gmon-sol2.c: Remove.
66         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
67         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
68         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
69         * config/i386/sol2-gc1.asm: Remove.
70         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
71         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
72         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
73         * config/t-slibgcc-sld: Remove.
74
75 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
76
77         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
78         base_type_for_mode with op_mode instead of mode.
79
80 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
81
82         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
83         Cortex-A15.
84         * config/arm/arm-tune.md: Regenerate.
85         * config/arm/arm-tables.opt: Regenerate.
86         * config/arm/arm.c (FL_DIV): Rename...
87         (FL_THUMB_DIV): ... to this.
88         (FL_ARM_DIV): Define.
89         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
90         (arm_arch_hwdiv): Remove.
91         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
92         (arm_issue_rate): Add cortexr5.
93         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
94         __ARM_ARCH_EXT_IDIV__.
95         (TARGET_IDIV): Define.
96         (arm_arch_hwdiv): Remove.
97         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
98         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
99         (divsi3, udivsi3): New patterns.
100         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
101         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
102
103 2011-06-01  Martin Jambor  <mjambor@suse.cz>
104
105         * ipa-utils.c (ipa_dfs_info): New field scc_no.
106         * ipa-utils.c (searchc): Set scc_no.
107
108 2011-06-01  Martin Jambor  <mjambor@suse.cz>
109
110         * ipa-utils.c (searchc_env): New field allow_overwritable.
111         (searchc): do not ignore edges to overwritable nodes if indicated
112         by env->allow_overwritable.
113         (ipa_reduced_postorder): Set env.allow_overwritable.
114
115 2011-06-01  Richard Guenther  <rguenther@suse.de>
116
117         * tree.c (free_lang_data): Do not reset boolean_type_node nor
118         char_type_node.
119         * lto-streamer.c (lto_record_common_node): Take node pointer,
120         do not register types.
121         (lto_preload_common_nodes): Explicitly skip preloading nodes
122         that differ between frontends.
123
124 2011-05-31  Pat Haugen <pthaugen@us.ibm.com>
125
126         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
127         NON_FLOAT_REGS.
128
129 2011-05-31  Pat Haugen <pthaugen@us.ibm.com>
130
131         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
132         parameter value for dump. Dump cost on outermost call only.
133         (rs6000_memory_move_cost): Dump cost on outermost call only.
134
135 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
136
137         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
138         DW_OP_GNU_convert ops.
139
140         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
141         cselib_preserve_constants.
142         (cselib_lookup_1): If cselib_preserve_constants,
143         a new VALUE is being created for REG and there is a VALUE for the
144         same register in wider mode, add another loc with lowpart SUBREG of
145         the wider VALUE.
146         (cselib_subst_to_values): Handle ENTRY_VALUE.
147         * var-tracking.c  (replace_expr_with_values): Return NULL for
148         ENTRY_VALUE too.
149         * dwarf2out.c (convert_descriptor_to_signed): New function.
150         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
151         instead of two shifts.
152         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
153         the right mode if needed.
154         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
155         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
156         convert_descriptor_to_signed.
157         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
158         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
159
160         PR target/48688
161         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
162
163 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
164
165         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
166         of X87MODEI12 and SWI48x instead of SSEMODEI24.
167         (SWI248x): New mode iterator, rename from X87MODEI.
168         (X87MODEI): Remove mode iterator.
169         (X87MODEI12): Ditto.
170         (SSEMODEI24): Ditto.
171
172 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
173
174         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
175         * doc/invoke.texi: Document max-vartrack-expr-depth.
176         * var-tracking.c (EXPR_DEPTH): New.
177         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
178
179 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
180
181         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
182         * config/i386/sse.md: Add n to negated FMA pattern names.
183
184 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
185
186         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
187
188 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
189
190         * gengtype-state.c (read_state_params_structs): Initialize previous.
191
192 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
193
194         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
195         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
196
197 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
198
199         * config/i386/i386.md (*movtf_internal): Avoid allocating general
200         registers.  Penalize F*r->o alternative to prevent partial memory
201         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
202         CONST_DOUBLE immediates when optimizing function for size.  Do not move
203         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
204         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
205         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
206         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
207         alternatives.
208         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
209
210         (fp_register_operand splitters): Use fp_register_operand
211         constraint.  Do not use FP_REG_P in insn condition.
212         (any_fp_register_operand splitters): Use any_fp_register_operand
213         constraint.  Do not use ANY_FP_REG_P in insn condition.
214
215 2011-05-31  Jan Hubicka  <jh@suse.cz>
216
217         * cgraph.h (cgraph_inline_failed_t): Give enum a name
218         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
219         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
220         (lto_output_edge): Use output_enum and var_len_unsigned.
221         (lto_output_varpool_node): Likewise.
222         (input_overwrite_node): Do not take resolution parameter;
223         extract it from a bitpack.
224         (input_node): Do not read resolution; use input_enum and
225         var_len_unsigned.
226         (input_varpool_node): Likewise.
227         (input_edge): Likewise.
228         (input_cgraph_1): Likewise.
229
230 2011-05-31  Richard Guenther  <rguenther@suse.de>
231
232         * gimple.c (gimple_register_canonical_type): Do not register
233         any types via gimple_register_type.
234
235 2011-05-31  Jan Hubicka  <jh@suse.cz>
236
237         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
238         of thunks.
239
240 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
241
242         PR rtl-optimization/49235
243         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
244         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
245
246 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
247
248         PR tree-optimization/49093
249         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
250         data references.
251
252 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
253
254         PR debug/49047
255         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
256         for concrete functions containing the code of cloned functions.
257
258 2011-05-31  Richard Guenther  <rguenther@suse.de>
259
260         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
261         to ...
262         (forward_propagate_into_comparison_1): ... this.
263         (forward_propagate_comparison): Rename to ...
264         (forward_propagate_into_comparison): ... this.  Split out
265         real forward propagation code to ...
266         (forward_propagate_comparison): ... this.
267         (forward_propagate_into_gimple_cond): Remove looping.
268         (forward_propagate_into_cond): Likewise.
269         (simplify_not_neg_expr): Return whether we have done something.
270         (simplify_gimple_switch): Likewise.
271         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
272         (ssa_forward_propagate_and_combine): ... this.  Re-structure
273         to do a forward forward-propagation walk on BBs and a backward
274         stmt combining walk on BBs.  Consistently re-scan changed statements.
275         (pass_forwprop): Adjust.
276
277 2011-05-30  Ian Lance Taylor  <iant@google.com>
278
279         * godump.c (go_format_type): Correct length of name added to
280         obstack for anonymous field.
281
282 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
283
284         PR target/49186
285         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
286         part of the second operand is 0.
287
288 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
289
290         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
291         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
292         to memory for !TARGET_MEMORY_MISMATCH_STALL.
293         (*movdf_internal_rex64): Do not penalize F->r alternative.
294         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
295         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
296         when optimizing function for size.  Do not move CONST_DOUBLEs
297         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
298         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
299         SUBREGs.  Do not check for MEM_P operands in the insn condition,
300         check for ANY_FP_REGNO_P instead.
301         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
302         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
303         function for speed.
304         * config/i386/i386.c (ix86_option_override_internal): Do not
305         set TARGET_INTEGER_DFMODE_MOVES here.
306
307 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
308
309         PR target/49168
310         * config/i386/i386.md (*movtf_internal): Handle misaligned
311         load/store.
312
313 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
314
315         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
316         DW_TAG_rvalue_reference_type even for
317         -gdwarf-4 -fno-debug-types-section.
318
319 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
320
321         PR tree-optimization/46728
322         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
323         (build_and_insert_binop): New.
324         (gimple_expand_builtin_pow): Reorder args for
325         build_and_insert_call; use build_and_insert_binop; add more
326         optimizations for fractional exponents.
327
328 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
329
330         PR bootstrap/49190
331
332         Revert:
333         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
334
335         * tree.h (struct tree_identifier): Inherit from tree_typed, not
336         tree_common.
337         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
338         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
339         TS_BASE instead of TS_COMMON.
340         * varasm.c (assemble_name): Remove assert.
341
342 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
343
344         * config.gcc: Keep obselete list sorted.
345
346 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
347             Eric Botcazou  <ebotcazou@adacore.com>
348
349         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
350         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
351         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
352         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
353         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
354
355 2011-05-30  Richard Guenther  <rguenther@suse.de>
356
357         * gimple.c (gimple_types_compatible_p_1): Compare record
358         and union type members properly.
359
360 2011-05-30  Richard Guenther  <rguenther@suse.de>
361
362         PR tree-optimization/49210
363         * ipa-split.c (split_function): Care for the case where the call
364         result is not trivially convertible to the result holding variable.
365
366 2011-05-30  Richard Guenther  <rguenther@suse.de>
367
368         PR tree-optimization/49218
369         * tree-vrp.c (adjust_range_with_scev): Properly check whether
370         overflow occured.
371
372 2011-05-30  Richard Guenther  <rguenther@suse.de>
373
374         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
375         New function split out from ...
376         (forward_propagate_into_gimple_cond): ... here.  Adjust.
377         (forward_propagate_into_cond): Likewise.
378         (forward_propagate_comparison): Also propagate into
379         comparisons on assignment RHS.  Change return value to
380         behave similar to forward_propagate_into_cond.
381         (tree_ssa_forward_propagate_single_use_vars): Handle
382         strict-overflow warnings properly for forward_propagate_comparison.
383
384 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
385
386         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
387         from plugin linker.
388         * configure: Regenerate.
389
390 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
391
392         PR tree-optimization/49199
393         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
394         non-reduction operands are either defined in the loop or by induction.
395
396 2011-05-29  Xinliang David Li  <davidxl@google.com>
397
398         * opts-global.c (handle_common_deferred_options): Handle new options.
399         * passes.c (register_one_dump_file): Call register_pass_name.
400         (execute_one_pass): Check explicit enable/disable flag.
401         (passr_hash): New function.
402         (passr_eq): Ditto.
403         (register_pass_name): Ditto.
404         (get_pass_by_name): Ditto.
405         (pass_hash): Ditto.
406         (pass_eq): Ditto.
407         (enable_pass): Ditto.
408         (disable_pass): Ditto.
409         (is_pass_explicitly_enabled_or_disabled): Ditto.
410
411 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
412
413         * config/i386/i386.md (*movoi_internal_avx): Use
414         standard_sse_constant_opcode for alternative 0.
415         (*movti_internal_sse): Ditto.
416         (*movti_internal_rex64): Use standard_sse_constant_opcode for
417         alternative 2.
418         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
419         sselog1 type moves.
420         (*movsi_internal): Ditto.
421         (*movdi_internal): Ditto.  Add ssecvt type moves.
422
423 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
424
425         PR target/48830
426         * rtlanal.c (simplify_subreg_regno): Adjust comment.
427
428 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
429
430         PR rtl-optimization/49095
431         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
432         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
433
434 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
435
436         PR target/43995
437         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
438         recurse_p argument.  Only follow register copies if it is set,
439         and prevent mips_find_pic_call_symbol from recursing.
440         (mips_find_pic_call_symbol): Add a recurse_p argument.
441         Pass it to mips_pic_call_symbol_from_set.
442         (mips_annotate_pic_calls): Update accordingly.
443
444 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
445
446         * emit-rtl.c (try_split): Use a loop to search for
447         NOTE_INSN_CALL_ARG_LOCATIONs.
448
449 2011-05-29  Richard Guenther  <rguenther@suse.de>
450
451         PR tree-optimization/49217
452         * ipa-pure-const.c (propagate_pure_const): Fix typos.
453
454 2011-05-28  Jan Hubicka  <jh@suse.cz>
455
456         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
457         length.
458         (string_slot_free): Remove
459         (create_output_block): Initialize obstack.
460         (destroy_output_block): Free obstack.
461         (lto_string_index): Add PERSISTENT parameter; do not duplicate
462         the string unless it needs to be added into the hash.
463         (lto_output_string_with_length): Add persistent attribute;
464         handle NULL strings.
465         (lto_output_string): Add PERSISTENT parameter.
466         (output_string_cst, output_identifier): Simplify.
467         (lto_output_location_bitpack): Update.
468         (lto_output_builtin_tree): Update.
469         * lto-streamer.h (struct output_block): Add obstack.
470         (lto_output_string, lto_output_string_with_length): Remove
471         declarations; functions are static now.
472
473 2011-05-28  Jan Hubicka  <jh@suse.cz>
474
475         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
476         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
477         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
478         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
479         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
480         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
481         unpack_ts_decl_with_vis_value_fields,
482         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
483         lto_get_builtin_tree): Use enum and variable length i/o.
484         * basic-block.h (profile_status_d): Add PROFILE_LAST.
485         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
486         New functions.
487         (bp_pack_enum, bp_unpack_enum): New macros.
488
489 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
490
491         * genrecog.c: Remove redundant forward declarations.
492
493 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
494
495         * config.gcc: Deprecate mips*-*-openbsd*.
496
497 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
498
499         PR bootstrap/49195
500         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
501         for match_op_dup.
502
503 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
504
505         PR middle-end/48981
506         * gengtype.c (vec_prefix_type): New function.
507         (note_def_vec): Use vec_prefix_type and change the length
508         attribute to be based on the prefix.
509         * vec.c: Include coretypes.h before vec.h.
510         (struct vec_prefix): Remove.
511         (vec_gc_p_reserve): Change the offsetof to sizeof.
512         (vec_gc_p_reserve_exact): Likewise.
513         (vec_heap_p_reserve): Likewise.
514         (vec_heap_p_reserve_exact): Likewise.
515         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
516         (vec_stack_p_reserve): Change the offsetof to sizeof.
517         (vec_stack_p_reserve_exact): Likewise.
518         * vec.h (struct vec_prefix): New struct definition.
519         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
520         (VEC_T_GTY(T,B)): Likewise.
521         (DEF_VEC_FUNC_P(T)): Use prefix field.
522         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
523         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
524
525 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
526
527         PR tree-optimization/46728
528         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
529         (powi_as_mults): Add gimple_set_location.
530         (build_and_insert_call): New.
531         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
532         0.5, 0.25, 0.75, 1./3., or 1./6.
533
534 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
535
536         * doc/contrib.texi: Update copyright years.
537         (Contributors): Add Zdenek Sojka.
538
539 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
540
541         * c-decl.c (c_push_function_context): Copy the current statement
542         list stack.
543         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
544         (finish_struct): Call building_stmt_list_p instead of checking
545         cur_stmt_list.
546         * c-parser.c (c_parser_postfix_expression): Likewise.
547         * c-typeck.c (c_end_compound_stmt): Likewise.
548         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
549         * tree-iterator.c (stmt_list_cache): Change to a VEC.
550         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
551         (free_stmt_list): Likewise.
552         * tree.h (struct tree_statement_list): Include typed_tree instead
553         of tree_common.
554         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
555         as TS_TYPED instead of TS_COMMON.
556
557 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
558             Uros Bizjak <ubizjak@gmail.com>
559
560         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
561         (HAVE_AS_IX86_TLSGDPTL): Define.
562         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
563         (HAVE_AS_IX86_TLSLDMPLT): Define.
564         * configure: Regenerate.
565         * config.in: Regenerate.
566         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
567         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
568         TARGET_SUN_TLS, use @tlsgdplt or @plt.
569         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
570         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
571         @tlsldmplt or @plt.
572         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
573
574 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
575
576         * sched-int.h (struct _haifa_deps_insn_data): New members cond
577         and reverse_cond.
578         (INSN_COND, INSN_REVERSE_COND): New macros.
579         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
580         once.
581         (sched_get_condition_with_rev): Cache the results, and look them up
582         if possible.
583         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
584         are clobbered by the current insn.
585         * target.def (exposed_pipline): New sched data hook.
586         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
587         * doc/tm.texi: Regenerate.
588
589 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
590
591         PR tree-optimization/49170
592         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
593         sincos or cexp.
594
595 2011-05-27  Richard Guenther  <rguenther@suse.de>
596
597         PR middle-end/49189
598         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
599         of comparisons.
600
601 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
602
603         * haifa-sched.c (sched_scan_info): Remove.
604         (schedule_block): Call sched_extend_luids rather than sched_init_luids
605         with NULL args.
606         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
607         Remove functions.
608         (sched_scan): Remove.
609         (sched_extend_luids): Renamed from luids_extend_insn and no longer
610         static.  All callers changed.
611         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
612         static.  All callers changed.
613         (sched_init_luids): Remove all arguments except the first.  All
614         callers changed.  Don't use sched_scan.
615         (haifa_init_h_i_d): Likewise.
616         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
617         manually rather than using sched_init_luids.  Likewise with
618         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
619         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
620         rather than sched_init_luids with NULL args.
621         * sel-sched-ir.c (new_insns): Remove variable.
622         (sched_scan): New static function, previously in haifa-sched.c.  Remove
623         all arguments but the first two; all callers changed.
624         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
625         rather than sched_init_luids.
626         (sel_init_bbs): Remove second argument.  All callers changed.
627         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
628         with NULL arguments.
629         (create_insn_rtx_from_pattern): Likewise.
630         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
631         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
632         (sched_init_insn_luid, sched_extend_luids): Declare.
633         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
634         declarations.
635
636 2011-05-27  Richard Guenther  <rguenther@suse.de>
637
638         PR middle-end/49177
639         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
640         A CMP B ? (T) true : (T) false for non-integral types T again.
641
642 2011-05-27  Jan Hubicka  <jh@suse.cz>
643
644         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
645         so 0 means NULL string.
646         (lto_output_string_with_length): ... here.
647         (lto_output_string, output_string_cst, output_identifier): Update
648         handling of NULL strings.
649         (lto_output_location_bitpack): New function.
650         (lto_output_location): Use it.
651         (lto_output_tree_ref): Use output_record_start.
652         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
653         len values.
654         * lto-streamer-in.c (string_for_index): Break out from ...; offset
655         values by 1.
656         (input_string_internal): ... here;
657         (input_string_cst, input_identifier, lto_input_string): Update handling
658         of NULL strings.
659         (lto_input_location_bitpack): New function
660         (lto_input_location): Use it.
661         (unpack_ts_type_common_value_fields): Pack align & alias in var len
662         values.
663         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
664         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
665         (bp_pack_value): Sanity check the value range.
666         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
667         New functions.
668         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
669         New functions.
670
671 2011-05-27  Hariharan Sandanagobalane <hariharan@picochip.com>
672
673         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
674         call_arg_location instructions down the floor.
675
676 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
677
678         PR rtl-optimization/49154
679         * ira.c (setup_pressure_classes): Process class without sublcasses
680         as a candidate for pressure classes.
681
682 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
683
684         PR rtl-optimization/48575
685         * genrecog.c (position_type): New enum.
686         (position): New structure.
687         (decision): Use position structure instead of a string.
688         (root_pos, peep2_insn_pos_list): New variables.
689         (next_position, compare_positions): New functions.
690         (new_decision): Use position structures instead of strings.
691         (maybe_both_true): Likewise.
692         (change_state): Likewise.
693         (write_tree): Likewise.
694         (make_insn_sequence): Likewise.
695
696 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
697
698         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
699         TS_BASE instead of TS_COMMON.
700         (find_decls_types_r): Check for TS_TYPED structure before looking at
701         TREE_TYPE.
702         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
703         Add chain field.
704         (BLOCK_CHAIN): Use new chain field.
705
706 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
707
708         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
709         moves expensive on Power7 also.
710
711 2011-05-26  Richard Guenther  <rguenther@suse.de>
712
713         * fold-const.c (fold_unary_loc): Remove bogus code.
714
715 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
716
717         * tree.h (struct tree_identifier): Inherit from tree_typed, not
718         tree_common.
719         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
720         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
721         TS_BASE instead of TS_COMMON.
722         * varasm.c (assemble_name): Remove assert.
723
724 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
725
726         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
727         substituted first.
728         * libgcc-std.ver: Delete file.
729
730 2011-05-26  Richard Guenther  <rguenther@suse.de>
731
732         PR tree-optimization/48702
733         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
734         only when we know the base address is within bounds.
735         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
736         assume the base address of TARGET_MEM_REFs is in bounds.
737
738 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
739
740         PR target/49099
741         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
742         declaration in TARGET_SOLARIS.
743
744 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
745
746         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
747         The instruction is then expanded explicitly.
748         (supported_compare): Callable instruction.
749         (compare): Likewise.
750
751 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
752
753         PR c++/49165
754         * gimplify.c (shortcut_cond_r): Don't special case
755         COND_EXPRs if they have void type on one of their arms.
756
757 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
758
759         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
760         to reduce duplication, and to achieve a slightly more logical order
761         of operations.
762
763 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
764
765         PR tree-optimization/49161
766         * tree-vrp.c (struct case_info): New type.
767         (compare_case_labels): Sort case_info structs instead of
768         trees, and not primarily by CASE_LABEL uids but by
769         label_for_block indexes.
770         (find_switch_asserts): Put case labels into struct case_info
771         array instead of TREE_VEC, adjust sorting, compare label_for_block
772         values instead of CASE_LABELs.
773
774 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
775
776         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
777         ("orndi3_neon"): Likewise.
778         ("bic<mode>3_neon"): Likewise.
779
780 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
781
782         PR tree-optimization/49038
783         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
784         Ensure at least one epilogue iteration if required by data
785         accesses with gaps.
786         * tree-vectorizer.h (struct _loop_vec_info): Add new field
787         to mark loops that require peeling for gaps.
788         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
789         (vect_get_known_peeling_cost): Take peeling for gaps into
790         account.
791         (vect_transform_loop): Generate epilogue if required by data
792         access with gaps.
793         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
794         loop as requiring an epilogue if there are gaps in the end of
795         the strided group.
796
797 2011-05-25  Ian Lance Taylor  <iant@google.com>
798
799         * godump.c (go_format_type): Output the first field with a usable
800         Go type, if any.
801
802 2011-05-25  Ian Lance Taylor  <iant@google.com>
803
804         * godump.c (go_format_type): Check for invalid type names, pointer
805         target types, and struct field types.
806
807 2011-05-25  Jason Merrill  <jason@redhat.com>
808
809         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
810
811 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
812
813         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
814
815 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
816
817         * config/i386/i386.md (*movqi_extv_1)): Put back
818         "register_operand" check in "type" calculation.
819         (*movqi_extzv_2): Likewise.
820
821 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
822
823         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
824
825 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
826
827         PR bootstrap/49160
828         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
829         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
830         __divxc3, __divtc3): Wrap definitions in #ifndef.
831
832 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
833
834         PR target/49142
835         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
836         "register_operand" check and replace q_regs_operand with
837         QIreg_operand in "type" calculation.
838         (*movqi_extv_1): Likewise.
839         (*movqi_extzv_2_rex64): Likewise.
840         (*movqi_extzv_2): Likewise.
841
842         * config/i386/predicates.md (QIreg_operand): New.
843
844 2011-05-25  Richard Guenther  <rguenther@suse.de>
845
846         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
847         type-based offset disambiguation, streamline MEM_REF and
848         TARGET_MEM_REF handling.
849
850 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
851
852         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
853         (bdesc_special_args): Add pause intrinsic.
854
855         * config/i386/i386.md (UNSPEC_PAUSE): New.
856         (pause): Likewise.
857         (*pause): Likewise.
858         * config/i386/ia32intrin.h (__pause): Likewise.
859
860         * doc/extend.texi (X86 Built-in Functions): Add documentation for
861         pause intrinsic.
862
863 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
864
865         PR tree-optimization/46728
866         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
867         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
868
869 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
870
871         * tree.h (struct tree_exp): Inherit from struct tree_typed.
872         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
873         instead of TS_COMMON.
874
875 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
876
877         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
878         LIBGCC2_GNU_PREFIX is defined.
879         (__N): New macro.
880         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
881         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
882         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
883         __clz_tab): Define using __N.
884         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
885         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
886         * target.def (libfunc_gnu_prefix): New hook.
887         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
888         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
889         * doc/tm.texi: Regenerate.
890         * system.h (LIBGCC2_GNU_PREFIX): Poison.
891         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
892         account.
893         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
894         (init_optabs): Likewise for the bswap libfuncs.
895         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
896         and divide.
897         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
898         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
899         * libgcc-std.ver: Remove.
900         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
901         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
902         libgcc-std.ver.
903         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
904         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
905         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
906         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
907         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
908         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
909         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
910         * config/fixed-bit.h (FIXED_OP): Define differently depending on
911         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
912         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
913
914 2011-05-25  Jan Hubicka  <jh@suse.cz>
915
916         * lto-streamer-out.c (output_record_start): Use lto_output_enum
917         (lto_output_tree): Use output_record_start.
918         * lto-streamer-in.c (input_record_start): Use lto_input_enum
919         (lto_get_pickled_tree): Use input_record_start.
920         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
921         (lto_value_range_error): New function.
922         * lto-streamer.h (lto_value_range_error): Declare.
923         (lto_output_int_in_range, lto_input_int_in_range): New functions.
924         (lto_output_enum, lto_input_enum): New macros.
925
926 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
927
928         * common.opt (flag_stack_usage_info): New variable.
929         (-Wstack-usage): New option.
930         * doc/invoke.texi (Warning options): Document -Wstack-usage.
931         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
932         <OPT_fstack_usage>: Likewise.
933         * toplev.c (output_stack_usage): Handle -Wstack-usage.
934         * calls.c (expand_call): Test flag_stack_usage_info variable instead
935         of flag_stack_usage.
936         (emit_library_call_value_1): Likewise.
937         * explow.c (allocate_dynamic_stack_space): Likewise.
938         * function.c (instantiate_virtual_regs ): Likewise.
939         (prepare_function_start): Likewise.
940         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
941         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
942         * config/arm/arm.c (arm_expand_prologue): Likewise.
943         (thumb1_expand_prologue): Likewise.
944         * config/avr/avr.c (expand_prologue): Likewise.
945         * config/i386/i386.c (ix86_expand_prologue): Likewise.
946         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
947         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
948         * config/mips/mips.c (mips_expand_prologue): Likewise.
949         * config/pa/pa.c (hppa_expand_prologue): Likewise.
950         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
951         * config/s390/s390.c (s390_emit_prologue): Likewise.
952         * config/sh/sh.c (sh_expand_prologue): Likewise.
953         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
954         * config/spu/spu.c (spu_expand_prologue): Likewise.
955
956 2011-05-25  Richard Guenther  <rguenther@suse.de>
957
958         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
959         (gimple_canonical_types_compatible_p): Likewise.
960
961 2011-05-25  Jan Hubicka  <jh@suse.cz>
962
963         PR middle-end/49062
964         * ipa.c (function_and_variable_visibility): Only add to same
965         comdat group list if DECL_ONE_ONLY.
966
967 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
968
969         PR rtl-optimization/49014
970         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
971
972 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
973
974         PR target/49128
975         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
976
977 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
978
979         PR rtl-optimization/48757
980         * ira-build.c (loop_with_eh_edge_p): Rename to
981         loop_with_complex_edge_p, check edges on complexity, make function
982         conditional.
983         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
984         conditional.
985
986 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
987
988         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
989         force flag_ira_share_save_slots to 0.
990
991 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
992
993         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
994         (vt_initialize): Set PROLOGUE_BB unconditionally.
995         Add block comment about CFA_BASE_RTX machinery.
996         Reset FP_CFA_OFFSET to -1 on all invalid paths.
997         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
998
999 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1000
1001         PR objc/48187
1002         * c-parser.c (c_parser_objc_class_instance_variables): More robust
1003         parsing of syntax error in ObjC instance variable lists.  In
1004         particular, avoid an infinite loop if there is a stray ']'.
1005         Updated error message.
1006
1007 2011-05-24  Ian Lance Taylor  <iant@google.com>
1008
1009         * godump.c (go_define): Don't accept a string immediately after
1010         another operand.
1011
1012 2011-05-24  Ian Lance Taylor  <iant@google.com>
1013
1014         * godump.c (struct godump_container): Add invalid_hash field.
1015         (go_format_type): Return false if type is found in invalid_hash.
1016         (go_output_typedef): Add invalid type to invalid_hash.
1017         (go_finish): Create and delete invalid_hash.
1018
1019 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1020
1021         PR tree-optimization/46728
1022         * tree-ssa-math-opts.c (powi_table): New.
1023         (powi_lookup_cost): New.
1024         (powi_cost): New.
1025         (powi_as_mults_1): New.
1026         (powi_as_mults): New.
1027         (gimple_expand_builtin_powi): New.
1028         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1029         (gate_cse_sincos): Remove sincos/cexp restriction.
1030
1031 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1032
1033         PR target/3746
1034         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1035         mips-tdump native.
1036         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1037         * mips-tdump.c: Likewise.
1038
1039 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1040
1041         PR target/49128
1042         * config/i386/driver-i386.c (host_detect_local_cpu): Always
1043         add -mno-XXX.  Handle FMA.
1044
1045 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1046
1047         PR rtl-optimization/48633
1048         * ira-build.c (loop_with_eh_edge_p): New function.
1049         (mark_loops_for_removal): Use it.
1050
1051 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1052
1053         PR rtl-optimization/48971
1054         * ira.c (setup_pressure_classes): Don't check register move cost
1055         for classes with one registers.  Don't add pressure class if there
1056         is a pressure class with the same available hard registers.
1057         Check contains_reg_of_mode.  Fix a typo in collecting
1058         temp_hard_regset.  Ignore hard registers not belonging to a class.
1059
1060 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
1061
1062         PR target/49133
1063         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1064
1065 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1066             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1067
1068         PR gcov-profile/48845
1069         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1070
1071 2011-05-24  Richard Guenther  <rguenther@suse.de>
1072
1073         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1074         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1075         (gimple_types_compatible_p_1): Adjust.
1076         (iterative_hash_canonical_type): Do not bother about complete vs.
1077         incomplete types.
1078         (gimple_canonical_types_compatible_p): Likewise.
1079
1080 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1081
1082         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1083
1084 2011-05-24  Richard Guenther  <rguenther@suse.de>
1085
1086         PR bootstrap/49078
1087         * gimple.c (gimple_register_canonical_type): Revert
1088         previous change.
1089         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1090         does not for a tree for the case where it matters.  Cache
1091         pointer-type alias-sets.
1092
1093 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1094
1095         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1096         (OBJS): Remove options.o, opts-common.o and prefix.o.
1097         (OBJS-libcommon-target): New.
1098         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1099         (BACKEND): Include libcommon-target.a.
1100         (MOSTLYCLEANFILES): Include libcommon-target.a.
1101         (libcommon-target.a): New.
1102         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1103         prefix.o.
1104
1105 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
1106
1107         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
1108         parts of output shared with the driver.
1109         * optc-gen.awk: Don't generate parts of output not shared with the
1110         driver.
1111         * opth-gen.awk: Remove GCC_DRIVER conditionals.
1112         * doc/options.texi (SourcerInclude): Mention options-save.c.
1113         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1114         (OBJS): Add options-save.o.
1115         (options-save.c, options-save.o): New.
1116         (options.o): Update dependencies.
1117         (gcc-options.o): Remove.
1118         (mostlyclean): Remove options-save.c.
1119
1120 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1121
1122         PR debug/49032
1123         * dbxout.c: Include cgraph.h.
1124         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1125         and without value expr, return NULL if no varpool node exists for
1126         it or if it is not needed.
1127         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1128
1129         PR c/49120
1130         * c-decl.c (start_decl): Convert expr to void_type_node.
1131
1132 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
1133
1134         PR rtl-optimization/48826
1135         * emit-rtl.c (try_split): When splitting a call that is followed
1136         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1137
1138 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1139
1140         * cfgexpand.c (expand_debug_expr): For unused non-addressable
1141         parameters passed in memory prefer using DECL_INCOMING_RTL over
1142         the pseudos it will be copied into.
1143
1144 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1145
1146         PR target/47315
1147         * config/i386/i386.c (ix86_option_override_internal): Save the
1148         initial options after checking vzeroupper.
1149
1150 2011-05-23  David Li  <davidxl@google.com>
1151
1152         PR tree-optimization/48988
1153         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1154         Initialize has_valid_pred for each pred chain.
1155
1156 2011-05-23  Richard Guenther  <rguenther@suse.de>
1157
1158         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1159         (iterative_hash_gimple_type): Always hash type names.
1160
1161 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
1162
1163         * c-typeck.c (build_function_call_vec): Tweak call to
1164         check_function_arguments.
1165
1166 2011-05-23  Richard Guenther  <rguenther@suse.de>
1167
1168         PR tree-optimization/49115
1169         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1170         is not necessarily carried out, do not claim it kills the ref.
1171         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1172
1173 2011-05-23  Richard Guenther  <rguenther@suse.de>
1174
1175         PR middle-end/15419
1176         * builtins.c (fold_builtin_memory_op): Be less restrictive about
1177         what pointer types we accept for folding.
1178
1179 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1180
1181         * gthr-gnat.c: Remove.
1182         * gthr-gnat.h: Remove.
1183         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1184         * config/t-freebsd (LIB2ADDEH): Likewise.
1185         * config/t-linux (LIB2ADDEH): Likewise.
1186         * config/t-sol2 (LIB2ADDEH): Likewise.
1187         * config/ia64/t-vms (LIB2ADDEH): Likewise.
1188         * configure.ac (target_thread_file): Remove gnat handling.
1189         * configure: Regenerate.
1190         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1191
1192 2011-05-23  Tristan Gingold  <gingold@adacore.com>
1193             Eric Botcazou  <ebotcazou@adacore.com>
1194
1195         * gcov.c (create_file_names): If no object directory is specified,
1196         keep the directory of the file.
1197
1198 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1199
1200         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1201         * configure: Regenerate.
1202
1203 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1204
1205         PR middle-end/48973
1206         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1207         failed and the comparison has a single bit signed type, use
1208         constm1_rtx instead of const1_rtx for true value.
1209         (do_store_flag): If ops->type is single bit signed type, disable
1210         signel bit test optimization and pass -1 instead of 1 as last
1211         parameter to emit_store_flag_force.
1212
1213 2011-05-23  Tom de Vries  <tom@codesourcery.com>
1214
1215         PR target/45098
1216         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1217         function.
1218         (infer_loop_bounds_from_undefined): Use new function.
1219
1220 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
1221
1222         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1223         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
1224         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1225         and -O0 otherwise.
1226         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1227
1228 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1229
1230         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1231         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1232         returns true.
1233
1234 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
1235
1236         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1237
1238 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1239
1240         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1241         UNSPEC_MOVE_PIC pattern.
1242
1243 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1244
1245         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1246         (sparc-*-rtems*): Likewise.
1247         (sparc64-*-elf*): Likewise.
1248         (sparc64-*-rtems*): Likewise.
1249         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
1250         * config/sparc/t-crtin: New file.
1251         * config/sparc/t-sol2 (crti.o): Delete rule.
1252         (crtn.o): Likewise.
1253         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1254         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1255         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1256         (ENDFILE_SPEC): Add crtn.o.
1257
1258 2011-05-22  Tom de Vries  <tom@codesourcery.com>
1259
1260         PR middle-end/48689
1261         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1262         CODE_CONTAINS_STRUCT (TS_COMMON).
1263
1264 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
1265
1266         PR middle-end/49029
1267         * expmed.c (extract_fixed_bit_field): Test whether target can be used
1268         only after deciding which mode to use.
1269
1270 2011-05-22  Tom de Vries  <tom@codesourcery.com>
1271
1272         PR target/45098
1273         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1274         for call to get_shiftadd_cost.
1275
1276 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
1277
1278         PR target/49104
1279         * config/i386/cpuid.h (bit_MMXEXT): New define.
1280
1281 2011-05-22  Nick Clifton  <nickc@redhat.com>
1282
1283         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1284         initialisation of non-existant args[2] element.  Use args[] array
1285         not arg[] array to pass arguments to build_function_type_list.
1286
1287 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
1288
1289         PR tree-optimization/49087
1290         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1291
1292 2011-05-21  Jason Merrill  <jason@redhat.com>
1293
1294         PR c++/49092
1295         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1296         static storage duration.
1297
1298 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1299
1300         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1301         frame pointer.
1302
1303 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1304
1305         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1306         false if there are call-saved registers here...
1307         (sparc_can_use_return_insn_p): ...but here instead.
1308         (save_or_restore_regs): Fix thinko.
1309         (sparc_expand_prologue): Use current_function_is_leaf.
1310         (sparc_frame_pointer_required): Likewise.
1311
1312 2011-05-21  Nick Clifton  <nickc@redhat.com>
1313
1314         PR target/49098
1315         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1316
1317 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1318
1319         * gengtype.c (walk_type): Implemented "atomic" GTY option.
1320         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1321
1322 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
1323
1324         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
1325         * optc-gen.awk: Move common code to opt-read.awk.
1326         * opth-gen.awk: Likewise.
1327         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1328
1329 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
1330
1331         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1332
1333 2011-05-20  Tom de Vries  <tom@codesourcery.com>
1334
1335         PR target/45098
1336         * tree-ssa-loop-ivopts.c: Include expmed.h.
1337         (get_shiftadd_cost): New function.
1338         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
1339
1340 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
1341
1342         PR bootstrap/49086
1343         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1344         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1345
1346 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1347
1348         * Makefile.in: Update comment referring to $(OBJS-common).
1349
1350 2011-05-20  Ian Lance Taylor  <iant@google.com>
1351
1352         * godump.c (go_output_typedef): Put enum constants in the macro
1353         hash table to avoid duplicate Go const definitions.
1354
1355 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1356
1357         * Makefile.in (LIBDEPS): Add libcommon.a.
1358         (LIBS): Likewise.
1359         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1360         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1361         pretty-print.o and version.o.
1362         (OBJS-libcommon): New.
1363         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1364         (BACKEND): Add libcommon.a.
1365         (MOSTLYCLEANFILES): Likewise.
1366         (libcommon.a): New.
1367         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1368         (cpp$(exeext)): Likewise.
1369         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1370         pretty-print.o and input.o.
1371         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1372         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1373         (errors.o): Remove.
1374         (mips-tfile): Don't explicitly use version.o.
1375         (mips-tdump): Likewise.
1376         (gcov.o): Depend on $(DIAGNOSTIC_H).
1377         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1378         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1379         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1380         * gcov-dump.c: Include intl.h and diagnostic.h.
1381         (main): Initialize diagnostics.
1382         * gcov.c: Include diagnostic.h.
1383         (fnotice): Remove.
1384         (main): Initialize diagnostics.
1385         * lto-wrapper.c: Include diagnostic.h.
1386         (main): Initialize diagnostics.
1387
1388 2011-05-20  Michael Matz  <matz@suse.de>
1389
1390         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1391
1392 2011-05-20  Michael Matz  <matz@suse.de>
1393             Richard Guenther  <rguenther@suse.de>
1394
1395         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1396         use lto_streamer_cache_append directly instead of returning a VEC.
1397         (preload_common_node): Remove.
1398         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1399         track seen nodes.
1400         (lto_streamer_cache_create): Call lto_preload_common_nodes.
1401
1402 2011-05-20  Richard Guenther  <rguenther@suse.de>
1403
1404         PR tree-optimization/49079
1405         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1406         MEM_REFs correctly for the trailing array access detection.
1407         Special case constants the same way as decls for overall size
1408         constraining.
1409
1410 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
1411
1412         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1413         argument expansion.
1414
1415 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
1416
1417         PR tree-optimization/49073
1418         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1419         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1420         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1421
1422 2011-05-20  Richard Guenther  <rguenther@suse.de>
1423
1424         PR middle-end/48849
1425         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1426         of pointer types the same way the middle-end does.
1427
1428 2011-05-20  Richard Guenther  <rguenther@suse.de>
1429
1430         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1431         or pointer-to chains.  Delay all fixup to uniquify_nodes.
1432
1433 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
1434
1435         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1436         (fma4_fmaddsub): Likewise
1437
1438 2011-05-19  Jan Hubicka  <jh@suse.cz>
1439
1440         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1441         (GIMPLE_TYPE_PAIR_SIZE): New macro.
1442         (type_pair_cache): New static var.
1443         (lookup_type_pair): Use fixed sized custom hash; make inline.
1444         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1445         calls of lookup_type_pair.
1446         (print_gimple_types_stats): Remove cache stats.
1447         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1448         and gtc_ob.
1449
1450 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
1451
1452         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1453         when TARGET_RDRND is active.
1454         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1455         Generate dummy SImode target register when target is NULL.
1456
1457 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1458
1459         * config/arm/arm-fpus.def: New.
1460         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1461         arm-fpus.def.
1462         * config/arm/arm-tables.opt: Regenerate.
1463         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1464         (arm_option_override): Don't decode FPU name to string here.
1465         * config/arm/arm.opt (mfpu=): Use Enum.
1466         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1467         Update dependencies.
1468
1469 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1470
1471         * collect2.c: Include diagnostic.h.
1472         (fatal_perror, fatal, error, fancy_abort): Remove.
1473         (main): Set progname.  Call xmalloc_set_program_name and
1474         diagnostic_initialize.
1475         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1476         scan_libraries, resolve_lib_name): Call fatal_error instead of
1477         fatal and fatal_perror.
1478         * collect2.h (error, fatal, fatal_perror): Don't declare.
1479         * tlink.c: Include diagnostic-core.h.
1480         (recompile_files): Call fatal_error instead of fatal_perror.
1481         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1482         pretty-print.o and input.o.
1483         (collect2.o, tlink.o): Update dependencies.
1484
1485 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1486
1487         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1488
1489 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1490
1491         PR target/40483
1492         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1493         COMDAT group syntax, both SPARC and x86 variants.
1494         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1495         * configure: Regenerate.
1496         * config/sol2.h (TARGET_SOLARIS): Define.
1497         (PUSHSECTION_FORMAT): Remove.
1498         (SECTION_NAME_FORMAT): Define.
1499         * config/sol2.c: Include hashtab.h.
1500         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1501         expansion, using SECTION_NAME_FORMAT.
1502         (solaris_comdat_htab): New variable.
1503         (struct comdat_entry): Define.
1504         (comdat_hash): New function.
1505         (comdat_eq): New function.
1506         (solaris_elf_asm_comdat_section): New function.
1507         (solaris_define_comdat_signature): New function.
1508         (solaris_code_end): New function.
1509         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1510         (solaris_code_end): Declare.
1511         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1512         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1513         solaris_code_end.
1514         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1515         Remove ATTRIBUTE_UNUSED.
1516         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1517         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1518         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1519         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1520         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1521         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1522         (PUSHSECTION_FORMAT): Remove.
1523         (SECTION_NAME_FORMAT): Redefine.
1524
1525 2011-05-19  Kai Tietz  <ktietz@redhat.com>
1526
1527         * tree-cfg.c (verify_gimple_assign_binary): Barf on
1528         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1529         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1530
1531 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
1532             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1533
1534         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1535
1536 2011-05-19  Richard Guenther  <rguenther@suse.de>
1537
1538         PR middle-end/48985
1539         * tree-object-size.c (addr_object_size): If the pointed-to
1540         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1541
1542 2011-05-19  Richard Guenther  <rguenther@suse.de>
1543
1544         * gimple.c (gimple_types_compatible_p_1): Compare names of
1545         the types themselves.
1546         (iterative_hash_gimple_type): And hash them that way.
1547         (gimple_register_type_1): If we register a main variant properly
1548         initialize the leader to ourselves.
1549
1550 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1551
1552         PR target/45098
1553         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1554         get_loop_invariant_expr_id.
1555         (get_loop_invariant_expr_id): Use get_expr_id.
1556         (parm_decl_cost): New function.
1557         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1558         Improve bound cost estimation.  Use different inv_expr_id for elim and
1559         express cases.
1560
1561 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1562
1563         PR target/45098
1564         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1565         cost_base.cost == 0.
1566
1567 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1568
1569         PR target/49002
1570         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1571         Properly handle load cast.
1572
1573 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1574
1575         PR tree-optimization/49039
1576         * tree-vrp.c (extract_range_from_binary_expr): For
1577         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1578         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1579
1580 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1581
1582         PR target/45098
1583         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1584
1585 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1586
1587         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1588         (*tls_global_dynamic_64): Ditto.
1589         (*tls_local_dynamic_base_32_gnu): Ditto.
1590         (*tls_local_dynamic_base_64): Ditto.
1591         (tls_initial_exec_64_sun): Ditto.
1592
1593 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1594
1595         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1596         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1597         bf592-none.
1598         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1599         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1600         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1601         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1602         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1603         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1604         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1605
1606 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1607
1608         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1609         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1610         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1611         target_thread_pointer, arm_structure_size_boundary, struct
1612         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1613         struct abi_name, arm_all_abis): Remove.
1614         (arm_option_override) Don't process most enumerated option values here.
1615         Don't process target_fpe_name here.  Work with integer not string for
1616         structure size boundary; use separate diagnostics for each case.
1617         * config/arm/arm.h (enum float_abi_type, enum
1618         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1619         to arm-opts.h.
1620         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1621         arm_structure_size_boundary): Remove.
1622         * config/arm/arm.opt (mabi=): Use Enum and Init.
1623         (arm_abi_type): New Enum and EnumValue entries.
1624         (mfloat-abi=): Use Enum and Init.
1625         (float_abi_type): New Enum and EnumValue entries.
1626         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1627         (mfp16-format=): Use Enum and Init.
1628         (arm_fp16_format_type): New Enum and EnumValue entries.
1629         (mstructure-size-boundary=): Use UInteger and Init.
1630         (mtp=): Use Enum and Init.
1631         (arm_tp_type): New Enum and EnumValue entries.
1632
1633 2011-05-18  Richard Guenther  <rguenther@suse.de>
1634
1635         PR tree-optimization/49018
1636         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1637         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1638         gimple_has_side_effects.
1639
1640 2011-05-18  Richard Guenther  <rguenther@suse.de>
1641
1642         * gimple.c (gimple_register_type_1): New function, split out from ...
1643         (gimple_register_type): ... here.  Avoid infinite recursion.
1644
1645 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1646
1647         PR tree-optimization/41881
1648         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1649         reduction_chains along with a macro for its access.
1650         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1651         (destroy_loop_vec_info): Free reduction chains.
1652         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1653         (vect_is_slp_reduction): New function.
1654         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1655         (vect_create_epilog_for_reduction): Support SLP reduction chains.
1656         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1657         definition types for reduction chains.
1658         (vect_supported_load_permutation_p): Don't allow permutations for
1659         reduction chains.
1660         (vect_analyze_slp_instance): Support reduction chains.
1661         (vect_analyze_slp): Try to build SLP instance from reduction chains.
1662         (vect_get_constant_vectors):  Handle reduction chains.
1663         (vect_schedule_slp_instance): Mark the first statement of the
1664         reduction chain as reduction.
1665
1666 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1667
1668         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1669         names for group elements access.
1670         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1671         reduction chains as well.  Remove data reference and interleaving
1672         related words from the fields names.
1673         * tree-vect-loop.c (vect_transform_loop): Use new names for group
1674         elements access.
1675         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1676         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1677         vect_update_interleaving_chain, vect_same_range_drs,
1678         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1679         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1680         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1681         vect_analyze_group_access, vect_analyze_data_ref_access,
1682         vect_create_data_ref_ptr, vect_transform_strided_load,
1683         vect_record_strided_load_vectors): Likewise.
1684         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1685         vect_model_load_cost, vectorizable_store, vectorizable_load,
1686         vect_remove_stores, new_stmt_vec_info): Likewise.
1687         * tree-vect-slp.c (vect_build_slp_tree,
1688         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1689
1690 2011-05-18  Richard Guenther  <rguenther@suse.de>
1691
1692         PR middle-end/48989
1693         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1694         operand verification.
1695         (verify_gimple_assign_binary): Likewise.
1696         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1697         to non-1-precision BOOLEAN_TYPEs.
1698
1699 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1700
1701         PR target/45098
1702         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1703
1704 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1705
1706         PR tree-optimization/49000
1707         * tree-ssa.c (execute_update_addresses_taken): Call
1708         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1709         be rewritten and decl has been marked for renaming, reset
1710         the debug stmt.
1711
1712 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1713
1714         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1715         enum_opts_set when testing if attributes have set -mfpmath=.
1716
1717 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1718
1719         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1720
1721 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1722
1723         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1724         info->entry with 0
1725         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1726         id.transform_lang_insert_block with NULL.
1727
1728 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1729
1730         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1731         (output_fp_compare): Change args 3 and 4 to bool.
1732         (ix86_expand_call): Change arg 6 to bool.
1733         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1734         (ix86_attr_length_vex_default): Change arg 3 to bool.
1735         * config/i386/i386.md: Update all uses.
1736         * config/i386/i386.c: Ditto.
1737         (ix86_flags_dependent): Change return type to bool.
1738
1739 2011-05-17  Richard Guenther  <rguenther@suse.de>
1740
1741         * gimple.c (type_hash_pair_compare): Fix comparison.
1742
1743 2011-05-17  Richard Guenther  <rguenther@suse.de>
1744
1745         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1746         case some more, fix final hash value of the non-singleton case.
1747
1748 2011-05-17  Richard Guenther  <rguenther@suse.de>
1749
1750         PR bootstrap/49013
1751         Revert
1752         2011-05-16  Richard Guenther  <rguenther@suse.de>
1753
1754         * gimple.c (gimple_types_compatible_p_1): Use names of the
1755         type itself, not its main variant.
1756         (iterative_hash_gimple_type): Likewise.
1757
1758 2011-05-17  Richard Guenther  <rguenther@suse.de>
1759
1760         * gimple.c (gimple_register_canonical_type): Use the main-variant
1761         leader for computing the canonical type.
1762
1763 2011-05-17  Nick Clifton  <nickc@redhat.com>
1764
1765         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1766         moves.
1767
1768         * config/rx/rx.md: Add peephole to remove redundant extensions
1769         after loads.
1770         (bitset_in_memory): Use rx_restricted_mem_operand.
1771         (bitinvert_in_memory): Likewise.
1772         (bitclr_in_memory): Likewise.
1773
1774 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1775             Nick Clifton  <nickc@redhat.com>
1776
1777         * config/rx/rx.md: Add peepholes to match a register move followed
1778         by a comparison of the moved register.  Replace these with an
1779         addition of zero that does both actions in one instruction.
1780
1781 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1782
1783         PR target/48986
1784         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1785         predicate to allow CONST_INT.
1786         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1787
1788 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1789
1790         * opts-common.c (opt_enum_arg_to_value): New.
1791         * opts.h (opt_enum_arg_to_value): Declare.
1792         * config/i386/i386.opt (fpmath): Remove.
1793         (mfpmath=): Use Enum, Init and Save.
1794         (fpmath_unit): New Enum and EnumValue entries.
1795         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1796         name for function fpmath state.
1797         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1798         * config/i386/i386.c: Include diagnostic.h.
1799         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1800         (ix86_target_string): Take enum fpmath_unit value instead of string.
1801         (ix86_debug_options): Update call to ix86_target_string.
1802         (ix86_option_override_internal): Don't process fpmath strings here.
1803         (x86_function_specific_save, ix86_function_specific_restore):
1804         Don't handle fpmath state specially.
1805         (ix86_function_specific_print): Pass fpmath state to
1806         ix86_target_string instead of printing in this function.
1807         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1808         Handle enum attributes.
1809         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1810         (ix86_valid_target_attribute_tree): Update option_strings
1811         handling.  Handle fpmath as enum option.
1812         (ix86_can_inline_p): Update field names for function fpmath state.
1813         (ix86_expand_builtin): Update call to ix86_target_string.
1814         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1815         (ix86_fpmath): Remove.
1816         * config/i386/t-i386 (i386.o): Update dependencies.
1817
1818 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1819
1820         PR preprocessor/48677
1821         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1822         from decoded_options[0], not from itself.
1823
1824 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1825
1826         * config/i386/constraints.md (z): New constraint.
1827         * config/i386/i386.c (c): New mode attribute.
1828         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1829         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1830         constraint for operand 0.
1831         (*call_vzeroupper): Ditto.
1832         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1833         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1834         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1835         Use "lzm" constraint for operand 0.
1836         (*call_pop_vzeroupper): Ditto.
1837         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1838         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1839         constraint for operand 0.
1840         (*sibcall_vzeroupper): Ditto.
1841         (*sibcall_rex64_ms_sysv): Ditto.
1842         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1843         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1844         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1845         (*sibcall_pop_vzeroupper): Ditto.
1846         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1847         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1848         mode iterator.  Use "<c>zm" constraint for operand 1.
1849         (*call_value_vzeroupper): Ditto.
1850         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1851         for operand 1.
1852         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1853         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1854         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1855         (*call_value_pop_vzeroupper): Ditto.
1856         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1857         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1858         mode iterator.  Use "Uz" constraint for operand 1.
1859         (*sibcall_value_vzeroupper): Ditto.
1860         (*sibcall_value_rex64_ms_sysv): Ditto.
1861         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1862         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1863         constraint for operand 1.
1864         (*sibcall_value_pop_vzeroupper): Ditto.
1865         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1866         and "z" constraint for operand 2.
1867         (*tls_global_dynamic_32_gnu): Ditto.
1868         (*tls_local_dynamic_base_32_gnu): Ditto.
1869         (*tls_local_dynamic_base_64): Ditto.
1870         (*tls_local_dynamic_32_once): Ditto.
1871         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1872         Update all callers.
1873         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1874
1875 2011-05-16  Richard Guenther  <rguenther@suse.de>
1876
1877         * gimple.c (gimple_types_compatible_p_1): Use names of the
1878         type itself, not its main variant.
1879         (iterative_hash_gimple_type): Likewise.
1880
1881 2011-05-16  Richard Guenther  <rguenther@suse.de>
1882
1883         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1884         always visit pointer target and function result and argument types.
1885
1886 2011-05-16  Jason Merrill  <jason@redhat.com>
1887
1888         PR c++/48999
1889         * tree-inline.c (copy_statement_list): Put back recursion.
1890
1891 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1892
1893         PR target/27663
1894         PR target/41076
1895         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1896         * config/avr/avr.md ("*ior<mode>qi.byte0",
1897         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1898
1899 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1900
1901         PR target/45099
1902         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1903         register is needed for a function argument.
1904
1905 2011-05-16  Richard Guenther  <rguenther@suse.de>
1906
1907         * gimple.c (struct type_hash_pair): New type.
1908         (type_hash_pair_compare): New function.
1909         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1910
1911 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1912
1913         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1914
1915 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1916
1917         * config/i386/i386.md (floating point move splitters): Fix
1918         usage of standard_80387_constant_p.
1919         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1920
1921 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1922
1923         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1924
1925 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1926
1927         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1928         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1929         (tree_ssa_lim_finalize): Likewise.
1930
1931 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1932
1933         * config/i386/constraint.md (Yd, Yx): New register constraints.
1934         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1935         Yd conditional register constraint.
1936         (*movtf_internal): Use standard_sse_constant_opcode.
1937         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1938         Yx conditional register constraint.
1939         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1940         Yd conditional register constraint.  Use standard_sse_constant_p to
1941         check for valid SSE constants and call standard_sse_constant_opcode to
1942         output SSE insn.
1943         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1944         constants and call standard_sse_constant_opcode to output SSE insn.
1945         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1946         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1947         optimize_size is set.
1948         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1949
1950 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1951
1952         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1953
1954 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1955
1956         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1957         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1958         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1959         (evaluate_conditions_for_ipcp_clone): Removed.
1960         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1961         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1962         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1963
1964 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1965
1966         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1967         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1968         lieu of MAY_HAVE_DEBUG_STMTS.
1969         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1970         debug statements if !MAY_HAVE_DEBUG_STMTS.
1971
1972 2011-05-13  Martin Thuresson  <martint@google.com>
1973
1974         PR gcov-profile/47793
1975         * libgcov.c (gcov_exit): Support relative profile paths.
1976         * doc/invoke.texi (-fprofile-dir): Update for above change.
1977
1978 2011-05-13  Richard Guenther  <rguenther@suse.de>
1979
1980         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1981         type-pair caching, do not compare hashes.
1982
1983 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1984
1985         PR middle-end/48965
1986         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1987         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1988
1989 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1990
1991         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1992         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1993         compatible type for TRUTH_NOT_EXPR.
1994
1995 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1996
1997         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1998         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1999         can_create_pseudo_p ().
2000
2001 2011-05-13  Richard Guenther  <rguenther@suse.de>
2002
2003         PR lto/48978
2004         * gimple.c (iterative_hash_gimple_type): Revert change in
2005         pointer target and function result and argument hashing.
2006
2007 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
2008
2009         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2010         (*movxf_internal_nointeger): Ditto.
2011         (*movdf_internal_rex64): Ditto.
2012         (*movdf_internal): Ditto.
2013         (*movdf_internal_nointeger): Ditto.
2014         (*movsf_internal): Ditto.
2015         (sincos splitters): Use can_create_pseudo ().
2016
2017 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
2018
2019         * config/i386/i386-opts.h: New.
2020         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2021         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2022         ix86_section_threshold): Remove.
2023         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
2024         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2025         OPT_mbranch_cost_.
2026         (ix86_option_override_internal): Don't decode strings for options
2027         other than -march=, -mtune= and -mfpmath=.  Don't allow for
2028         __attribute__ uses in remaining diagnostics for options with
2029         string arguments.  Don't check for integer arguments being negative.
2030         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2031         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2032         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2033         ix86_branch_cost, ix86_section_threshold): Remove.
2034         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2035         HeaderInclude.
2036         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2037         but not Var.
2038         (masm=): Use Enum and Init.
2039         (asm_dialect): New Enum and EnumValue entries.
2040         (mbranch-cost=): Use UInteger.
2041         (mlarge-data-threshold=): Use UInteger and Init.
2042         (mcmodel=): Use Enum and Init.
2043         (cmodel): New Enum and EnumValue entries.
2044         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2045         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2046         mregparm=): Use UInteger.
2047         (mstringop-strategy=): Use Enum and Init.
2048         (stringop_alg): New Enum and EnumValue entries.
2049         (mtls-dialect=): Use Enum and Init.
2050         (tls_dialect): New Enum and EnumValue entries.
2051         (mabi=): Use Enum and Init.
2052         (calling_abi): New Enum and EnumValue entries.
2053         (mveclibabi=): Use Enum and Init.
2054         (ix86_veclibabi): New Enum and EnumValue entries.
2055
2056 2011-05-13  Nick Clifton  <nickc@redhat.com>
2057
2058         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2059         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2060
2061 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2062
2063         PR middle-end/48984
2064         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2065         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2066         (gimple_boolify): Check for cast for boolean_type_node instead for
2067         BOOLEAN_TYPE.
2068
2069 2011-05-13  Richard Guenther  <rguenther@suse.de>
2070
2071         PR tree-optimization/48172
2072         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2073         multiplying by number of iterations for equal step.
2074         (vect_create_cond_for_alias_checks): Likewise.
2075
2076 2011-05-13  Andreas Schwab  <schwab@redhat.com>
2077
2078         * configure.ac: Use AS_HELP_STRING throughout.
2079         * configure: Regenerate.
2080
2081 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2082
2083         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2084         (ix86_emit_restore_regs_using_mov): Likewise.
2085         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2086
2087 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
2088
2089         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2090         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2091         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2092         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2093         RTX_OK_FOR_OLO10_P): ...here.
2094         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2095         SYMBOLIC_CONST.
2096
2097 2011-05-12  Kai Tietz  <ktietz@redhat.com>
2098
2099         * gimplify.c (gimple_boolify): Re-boolify expression
2100         arguments even if expression type is of kind BOOLEAN_TYPE.
2101         (gimplify_boolean_expr): Removed.
2102         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2103         and XOR. Additional take care that we keep expression's type.
2104         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2105         of TRUTH_AND|OR|XOR_EXPR.
2106
2107 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2108
2109         PR tree-optimization/48975
2110         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2111         on all bbs here and free and clear ifc_bbs at the end.
2112
2113 2011-05-12  Richard Guenther  <rguenther@suse.de>
2114
2115         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2116         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
2117         until after simple checks.
2118         (gimple_types_compatible_p): Likewise.
2119         (iterative_hash_gimple_type): Always hash pointer targets
2120         and function return and argument types.
2121         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2122         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
2123         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2124         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
2125         completely in the simple compare section.
2126         (gimple_register_canonical_type): Query the cache again after
2127         registering.
2128
2129 2011-05-12  Richard Guenther  <rguenther@suse.de>
2130
2131         PR tree-optimization/48172
2132         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2133         the number of iterations from the segment size calculation.
2134         (vect_create_cond_for_alias_checks): Adjust.
2135
2136 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2137
2138         PR debug/48967
2139         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2140         if validate_subreg fails.
2141
2142 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
2143
2144         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2145         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2146         early.
2147
2148 2011-05-12  DJ Delorie  <dj@redhat.com>
2149
2150         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2151         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2152         created builtin into rx_builtins array.
2153         (rx_builtin_decl): New function.
2154         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
2155
2156 2011-05-12  DJ Delorie  <dj@redhat.com>
2157             Nick Clifton  <nickc@redhat.com>
2158
2159         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2160         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2161         (rx_is_legitimate_address): Add pre-decrement and post-increment
2162         addressing in HImode and QImode.  Fix test for out of range
2163         REG+INT addressing.
2164         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2165         (rx_align_for_label): Test label before extracting its usage count.
2166         (rx_adjust_insn_lengths): Fix selection of insn codes.
2167         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2168
2169 2011-05-11  Jason Merrill  <jason@redhat.com>
2170
2171         * tree.c (type_hash_canon): Use struct tree_type_non_common.
2172
2173 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2174
2175         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2176         reindent the subsequent block.
2177
2178 2011-05-11  Satoru Takabayashi  <satorux@google.com>
2179             Paul Pluzhnikov  <ppluzhnikov@google.com>
2180
2181         * doc/install.texi (Configuration): Document --with-linker-hash-style.
2182         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2183         * config.in: Add LINKER_HASH_STYLE.
2184         * configure.ac: Add --with-linker-hash-style.
2185         * configure: Regenerate.
2186
2187 2011-05-11  Richard Guenther  <rguenther@suse.de>
2188
2189         PR middle-end/48964
2190         * gimple.c (iterative_hash_canonical_type): Fix typo.
2191
2192 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
2193
2194         * config/i386/i386.c (legitimize_tls_address)
2195         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2196         expanders directly for TARGET_GNU2_TLS.  Determine pic and
2197         __tls_get_addr symbol reference here.  Update call to
2198         gen_tls_global_dynamic_{32,64} for added arguments.
2199         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2200         expanders directly for TARGET_GNU2_TLS.  Determine
2201         __tls_get_addr symbol reference here.  Update call to
2202         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
2203         unique UNSPEC REG_EQUIV to libcall block.
2204         (ix86_tls_get_addr): Declare static.
2205         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2206         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2207         Do not determine pic and __tls_get_addr symbol reference here. Do not
2208         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2209         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2210         (tls_global_dynamic_64): Add operand 2.  Do not determine
2211         __tls_get_addr symbol reference here.  Do not call
2212         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2213         (tls_local_dynamic_base64): Ditto for operand 1.
2214
2215 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2216
2217         * function.c (expand_function_start): Initialize stack_check_probe_note
2218         only if the generic stack checking mechanism is used.
2219
2220 2011-05-11  Richard Guenther  <rguenther@suse.de>
2221
2222         PR tree-optimization/15256
2223         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2224         (A & B) | C, combine (A op CST1) op CST2.
2225         (tree_ssa_forward_propagate_single_use_vars): Only bother to
2226         visit assigns that have uses.
2227
2228 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
2229
2230         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2231         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2232         (unpack_ts_type_common_value_fields): ...this.  Update comment.
2233         (unpack_value_fields): Adjust for renaming.
2234         (lto_input_ts_type_tree_pointers): Split into...
2235         (lto_input_ts_type_common_tree_pointer): ...this and...
2236         (lto_input_ts_type_non_common_tree_pointers): ...this.
2237         (lto_input_tree_pointers): Adjust for above split.
2238         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2239         (pack_ts_type_common_value_fields): ...this.  Update comment.
2240         (lto_output_ts_type_tree_pointers): Split into...
2241         (lto_output_ts_type_common_tree_pointers): ...this and...
2242         (lto_output_ts_type_non_common_tree_pointers): ...this.
2243         (lto_output_tree_pointers): Adjust for above split.
2244         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2245         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2246         * stor-layout.c (vector_type_mode): Adjust location of mode field.
2247         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2248         Define.
2249         (struct tree_type): Split into...
2250         (struct tree_type_common: ...this and...
2251         (struct tree_type_with_lang_specific): ...this and...
2252         (struct tree_type_non_common): ...this.  Adjust accessor macros
2253         accordingly.
2254         (TYPE_VALUES_RAW): Define.
2255         (union tree_node): Update for above changes.
2256         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2257         TS_TYPE_NON_COMMON.
2258         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2259         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2260         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2261         * treestructu.def (TS_TYPE): Remove.
2262         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2263         Define.
2264
2265 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
2266
2267         PR debug/48159
2268         * tree-ssa.c (reset_debug_uses): New function.
2269         * tree-flow.h (reset_debug_uses): New prototype.
2270         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2271         * tree-loop-distribution.c (generate_loops_for_partition): Call
2272         reset_debug_uses on the stmts that will be removed.  Keep around
2273         all debug stmts, don't count them as bits in partition bitmap.
2274         (generate_builtin): Don't count debug stmts or labels as bits in
2275         partition bitmap.
2276
2277 2011-05-11  Richard Guenther  <rguenther@suse.de>
2278
2279         * gimple.c (gimple_type_hash_1): Merge with ...
2280         (gimple_type_hash): ... this.
2281         (gtc_visit): Remove mode parameter and simplify accordingly.
2282         (gimple_types_compatible_p_1): Likewise.
2283         (gimple_types_compatible_p): Likewise.
2284         (iterative_hash_gimple_type): Likewise.
2285         (visit): Likewise.
2286         (gimple_type_eq): Adjust.
2287
2288 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2289
2290         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2291         enters the branch create an anti edge in the opposite direction
2292         to prevent the creation of reg-moves.
2293         * modulo-sched.c: Adjust comment to reflect the fact we are
2294         scheduling closing branch.
2295         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2296         (stage_count): New field in struct partial_schedule.
2297         (calculate_stage_count): New function.
2298         (normalize_sched_times): Rename to reset_sched_times and handle
2299         incrementing the sched time of the nodes by a constant value
2300         passed as parameter.
2301         (duplicate_insns_of_cycles): Skip closing branch.
2302         (sms_schedule_by_order): Schedule closing branch.
2303         (ps_insn_find_column): Handle closing branch.
2304         (sms_schedule): Call reset_sched_times and adjust the code to
2305         support scheduling of the closing branch.
2306         (ps_insert_empty_row): Update calls to normalize_sched_times
2307         and rotate_partial_schedule functions.
2308
2309 2011-05-11  Richard Guenther  <rguenther@suse.de>
2310
2311         PR middle-end/48953
2312         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2313
2314 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
2315
2316         * opts.c (finish_options): Move warning settings from process_options.
2317         * toplev.c (process_options): Move warning settings to finish_options.
2318
2319 2011-05-11  Richard Guenther  <rguenther@suse.de>
2320
2321         PR tree-optimization/18041
2322         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2323         (simplify_bitwise_binary): ... this.  Handle operand conversions
2324         by applying them to the result instead.
2325         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
2326
2327 2011-05-11  Richard Guenther  <rguenther@suse.de>
2328
2329         * gimple.c (gimple_canonical_types_compatible_p): Split out
2330         from gimple_types_compatible_p and friends.  Do not recurse
2331         to pointed-to types.
2332         (gimple_canonical_type_eq): Use it.
2333         (iterative_hash_canonical_type): Split out from
2334         iterative_hash_gimple_type and friends.  Do not recurse
2335         to pointed-to types.
2336         (gimple_canonical_type_hash): Use it, allocate the hash here.
2337
2338 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2339
2340         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2341         recognizing doloop.
2342
2343 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2344
2345         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2346         instead of PREV_INSN.
2347
2348 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2349
2350         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2351         * loop-doloop.c (doloop_condition_get): Likewise.
2352         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2353         (doloop_end): New.
2354         * config/arm/arm.md (*addsi3_compare0): Remove "*".
2355
2356 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
2357
2358         * tree.def (CASE_LABEL_EXPR): Add an operand.
2359         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2360
2361 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2362
2363         * c-decl.c (c_override_global_bindings_to_false): Remove.
2364         (global_bindings_p): Don't check
2365         c_override_global_bindings_to_false.
2366         * c-tree.h (c_override_global_bindings_to_false): Remove.
2367         * c-typeck.c (composite_type): Don't set
2368         c_override_global_bindings_to_false.
2369
2370 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2371
2372         PR target/48857, 48495
2373         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2374         (VSX_MODE): Ditto.
2375         (VSX_MOVE_MODE): Ditto.
2376         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2377         VSX vector types.  Add V2DImode.
2378         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2379         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2380         (MODES_TIEABLE_P): Ditto.
2381
2382         * config/rs6000/rs6000.c (rs6000_emit_move): Use
2383         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2384         VSX_VECTOR_MODE.
2385         (init_cumulative_args): Ditto.
2386         (rs6000_function_arg_boundary): Ditto.
2387         (rs6000_function_arg_advance_1): Ditto.
2388         (rs6000_function_arg): Ditto.
2389         (rs6000_function_ok_for_sibcall): Ditto.
2390         (emit_frame_save): Ditto.
2391         (rs6000_function_value): Ditto.
2392         (rs6000_libcall_value): Ditto.
2393
2394 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2395
2396         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2397         i386/darwin-lib.h to $libgcc_tm_file.
2398         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2399
2400 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2401
2402         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2403
2404 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2405
2406         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2407         * config/rs6000/rs6000-tables.opt: New file (generated).
2408         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2409         rs6000/rs6000-tables.opt to extra_options.
2410         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2411         * config/rs6000/rs6000.c (rs6000_select): Remove.
2412         (processor_target_table): Move contents to rs6000-cpus.def.
2413         (darwin_rs6000_override_options): Check
2414         global_options_set.x_rs6000_cpu_index instead of
2415         rs6000_select[1].string.
2416         (rs6000_option_override_internal): Likewise.
2417         (rs6000_handle_option): Don't assert that global structures are in
2418         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
2419         (rs6000_default_cpu): New variable.
2420         (rs6000_file_start): Set it instead of local default_cpu.  Check
2421         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2422         global_options_set.x_rs6000_tune_index instead of rs6000_select.
2423         (rs6000_darwin_file_start): Check rs6000_default_cpu and
2424         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2425         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2426         rs6000_select): Remove.
2427         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2428         Remove.
2429         (mcpu=, mtune=): Use Var, Init, Enum and Save.
2430         * config/rs6000/t-rs6000
2431         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2432         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2433         global_options_set.x_rs6000_cpu_index instead of
2434         rs6000_select[1].string.
2435         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2436         global_options_set.x_rs6000_cpu_index instead of
2437         rs6000_select[1].string.
2438
2439 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2440
2441         * config.gcc (libgcc_tm_file): Define instead of including files
2442         from ../../libgcc/config/ in tm_file.
2443         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2444         * configure: Regenerate.
2445         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2446         libgcc_tm.h, cs-libgcc_tm.h): New.
2447         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2448         (clean): Remove libgcc_tm.h.
2449         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2450         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2451         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2452
2453 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
2454
2455         PR target/48896
2456         * config/avr/avr.c (avr_ret_register): Return unsigned int
2457         instead of int.
2458         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2459         it to avr_libcall_value.
2460         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2461         expand_expr.
2462         (avr_expand_binop_builtin): Ditto.
2463         (avr_expand_unop_builtin): Ditto.
2464
2465 2011-05-10  DJ Delorie  <dj@redhat.com>
2466
2467         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2468         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2469         * config/rx/rx.c (rx_align_for_label): Add label and
2470         uses_threshold parameters.  Do not align when the label is not
2471         used enough.
2472         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2473
2474 2011-05-10  Richard Guenther  <rguenther@suse.de>
2475
2476         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2477         a series of conversions and apply foldings similar to what
2478         fold-const does.
2479         (tree_ssa_forward_propagate_single_use_vars): Call it.
2480
2481 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
2482
2483         PR tree-optimization/48611
2484         PR tree-optimization/48794
2485         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2486         referenced from RESX or EH_DISPATCH arguments.
2487
2488         PR debug/48928
2489         * dfp.c (decimal_to_decnumber): Handle conversion from
2490         dconst{1,2,m1,half}.
2491
2492 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2493
2494         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2495         for !flag_prefer_avx128.
2496         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2497
2498 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2499
2500         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2501         (fold_ternary_loc): Use expr_location_or.
2502
2503 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         PR debug/48853
2506         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2507         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2508         Pmode and mem_mode is not VOIDmode.
2509
2510 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
2511
2512         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2513         TYPE_QUAL_RESTRICT): Convert to enum.
2514
2515 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2516
2517         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2518         (const_pow2_1_to_8_operand): Ditto.
2519         (const_pow2_1_to_128_operand): Ditto.
2520         (const_pow2_1_to_32768_operand): Ditto.
2521         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2522         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
2523         in insn constraint to check integer value of operand 3.
2524         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2525
2526         (PINSR_MODE): New mode iterator.
2527         (sse2p4_1): New mode attribute.
2528         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2529         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2530         iterator.  Use const_int_operand instead of
2531         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
2532         exact_log2 in insn constraint to check integer value of operand 3.
2533
2534 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2535
2536         * config/i386/sse.md (blendbits): Remove mode attribute.
2537         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2538         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2539         Check integer value of operand 3 in insn constraint.
2540
2541 2011-05-09  Richard Guenther  <rguenther@suse.de>
2542
2543         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2544         for diagnostics.
2545         (lto_symtab_merge): Likewise.  Do not register types here.
2546         (lto_symtab_merge_decls_2): Likewise.
2547         (lto_symtab_merge_decls_1): Likewise.
2548         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2549         * gimple.c (enum gtc_mode): Declare.
2550         (gimple_types_compatible_p): Make static.
2551
2552 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2553
2554         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2555         temporary register to match Pmode.
2556
2557 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2558
2559         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2560         and *vec_concatv4si_1_avx.
2561
2562 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2563
2564         PR rtl-optimization/48927
2565         * ira-conflicts.c (commutative_constraint_p): Use
2566         recog_data.alternative_enabled_p to disable alternatives where
2567         "enabled" attribute is false.
2568         (get_dup_num): Ditto.
2569         * ira-lives.c (single_reg_class): Ditto.
2570         (ira_implicitly_set_insn_hard_regs): Ditto.
2571
2572 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2573
2574         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2575         (dataflow_set_preserve_mem_locs): Likewise.
2576
2577 2011-05-09  Philipp Thomas  <pth@suse.de>
2578
2579         * config/mep/mep.c (mep_validate_vliw): Syntax description
2580         should not be translated.
2581
2582 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2583
2584         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2585         * config/mips/mips-tables.opt: New file (generated).
2586         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2587         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2588         MIPS_ARCH_OPTION_NATIVE): Define.
2589         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2590         mips-cpus.def.
2591         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2592         mips_parse_cpu): Remove.
2593         (mips_cpu_info_from_opt, mips_default_arch): New.
2594         (mips_handle_option): Don't assert that global structures are in
2595         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2596         (mips_option_override): Use new variables and functions to set
2597         state of these options.  Use strcmp to check for individual CPU names.
2598         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2599         definition.
2600         * config/mips/mips.opt (march=): Use ToLower and Enum.
2601         (mips): Use ToLower, Enum and Var.
2602         (mtune=): Use ToLower and Enum.
2603         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2604
2605 2011-05-08  Jan Hubicka  <jh@suse.cz>
2606
2607         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2608         Arrange type pairs to be UID ordered.
2609         (gimple_lookup_type_leader): Make inline.
2610
2611 2011-05-09  Nick Clifton  <nickc@redhat.com>
2612
2613         PR target/48899
2614         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2615         PROCESSOR_DEFAULT.
2616
2617         PR target/48897
2618         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2619         variable 's'.
2620
2621 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2622
2623         * combine.c (simplify_comparison): Abstract out parts into...
2624         (simplify_compare_const): ... new function.
2625         (try_combine): Generalize parallel arithmetic/compare combining
2626         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2627
2628 2011-05-08  Jan Hubicka  <jh@suse.cz>
2629
2630         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2631         (cgraph_create_virtual_clone): Call hooks once virtual clone
2632         is finished.
2633         * cgraph.h (cgraph_clone_node): Update prototype.
2634         * ipa-cp.c (ipcp_estimate_growth): Use
2635         estimate_ipcp_clone_size_and_time.
2636         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2637         * lto-cgraph.c (input_node): Update.
2638         * ipa-inline.c (recursive_inlining): Update.
2639         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2640         (evaluate_conditions_for_known_args): Break out from ...
2641         (evaluate_conditions_for_edge): ... here.
2642         (evaluate_conditions_for_ipcp_clone): New function.
2643         (inline_node_duplication_hook): Update clone summary based
2644         on parameter map.
2645         (estimate_callee_size_and_time): Rename to ...
2646         (estimate_node_size_and_time): take NODE instead of EDGE;
2647         take POSSIBLE_TRUTHS as argument.
2648         (estimate_callee_size_and_time): Update.
2649         (estimate_ipcp_clone_size_and_time): New function.
2650         (do_estimate_edge_time): Update.
2651
2652 2011-05-08  Richard Guenther  <rguenther@suse.de>
2653
2654         PR middle-end/48908
2655         PR middle-end/48905
2656         * expmed.c (expand_shift_1): Compute adjusted constant shift
2657         amount manually.
2658
2659 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2660
2661         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2662
2663 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2664
2665         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2666
2667 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
2668
2669         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2670
2671 2011-05-07  Jan Hubicka  <jh@suse.cz>
2672
2673         * ipa-inline-transform.c (inline_call): Account when program size
2674         decreases.
2675         * ipa-inline.c (relative_time_benefit): New function.
2676         (edge_badness): Reorganize to be power 2 based; fix thinko when
2677         computing badness for negative growth; update comments to match
2678         reality; better dumps.
2679
2680 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2681
2682         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2683         type to bool and adjust comment.
2684         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2685         (fold_mathfn_compare): Remove calls to global_bindings_p.
2686         (fold_inf_compare): Likewise.
2687         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2688         * c-tree.h (global_bindings_p): Adjust prototype.
2689         * c-decl.c (global_bindings_p): Return bool and simplify.
2690
2691 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2692
2693         PR tree-optimization/48837
2694         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2695         when accumulator transformation is performed.
2696
2697 2011-05-06  Jan Hubicka  <jh@suse.cz>
2698
2699         * i386.h (ix86_tune_indices): Add
2700         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2701         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2702         * i386.c (initial_ix86_tune_features): Add
2703         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2704         (software_prefetching_beneficial_p): Remove predicate.
2705         (ix86_option_override_internal): Use new macro.
2706
2707 2011-05-06  Jan Hubicka  <jh@suse.cz>
2708
2709         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2710
2711 2011-05-06  Jan Hubicka  <jh@suse.cz>
2712
2713         * cgraph.c (cgraph_add_thunk): Create real function node instead
2714         of alias node; finalize it and mark needed/reachale; arrange visibility
2715         to be right and add it into the corresponding same comdat group list.
2716         (dump_cgraph_node): Dump thunks.
2717         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2718         cgraph_function_with_gimple_body_p,
2719         cgraph_first_function_with_gimple_body,
2720         cgraph_next_function_with_gimple_body): New functions.
2721         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2722         New macros.
2723         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2724         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2725         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2726         devirtualization when optimizing.
2727         (verify_cgraph_node): Verify thunks.
2728         (cgraph_analyze_function): Analyze thunks.
2729         (cgraph_mark_functions_to_output): Output thunks only in combination
2730         with function they are assigned to.
2731         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2732         alias into normal node.
2733         (assemble_thunks): New functoin.
2734         (cgraph_expand_function): Use it.
2735         * lto-cgraph.c (lto_output_node): Stream thunks.
2736         (input_overwrite_node): Stream in thunks.
2737         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2738         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2739         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2740         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2741         (inline_analyze_function): Do not care about thunk jump functions.
2742         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2743         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2744         cgraph_function_with_gimple_body_p.
2745         * passes.c (do_per_function_toporder): Use
2746         cgraph_function_with_gimple_body_p.
2747         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2748         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2749         (function_called_by_processed_nodes_p): Likewise.
2750
2751 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2752
2753         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2754         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2755         entries.
2756         (mabi=): Replace with separate entries for mabi=altivec,
2757         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2758         mabi=ieeelongdouble and mabi=ibmlongdouble.
2759         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2760         check for -mabi=spe without SPE ABI support here.
2761         (rs6000_handle_option): Replace OPT_mabi_ handling with
2762         OPT_mabi_altivec and OPT_mabi_spe handling.
2763
2764 2011-05-06  Cary Coutant  <ccoutant@google.com>
2765
2766         * dwarf2out.c (contains_subprogram_definition): New function.
2767         (should_move_die_to_comdat): Call it.
2768
2769 2011-05-06  Jeff Law  <law@redhat.com>
2770
2771         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2772         remove_ctrl_stmt_and_useless_edges.
2773         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2774         (fixup_template_block, thread_single_edge): Likewise.
2775         (mark_threaded_blocks): Use THREAD_TARGET.
2776
2777 2011-05-06  Alan Modra  <amodra@gmail.com>
2778
2779         PR target/48900
2780         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2781         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2782
2783 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2784
2785         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2786         constraint modifier to "r".
2787
2788 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2789
2790         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2791         fall through for OPT_mcmodel_.
2792
2793 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2794
2795         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2796         instruction sizes.
2797         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2798
2799 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2800
2801         PR target/47930
2802         * config/arm/arm.opt (marm): Document it.
2803         (mthumb): Reject negative variant.
2804
2805 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2806
2807         PR target/48898
2808         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2809         Fix typo in "ccvt" variable name.
2810
2811 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2812
2813         PR target/48895
2814         * config/vms/vms-ar.c (main): Remove cwd variable.
2815
2816 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2817
2818         PR debug/48902
2819         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2820
2821 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2822
2823         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2824         * gimplify.c (gimplify_switch_expr): Likewise.
2825         * omp-low.c (expand_omp_sections): Likewise.
2826         * tree-eh.c (lower_try_finally_switch): Likewise.
2827         (lower_eh_dispatch): Likewise.
2828         * tree.h (build_case_label): Declare.
2829         * tree.c (build_case_label): Define.
2830
2831 2011-05-05  Jason Merrill  <jason@redhat.com>
2832
2833         PR c++/40975
2834         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2835         (copy_statement_list): Don't recurse.
2836         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2837         STATEMENT_LIST.
2838
2839 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2840
2841         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2842         through from -mfpu= handling.
2843         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2844
2845 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2846
2847         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2848         POST_MODIFY.
2849
2850 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2851
2852         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2853         for 11.31.
2854         (hppa[12]*-*-hpux11*): Ditto.
2855         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2856         * config/ia64/hpux-unix2003.h: New.
2857         * config/pa/pa-hpux1131.opt: New.
2858         * config/pa/pa-hpux1131.h: New.
2859         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2860         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2861         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2862
2863 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2864
2865         PR debug/48853
2866         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2867         instead of mode as 3rd argument to recursive call.
2868         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2869         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2870         VOIDmode.
2871         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2872         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2873         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2874         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2875
2876 2011-05-05  Julian Brown  <julian@codesourcery.com>
2877
2878         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2879         parenthesis in D-register case.
2880
2881 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2882
2883         * opt-functions.awk (var_type_struct): Handle Enum options.
2884         * optc-gen.awk: Don't check range of variables of character type.
2885         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2886         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2887         rs6000_sdata_name, rs6000_explicit_options): Remove.
2888         (rs6000_option_override_internal): Check for -malign-power here.
2889         Use global_options_set instead of rs6000_explicit_options.
2890         (rs6000_parse_fpu_option): Remove.
2891         (rs6000_handle_option): Access variables via opts and opts_set
2892         pointers.  Use error_at and warning_at.  Add fall-through
2893         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2894         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2895         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2896         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2897         here.  Don't use rs6000_parse_fpu_option.
2898         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2899         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2900         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2901         (mrecip=): Use Var.
2902         (mspe): Use Var and Save.
2903         (mtraceback=): Use Enum and Var.
2904         (rs6000_traceback_type): New Enum and EnumValue entries.
2905         (mfloat-gprs=): Use Enum, Var and Save.
2906         (rs6000_float_gprs): New Enum and EnumValue entries.
2907         (mlong-double-): use Var and Save.
2908         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2909         (malign-): Use Enum and Var.
2910         (rs6000_alignment_flags): New Enum and EnumValue entries.
2911         (mfpu=): Use Enum.
2912         (fpu_type_t): New Enum and EnumValue entries.
2913         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2914         global_options_set instead of rs6000_explicit_options.
2915         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2916         global_options_set instead of rs6000_explicit_options.
2917         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2918         global_options_set instead of rs6000_explicit_options.
2919         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2920         global_options_set instead of rs6000_explicit_options.
2921         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2922         global_options_set instead of rs6000_explicit_options.
2923         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2924         global_options_set instead of rs6000_explicit_options.
2925         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2926         definition.
2927         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2928         global_options_set instead of rs6000_explicit_options.
2929         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2930         (rs6000_cmodel): New Enum and EnumValue entries.
2931         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2932         global_options_set instead of rs6000_explicit_options.
2933         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2934         (mtls-size=): Use Enum and Var.
2935         (rs6000_tls_size): New Enum and EnumValue entries.
2936
2937 2011-05-05  Michael Matz  <matz@suse.de>
2938
2939         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2940         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2941         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2942         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2943         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2944         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2945         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2946         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2947         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2948         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2949         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2950         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2951         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2952         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2953         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2954         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2955
2956 2011-05-05  Richard Guenther  <rguenther@suse.de>
2957
2958         * expmed.c (expand_variable_shift): Rename to ...
2959         (expand_shift_1): ... this.  Take an expanded shift amount.
2960         For rotates recurse directly not building trees for the shift amount.
2961         (expand_variable_shift): Wrap around expand_shift_1.
2962         (expand_shift): Adjust.
2963
2964 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2965
2966         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2967
2968 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2969
2970         * tree.h (get_pending_sizes): Remove prototype.
2971         (put_pending_size): Likewise.
2972         (put_pending_sizes): Likewise.
2973         * stor-layout.c (pending_sizes): Delete.
2974         (get_pending_sizes): Likewise.
2975         (put_pending_size): Likewise.
2976         (put_pending_sizes): Likewise.
2977         (variable_size): Do not call put_pending_size and tidy up.
2978         * function.h (struct function): Remove dont_save_pending_sizes_p.
2979         * lto-streamer-in.c (input_function): Do not stream it.
2980         * lto-streamer-out.c (output_function): Likewise.
2981         * tree-inline.c (initialize_cfun): Do not copy it.
2982         * c-decl.c (store_parm_decls): Do not set it.
2983         * omp-low.c (create_task_copyfn): Likewise.
2984         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2985
2986 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2987
2988         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2989         conditions.
2990         (*movdf_internal): Ditto.
2991         (*movdf_internal_nointeger): Ditto.
2992         (*movsf_internal): Ditto.
2993
2994 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2995
2996         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2997         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2998         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2999         (c_variable_size): Remove.
3000         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
3001         call put_pending_sizes.
3002         (get_parm_info): Add parameter expr.  Use it to set
3003         arg_info->pending_sizes.
3004         (store_parm_decls): Use arg_info->pending_sizes instead or calling
3005         get_pending_sizes.
3006         * c-parser.c (c_parser_parms_declarator): Update call to
3007         c_parser_parms_list_declarator.
3008         (c_parser_parms_list_declarator): Take parameter expr.  Update
3009         call to push_parm_decl.  Update recursive call.  Don't call
3010         get_pending_sizes.  Update calls to get_parm_info.
3011         (c_parser_objc_method_definition): Update calls to
3012         c_parser_objc_method_decl and objc_start_method_definition.
3013         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3014         (c_parser_objc_method_decl): Add parameter expr.  Update call to
3015         grokparm.
3016         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3017         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3018         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3019
3020 2011-05-05  Michael Hope  <michael.hope@linaro.org>
3021
3022         PR pch/45979
3023         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3024         __ARM_EABI__ hosts.
3025
3026 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3027
3028         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3029         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3030         (spu_output_mi_thunk): New function.
3031
3032 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3033
3034         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3035         targetm.asm_out.print_operand.
3036         * config/sol2.c: Include target.h.
3037
3038 2011-05-04  Jan Hubicka  <jh@suse.cz>
3039
3040         * ipa-inline.c (reset_edge_caches): New function.
3041         (update_caller_keys): Add check_inlinablity_for; do not
3042         reset edge caches; remove now unnecesary loop.
3043         (update_callee_keys): Add comments; reset node_growth_cache of callee.
3044         (update_all_callee_keys): Likewise.
3045         (inline_small_functions): Sanity check cache; update code
3046         recomputing it.
3047
3048 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
3049
3050         PR rtl-optimization/47612
3051         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3052         as the last insn of the sequence to be moved.
3053
3054 2011-05-04  Tobias Burnus  <burnus@net-b.de>
3055
3056         PR fortran/48864
3057         * doc/invoke.texi (Ofast): Document that it
3058         enables Fortran's -fno-protect-parens.
3059
3060 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
3061
3062         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3063
3064 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3065
3066         * stor-layout.c (variable_size): Do not issue errors.
3067
3068 2011-05-04  Richard Guenther  <rguenther@suse.de>
3069
3070         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3071         for array-ref indices.
3072         (tree_coverage_counter_addr): Likewise.
3073         (build_fn_info_type): Use size_int for index types.
3074         (build_gcov_info): Likewise.
3075
3076 2011-05-04  Richard Guenther  <rguenther@suse.de>
3077
3078         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3079         to build_int_cst.
3080         * c-typeck.c (really_start_incremental_init): Use bitsize_int
3081         for constructor indices.
3082         (push_init_level): Likewise.
3083
3084 2011-05-04  Richard Guenther  <rguenther@suse.de>
3085
3086         * explow.c (promote_mode): Move variable declarations before code.
3087
3088 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3089
3090         * tree.h (build_function_type_array): Declare.
3091         (build_varargs_function_type_array): Declare.
3092         (build_function_type_vec, build_varargs_function_type_vec): Define.
3093         * tree.c (build_function_type_array_1): New function.
3094         (build_function_type_array): New function.
3095         (build_varargs_function_type_array): New function.
3096
3097 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
3098
3099         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3100         before setting STMT_VINFO_TYPE.
3101
3102 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3103
3104         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3105         instead of spu_pass_by_reference.
3106
3107 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3108
3109         * calls.c (emit_library_call_value_1): Invoke
3110         promote_function_mode hook on libcall arguments.
3111         * explow.c (promote_function_mode, promote_mode): Handle TYPE
3112         argument being NULL.
3113         * targhooks.c (default_promote_function_mode): Lisewise.
3114         * config/s390/s390.c (s390_promote_function_mode): Likewise.
3115         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3116
3117         * doc/tm.texi: Document that TYPE argument might be NULL.
3118
3119 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3120
3121         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3122
3123 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3124
3125         From Bernd Schmidt
3126         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3127
3128 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3129
3130         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3131         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3132         Move ...
3133         * mips-tfile.c: ... here.
3134         Don't include coretypes.h, tm.h, filenames.h.
3135         (saber_stop): Remove definition and all calls.
3136         [__SABER__]: Remove.
3137         (__LINE__): Remove default.
3138         (Size_t, Ptrdiff_t): Remove definitions.
3139         Replace by size_t, ptrdiff_t.
3140         [!MIPS_DEBUGGING_INFO]: Remove.
3141         (SHASH_SIZE, THASH_SIZE): Remove defaults.
3142         (progname): Add const.
3143         (STATIC): Remove.
3144         Replace all uses by static.
3145         (ALIGN_SYMTABLE_OFFSET): Remove default.
3146         * mips-tdump.c: Don't include coretypes.h, tm.h.
3147         Remove !MIPS_IS_STAB guard.
3148         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3149         $(TM_H), filenames.h dependencies.
3150         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3151
3152 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3153
3154         From Jie Zhang
3155         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3156         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3157
3158 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3159
3160         From Bernd Schmidt
3161         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3162         account and save/restore RETS.
3163         (PROFILE_BEFORE_PROLOGUE): Define.
3164         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
3165         the push insn to use predecrement.
3166
3167 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3168
3169         From Jie Zhang
3170         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3171
3172 2011-05-04  Nick Clifton  <nickc@redhat.com>
3173
3174         * config/mn10300/mn10300.c: Include cfgloop.h.
3175         (DUMP): New macro.
3176         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
3177         Lcc or a FLcc insn into the instruction stream.
3178         (mn10300_block_contains_call): New function.  Returns true if the
3179         given basic block contains a CALL insn.
3180         (mn10300_loop_contains_call_insn): New function.  Returns true if
3181         the given loop contains a CALL insn.
3182         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
3183         to use the SETLB and Lcc or FLcc insns.
3184         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3185         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3186         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
3187         disable the SETLB optimization.
3188         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3189         __SETLB__ or __NO_SETLB__.
3190         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3191         (movsf_internal): Handle MDR register.
3192         (cmpsi): Make visible.
3193         (setlb): New pattern.
3194         (Lcc): New pattern.
3195         (FLcc): New pattern.
3196
3197 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
3198
3199         PR target/48860
3200         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3201         for reg<->xmm moves.
3202         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3203         (vec_concatv2di_rex64_sse): Ditto.
3204         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3205         (*vec_extractv2di_1_rex64): Ditto.
3206
3207         Revert:
3208         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3209
3210         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3211         reg<->xmm moves.
3212         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3213
3214 2011-05-04  Richard Guenther  <rguenther@suse.de>
3215
3216         * tree.h (int_const_binop): Remove notrunc argument.
3217         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
3218         create integer constants that are properly truncated.
3219         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3220         (const_binop): Remove zero notrunc argument to int_const_binop.
3221         (size_binop_loc): Likewise.
3222         (fold_div_compare): Likewise.
3223         (maybe_canonicalize_comparison_1): Likewise.
3224         (fold_comparison): Likewise.
3225         (fold_binary_loc): Likewise.
3226         (multiple_of_p): Likewise.
3227         * expr.c (store_constructor): Likewise.
3228         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3229         (maybe_fold_stmt_addition): Likewise.
3230         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3231         * stor-layout.c (layout_type): Likewise.
3232         * tree-data-ref.c (tree_fold_divides_p): Likewise.
3233         * tree-sra.c (build_ref_for_offset): Likewise.
3234         (build_user_friendly_ref_for_offset): Likewise.
3235         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3236         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3237         * tree-ssa-loop-niter.c (inverse): Likewise.
3238         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3239         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3240         * tree-switch-conversion.c (check_range): Likewise.
3241         (build_constructors): Likewise.
3242         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3243         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3244         (extract_range_from_assert): Likewise.
3245         (vrp_int_const_binop): Likewise.
3246         (extract_range_from_binary_expr): Likewise.
3247         (extract_range_from_unary_expr): Likewise.
3248         (check_array_ref): Likewise.
3249         (find_case_label_range): Likewise.
3250         (simplify_div_or_mod_using_ranges): Likewise.
3251         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3252         comparing case labels for merging.
3253
3254 2011-05-03  Mark Wielaard  <mjw@redhat.com>
3255
3256         * dwarf2out.c (debug_str_hash_forced): Removed.
3257         (gen_label_for_indirect_string): Removed.
3258         (get_debug_string_label): Removed.
3259         (AT_string_form): Generate label directly.
3260         (output_indirect_string): Test indirect_string_node for
3261         DW_FORM_strp instead of checking label and refcount.
3262         (prune_indirect_string): Removed.
3263         (prune_unused_types): Don't check debug_str_hash_forced or
3264         call prune_indirect_string.
3265
3266 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
3267
3268         PR other/48093
3269         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3270
3271 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
3272
3273         PR debug/47994
3274         PR debug/47919
3275         * combine.c (try_combine): Skip debug insns at m_split tests.
3276
3277 2011-04-26  Mark Wielaard  <mjw@redhat.com>
3278
3279         PR42288
3280         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3281         when info_section_emitted.
3282
3283 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
3284
3285         * config/mips/mips-opts.h: New.
3286         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3287         to mips-opts.h.
3288         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3289         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3290         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
3291         via opts pointer.
3292         * config/mips/mips.h (enum mips_code_readable_setting): Move to
3293         mips-opts.h.
3294         (mips_abi, mips_code_readable): Don't declare.
3295         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3296         (mabi=): Use Enum and Var.
3297         (mips_abi): New Enum and EnumValue entries.
3298         (mcode-readable=): Use Enum and Var.
3299         (mips_code_readable_setting): New Enum and EnumValue entries.
3300         (mr10k-cache-barrier=): Use Enum and Var.
3301         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3302
3303 2011-05-03  Jan Hubicka  <jh@suse.cz>
3304
3305         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3306         replace hash by pointer map.
3307         (cgraph_node_set_element_def, cgraph_node_set_element,
3308         const_cgraph_node_set_element, varpool_node_set_element_def,
3309         varpool_node_set_element, const_varpool_node_set_element): Remove.
3310         (free_cgraph_node_set, free_varpool_node_set): New function.
3311         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3312         * tree-emutls.c: Free varpool node set.
3313         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3314         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3315         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3316         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3317         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3318         Move here from ipa.c; implement using pointer_map
3319         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3320         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3321         debug_cgraph_node_set, varpool_node_set_new,
3322         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3323         dump_varpool_node_set, debug_varpool_node_set):
3324         Move to ipa-uitls.c.
3325         * passes.c (ipa_write_summaries): Update.
3326
3327 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3328
3329         From Mike Frysinger:
3330         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3331         bf542/bf544/bf547/bf548/bf549.
3332
3333 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3334
3335         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3336
3337 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3338
3339         From Bernd Schmidt:
3340         * config/bfin/bfin.md (MOVCC): New mode_macro.
3341         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3342         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
3343         comments from generated assembly.
3344
3345 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3346
3347         From Bernd Schmidt
3348         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3349         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3350         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3351         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3352         * config/bfin/lib1funcs.asm (___muldi3): New function.
3353
3354 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3355
3356         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3357         build_function_type_list instead of build_function_type.
3358         Rearrange initialization of `args' to do so.
3359
3360 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3361
3362         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3363         instead of build_function_type.
3364
3365 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3366
3367         * config/rs6000/rs6000.c (spe_init_builtins): Call
3368         build_function_type_list instead of build_function_type.
3369         (paired_init_builtins, altivec_init_builtins): Likewise.
3370         (builtin_function_type): Likewise.
3371
3372 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3373
3374         * config/sh/sh.c (sh_media_init_builtins): Call
3375         build_function_type_list instead of build_function_type.
3376
3377 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3378
3379         * config/sparc/sparc.c (sparc_file_end): Call
3380         build_function_type_list instead of build_function_type.
3381
3382 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3383
3384         * config/alpha/alpha.c (alpha_init_builtins): Call
3385         build_function_type_list instead of build_function_type.
3386
3387 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3388
3389         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3390         build_function_type_list instead of build_function_type.
3391
3392 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3393
3394         * config/iq2000/i2000.c (iq2000_init_builtins): Call
3395         build_function_type_list instead of build_function_type.
3396         Delete `endlink' variable.
3397
3398 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3399
3400         * config/avr/avr.c (avr_init_builtins): Call
3401         build_function_type_list instead of build_function_type.
3402
3403 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3404
3405         * config/picochip/picochip.c (picochip_init_builtins): Call
3406         build_function_type_list instead of build_function_type.
3407         Delete `endlink' variable.
3408
3409 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3410
3411         * config/bfin/bfin.c (bfin_init_builtins): Call
3412         build_function_type_list instead of build_function_type.
3413
3414 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3415
3416         From Bernd Schmidt
3417         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3418         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
3419
3420 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3421
3422         From Jie Zhang:
3423         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3424         libbffastfp overrides libgcc when -mfast-fp.
3425
3426 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3427
3428         Originally from Bernd Schmidt
3429         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3430         * config/bfin/bfin.c (override_options): Test it and error if
3431         TARGET_FDPIC.
3432
3433 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3434
3435         Originally From Bernd Schmidt
3436         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3437         FD-PIC.
3438
3439 2011-05-03  Jeff Law  <law@redhat.com>
3440
3441         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3442         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3443         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3444         than accessing AUX field directly.  Free the AUX field before
3445         clearing it.
3446         (thread_block, thread_through_loop_header): Likewise.
3447         (thread_single_edge, mark_threaded_blocks): Likewise.
3448         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
3449         (register_jump_thread): Do not attempt to thread to a NULL edge.
3450
3451 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3452
3453         * function.c (init_function_start): Call decide_function_section.
3454         * varasm.c (decide_function_section): New function.
3455         (assemble_start_function): When not using
3456         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3457         or first_function_block_is_cold.
3458         * rtl.h (decide_function_section): Declare.
3459
3460 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3461             Jakub Jelinek  <jakub@redhat.com>
3462
3463         PR target/48774
3464         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3465         only succeed if req_mode is the same as set_mode.
3466
3467 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3468
3469         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3470         * genemit.c (gen_exp): Handle RETURN.
3471         * emit-rtl.c (verify_rtx_sharing): Likewise.
3472         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3473         * rtl.c (copy_rtx): RETURN is shared.
3474         * rtl.h (enum global_rtl_index): Add GR_RETURN.
3475         (ret_rtx): New.
3476         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3477         * config/s390/s390.c (s390_emit_epilogue): Likewise.
3478         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3479         * config/cris/cris.c (cris_expand_return): Likewise.
3480         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3481         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3482         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3483         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3484         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3485         Likewise.
3486         * config/v850/v850.c (expand_epilogue): Likewise.
3487         * config/bfin/bfin.c (bfin_expand_call): Likewise.
3488         * config/arm/arm.md (epilogue): Likewise.
3489         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3490         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3491         variable to ret_reg.
3492
3493 2011-05-03  Richard Guenther  <rguenther@suse.de>
3494
3495         PR lto/48846
3496         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3497         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3498         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3499
3500 2011-05-03  Richard Guenther  <rguenther@suse.de>
3501
3502         * c-decl.c (grokdeclarator): Instead of looking at
3503         TREE_OVERFLOW check if the constant fits in the index type.
3504
3505 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3506
3507         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3508         (vec_store_lanes<mode><mode>): Likewise.
3509
3510 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3511
3512         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3513         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3514         convert_optab_index values.
3515         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3516         * genopinit.c (optabs): Initialize the new optabs.
3517         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3518         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3519         (expand_STORE_LANES): New functions.
3520         * tree.h (build_array_type_nelts): Declare.
3521         * tree.c (build_array_type_nelts): New function.
3522         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3523         (vect_model_load_cost): Likewise.
3524         (vect_store_lanes_supported, vect_load_lanes_supported)
3525         (vect_record_strided_load_vectors): Declare.
3526         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3527         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3528         (vect_transform_strided_load): Split out statement recording into...
3529         (vect_record_strided_load_vectors): ...this new function.
3530         * tree-vect-stmts.c (create_vector_array, read_vector_array)
3531         (write_vector_array, create_array_ref): New functions.
3532         (vect_model_store_cost): Add store_lanes_p argument.
3533         (vect_model_load_cost): Add load_lanes_p argument.
3534         (vectorizable_store): Try to use store-lanes functions for
3535         interleaved stores.
3536         (vectorizable_load): Likewise load-lanes and loads.
3537         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3538         to vect_model_store_cost.
3539         (vect_build_slp_tree): Likewise vect_model_load_cost.
3540
3541 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3542
3543         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3544         * hooks.c (hook_bool_mode_uhwi_false): New function.
3545         * target.def (array_mode_supported_p): New hook.
3546         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3547         * doc/tm.texi: Regenerate.
3548         * stor-layout.c (mode_for_array): New function.
3549         (layout_type): Use it.
3550         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3551         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3552
3553 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3554
3555         PR target/48723
3556         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3557         for -fstack-check if the size to allocate is negative.
3558
3559 2011-05-02  Lawrence Crowl  <crowl@google.com>
3560
3561         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3562         (timevar_cond_start): New for starting a timer only when it is not
3563         already running.
3564         (timevar_cond_stop): New for stopping a timer when it was not already
3565         running.
3566
3567         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3568         (timevar_cond_start): New as above.
3569         (timevar_cond_stop): New as above.
3570
3571         * timevar.def: Add start/stop timers for compiler phases,
3572         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3573         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3574         and TV_PHASE_FINALIZE.
3575         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3576         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3577         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3578         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3579         Make unused TV_OVERLOAD into a start/stop timer.
3580
3581         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3582         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3583         to indicate that they are start/stop timers.
3584
3585         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3586         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3587         Move initialization to do_compile.
3588         (do_compile): Add initialization from above.
3589         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3590
3591         * c-decl.c (c_write_global_declarations): Add start/stop of
3592         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3593
3594         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3595         or TV_PARSE_INLINE, as appropriate.
3596         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3597         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3598
3599 2011-05-02  Jason Merrill  <jason@redhat.com>
3600
3601         PR c++/40975
3602         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3603
3604 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3605
3606         PR c/35445
3607         * c-decl.c (finish_decl): Only create a composite if the types are
3608         compatible.
3609
3610 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3611
3612         * config/fr30/fr30-protos.h (Mmode): Don't define.
3613         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3614         definition where used.
3615         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3616         define.  Expand definitions where used.
3617         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3618         Expand definitions where used.
3619         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3620         rx_function_arg, rx_function_arg_advance,
3621         rx_function_arg_boundary): Expand definitions of those macros.
3622         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3623         definition where used.
3624
3625 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3626
3627         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3628         reg<->xmm moves.
3629         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3630         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3631         with *movv2sf_internal_rex64_avx.
3632         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3633         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3634         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3635         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3636         "vex" in "prefix" attribute calculation.
3637         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3638
3639 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3640
3641         PR target/47951
3642         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3643         inputs match the output.
3644
3645 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
3646
3647         PR target/47955
3648         * config/m68k/m68k.c (m68k_expand_prologue): Set
3649         current_function_static_stack_size.
3650
3651 2011-05-02   Jan Hubicka  <jh@suse.cz>
3652
3653         * lto-streamer.c (lto_streamer_cache_insert_1,
3654         lto_streamer_cache_lookup, lto_streamer_cache_create,
3655         lto_streamer_cache_delete): Use pointer map instead of hashtable.
3656         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3657
3658 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3659
3660         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3661         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3662         config/m68k/t-opts: New files.
3663         * config/m68k/m68k-tables.opt: New file (generated).
3664         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3665         extra_options and m68k/t-opts to tmake_file.
3666         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3667         (all_isas): Initialize using m68k-isas.def.
3668         (all_microarchs): Initialize using m68k-microarchs.def.
3669         (m68k_find_selection): Remove.
3670         (m68k_handle_option): Don't assert that global structures are in
3671         use.  Use error_at.  Access variables via opts pointer.  Don't
3672         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
3673         directly for -m68020-40 and -m68020-60.
3674         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3675         m68k_tune_entry here.
3676         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3677         to m68k-opts.h.
3678         (m68k_library_id_string): Remove declaration.
3679         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3680         (m68k_library_id_string): New Variable.
3681         (march=, mcpu=, mtune=): Use Enum and Var.
3682
3683 2011-05-02  Richard Guenther  <rguenther@suse.de>
3684
3685         * varasm.c (output_constructor_regular_field): Compute zero-based
3686         index with double-ints.  Make sure to ICE instead of producing
3687         wrong code.
3688         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3689         in asserts.  Properly use a signed type.
3690
3691 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3692
3693         * config/i386/sse.md (V): New mode iterator.
3694         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3695         TARGET_SSE2.
3696         (V_256): Rename from AVX256MODE.
3697         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3698         condition to all users.
3699         (VF1): Ditto.
3700         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3701         condition to all users.
3702         (VF_128): Make V4SF mode unconditional.
3703         (VF_256): Rename from AVX256MODEF2P.
3704         (VI4F_128): Rename from SSEMODE4S.
3705         (VI8F_128): Rename from SSEMODE2D.
3706         (VI4F_256): Rename from AVX256MODE8P.
3707         (VI8F_256): Rename from AVX256MODE4P.
3708         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3709         (ssescalarmodesuffix): Remove SF and DF modes.
3710         (SSEMODE124): Remove.
3711         (SSEMODE1248): Ditto.
3712         (SSEMODEF2P): Ditto.
3713         (AVXMODEF2P): Ditto.
3714         (AVXMODEFDP): Ditto.
3715         (AVXMODEFSP): Ditto.
3716         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3717         unconditional.
3718         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3719         unconditional.
3720         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3721         xop_pcmov_<mode>256.  Use V mode iterator.
3722
3723         Adjust RTX patterns globally for renamed mode attributes.
3724
3725 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3726
3727         * haifa-sched.c (sched_emit_insn): Emit insn before first
3728         non-scheduled insn.  Inform back-end about new insn.  Add
3729         new insn to scheduled_insns list.
3730
3731 2011-05-02  Richard Guenther  <rguenther@suse.de>
3732
3733         PR tree-optimization/48822
3734         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3735         (process_scc): Indicate which iteration we start.
3736
3737 2011-05-02  Jan Hubicka  <jh@suse.cz>
3738
3739         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3740         (lto_section_overrun): New.
3741         * lto-section-out.c (append_block): Rename to ...
3742         (lto_append_block): ... this one; export.
3743         (lto_output_1_stream): Move lto lto-streamer.h
3744         (lto_output_data_stream): Update.
3745         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3746         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3747         functions.
3748
3749 2011-05-02  Richard Guenther  <rguenther@suse.de>
3750
3751         * tree.c (tree_code_counts): New global array.
3752         (record_node_allocation_statistics): Count individual tree codes.
3753         (dump_tree_statistics): Dump individual code stats.
3754
3755 2011-05-01  Jan Hubicka  <jh@suse.cz>
3756
3757         * ipa-inline.c (caller_growth_limits): Fix thinko when
3758         looking for largest stack frame.
3759         * ipa-inline.h (dump_inline_summary): Declare.
3760         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3761         on stack usage.
3762         (dump_inline_summary): Export.
3763         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3764
3765 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3766
3767         * reginfo.c (memory_move_cost): Change rclass argument type form
3768         'enum reg_class' to reg_class_t.
3769         * reload.h (memory_move_cost): Update prototype.
3770         * postreload.c reload_cse_simplify_set): Change type dclass var to
3771         reg_class_t.
3772         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3773         Update prototype.
3774         (ira_allocate_and_set_costs): Change aclass argument type form
3775         'enum reg_class' to reg_class_t.
3776         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3777         Change aclass argument type to reg_class_t.
3778         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3779         to reg_class_t.
3780         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3781         memory_move_cost call.
3782
3783         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3784         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3785         Change type tmp var to reg_class_t.
3786
3787 2011-04-30  Jan Hubicka  <jh@suse.cz>
3788
3789         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3790         inlining into function with flatten attribute.
3791         (want_inline_small_function_p): Be more realistic about inlining
3792         cold calls where callee size grows.
3793
3794 2011-04-30  Jan Hubicka  <jh@suse.cz>
3795
3796         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3797         flags.
3798
3799 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3800
3801         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3802         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3803         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3804         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3805         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3806         (print_operand): Rename to...
3807         (sparc_print_operand): ...this. Make static. Adjust
3808         sparc_print_operand function call.
3809         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3810         functions.
3811
3812 2011-04-30  Jan Hubicka  <jh@suse.cz>
3813
3814         PR middle-end/48752
3815         * ipa-inline.c (early_inliner): Disable when doing late
3816         addition of function.
3817
3818 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3819
3820         * dwarf2out.c (get_address_mode): New inline.
3821         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3822         if not dwarf_strict emit
3823         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3824         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3825         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3826         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3827         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3828         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3829         mem_loc_descriptor callers.
3830         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3831         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3832         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3833         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3834         (base_types): New variable.
3835         (get_base_type_offset, calc_base_type_die_sizes,
3836         base_type_for_mode, mark_base_types, base_type_cmp,
3837         move_marked_base_types): New functions.
3838         (calc_die_sizes): Assert that die_offset is 0 or equal to
3839         next_die_offset.
3840         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3841         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3842         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3843         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3844         (gen_subprogram_die): Don't give up on call site parameters
3845         with non-integral or large integral modes.  Adjust
3846         mem_loc_descriptor callers.
3847         (prune_unused_types): Call prune_unused_types_mark on base_types
3848         vector entries.
3849         (resolve_addr): Call mark_base_types.
3850         (dwarf2out_finish): Call move_marked_base_types.
3851
3852         PR tree-optimization/48809
3853         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3854         type.
3855         (gen_inbound_check): Don't compute index_expr - range_min in utype
3856         again, instead reuse SSA_NAME initialized in build_arrays.
3857         Remove two useless gsi_for_stmt calls.
3858
3859 2011-04-29  Jeff Law  <law@redhat.com>
3860
3861         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3862
3863 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3864
3865         * cgraph.h (cgraph_postorder): Remove declaration.
3866         * ipa-utils.h (ipa_free_postorder_info): Declare.
3867         (ipa_reverse_postorder): Likewise.
3868         * cgraphunit.c: Include ipa-utils.h.
3869         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3870         * ipa-inline.c: Include ipa-utils.h.
3871         (ipa_inline): Update call to ipa_reverse_postorder.
3872         * ipa-pure-const.c (propagate_pure_const): Update call to
3873         ipa_reduced_postorder and ipa_print_order.  Call
3874         ipa_free_postorder_info to clean up.
3875         (propagate_nothrow): Likewise.
3876         * ipa-reference.c (propagate): Removed a useless call to
3877         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3878         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3879         * ipa.c: Include ipa-utils.h.
3880         (ipa_profile): Update call to ipa_reverse_postorder.
3881         (cgraph_postorder): Moved to...
3882         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3883         (ipa_utils_print_order): Renamed to ipa_print_order.
3884         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3885         comments.
3886         (ipa_free_postorder_info): New function.
3887         * passes.c: Include ipa-utils.h.
3888         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3889         (ipa_write_summaries): Likewise.
3890         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3891         (cgraphunit.o): Likewise.
3892         (ipa.o): Likewise.
3893         (ipa-inline.o): Likewise.
3894
3895 2011-04-29  Jan Hubicka  <jh@suse.cz>
3896
3897         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3898         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3899         * ipa-inline.h (clause_t): Turn into unsigned int.
3900         * ipa-inline-analysis.c (add_clause): Do more simplification.
3901         (and_predicates): Shortcut more cases.
3902         (predicates_equal_p): Move forward; check that clauses are properly
3903         ordered.
3904         (or_predicates): Shortcut more cases.
3905         (edge_execution_predicate): Rewrite as...
3906         (set_cond_stmt_execution_predicate): ... this function; handle
3907         __builtin_constant_p.
3908         (set_switch_stmt_execution_predicate): New .
3909         (compute_bb_predicates): New.
3910         (will_be_nonconstant_predicate): Update TODO.
3911         (estimate_function_body_sizes): Use compute_bb_predicates
3912         and free them later, always try to estimate if stmt is constant.
3913         (estimate_time_after_inlining, estimate_size_after_inlining):
3914         Gracefully handle optimized out edges.
3915         (read_predicate): Fix off by one error.
3916
3917 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3918
3919         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3920
3921 2011-04-27  Xinliang David Li  <davidxl@google.com>
3922
3923         * tree-profile.c (init_ic_make_global_vars): Set
3924         tls attribute on ic vars.
3925         * coverage.c (coverage_end_function): Initialize
3926         function_list with zero.
3927
3928 2011-04-29  Richard Guenther  <rguenther@suse.de>
3929
3930         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3931         for the type of the result.
3932         (fold_builtin_isascii): Likewise.
3933         (fold_builtin_toascii): Use integer_type_node where appropriate.
3934         (fold_builtin_logb): Likewise.
3935         (fold_builtin_frexp): Likewise.
3936         (fold_builtin_strstr): Likewise.
3937         (fold_builtin_strpbrk): Likewise.
3938         (fold_builtin_fputs): Likewise.
3939         (fold_builtin_sprintf): Likewise.
3940         (fold_builtin_snprintf): Likewise.
3941         (fold_builtin_printf): Likewise.
3942         (do_mpfr_remquo): Use a proper type for the assigned constant.
3943         (do_mpfr_lgamma_r): Likewise.
3944         * dwarf2out.c (resolve_one_addr): Use size_int.
3945         * except.c (init_eh): Likewise.
3946         (assign_filter_values): Use integer_type_node for filter values.
3947         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3948         indices.
3949         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3950         for EH region numbers.
3951         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3952         for the shift amount.
3953
3954 2011-04-29  Richard Guenther  <rguenther@suse.de>
3955
3956         * expr.h (expand_shift): Rename to ...
3957         (expand_variable_shift): ... this.
3958         (expand_shift): Take a constant shift amount.
3959         * expmed.c (expand_shift): Rename to ...
3960         (expand_variable_shift): ... this.
3961         (expand_shift): New wrapper around expand_variable_shift.
3962         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3963         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3964         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3965         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3966         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3967         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3968         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3969         emit_store_flag_1, emit_store_flag): Likewise.
3970         * builtins.c (expand_builtin_signbit): Likewise.
3971         * calls.c (load_register_parameters): Likewise.
3972         * function.c (assign_parm_setup_block): Likewise.
3973         * lower-subreg.c (resolve_shift_zext): Likewise.
3974         * optabs.c (widen_bswap, expand_abs_nojump,
3975         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3976         * spu/spu.c (spu_expand_extv): Likewise.
3977         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3978
3979 2011-04-29  Richard Guenther  <rguenther@suse.de>
3980
3981         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3982         for the remapped region number.
3983         * predict.c (build_predict_expr): Use integer_type_node for the
3984         predict kind.
3985         * fold-const.c (fold_binary_loc): Use integer_type_node for
3986         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3987
3988 2011-04-29  Michael Matz  <matz@suse.de>
3989
3990         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3991         other trees that just builtins.
3992         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3993
3994 2011-04-29  Richard Guenther  <rguenther@suse.de>
3995
3996         * tree-nested.c (get_trampoline_type): Use size_int.
3997         (get_nl_goto_field): Likewise.
3998         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3999         for all indexes.
4000         (lower_eh_constructs_2): Likewise.
4001         (lower_resx): Likewise.
4002         (lower_eh_dispatch): Likewise.
4003         * tree-mudflap.c (mf_build_string): Use size_int.
4004         (mudflap_register_call): Use integer_type_node for the flag.
4005         (mudflap_enqueue_constant): Use size_int.
4006         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4007         instead of rebuilding it.
4008
4009 2011-04-29  Richard Guenther  <rguenther@suse.de>
4010
4011         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4012         Handle OBJ_TYPE_REF.
4013         (find_func_aliases_for_call): Use it more consistently.
4014
4015 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
4016
4017         * haifa-sched.c (last_nondebug_scheduled_insn): New.
4018         (rank_for_schedule): Use it.
4019         (schedule_block): Set it.
4020
4021 2011-04-28  David Li  <davidxl@google.com>
4022
4023         * tree.c (crc32_string): Use crc32_byte.
4024         (crc32_byte): New function.
4025         * tree.h (crc32_byte): New function.
4026         * gcov.c (read_graph_file): Handle new cfg_cksum.
4027         (read_count_file): Ditto.
4028         * profile.c (instrument_values): Ditto.
4029         (get_exec_counts): Ditto.
4030         (read_profile_edge_counts): Ditto.
4031         (compute_branch_probabilities): Ditto.
4032         (compute_value_histograms): Ditto.
4033         (branch_prob): Ditto.
4034         (end_branch_prob): Ditto.
4035         * coverage.c (read_counts_file): Ditto.
4036         (get_coverage_counts): Ditto.
4037         (tree_coverage_counter_addr): Ditto.
4038         (coverage_checksum_string): Ditto.
4039         (coverage_begin_output): Ditto.
4040         (coverage_end_function): Ditto.
4041         (build_fn_info_type): Ditto.
4042         (build_fn_info_value): Ditto.
4043         * libgcov.c (gcov_exit): Ditto.
4044         * gcov-dump.c (tag_function): Ditto.
4045         (compute_checksum): Remove.
4046
4047 2011-04-29  Alan Modra  <amodra@gmail.com>
4048
4049         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4050         unspec plus offset.  Tidy macho code.
4051
4052 2011-04-29  Martin Jambor  <mjambor@suse.cz>
4053
4054         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4055         node instead of a decl.  Update all callers.
4056         * cgraph.h: Update declaration.
4057
4058 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
4059
4060         PR tree-optimization/48765
4061         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4062         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4063         to indicate if loop aware SLP is being used.  Scan the statements
4064         and update the vectorization factor according to the type of
4065         vectorization before statement analysis.
4066         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4067         pass it to vect_analyze_loop_operations.
4068         (vectorizable_reduction): Set number of copies to 1 in case of pure
4069         SLP statement.
4070         * tree-vect-stmts.c (vectorizable_conversion,
4071         vectorizable_assignment, vectorizable_shift,
4072         vectorizable_operation, vectorizable_type_demotion,
4073         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4074         Likewise.
4075         (vectorizable_condition): Move the check that it is not SLP
4076         vectorization before the number of copies check.
4077         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4078         to vectorize the loop using SLP.
4079
4080 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
4081
4082         PR middle-end/48597
4083         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4084         inline asm.
4085
4086 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
4087
4088         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4089         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4090         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4091         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4092         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4093         linux*.h headers.
4094         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4095         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4096         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4097         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4098         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4099         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4100         REG_NAME.
4101         * config/i386/linux.h (REG_NAME): Don't define.
4102         * config/i386/linux64.h (REG_NAME): Don't define.
4103         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4104         Undefine before defining.
4105
4106 2011-04-28  Jan Hubicka  <jh@suse.cz>
4107
4108         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4109         nonconstant_names array.
4110         (estimate_function_body_sizes): Build nonconstant_names array; handle
4111         BUILT_IN_CONSTANT_P.
4112
4113 2011-04-28  Richard Guenther  <rguenther@suse.de>
4114
4115         PR bootstrap/48804
4116         Revert
4117         2011-04-28  Richard Guenther  <rguenther@suse.de>
4118
4119         * tree-ssa-structalias.c (solve_constraints): Build succ graph
4120         as late as possible.
4121
4122 2011-04-28  Richard Guenther  <rguenther@suse.de>
4123
4124         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4125         (debug_constraint): Do it here.
4126         (dump_constraints): And here.
4127         (rewrite_constraints): And here.
4128         (dump_constraint_edge): Remove.
4129         (dump_constraint_graph): Rewrite to produce DOT output.
4130         (solve_constraints): Build succ graph as late as possible.
4131         Dump constraint graphs before and after solving.
4132
4133 2011-04-28  Richard Guenther  <rguenther@suse.de>
4134
4135         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4136         New function split out from ...
4137         (find_func_aliases): ... here.  Call it.
4138         (find_func_aliases_for_call): Likewise.
4139
4140 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4141
4142         * internal-fn.h (internal_fn_name_array): Declare.
4143         (internal_fn_flags_array): Likewise.
4144
4145 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
4146
4147         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
4148         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4149         Move from sse.md.
4150         (ssemodefsuffix): Remove.
4151         (ssevecmodesuffix): New mode attribute.
4152         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4153         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4154         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4155         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4156         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4157         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4158         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4159         ssemodesuffix mode attribute.
4160         (float splitters): Use ssevecmodesuffix mode attribute.
4161         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4162         (sseinsmode): Rename from avxvecmode.
4163         (avxsizesuffix): Rename from avxmodesuffix.
4164         (sseintvecmode): Rename from avxpermvecmode.
4165         (ssedoublevecmode): Rename from ssedoublesizemode.
4166         (ssehalfvecmode): Rename from avxhalfvecmode.
4167         (ssescalarmode): Rename from avxscalarmode.
4168         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4169         templates for ssemodesuffix mode attribute.
4170         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4171         mode attribute.
4172
4173         Adjust RTX patterns globally for renamed mode attributes.
4174
4175 2011-04-27  Jan Hubcika  <jh@suse.cz>
4176
4177         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4178         * ipa-inline-analysis.c: Include alloc-pool.h.
4179         (edge_predicate_pool): New.
4180         (trye_predicate_p): New function
4181         (false_predicate_p): New function.
4182         (add_clause): Sanity check that false clauses are "optimized";
4183         never add clauses to predicate that is already known to be false.
4184         (and_predicate): Use flase_predicate_p.
4185         (evaulate_predicate): Rename to ...
4186         (evaluate_predicate): ... this one; update all callers; assert
4187         that false is not listed among possible truths.
4188         (dump_predicate): Use true_predicate_p.
4189         (account_size_time): Use false_predicate_p.
4190         (evaulate_conditions_for_edge): Rename to ...
4191         (evaluate_conditions_for_edge) ... this one.
4192         (edge_set_predicate): New function.
4193         (inline_edge_duplication_hook): Duplicate edge predicates.
4194         (inline_edge_removal_hook): Free edge predicates.
4195         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4196         (dump_inline_summary): Update.
4197         (estimate_function_body_sizes): Set edge predicates.
4198         (estimate_calls_size_and_time): Handle predicates.
4199         (estimate_callee_size_and_time): Update.
4200         (remap_predicate): Add toplev_predicate; update comment.
4201         (remap_edge_predicates): New function.
4202         (inline_merge_summary): Compute toplev predicate; update.
4203         (read_predicate): New function.
4204         (read_inline_edge_summary): Use it.
4205         (inline_read_section): Likewise.
4206         (write_predicate): New function.
4207         (write_inline_edge_summary): Use it.
4208         (inline_write_summary): Likewise.
4209         (inline_free_summary): Free alloc pool and edge summary vec.
4210
4211 2011-04-27  Richard Guenther  <rguenther@suse.de>
4212
4213         * tree-ssa-structalias.c (changed_count): Remove.
4214         (changed): Use a bitmap.
4215         (unify_nodes): Adjust.
4216         (do_sd_constraint): Likewise.
4217         (do_ds_constraint): Likewise.
4218         (do_complex_constraint): Likewise.
4219         (solve_graph): Likewise.
4220
4221 2011-04-27  Jan Hubicka  <jh@suse.cz>
4222
4223         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4224
4225 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
4226
4227         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4228         (avx_vperm2f128_*_operand): Ditto.
4229         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4230         Use avx_vpermilp_parallel in insn condition.
4231         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4232         Use avx_vperm2f128_parallel in insn condition.
4233
4234 2011-04-27  Richard Guenther  <rguenther@suse.de>
4235
4236         * Makefile.in (tree-ssa-structalias.o): Remove
4237         gt-tree-ssa-structalias.h dependency.
4238         (GTFILES): Remove tree-ssa-structalias.c.
4239         * tree.c (allocate_decl_uid): New function.
4240         (make_node_stat): Use it.
4241         (copy_node_stat): Likewise.
4242         * tree.h (allocate_decl_uid): Declare.
4243         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4244         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4245         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4246         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4247         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4248         (struct heapvar_map): Likewise.
4249         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4250         heapvar_insert): Likewise.
4251         (make_heapvar_for): Rename to ...
4252         (make_heapvar): ... this.  Simplify.
4253         (fake_var_decl_obstack): New global var.
4254         (build_fake_var_decl): New function.
4255         (make_constraint_from_heapvar): Adjust.
4256         (handle_lhs_call): Likewise.
4257         (create_function_info_for): Likewise.
4258         (intra_create_variable_infos): Likewise.
4259         (init_alias_vars): Allocate fake_var_decl_obstack.
4260         (init_alias_heapvars, delete_alias_heapvars): Remove.
4261         (compute_points_to_sets): Do not call init_alias_heapvars.
4262         (ipa_pta_execute): Likewise.
4263         (delete_points_to_sets): Free fake_var_decl_obstack.
4264
4265 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4266
4267         * config/spu/divmovti4.c (union qword_UTItype): New data type.
4268         (si_from_UTItype, si_to_UTItype): New functions.
4269         (__udivmodti4): Use them to implement type-punning.
4270         * config/spu/multi3.c (union qword_TItype): New data type.
4271         (si_from_TItype, si_to_TItype): New functions.
4272         (__multi3): Use them to implement type-punning.
4273
4274 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4275
4276         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4277
4278 2011-04-27  Jan Hubicka  <jh@suse.cz>
4279
4280         * ipa-prop.c (function_insertion_hook_holder): New holder.
4281         (ipa_add_new_function): New function.
4282         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4283         Register/deregister holder.
4284
4285 2011-04-27  Richard Guenther  <rguenther@suse.de>
4286
4287         PR tree-optimization/48772
4288         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4289
4290 2011-04-27  Richard Guenther  <rguenther@suse.de>
4291
4292         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4293         TARGET_MEM_REF handling.
4294
4295 2011-04-27  Nick Clifton  <nickc@redhat.com>
4296
4297         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4298         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4299         (REG_CLASS_NAMES): Likewise.
4300         (REG_CLASS_CONTENTS): Likewise.
4301         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
4302         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
4303         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
4304         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
4305         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
4306         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4307         duplicate register classes.
4308         (frv_class_likely_spilled_p): Likewise.
4309         (frv_register_move_cost): Likewise.
4310
4311         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4312         end of the regno_reg_class array.
4313
4314 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
4315
4316         PR c/48742
4317         * c-typeck.c (build_binary_op): Don't wrap arguments if
4318         int_operands is true.
4319
4320 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
4321
4322         PR target/48767
4323         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4324         targetm.calls.must_pass_in_stack for void type.
4325
4326 2011-04-26  Jan Hubicka  <jh@suse.cz>
4327
4328         * cgraphbuild.c (build_cgraph_edges): Update call
4329         of cgraph_create_edge and cgraph_create_indirect_edge.
4330         * cgraph.c (cgraph_create_edge_including_clones,
4331         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4332         cgraph_update_edges_for_call_stmt_node): Do not take nest
4333         argument; do not initialize call_stmt_size/time.
4334         (dump_cgraph_node): Do not dump nest.
4335         (cgraph_clone_edge): Do not take loop_nest argument;
4336         do not propagate it; do not clone call_stmt_size/time.
4337         (cgraph_clone_node): Likewise.
4338         (cgraph_create_virtual_clone): Update.
4339         * cgraph.h (struct cgraph_edge): Remove
4340         call_stmt_size/call_stmt_time/loop_nest.
4341         (cgraph_create_edge, cgraph_create_indirect_edge,
4342         cgraph_create_edge_including_clones, cgraph_clone_node): Update
4343         prototype.
4344         * tree-emutls.c (gen_emutls_addr): Update.
4345         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4346         loop_nest; handle indirect calls, too.
4347         (clone_inlined_nodes): Do not care about updating inline summaries.
4348         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4349         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4350         stream call_stmt_size/call_stmt_time/loop_nest.
4351         * ipa-inline.c (edge_badness): Update.
4352         (ipa_inline): dump summaries after inlining.
4353         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4354         New.
4355         (inline_edge_summary): New function.
4356         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4357         (inline_edge_removal_hook): Handle edge summaries.
4358         (inline_edge_duplication_hook): New hook.
4359         (inline_summary_alloc): Alloc hooks.
4360         (initialize_growth_caches): Do not register removal hooks.
4361         (free_growth_caches); Do not free removal hook.
4362         (dump_inline_edge_summary): New function.
4363         (dump_inline_summary): Use it.
4364         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4365         (inline_update_callee_summaries): New function.
4366         (inline_merge_summary): Use it.
4367         (do_estimate_edge_time, do_estimate_edge_growth): Update.
4368         (read_inline_edge_summary): New function.
4369         (inline_read_section): Use it.
4370         (write_inline_edge_summary): New function.
4371         (inline_write_summary): Use it.
4372         (inline_free_summary): Free edge new holders.
4373         * tree-inline.c (copy_bb): Update.
4374
4375 2011-04-26  Jason Merrill  <jason@redhat.com>
4376
4377         * tree-eh.c (lower_try_finally_switch): Create the label along with
4378         the CASE_LABEL_EXPR.
4379
4380 2011-04-26  David S. Miller  <davem@davemloft.net>
4381             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4382
4383         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4384         * configure: Regenerate.
4385
4386 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4387
4388         PR target/48258
4389         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4390         reduction.
4391         (VEC_reduc): New code iterator and splitters for vector reduction.
4392         (VEC_reduc_name): Ditto.
4393         (VEC_reduc_rtx): Ditto.
4394         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4395         (reduc_<VEC_reduc_name>_v4sf): Ditto.
4396
4397         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4398         support for extracting SF on VSX.
4399
4400         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4401         generating xscvspdp.
4402         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4403         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4404         double add, minimum, maximum vector reduction.
4405         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4406         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4407         optimize double vector reduction.
4408         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4409
4410 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
4411
4412         * config/fr30/fr30.h (inhibit_libc): Don't define.
4413         * config/m32r/m32r-protos.h: Correct comment.
4414         * config/v850/v850.h (GHS_default_section_names,
4415         GHS_current_section_names): Use tree, not union tree_node *.
4416
4417 2011-04-26  Xinliang David Li  <davidxl@google.com>
4418
4419         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4420         * c-family/c-opts.c (c_common_handle_option): Set
4421         warn_maybe_uninitialized.
4422         * opts.c (common_handle_option): Ditto.
4423         * common.opt:  New option.
4424         * tree-ssa.c (warn_uninit): Add one more parameter.
4425         (warn_uninitialized_var): Pass warning code.
4426         * tree-flow.h: Interface change.
4427
4428
4429 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4430
4431         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4432         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4433         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4434
4435 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4436
4437         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4438         * config/mips/mips.opt (mmips-tfile): Remove.
4439
4440         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4441         mips-tdump reference to ...
4442         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
4443         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4444         reference by Tru64 UNIX.
4445
4446 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
4447
4448         PR debug/48768
4449         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4450         is error_mark_node, set value to NULL.
4451
4452         PR tree-optimization/48734
4453         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4454         if return value from maybe_fold_*_comparsions isn't something
4455         the code is prepared to handle.
4456
4457 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
4458
4459         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4460         mode check.
4461         (ext_QIreg_nomode_operands): Remove.
4462         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4463         (*andsi_1): Ditto.
4464         (*andhi_1): Ditto.
4465
4466 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
4467
4468         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4469
4470 2011-04-26  Richard Guenther  <rguenther@suse.de>
4471
4472         * c-typeck.c (build_unary_op): Do not expand array-refs via
4473         pointer arithmetic.  Only adjust qualifiers for function types.
4474
4475 2011-04-26  Richard Guenther  <rguenther@suse.de>
4476
4477         PR middle-end/48694
4478         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4479         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4480         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
4481         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4482
4483 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
4484
4485         * doc/extend.texi: Document __underlying_type.
4486
4487 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
4488
4489         * config/rs6000/titan.md (automata_option "progress"): Remove.
4490
4491 2011-04-25  Jeff Law  <law@redhat.com>
4492
4493         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4494
4495 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4496
4497         * system.h (ENUM_BITFIELD): Remove.
4498
4499 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
4500             Eric Botcazou  <ebotcazou@adacore.com>
4501
4502         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4503         for STORE_FLAG_VALUE==-1 case.
4504
4505 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
4506
4507         PR target/43804
4508         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4509         LEGITIMATE_PIC_OPERAND_P.
4510
4511 2011-04-24  Jan Hubicka  <jh@suse.cz>
4512
4513         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4514         WPA hack.
4515         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4516         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4517         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4518         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4519         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4520         Sanity check predicate length.
4521         (remap_predicate): Likewise; sanity check jump functions.
4522         (inline_read_section, inline_write_summary): Sanity check
4523         predicate length.
4524
4525 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4526
4527         PR other/48748
4528         * doc/extend.texi (Type Traits): Document __is_standard_layout,
4529         __is_literal_type, and __is_trivial; update throughout about
4530         possibly cv-qualified void types.
4531
4532 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4533
4534         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4535         testsuite and make it version agnostic.
4536
4537 2011-04-22  Jan Hubicka  <jh@suse.cz>
4538
4539         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4540
4541 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4542
4543         PR c/48685
4544         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4545         to VOID_TYPE even around MODIFY_EXPR.
4546
4547 2011-04-22  Mike Stump  <mikestump@comcast.net>
4548
4549         * gensupport.c (read_md_rtx): Fix typo in comment.
4550         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4551         comment.
4552
4553 2011-04-22  Jan Hubicka  <jh@suse.cz>
4554
4555         * gengtype.c (open_base_files): Add ipa-inline.h include.
4556         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4557         ipa-prop.c; update all uses.
4558         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4559         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4560         merge summary of inlined function into former caller.
4561         * ipa-inline.c (max_benefit): Remove.
4562         (edge_badness): Compensate for removal of benefits.
4563         (update_caller_keys): Use
4564         reset_node_growth_cache/reset_edge_growth_cache.
4565         (update_callee_keys): Likewise.
4566         (update_all_callee_keys): Likewise.
4567         (inline_small_functions): Do not collect max_benefit; do not reset
4568         estimated_growth; call free_growth_caches and initialize_growth_caches.
4569         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4570         struct size_time_entry): New structures.
4571         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4572         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4573         and estimated_growth.
4574         (edge_growth_cache_entry): New structure.
4575         (node_growth_cache, edge_growth_cache): New global vars.
4576         (estimate_growth): Turn into inline.
4577         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4578         initialize_growth_caches, free_growth_caches): Declare.
4579         (estimate_edge_growth): Rewrite.
4580         (estimate_edge_time): Implement as inline cache lookup.
4581         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4582         functions.
4583         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4584         (NUM_CONDITIONS): New constant.
4585         (predicate_conditions): New enum.
4586         (IS_NOT_CONSTANT): New constant.
4587         (edge_removal_hook_holder): New var.
4588         (node_growth_cache, edge_growth_cache): New global vars.
4589         (true_predicate, single_cond_predicate, false_predicate,
4590         not_inlined_predicate, add_condition, add_clause, and_predicates,
4591         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4592         dump_clause, dump_predicate, account_size_time,
4593         evaulate_conditions_for_edge): New functions.
4594         (inline_summary_alloc): Move to heap.
4595         (inline_node_removal_hook): Clear condition and entry vectors.
4596         (inline_edge_removal_hook): New function.
4597         (initialize_growth_caches, free_growth_caches): New function.
4598         (dump_inline_summary): Update.
4599         (edge_execution_predicate): New function.
4600         (will_be_nonconstant_predicate): New function.
4601         (estimate_function_body_sizes): Compute BB and constantness predicates.
4602         (compute_inline_parameters): Do not clear estimated_growth.
4603         (estimate_edge_size_and_time): New function.
4604         (estimate_calls_size_and_time): New function.
4605         (estimate_callee_size_and_time): New function.
4606         (remap_predicate): New function.
4607         (inline_merge_summary): New function.
4608         (do_estimate_edge_time): New function based on...
4609         (estimate_edge_time): ... this one.
4610         (do_estimate_edge_growth): New function.
4611         (do_estimate_growth): New function based on....
4612         (estimate_growth): ... this one.
4613         (inline_analyze_function): Analyze after deciding on jump functions.
4614         (inline_read_section): New function.
4615         (inline_read_summary): Use it.
4616         (inline_write_summary): Write all the new data.
4617         * ipa-prop.c (ipa_get_param_decl_index): Export.
4618         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4619         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4620         Declare.
4621         (ipa_get_lattice): Move here from ipa-cp.c
4622         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4623         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4624         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4625         cgraph_edge_inlinable_p): Remove.
4626         * cgraphunit.c: Include ipainline.h
4627         (cgraph_process_new_functions): Update call of
4628         compute_inline_parameters.
4629
4630 2011-04-22  Richard Guenther  <rguenther@suse.de>
4631
4632         * tree.c (build_int_cst): Properly create canonicalized integer
4633         constants.
4634         (build_int_cst_type): Remove scary comments.
4635
4636 2011-04-22  Xinliang David Li  <davidxl@google.com>
4637
4638         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4639         by default when -Wno-error is not specified.
4640         * opts-global.c (decode_options): Remove call to
4641         control_warning_options.
4642
4643 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4644
4645         PR tree-optimization/48717
4646         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4647         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4648
4649 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
4650
4651         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
4652         definition where used.
4653
4654 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4655
4656         PR c/48716
4657         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4658         TREE_STATIC variables declared inside of some OpenMP construct.
4659
4660 2011-04-22  Martin Jambor  <mjambor@suse.cz>
4661
4662         PR middle-end/48585
4663         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4664
4665 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
4666
4667         PR c/36750
4668         * c-typeck.c (pop_init_level): Do not warn about initializing
4669         with ` = {0}'.
4670
4671 2011-04-22  Alan Modra  <amodra@gmail.com>
4672
4673         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4674         when returning call_cookie.
4675         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4676         pointers, to functions with no more vector args than the current
4677         function, and some non-local calls for ABI_V4.
4678         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4679         sibcall_nonlocal_aix64): Combine to ..
4680         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
4681         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4682         (sibcall_value_nonlocal_aix<mode>): ..likewise.
4683         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4684         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
4685         operand.
4686         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4687         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4688         sibcall_value_symbolic_64): Delete.
4689
4690 2011-04-21  Xinliang David Li  <davidxl@google.com>
4691
4692         * cgraph.h: Remove pid.
4693         * cgraph.c: Remove pid.
4694         * value-prof.c (init_node_map): New function.
4695         (del_node_map): New function.
4696         (find_func_by_funcdef_no): New function.
4697         (gimple_ic_transform): Call new function.
4698         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4699         * function.c (get_last_funcdef_no): New function.
4700         * function.h (get_last_funcdef_no): New function.
4701         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4702         to libgcov function.
4703         (tree-profiling): Call node map init and delete function.
4704
4705 2011-04-21  Ian Lance Taylor  <iant@google.com>
4706
4707         * godump.c (go_format_type): Use exported Go name for anonymous
4708         field name.
4709
4710 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4711
4712         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4713         Call builtin_function_type_list instead of builtin_function_type.
4714         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4715
4716 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4717
4718         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4719         build_function_type_list instead of build_function_type.
4720         Delete variable `endlink'.
4721
4722 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4723
4724         * config/s390/s390.c (s390_init_builtins): Call
4725         build_function_type_list instead of build_function_type.
4726
4727 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4728
4729         * config/ia64/ia64.c (ia64_init_builtins): Call
4730         build_function_type_list instead of builtin_function_type.
4731
4732 2011-04-21  Easwaran Raman  <eraman@google.com>
4733
4734         * cfgexpand.c (stack_var): Remove OFFSET...
4735         (add_stack_var): ...and its reference here...
4736         (expand_stack_vars): ...and here.
4737         (stack_var_cmp): Sort by descending order of size.
4738         (partition_stack_vars): Change heuristic.
4739         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4740         (dump_stack_var_partition): Add newline after each partition.
4741
4742 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4743             Jeff Law  <law@redhat.com>
4744
4745         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4746         * gengtype.c (matching_file_name_substitute): Likewise.
4747
4748 2011-04-21  Richard Guenther  <rguenther@suse.de>
4749
4750         PR lto/48703
4751         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4752
4753 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4754
4755         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4756
4757 2011-04-21  Richard Guenther  <rguenther@suse.de>
4758
4759         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4760         file name.
4761
4762 2011-04-21  Richard Guenther  <rguenther@suse.de>
4763
4764         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4765         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4766         Use DECL_P, not SSA_VAR_P.
4767         (ptr_derefs_may_alias_p): Likewise.
4768         (ptr_deref_may_alias_ref_p_1): Likewise.
4769         (decl_refs_may_alias_p): Likewise.
4770         (refs_may_alias_p_1): Likewise.
4771         (ref_maybe_used_by_call_p_1): Likewise.
4772         (call_may_clobber_ref_p_1): Likewise.
4773         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4774         are either MEM_REF or TARGET_MEM_REF.
4775         (indirect_refs_may_alias_p): Likewise.
4776         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4777         for MEM_EXPR of indirect calls.
4778
4779 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4780
4781         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4782         (dst_file_info_struct): Remove flen field.
4783         (lookup_filename): Remove code that set flen field.
4784
4785 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4786
4787         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4788
4789 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4790
4791         PR target/48708
4792         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4793         vec_extract and vec_concat for non-SSE4_1 targets.
4794
4795 2011-04-21  Richard Guenther  <rguenther@suse.de>
4796
4797         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4798         return statements.
4799
4800 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4801
4802         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4803         undefine.
4804         (FILE): Don't undefine.
4805
4806 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4807
4808         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4809         struct rtx_def *.
4810         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4811         struct rtx_def *.
4812         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4813         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4814         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4815         rtx_def *.
4816         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4817         definitions where used.
4818         * config/microblaze/microblaze.h (struct microblaze_args): Use
4819         rtx, not struct rtx_def *.
4820         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4821         rtx_def *.
4822         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4823         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4824         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4825         not struct rtx_def *.
4826         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4827         struct rtx_def *.
4828         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4829         rtx_def *.
4830         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4831
4832 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4833
4834         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4835         operand_equal_p to compare DR_BASE_ADDRESSes.
4836         (vect_check_interleaving): Likewise.
4837
4838 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4839
4840         PR target/46329
4841         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4842         for all Neon struct constants.
4843
4844 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4845
4846         * target.def (legitimate_constant_p): New hook.
4847         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4848         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4849         * doc/tm.texi: Regenerate.
4850         * hooks.h (hook_bool_mode_rtx_true): Declare.
4851         * hooks.c (hook_bool_mode_rtx_true): Define.
4852         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4853         * calls.c (precompute_register_parameters): Replace uses of
4854         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4855         (emit_library_call_value_1): Likewise.
4856         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4857         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4858         * ira-costs.c (scan_one_insn): Likewise.
4859         * recog.c (general_operand, immediate_operand): Likewise.
4860         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4861         * reload1.c (init_eliminable_invariants): Likewise.
4862
4863         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4864         mode argument.
4865         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4866         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4867         argument.
4868         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4869         * config/alpha/predicates.md (input_operand): Update call to
4870         alpha_legitimate_constant_p.
4871
4872         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4873         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4874         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4875         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4876         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4877         (arm_legitimate_constant_p): New functions.
4878         (arm_cannot_force_const_mem): Make static.
4879
4880         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4881
4882         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4883         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4884         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4885         instead of bfin_legitimate_constant_p.
4886         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4887         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4888
4889         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4890
4891         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4892
4893         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4894         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4895         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4896         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4897
4898         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4899         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4900         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4901
4902         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4903         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4904         * config/i386/i386.c (legitimate_constant_p): Rename to...
4905         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4906         argument.
4907         (ix86_cannot_force_const_mem): Update accordingly.
4908         (ix86_legitimate_address_p): Likewise.
4909         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4910         * config/i386/i386.md: Update commentary.
4911
4912         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4913         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4914         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4915         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4916
4917         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4918
4919         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4920         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4921         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4922         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4923
4924         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4925         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4926         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4927
4928         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4929         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4930         (m32r_legitimate_constant_p): New function.
4931
4932         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4933         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4934         LEGITIMATE_CONSTANT_P.
4935         (LEGITIMATE_CONSTANT_P): Delete.
4936         * config/m68k/m68k.c (m68k_expand_prologue): Call
4937         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4938         (m68k_legitimate_constant_p): New function.
4939         * config/m68k/m68k.md: Update comments.
4940
4941         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4942         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4943         (mcore_legitimate_constant_p): New function.
4944
4945         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4946         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4947         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4948         Add a mode argument.
4949         (mep_legitimate_address): Update accordingly.
4950         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4951
4952         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4953         Delete.
4954         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4955         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4956         static.  Check OP's mode for VOIDmode.
4957         (microblaze_legitimate_constant_p): New function.
4958         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4959
4960         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4961         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4962         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4963         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4964         * config/mips/predicates.md: Update comments.
4965
4966         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4967         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4968         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4969         (mmix_legitimate_constant_p): Make static, return a bool, and take
4970         a mode argument.
4971         (mmix_print_operand_address): Update accordingly.
4972
4973         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4974         Delete.
4975         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4976         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4977         static.  Add a mode argument.
4978         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4979
4980         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4981
4982         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4983         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4984         (pa_legitimate_constant_p): New function.
4985
4986         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4987
4988         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4989         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4990         (pdp11_legitimate_constant_p): New function.
4991
4992         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4993         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4994         (rs6000_legitimate_constant_p): New function.
4995
4996         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4997         (rx_legitimate_constant_p): ...this.
4998         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4999         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5000         (rx_legitimate_constant_p): ...this.
5001         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5002         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5003
5004         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5005         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5006         * config/s390/s390.c (legitimate_constant_p): Rename to...
5007         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
5008         and add a mode argument.
5009         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5010
5011         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5012
5013         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5014         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5015         (sh_legitimate_constant_p): New function.
5016
5017         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5018         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5019         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5020         (legitimate_constant_p): Rename to...
5021         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
5022         argument.
5023         (constant_address_p): Update accordingly.
5024
5025         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5026         argument and return a bool.
5027         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5028         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5029         (spu_legitimate_constant_p): Add a mode argument and return a bool.
5030         (spu_rtx_costs): Update accordingly.
5031         * config/spu/predicates.md (vec_imm_operand): Likewise.
5032
5033         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5034
5035         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5036         * config/v850/v850.c (v850_legitimate_constant_p): New function.
5037         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5038
5039         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5040         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5041         * config/vax/vax.c (legitimate_constant_p): Likewise.
5042
5043         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5044         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5045         (xtensa_legitimate_constant_p): New function.
5046
5047 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5048
5049         * target.def (cannot_force_const_mem): Add a mode argument.
5050         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5051         * doc/tm.texi: Regenerate.
5052         * hooks.h (hook_bool_mode_rtx_false): Declare.
5053         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5054         (hook_bool_mode_const_rtx_true): Likewise.
5055         (hook_bool_mode_rtx_false): New function.
5056         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5057         to be non-VOID.  Update call to cannot_force_const_mem.
5058         (find_reloads): Update accordingly.
5059         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5060         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5061         argument.
5062         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5063         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5064         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5065         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5066         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5067         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5068         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5069         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5070         (m68k_cannot_force_const_mem): ...this new function.
5071         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5072         argument.
5073         (mips_const_insns, mips_legitimize_const_move): Update calls.
5074         (mips_secondary_reload_class): Likewise.
5075         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5076         (pa_cannot_force_const_mem): ...this new function.
5077         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5078         (rs6000_cannot_force_const_mem): ...this new function.
5079         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5080         argument.
5081         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5082         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5083         to...
5084         (xtensa_cannot_force_const_mem): ...this new function.
5085
5086 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5087
5088         * config/mips/mips.c (mips16_build_function_stub): Call
5089         build_function_type_list instead of build_function_type.
5090         (mips16_build_call_stub): Likewise.
5091
5092 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5093
5094         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5095         instead of build_function_type.
5096
5097 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5098
5099         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5100         instead of build_function_type.
5101
5102 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
5103
5104         PR target/48678
5105         * config/i386/i386.md (insv): Change operand 0 constraint to
5106         "register_operand".  Change operand 1 and 2 constraint to
5107         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
5108         * config/i386/sse.md (sse4_1_pinsrb): Export.
5109         (sse2_pinsrw): Ditto.
5110         (sse4_1_pinsrd): Ditto.
5111         (sse4_1_pinsrq): Ditto.
5112         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5113         * config/i386/i386.c (ix86_expand_pinsr): New.
5114
5115 2011-04-20  Easwaran Raman  <eraman@google.com>
5116
5117         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5118         containing union type only with -fstrict-aliasing.
5119
5120 2011-04-20  Jim Meyering  <meyering@redhat.com>
5121
5122         Remove useless if-before-free tests.
5123         * calls.c (expand_call, save_area): Likewise.
5124         * cfgcleanup.c (try_forward_edges): Likewise.
5125         * collect2.c (collect_execute): Likewise.
5126         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5127         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5128         * coverage.c (coverage_checksum_string): Likewise.
5129         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5130         * cselib.c (cselib_init): Likewise.
5131         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5132         (df_set_clean_cfg): Likewise.
5133         * function.c (free_after_compilation): Likewise.
5134         * gcc.c (do_spec_1, main): Likewise.
5135         * gcov.c (create_file_names): Likewise.
5136         * gensupport.c (identify_predicable_attribute): Likewise.
5137         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5138         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5139         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5140         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5141         * ipa-pure-const.c (local_pure_const): Likewise.
5142         * ipa-reference.c (propagate): Likewise.
5143         * ira-costs.c (free_ira_costs): Likewise.
5144         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5145         * matrix-reorg.c (mat_free): Likewise.
5146         * prefix.c (get_key_value): Likewise.
5147         * profile.c (compute_value_histograms): Likewise.
5148         * reload1.c (free_reg_equiv): Likewise.
5149         * sched-deps.c (free_deps): Likewise.
5150         * sel-sched-ir.c (fence_clear): Likewise.
5151         * sese.c (set_rename, if_region_set_false_region): Likewise.
5152         * tree-data-ref.c (free_rdg): Likewise.
5153         * tree-eh.c (lower_try_finally): Likewise.
5154         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5155         * tree-ssa-live.c (delete_var_map): Likewise.
5156         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5157         * tree-ssa-pre.c (phi_trans_add): Likewise.
5158
5159 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
5160
5161         PR tree-optimization/48611
5162         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5163         beyond ERT_MUST_NOT_THROW region.
5164
5165 2011-04-20  Catherine Moore  <clm@codesourcery.com>
5166
5167         * config/mips/mips.opt (mfix-24k): New.
5168         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5169         * config/mips/mips.md (length): Increase by 4 for stores if
5170         fixing 24K errata.
5171         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5172         all noreorder if fixing 24K errata.
5173         * doc/invoke.texi: Document mfix-24k.
5174
5175 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
5176
5177         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5178         quad-word modes, reduce to 9-bit index range when above 1016 limit.
5179
5180 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
5181
5182         * config/arm/arm.c (arm_gen_constant): Move movw support ....
5183         (const_ok_for_op): ... to here.
5184
5185 2011-04-20  Kai Tietz  <ktietz@redhat.com>
5186
5187         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5188         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5189
5190 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
5191
5192         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5193
5194 2011-04-20  Richard Guenther  <rguenther@suse.de>
5195
5196         PR tree-optimization/47892
5197         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5198         are if-convertible.
5199
5200 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5201
5202         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5203
5204 2011-04-20  Tristan Gingold  <gingold@adacore.com>
5205
5206         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5207
5208 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
5209
5210         PR target/18145
5211
5212         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5213         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5214         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5215         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5216         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5217
5218         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5219         New prototype.
5220
5221         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5222         (avr_asm_named_section, avr_asm_output_aligned_common,
5223         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5224         New functions to update...
5225         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5226         (avr_asm_init_sections): Overwrite section callbacks for
5227         data_section, bss_section.
5228         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5229         from here to...
5230         (avr_file_end): ...here.
5231
5232 2011-04-20  Richard Guenther  <rguenther@suse.de>
5233
5234         PR middle-end/48695
5235         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5236         objects and types here.  Adjust for their offset before comparing.
5237
5238 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
5239
5240         * tree-vect-stmts.c (vectorizable_store): Only chain one related
5241         statement per copy.
5242
5243 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
5244
5245         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5246         (GIMPLE_H): Include $(INTERNAL_FN_H).
5247         (OBJS-common): Add internal-fn.o.
5248         (internal-fn.o): New rule.
5249         * internal-fn.def: New file.
5250         * internal-fn.h: Likewise.
5251         * internal-fn.c: Likewise.
5252         * gimple.h: Include internal-fn.h.
5253         (GF_CALL_INTERNAL): New gf_mask.
5254         (gimple_statement_call): Put fntype into a union with a new
5255         internal_fn field.
5256         (gimple_build_call_internal): Declare.
5257         (gimple_build_call_internal_vec): Likewise.
5258         (gimple_call_same_target_p): Likewise.
5259         (gimple_call_internal_p): New function.
5260         (gimple_call_internal_fn): Likewise.
5261         (gimple_call_fntype): Return null for internal calls.
5262         (gimple_call_set_fntype): Assert that the function is not internal.
5263         (gimple_call_set_fn): Likewise.
5264         (gimple_call_set_fndecl): Likewise.
5265         (gimple_call_set_internal_fn): New function.
5266         (gimple_call_addr_fndecl): Handle null functions.
5267         (gimple_call_return_type): Likewise null types.
5268         * gimple.c (gimple_build_call_internal_1): New function.
5269         (gimple_build_call_internal): Likewise.
5270         (gimple_build_call_internal_vec): Likewise.
5271         (gimple_call_same_target_p): Likewise.
5272         (gimple_call_flags): Handle calls to internal functions.
5273         (gimple_call_fnspec): New function.
5274         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5275         (gimple_has_side_effects): Handle null functions.
5276         (gimple_rhs_has_side_effects): Likewise.
5277         (gimple_call_copy_skip_args): Handle calls to internal functions.
5278         * cfgexpand.c (expand_call_stmt): Likewise.
5279         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5280         * gimple-fold.c (gimple_fold_call): Handle null functions.
5281         (gimple_fold_stmt_to_constant_1): Don't fold
5282         calls to internal functions.
5283         * gimple-low.c (gimple_check_call_args): Handle calls to internal
5284         functions.
5285         * gimple-pretty-print.c (dump_gimple_call): Likewise.
5286         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5287         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5288         (do_warn_unused_result): Likewise.
5289         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5290         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5291         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5292         the target of a call.
5293         (initialize_hash_element): Update accordingly.
5294         (hashable_expr_equal_p): Use gimple_call_same_target_p.
5295         (iterative_hash_hashable_expr): Handle calls to internal functions.
5296         (print_expr_hash_elt): Likewise.
5297         * tree-ssa-pre.c (can_value_number_call): Likewise.
5298         (eliminate): Handle null functions.
5299         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5300         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5301         (find_func_aliases): Likewise.
5302         * value-prof.c (gimple_ic_transform): Likewise.
5303         (gimple_indirect_call_to_profile): Likewise.
5304         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5305         * lto-streamer-out.c (output_gimple_stmt): Likewise.
5306
5307 2011-04-19  Jan Hubicka  <jh@suse.cz>
5308
5309         * ipa-inline-transform.c (save_inline_function_body): Add comments.
5310         * ipa-inline.c (inline_small_functions): Compute summaries first,
5311         populate heap later.
5312
5313 2011-04-19  Jan Hubicka  <jh@suse.cz>
5314
5315         * cgraph.h (save_inline_function_body): Remove.
5316         * ipa-inline-transform.c: New file, broke out of...
5317         * ipa-inline.c: ... this one; Update toplevel comment.
5318         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5319         make global.
5320         (update_noncloned_frequencies): Move to ipa-inline-transform.c
5321         (cgraph_mark_inline_edge): Rename to inline_call; move to
5322         ipa-inline-transform.c.
5323         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5324         move to ipa-inline-transform.c
5325         (recursive_inlining, inline_small_functions, flatten_function,
5326         ipa_inline, inline_always_inline_functions,
5327         early_inline_small_functions): Update.
5328         (inline_transform): Move to ipa-inline-transform.c.
5329         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5330         Declare.
5331         * Makefile.in (ipa-inline-transform.o): New file.
5332         * cgraphunit.c (save_inline_function_body): Move to
5333         ipa-inline-transform.c
5334
5335 2011-04-19  DJ Delorie  <dj@redhat.com>
5336
5337         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5338         registers if we already know there aren't any.
5339         (m32c_emit_epilogue): Don't emit a barrier here.
5340         (m32c_emit_eh_epilogue): Likewise.
5341         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5342         operands at expand time.
5343         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5344         int" wchar type.
5345         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5346         duplicates.  Provide aliases instead.
5347         * config/m32c/prologue.md (eh_return): Emit a barrier here.
5348         (eh_epilogue): Add a "(return)" here as a hint to other parts of
5349         the compiler.
5350
5351 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
5352
5353         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5354         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5355         (general_or_i64_p, sparc_register_move_cost): New function.
5356
5357 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5358
5359         * doc/install.texi (Configuration, --enable-threads): Remove mach.
5360         Add lynx, mipssde.  Sort table.
5361
5362 2011-04-19  Xinliang David Li  <davidxl@google.com>
5363
5364         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5365         not negative.
5366
5367 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
5368
5369         PR target/48678
5370         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5371         is a SUBREG with non-MODE_INT mode inside of it.
5372
5373 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5374
5375         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5376         also according to actual contants.
5377         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5378         (gimple_fold_call): Use it.
5379         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5380
5381 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5382
5383         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5384         non-pointer assignments.
5385
5386 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5387
5388         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5389         account anc_offset and otr_type from the indirect edge info.
5390         * ipa-prop.c (get_ancestor_addr_info): New function.
5391         (compute_complex_ancestor_jump_func): Assignment analysis moved to
5392         get_ancestor_addr_info, call it.
5393         (ipa_note_param_call): Do not initialize information about polymorphic
5394         calls, return the indirect call graph edge.  Remove the last
5395         parameter, adjust all callers.
5396         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5397         parameters.  Initialize polymorphic information in the indirect edge.
5398
5399 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5400
5401         PR lto/48148
5402         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5403         the types if they have different enumeration identifiers.
5404
5405 2011-04-19  Jan Hubicka  <jh@suse.cz>
5406
5407         * cgraph.h (cgraph_optimize_for_size_p): Declare.
5408         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5409         * predict.c (cgraph_optimize_for_size_p): Break out from ...
5410         (optimize_function_for_size_p) ... here.
5411
5412 2011-04-19  Richard Guenther  <rguenther@suse.de>
5413
5414         PR lto/48207
5415         * tree.c (free_lang_data): Do not reset the decl-assembler-name
5416         langhook.
5417
5418 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5419
5420         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5421         if DECL_NO_INLINE_WARNING_P is set on the function.
5422
5423 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
5424
5425         PR fortran/47976
5426         * reload1.c (inc_for_reload): Return void. All callers changed.
5427         (emit_input_reload_insns): Don't try to delete previous output
5428         reloads to a register, or record spill_reg_store for autoincs.
5429
5430 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
5431
5432         * gengtype.h: Updated copyright year.
5433         (struct input_file_st): Add inpisplugin field.
5434         (type_fileloc): New function.
5435         * gengtype.c
5436         (write_typed_struct_alloc_def): Add gcc_assert.
5437         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5438         (write_typed_alloc_defns): Don't output for plugin files.
5439         (input_file_by_name): Clear inpisplugin field.
5440         (main): Set inpisplugin field for plugin files.
5441
5442 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
5443
5444         * gengtype-state.c (string_eq): New.
5445         (read_state): Use string_eq instead of strcmp when creating the
5446         state_ident_tab.
5447
5448 2011-04-19  Wei Guozhi  <carrot@google.com>
5449
5450         PR target/47855
5451         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5452         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5453         linkage.
5454         * config/arm/constraints.md (Uu): New constraint.
5455         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5456
5457 2011-04-19  Tristan Gingold  <gingold@adacore.com>
5458
5459         * config.gcc (-*-*-*vms): Added.
5460         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5461         definitions moved.
5462         * config/vms/vms-ld.c: New file.
5463         * config/vms/vms-ar.c: New file.
5464         * config/vms/t-vmsnative: New file.
5465
5466 2011-04-18  Xinliang David Li  <davidxl@google.com>
5467
5468         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5469
5470 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5471
5472         PR middle-end/48661
5473         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5474         if TREE_TYPE (v) is non-NULL.
5475
5476         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5477         gimple_get_virt_mehtod_for_binfo.
5478         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5479         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5480         callers.
5481         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5482
5483 2011-04-18  Michael Matz  <matz@suse.de>
5484             Steve Ellcey  <sje@cup.hp.com>
5485
5486         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5487         use its mode as source mode if it isn't VOIDmode.
5488
5489 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
5490
5491         * doc/passes.texi: Fill crossref nodes.
5492
5493 2011-04-18  Jim Meyering  <meyering@redhat.com>
5494
5495         Fix doubled-word typos in comments and strings
5496         * config/alpha/vms-unwind.h: s/for for/for/
5497         * config/arm/unwind-arm.h: Likewise.
5498         * config/microblaze/microblaze.c: Likewise.
5499         * config/sh/constraints.md: s/in in/in/
5500         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5501
5502 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
5503
5504         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5505         (AVX_FLOAT_MODE_P): Ditto.
5506         (AVX128_VEC_FLOAT_MODE_P): Ditto.
5507         (AVX256_VEC_FLOAT_MODE_P): Ditto.
5508         (AVX_VEC_FLOAT_MODE_P): Ditto.
5509         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5510         (UNSPEC_MASKSTORE): Ditto.
5511         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5512         Merge from <sse>_movmsk<ssemodesuffix> and
5513         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
5514         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
5515         iterator.
5516         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5517         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5518         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5519
5520 2011-04-18  Jan Hubicka  <jh@suse.cz>
5521
5522         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5523
5524         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5525         (want_inline_function_called_once_p): Break out the logic from
5526         ipa_inline.
5527         (edge_badness): Ensure that profile is not misupdated.
5528         (lookup_recursive_calls): Prioritize by call frequencies.
5529         (inline_small_functions): Move program size estimates here;
5530         actually process whole queue even when unit growth has been
5531         met. (to properly compute inline_failed reasons and for the
5532         case unit size decrease.) Revisit comments on recursive inlining.
5533         (ipa_inline): Remove unit summary code; first inline hot calls
5534         of functions called once, cold calls next.
5535         (order, nnodes): Remove unused variables.
5536         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5537         (GTFILES): Remove ipa-inline.c
5538         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5539
5540 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5541
5542         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5543
5544 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5545             Richard Earnshaw  <rearnsha@arm.com>
5546
5547         * arm.c (neon_builtin_type_bits): Remove.
5548         (typedef enum neon_builtin_mode): New.
5549         (T_MAX): Don't define.
5550         (typedef enum neon_builtin_datum): Remove bits, codes[],
5551         num_vars and base_fcode.  Add mode, code and fcode.
5552         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5553         VAR10): Change accordingly.
5554         (neon_builtin_data[]): Change accordingly
5555         (arm_init_neon_builtins): Change accordingly.
5556         (neon_builtin_compare): Remove.
5557         (locate_neon_builtin_icode): Remove.
5558         (arm_expand_neon_builtin): Change accordingly.
5559
5560         * arm.h (enum arm_builtins): Move to ...
5561         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5562
5563         * arm.c (arm_builtin_decl): Declare.
5564         (TARGET_BUILTIN_DECL): Define.
5565         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5566         (arm_builtin_decls[]): New.
5567         (arm_init_neon_builtins): Store builtin declarations in
5568         arm_builtin_decls[].
5569         (arm_init_tls_builtins): Likewise.
5570         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5571         (arm_builtin_decl): New.
5572
5573 2011-04-18  Richard Guenther  <rguenther@suse.de>
5574
5575         * tree.c (upper_bound_in_type): Build properly canonicalized
5576         INTEGER_CSTs.
5577         (lower_bound_in_type): Likewise.
5578
5579 2011-04-18  Richard Guenther  <rguenther@suse.de>
5580
5581         * gimple.h (gimple_call_addr_fndecl): New function.
5582         (gimple_call_fndecl): Use it.
5583         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5584         for direct calls.
5585         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5586         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5587
5588 2011-04-18  Richard Guenther  <rguenther@suse.de>
5589
5590         PR middle-end/48650
5591         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5592
5593 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5594
5595         PR lto/48492
5596         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5597         DECL_IN_CONSTANT_POOL without RTL.
5598
5599 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5600             Ira Rosen  <ira.rosen@linaro.org>
5601
5602         PR target/48252
5603         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5604         to match neon_vzip/vuzp/vtrn_internal.
5605         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5606         outputs explicitly dependent on both inputs.
5607         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5608
5609 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5610
5611         PR tree-optimization/48616
5612         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5613         whether the shift is by scalar or vector based on whether all SLP
5614         scalar stmts have the same rhs.
5615
5616 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5617
5618         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5619         memory operands.
5620
5621 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5622
5623         PR target/43700
5624         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5625         registers.
5626
5627 2011-04-17  Jan Hubicka  <jh@suse.cz>
5628
5629         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5630         * cgrpahunit.c (cgraph_finalize_function): Do not set
5631         finalized_by_frontend.
5632         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5633         finalized_by_frontend.
5634
5635 2011-04-17  Jan Hubicka  <jh@suse.cz>
5636
5637         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5638         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5639         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5640         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5641         method.
5642         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5643         gimple-fold.c
5644         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5645
5646 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5647
5648         PR lto/48538
5649         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5650         is non-null before accessing it.
5651         (input_cgraph): Remove trailing spaces.
5652
5653 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5654
5655         * params.def (sms-min-sc): New param flag.
5656         * modulo-sched.c (sms_schedule): Use it.
5657         * doc/invoke.texi (sms-min-sc): Document it.
5658
5659 2011-04-17  Jan Hubicka  <jh@suse.cz>
5660
5661         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5662         present, also set gimple_call_set_cannot_inline.
5663         * ipa-inline.c: Update toplevel comment.
5664         (MAX_TIME): Remove.
5665         (cgraph_clone_inlined_nodes): Fix linebreaks.
5666         (cgraph_check_inline_limits): Restructure to ...
5667         (caller_growth_limits): ... this one; be more tolerant
5668         on growth in nested inline chains; add explanatory comment;
5669         fix stack accounting thinko introduced by previous patch.
5670         (cgraph_default_inline_p): Remove.
5671         (report_inline_failed_reason): New function.
5672         (can_inline_edge_p): New function.
5673         (can_early_inline_edge_p): New function.
5674         (leaf_node_p): Move upwards in file.
5675         (want_early_inline_function_p): New function.
5676         (want_inline_small_function_p): New function.
5677         (want_inline_self_recursive_call_p): New function.
5678         (cgraph_edge_badness): Rename to ...
5679         (edge_badness) ... this one; fix linebreaks.
5680         (update_edge_key): Update call of edge_baddness; add
5681         detailed dump about queue updates.
5682         (update_caller_keys): Use can_inline_edge_p and
5683         want_inline_small_function_p.
5684         (cgraph_decide_recursive_inlining): Rename to...
5685         (recursive_inlining): Use can_inline_edge_p and
5686         want_inline_self_recursive_call_p; simplify and remove no longer
5687         valid FIXME.
5688         (cgraph_set_inline_failed): Remove.
5689         (add_new_edges_to_heap): Use can_inline_edge_p and
5690         want_inline_small_function_p.
5691         (cgraph_decide_inlining_of_small_functions): Rename to ...
5692         (inline_small_functions): ... this one; cleanup; use
5693         can/want predicates; cleanup debug ouput; work edges till fibheap
5694         is exhausted and do not stop once unit growth is reached; remove
5695         later loop processing remaining edges.
5696         (cgraph_flatten): Rename to ...
5697         (flatten_function): ... this one; use can_inline_edge_p
5698         and can_early_inline_edge_p predicates.
5699         (cgraph_decide_inlining): Rename to ...
5700         (ipa_inline): ... this one; remove unreachable nodes before
5701         inlining functions called once; simplify the pass.
5702         (cgraph_perform_always_inlining): Rename to ...
5703         (inline_always_inline_functions): ... this one; use
5704         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5705         (cgraph_decide_inlining_incrementally): Rename to ...
5706         (early_inline_small_functions): ... this one; simplify
5707         using new predicates; cleanup; make dumps prettier.
5708         (cgraph_early_inlining): Rename to ...
5709         (early_inliner): newer inline regular functions into always-inlines;
5710         fix updating of call stmt summaries.
5711         (pass_early_inline): Update for new names.
5712         (inline_transform): Fix formating.
5713         (gate_cgraph_decide_inlining): Rename to ...
5714         (pass_ipa_inline): ... this one.
5715         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5716         * ipa-inline-analysis.c (dump_inline_summary): Update.
5717         (compute_inline_parameters): Do not compute disregard_inline_limits;
5718         look for mismatching arguments.
5719         (estimate_growth): Fix handlig of non-trivial self recursion.
5720         (inline_read_summary): Do not read info->disregard_inline_limits.
5721         (inline_write_summary): Do not write info->disregard_inline_limits.
5722         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5723         and move all checks into can_inline_edge_p predicate; re-enable code
5724         comparing optimization levels.
5725         (expand_call_inline): Do not test inline_forbidden_into_p.
5726         * Makefile.in (ipa-inline.o): Update arguments.
5727
5728 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5729
5730         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5731
5732 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5733
5734         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5735
5736 2011-04-17  Michael Matz  <matz@suse.de>
5737
5738         PR tree-optimization/48622
5739         PR lto/48645
5740         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5741         in same order as they're written.
5742
5743 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5744
5745         * config/pa/predicates.md: Reorganize and simplify predicates.
5746         Eliminate duplicate code checks.
5747         (arith_operand): Rename to arith14_operand
5748         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5749         * config/pa/pa.md: Use renamed operands.
5750         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5751         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5752         arith11_operand, adddi3_operand, indexed_memory_operand,
5753         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5754         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5755         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5756         move_dest_operand, move_src_operand, prefetch_cc_operand,
5757         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5758         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5759         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5760         div_operand, int5_operand, movb_comparison_operator,
5761         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5762         arith_double_operand, ireg_operand, lhs_lshift_operand,
5763         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5764         integer_store_memory_operand): Likewise.
5765         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5766         (integer_store_memory_operand, read_only_operand,
5767         function_label_operand, borx_reg_operand,
5768         non_hard_reg_operand): Likewise.
5769         (eq_neq_comparison_operator): Delete unused operator.
5770         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5771         function_label_operand.
5772         (emit_move_sequence): Likewise.
5773
5774 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5775
5776         * config/i386/sse.md (sseunpackmode): New mode attribute.
5777         (ssepackmode): Ditto.
5778         (vec_pack_trunc_<mode>): Macroize expander from
5779         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5780         (vec_unpacks_lo_<mode>): Macroize expander from
5781         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5782         (vec_unpacks_hi_<mode>): Macroize expander from
5783         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5784         (vec_unpacku_lo_<mode>): Macroize expander from
5785         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5786         (vec_unpacku_hi_<mode>): Macroize expander from
5787         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5788         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5789         ix86_expand_sse4_unpack.
5790         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5791
5792 2011-04-16  Jan Hubicka  <jh@suse.cz>
5793
5794         * cgraphbuild.c: Include ipa-inline.h.
5795         (reset_inline_failed): Use initialize_inline_failed.
5796         * cgraph.c: Include ipa-inline.h.
5797         (cgraph_create_node_1): Do not initialize estimated_growth.
5798         (initialize_inline_failed): More to ipa-inline-analysis.c
5799         (dump_cgraph_node): Do not dump inline flags.
5800         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5801         and disregard_inline_limits flags.
5802         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5803         time, size, estimated_growth.
5804         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5805         Update.
5806         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5807         DECL_DISREGARD_INLINE_LIMITS.
5808         (cgraph_analyze_function): Do not initialize
5809         node->local.disregard_inline_limits.
5810         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5811         inlinable, versionable and disregard_inline_limits.
5812         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5813         cgraph_check_inline_limits, cgraph_default_inline_p,
5814         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5815         add_new_edges_to_heap): Update.
5816         (cgraph_decide_inlining_of_small_function): Update; set
5817         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5818         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5819         cgraph_decide_inlining_incrementally): Update.
5820         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5821         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5822         time, size and estimated_growth parameters.
5823         (estimate_edge_growth): Update.
5824         (initialize_inline_failed): Declare.
5825         * ipa-split.c: Include ipa-inline.h
5826         (execute_split_functions): Update.
5827         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5828         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5829         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5830         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5831         estimated_growth to INT_MIN.
5832         (inline_node_duplication_hook): Likewise.
5833         (dump_inline_summary): Dump new fields.
5834         (compute_inline_parameters): Update.
5835         (estimate_edge_time, estimate_time_after_inlining,
5836         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5837         inline_write_summary):
5838         (initialize_inline_failed): Move here from cgraph.c.
5839         * tree-sra.c: Include ipa-inline.h.
5840         (ipa_sra_preliminary_function_checks): Update.
5841         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5842         ipa-inline.h.
5843
5844 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5845
5846         * config/i386/sse.md (V16): New mode iterator.
5847         (VI1, VI8): Ditto.
5848         (AVXMODEQI, AVXMODEDI): Remove.
5849         (sse2, sse3): New mode attribute.
5850         (mov<mode>): Use V16 mode iterator.
5851         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5852         (push<mode>1): Use V16 mode iterator.
5853         (movmisalign<mode>): Ditto.
5854         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5855         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5856         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5857         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5858         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5859         avx_movdqu<avxmodesuffix>.
5860         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5861         *avx_movdqu<avxmodesuffix>.
5862         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5863         avx_lddqu<avxmodesuffix>.
5864         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5865         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5866         avx_movnt<AVXMODEDI:mode>.
5867         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5868         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5869
5870 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5871
5872         PR target/48629
5873         * haifa-sched.c (prune_ready_list, schedule_block): Use
5874         sched_pressure_p rather than flag_sched_pressure.
5875
5876 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5877
5878         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5879         cgraph_get_node instead of cgraph_get_create_node.
5880
5881 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5882
5883         * cfgexpand.c (expand_debug_expr): Use
5884         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5885
5886 2011-04-15  Michael Matz  <matz@suse.de>
5887
5888         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5889         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5890         * function.c (gimplify_parameters): Ditto.
5891         * gimplify.c (gimplify_vla_decl): Ditto.
5892
5893         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5894         (gimple_call_set_alloca_for_var): New inline function.
5895         (gimple_call_alloca_for_var_p): Ditto.
5896         * gimple.c (gimple_build_call_from_tree): Remember
5897         CALL_ALLOCA_FOR_VAR_P state.
5898         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5899
5900         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5901         calls if they were for VLA objects.
5902
5903 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5904
5905         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5906         of ADR_EXPRs.
5907
5908 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5909
5910         PR middle-end/48601
5911         * tree-emutls.c (lower_emutls_function_body): Call
5912         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5913         result is non-NULL.
5914
5915 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5916
5917         * c-decl.c (detect_field_duplicates): Call
5918         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5919
5920 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5921
5922         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5923         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5924         * ipa-pure-const.c (check_stmt): Call it.
5925         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5926
5927 2011-04-15  Richard Guenther  <rguenther@suse.de>
5928
5929         PR tree-optimization/48290
5930         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5931         Properly decide inhibiting propagation based on the valueized
5932         operand.  Do loop-closed SSA form preserving here ...
5933         (init_copy_prop): ... not here.
5934
5935 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5936
5937         PR target/48612
5938         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5939         (*ieee_smax<mode>3): Likewise.
5940
5941 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5942
5943         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5944         Replace match_operand with match_dup for the third operand in
5945         these expanders.
5946
5947 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5948
5949         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5950         to track processing of conditionals.  Update all callers.
5951         (try_combine, simplify_if_then_else): Update.
5952
5953 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5954
5955         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5956         -fsched-pressure.
5957
5958 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5959
5960         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5961         instead of match_operand for operand 3.
5962
5963 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5964
5965         * recog.h (insn_operand_data): Add an "allows_mem" field.
5966         * genoutput.c (output_operand_data): Initialize it.
5967         * optabs.c (maybe_legitimize_operand_same_code): New function.
5968         (maybe_legitimize_operand): Use it when matching the original
5969         op->value.
5970
5971 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5972
5973         * gimplify.c: Fix issues in comments throughout.
5974         (voidify_wrapper_expr): Fix long line.
5975         (build_stack_save_restore): Likewise.
5976         (gimplify_loop_expr): Likewise.
5977         (gimplify_compound_lval): Likewise.
5978         (gimplify_init_ctor_eval): Likewise.
5979         (gimplify_modify_expr_rhs): Likewise.
5980         (omp_notice_threadprivate_variable): Likewise.
5981
5982 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5983
5984         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5985         original one if this is not a builtin function.
5986
5987 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5988
5989         PR target/48605
5990         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5991         offset it as needed based on top 2 bits in operands[3], change
5992         MEM mode to SFmode and mask those 2 bits away from operands[3].
5993
5994 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5995
5996         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5997         change from objc_declare_protocols() to objc_declare_protocol().
5998
5999 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
6000
6001         * config/i386/sse.md (sse4_1): New mode attribute.
6002         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6003         avx_blend<ssemodesuffix><avxmodesuffix> and
6004         sse4_1_blend<ssemodesuffix> using VF mode iterator.
6005         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6006         avx_blendv<ssemodesuffix><avxmodesuffix> and
6007         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6008         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6009         avx_dp<ssemodesuffix><avxmodesuffix> and
6010         sse4_1_dp<ssemodesuffix> using VF mode iterator.
6011         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6012         (sse4_1_packusdw): Merge with *avx_packusdw.
6013         (sse4_1_pblendvb): Merge with *avx_pblendvb.
6014         (sse4_1_pblendw): Merge with *avx_pblendw.
6015         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6016         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6017         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6018         VF mode iterator.
6019         (sse4_1_round<ssescalarmodesuffix>): Merge with
6020         *avx_round<ssescalarmodesuffix>.
6021         (aesenc): Merge with *avx_aesenc.
6022         (aesenclast): Merge with *avx_aesenclast.
6023         (aesdec): Merge with *avx_aesdec.
6024         (aesdeclast): Merge with *avx_aesdeclast.
6025         (pclmulqdq): Merge with *pclmulqdq.
6026         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6027         New predicate.
6028         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6029
6030 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6031
6032         PR middle-end/48608
6033         * cfgexpand.c (get_decl_align_unit): Renamed to ...
6034         (align_local_variable): This.  Update DECL_ALIGN.
6035         (add_stack_var): Updated.
6036         (expand_one_stack_var): Likewise.
6037
6038 2011-04-14  Richard Guenther  <rguenther@suse.de>
6039
6040         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6041         Remove.
6042         (dse_initialize_block_local_data, dse_leave_block,
6043         record_voperand_set, get_stmt_uid): Likewise.
6044         (dse_possible_dead_store_p): Allow any kind of killing stmt.
6045         (dse_optimize_stmt): Remove voperand set handling code.
6046         Simplify and improve to handle any kind of killing stmt.
6047         (dse_record_phi): Remove.
6048         (dse_enter_block): Simplify.
6049         (tree_ssa_dse): Likewise.
6050         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6051
6052 2011-04-14  Jan Hubicka  <jh@suse.cz>
6053
6054         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6055         * cgraph.h (struct inline_summary): Move to ipa-inline.h
6056         (cgraph_local_info): Remove inline_summary.
6057         * ipa-cp.c: Include ipa-inline.h.
6058         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6059         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6060         accesor.
6061         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6062         (input_overwrite_node): Do not set inline summary.
6063         (input_node): Do not stream inline summary.
6064         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6065         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6066         growth; we do not have inline parameters computed for that anyway.
6067         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6068         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6069         (inline_summary_t): New type and VECtor.
6070         (debug_inline_summary, dump_inline_summaries): Declare.
6071         (inline_summary): Use VOCtor.
6072         (estimate_edge_growth): Kill hack computing call stmt size directly.
6073         * lto-section-in.c (lto_section_name): Add inline section.
6074         * ipa-inline-analysis.c: Include lto-streamer.h
6075         (node_removal_hook_holder, node_duplication_hook_holder): New holders
6076         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6077         (inline_summary_vec): Define.
6078         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6079         dump_inline_summaries): New functions.
6080         (estimate_function_body_sizes): Properly compute size/time of outgoing
6081         calls.
6082         (compute_inline_parameters): Alloc inline_summary; do not compute
6083         size/time of incomming calls.
6084         (estimate_edge_time): Avoid missing time summary hack.
6085         (inline_read_summary): Read inline summary info.
6086         (inline_write_summary): Write inline summary info.
6087         (inline_free_summary): Free all hooks and inline summary vector.
6088         * lto-streamer.h: Add LTO_section_inline_summary section.
6089         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6090         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6091
6092 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6093
6094         * tree-vectorizer.h (vect_strided_store_supported): Add a
6095         HOST_WIDE_INT argument.
6096         (vect_strided_load_supported): Likewise.
6097         (vect_permute_store_chain): Return void.
6098         (vect_transform_strided_load): Likewise.
6099         (vect_permute_load_chain): Delete.
6100         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6101         count argument.  Check that the count is a power of two.
6102         (vect_strided_load_supported): Likewise.
6103         (vect_permute_store_chain): Return void.  Update after above changes.
6104         Assert that the access is supported.
6105         (vect_permute_load_chain): Likewise.
6106         (vect_transform_strided_load): Return void.
6107         * tree-vect-stmts.c (vectorizable_store): Update calls after
6108         above interface changes.
6109         (vectorizable_load): Likewise.
6110         (vect_analyze_stmt): Don't check for strided powers of two here.
6111
6112 2011-04-14  Richard Guenther  <rguenther@suse.de>
6113
6114         PR tree-optimization/48590
6115         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6116         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6117         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6118         BUILT_IN_STACK_SAVE.
6119         * tree-ssa-dce.c (propagate_necessity): Handle
6120         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6121
6122 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
6123
6124         * c-parser.c (c_parser_objc_class_declaration): Updated call to
6125         objc_declare_class.
6126
6127 2011-04-14  Richard Guenther  <rguenther@suse.de>
6128
6129         * tree.h (get_object_alignment_1): Declare.
6130         * builtins.c (get_object_alignment_1): Split out worker from ...
6131         (get_object_alignment): ... here.
6132         * fold-const.c (get_pointer_modulus_and_residue): Use
6133         get_object_alignment_1.
6134
6135 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6136
6137         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6138         type parameter.
6139         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6140         parameter.  Generalise code to handle arrays as well as vectors.
6141         (vect_setup_realignment): Update accordingly.
6142         * tree-vect-stmts.c (vectorizable_store): Likewise.
6143         (vectorizable_load): Likewise.
6144
6145 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6146
6147         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6148         within the per-copy loop.
6149
6150 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6151
6152         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6153         in the dump file.
6154
6155 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6156
6157         * doc/options.texi (Negative): Explicitly mention that the
6158         Negative chain must be circular.
6159
6160 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
6161
6162         * function.h (block_chainon): Declare.
6163         * function.c (block_chainon): Define.
6164
6165 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
6166             Eric Weddington  <eric.weddington@atmel.com>
6167             Georg-Johann Lay  <avr@gjlay.de>
6168
6169         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6170         New Includes
6171         (avr_init_builtins, avr_expand_builtin,
6172         avr_expand_delay_cycles, avr_expand_unop_builtin,
6173         avr_expand_binop_builtin ): New functions.
6174         (avr_builtin_id): New enum
6175         (struct avr_builtin_description): New struct
6176         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6177         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6178
6179         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6180         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6181         UNSPECV_DELAY_CYCLES): new enumeration values
6182         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6183         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6184         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6185         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6186         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6187         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6188         "fmulsu"): New insns
6189
6190         * config/avr/avr-c.c: fix line endings
6191         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6192         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6193         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6194         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6195         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6196
6197         * doc/extend.texi (AVR Built-in Functions): New node
6198         (Target Builtins): Add documentation of AVR
6199         built-in functions.
6200
6201 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
6202
6203         PR target/44643
6204         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6205         alone. Error if non-const data has attribute progmem.
6206
6207 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6208
6209         * tree.h (struct tree_constructor): Include tree_typed instead of
6210         tree_common.
6211         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6212         TS_TYPED instead of TS_COMMON.
6213
6214 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
6215
6216         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6217         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6218         (sse2_psadbw): Merge with *avx_psadbw.
6219         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6220         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6221         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6222         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6223         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6224         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6225         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6226         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6227         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6228         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6229         (ssse3_palignrti): Merge with *avx_palignrti.
6230
6231 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6232
6233         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6234         * tree-ssanames.c (fini_ssanames): VEC_free it.
6235         (make_ssa_name_fn): Update for VECness of free_ssanames.
6236         (release_ssa_name, release_dead_ssa_names): Likewise.
6237         * tree.h (struct tree_ssa_name): Include tree_typed instead of
6238         tree_common.
6239         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6240         TS_TYPED instead of TS_COMMON.
6241
6242 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6243
6244         * postreload-gcse.c (gcse_after_reload_main): Add calls to
6245         statistics_counter_event.
6246         * tree-ssa-copyrename.c (stats): Define.
6247         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
6248         statistics_counter_event.
6249         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6250         (bswap_stats, widen_mul_stats): Define.
6251         (insert_reciprocals): Increment rdivs_inserted.
6252         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
6253         rfuncs_inserted.  Add calls to statistics_counter_event.
6254         (execute_cse_sincos_1): Increment inserted.
6255         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
6256         statistics_counter_event.
6257         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
6258         of bswap_stats.  Add calls to statistics_counter_event.
6259         (convert_mult_to_widen): Increment widen_mults_inserted.
6260         (convert_plusminus_to_widen): Increment maccs_inserted.
6261         (convert_mult_to_fma): Increment fmas_inserted.
6262         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
6263         calls to statistics_counter_event.
6264
6265 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
6266
6267         PR rtl-optimization/48455
6268         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6269         `temp_costs->mem_cost'.
6270
6271 2011-04-13  Jan Hubicka  <jh@suse.cz>
6272
6273         * ipa-inline.h: New file.
6274         * ipa-inline-analysis.c: New file. Broken out of ...
6275         * ipa-inline.c: ... this file; update toplevel comment;
6276         include ipa-inline.h
6277         (inline_summary): Move to ipa-inline.h
6278         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6279         ipa-inline-analysis.c.
6280         (cgraph_estimate_time_after_inlining): Rename to
6281         estiamte_time_after_inlining; move to ipa-inline-analysis.c
6282         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6283         to estimate_edge_growth.
6284         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6285         rename to estimate_size_after_inlining.
6286         (cgraph_mark_inline_edge): Update for new naming convention.
6287         (cgraph_check_inline_limits): Likewise.
6288         (cgraph_edge_badness): Likewise.
6289         (cgraph_decide_recursive_inlining): Likewise.
6290         (cgraph_decide_inlining_of_small_functions): Likewise.
6291         (cgraph_decide_inlining_incrementally): Likewise.
6292         (cgraph_estimate_growth): Rename to estimate_growth; move to
6293         ipa-inline-analysis.c.
6294         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6295         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6296         (compute_inline_parameters): Likewise.
6297         (compute_inline_parameters_for_current): Likewise.
6298         (pass_inline_parameters): Likewise.
6299         (inline_indirect_intraprocedural_analysis): Likewise.
6300         (analyze_function): Rename to inline_analyze_function; likewise.
6301         (add_new_function): Move to ipa-inline-analysis.c.
6302         (inline_generate_summary): Likewise.
6303         (inline_read_summary): Likewise.
6304         (inline_write_summary): Likewise.
6305         * Makefile.in (ipa-inline-analysis.c): New file.
6306
6307 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6308
6309         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6310         * configure: Regenerate.
6311
6312 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6313
6314         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6315         instead of tree_common.
6316         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6317         Likewise.
6318         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6319         TS_TYPED rather than TS_COMMON.
6320         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6321
6322 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
6323
6324         PR target/45263
6325         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6326         r20 around calls of __tablejump_elpm__
6327
6328 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
6329
6330         PR middle-end/48591
6331         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6332         NULL.
6333         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6334
6335 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
6336
6337         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6338         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6339         (cfi_vec): New typedef.
6340         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6341         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6342         (cie_cfi_vec): New static variable.
6343         (cie_cfi_head): Delete.
6344         (add_cfi): Accept a cfi_vec * as first argument. All callers and
6345         declaration changed. Use vector rather than list operations.
6346         (new_cfi): Don't initialize the dw_cfi_next field.
6347         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6348         rather than list operations.
6349         (lookup_cfa): Use vector rather than list operations.
6350         (output_cfis): New argument upto. Accept a cfi_vec rather than
6351         a dw_cfi_ref list head as argument. All callers changed.
6352         Iterate over the vector using upto as a maximum index.
6353         (output_all_cfis): New static function.
6354         (output_fde): Use vector rather than list operations. Use the
6355         new upto argument for output_cfis rather than manipulating a
6356         list.
6357         (dwarf2out_begin_prologue): Change initializations to match
6358         new struct members.
6359         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6360         from the vector length rather than searching for the end of a list.
6361         Use output_all_cfis.
6362         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6363
6364 2011-04-13  Nick Clifton  <nickc@redhat.com>
6365
6366         * config/rx/rx.md (movmemsi): Do not use this pattern when
6367         volatile pointers are involved.
6368
6369 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
6370
6371         * config/i386/sse.md (pinsrbits): Remove.
6372         (sse2_packsswb): Merge with *avx_packsswb.
6373         (sse2_packssdw): Merge with *avx_packssdw.
6374         (sse2_packuswb): Merge with *avx_packuswb.
6375         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6376         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6377         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6378         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6379         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6380         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6381         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6382         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6383         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6384         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6385         (sse2_loadld): Merge with *avx_loadld.
6386         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6387         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6388         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6389         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6390         (vec_concatv2di): Merge with *vec_concatv2di_avx.
6391
6392 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
6393
6394         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6395         calling TREE_CHAIN.
6396         * print-tree.c (print_node): Likewise.
6397         * tree-inline.c (copy_tree_r): Likewise.
6398         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6399         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6400         instead of TS_COMMON.
6401         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6402         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6403         (copy_node_stat): Zero TREE_CHAIN only if necessary.
6404         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6405         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6406         ...and these...
6407         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6408         * tree.h: ...here.
6409         (TREE_CHAIN): Check for a TS_COMMON structure.
6410         (TREE_TYPE): Check for a TS_TYPED structure.
6411
6412 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
6413
6414         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6415         cgraph_get_create_node instead of cgraph_node.
6416
6417 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6418
6419         * c-parser.c (c_parser_initelt): Updated call to
6420         objc_build_message_expr.
6421         (c_parser_postfix_expression): Likewise.
6422
6423 2011-04-12  Kai Tietz  <ktietz@redhat.com>
6424
6425         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6426         MASK_MS_BITFIELD_LAYOUT bit.
6427
6428 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6429
6430         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6431         assert it is always true.
6432         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6433         moves.
6434
6435 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6436
6437         * c-parser.c (c_lex_one_token): Rewritten conditional used when
6438         compiling Objective-C to be more efficient.
6439
6440 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
6441
6442         * opts-common.c (decode_cmdline_options_to_array): Remove variable
6443         argv_copied.
6444
6445 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6446
6447         * recog.h, genoutput.c, optabs.c: Revert last patch.
6448
6449 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6450
6451         PR target/48090
6452         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6453
6454 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6455
6456         * recog.h (insn_operand_data): Add an "allows_mem" field.
6457         * genoutput.c (output_operand_data): Initialize it.
6458         * optabs.c (maybe_legitimize_operand_same_code): New function.
6459         (maybe_legitimize_operand): Use it when matching the original
6460         op->value.
6461
6462 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6463
6464         * genpreds.c (process_define_predicate): Move most processing
6465         to gensupport.c.  Continue to validate the expression.
6466         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6467         (process_define_predicate): Move processing to gensupport.c.
6468         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6469         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6470         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
6471         argument.
6472         (valid_predicate_name_p): New function, split out from old
6473         genpreds.c:process_define_predicate.
6474         (process_define_predicate): New function, combining code from
6475         old genpreds.c and genrecog.c functions.
6476         (process_rtx): Call it for DEFINE_PREDICATE and
6477         DEFINE_SPECIAL_PREDICATE.
6478
6479 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6480
6481         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6482         size of a '%A' memory reference.
6483         (T_DREG, T_QREG): New neon_builtin_type_bits.
6484         (arm_init_neon_builtins): Assert that the load and store operands
6485         are neon_struct_operands.
6486         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6487         (NEON_ARG_MEMORY): New builtin_arg.
6488         (neon_dereference_pointer): New function.
6489         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6490         Handle NEON_ARG_MEMORY.
6491         (arm_expand_neon_builtin): Update after above interface changes.
6492         Use NEON_ARG_MEMORY for loads and stores.
6493         * config/arm/predicates.md (neon_struct_operand): New predicate.
6494         * config/arm/iterators.md (V_two_elem): Tweak formatting.
6495         (V_three_elem): Use BLKmode for accesses that have no associated mode.
6496         (V_four_elem): Tweak formatting.
6497         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6498         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6499         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6500         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6501         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6502         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6503         (neon_vst4<mode>): Replace pointer operand with a memory operand.
6504         Use %A in the output template.
6505         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6506         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6507         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6508         the width of the memory access.  Remove post-increment.
6509         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6510
6511 2011-04-12  Nick Clifton  <nickc@redhat.com>
6512
6513         * config/v850/v850.c (expand_prologue): Do not use the CALLT
6514         instruction for interrupt handlers if the target is the basic V850
6515         architecture.
6516         (expand_epilogue): Likewise.
6517
6518 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6519
6520         PR rtl-optimization/48549
6521         * combine.c (propagate_for_debug): Also stop after BB_END of
6522         this_basic_block.  Process LAST and just stop processing after it.
6523         (combine_instructions): If last_combined_insn has been deleted,
6524         set last_combined_insn to its PREV_INSN.
6525
6526 2011-04-12  Richard Guenther  <rguenther@suse.de>
6527
6528         PR tree-optimization/46076
6529         * gimple.h (struct gimple_statement_call): Add fntype field.
6530         (gimple_call_fntype): Adjust.
6531         (gimple_call_set_fntype): New function.
6532         * gimple.c (gimple_build_call_1): Set the call function type.
6533         * gimplify.c (gimplify_call_expr): Preserve the function
6534         type the frontend used for the call.
6535         (gimplify_modify_expr): Likewise.
6536         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6537         function type.
6538         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6539         function type.
6540         * tree-ssa.c (useless_type_conversion_p): Function pointer
6541         conversions are useless.
6542
6543 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6544
6545         * cgraph.h (cgraph_node): Remove function declaration.
6546         (cgraph_create_node): Declare.
6547         (cgraph_get_create_node): Likewise.
6548         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6549         Updated all callers.
6550         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6551         the decl does not already exist.  Call cgraph_get_create_node instead
6552         of cgraph_node.
6553         (cgraph_get_create_node): New function.
6554         (cgraph_same_body_alias): Update comment.
6555         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6556         assert it does not return NULL.
6557         (cgraph_update_edges_for_call_stmt): Likewise.
6558         (cgraph_clone_edge): Likewise.
6559         (cgraph_create_virtual_clone): Likewise.
6560         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6561         instead of cgraph_node.
6562         (cgraph_add_new_function): Call cgraph_create_node or
6563         cgraph_get_create_node instead of cgraph_node.
6564         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6565         instead of cgraph_node.
6566         (record_eh_tables): Likewise.
6567         (mark_address): Likewise.
6568         (mark_load): Likewise.
6569         (build_cgraph_edges): Call cgraph_get_create_node instead
6570         of cgraph_node.
6571         (rebuild_cgraph_edges): Likewise.
6572         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6573         instead of cgraph_node.
6574         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6575         cgraph_node.
6576         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6577         cgraph_create_node instead of cgraph_node.
6578         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6579         of cgraph_node.
6580         * lto-cgraph.c (input_node): Likewise.
6581         * lto-streamer-in.c (input_function): Likewise.
6582         * varasm.c (mark_decl_referenced): Likewise.
6583         (assemble_alias): Likewise.
6584
6585 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6586
6587         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6588         instead of cgraph_node and assert it does not return NULL.
6589         * lto-streamer-in.c (lto_read_body): Likewise.
6590         * omp-low.c (new_omp_context): Likewise.
6591         (create_task_copyfn): Likewise.
6592         * tree-emutls.c (lower_emutls_function_body): Likewise.
6593         * matrix-reorg.c (transform_allocation_sites): Likewise.
6594
6595 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6596
6597         PR c/48552
6598         * c-typeck.c (build_asm_expr): Error out on attempts to use
6599         void type outputs or inputs for constraints that allow reg or
6600         don't allow memory.
6601
6602 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6603             Richard Earnshaw  <rearnsha@arm.com>
6604
6605         PR target/48250
6606         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6607         to use sign-magnitude offsets. Reject unsupported unaligned
6608         cases. Add detailed description in comments.
6609         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6610         condition from TARGET_32BIT to TARGET_ARM.
6611
6612 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6613
6614         * tree.h (struct typed_tree): New.
6615         (struct tree_common): Include it instead of tree_base.
6616         (TREE_TYPE): Update for new location of type field.
6617         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6618         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6619         (union tree_node): Add typed field.
6620         * treestruct.def (TS_TYPED): New.
6621         * lto-streamer.c (check_handled_ts_structures): Handle it.
6622         * tree.c (MARK_TS_TYPED): New macro.
6623         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6624
6625 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6626
6627         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6628         (force_nonfallthru): Do not alter the loop nest if no basic block
6629         was created.
6630
6631 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6632
6633         * config/i386/sse.md (VI): New mode iterator.
6634         (SSEMODEI): Remove.
6635         (AVX256MODEI): Ditto.
6636         (AVXMODEF4P): Ditto.
6637         (avxvecpsmode): Ditto.
6638         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6639         (sse2_andnot<mode>3): New expander.
6640         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6641         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6642         (<any_logic:code><mode>3): Use VI mode iterator.
6643         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6644         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6645         (*andnottf3): Handle AVX three-operand constraints.
6646         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6647
6648 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6649             Robert Millan  <rmh@gnu.org>
6650
6651         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6652         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6653         GNU_USER_DYNAMIC_LINKER64): Define.
6654         (REG_NAME): Don't undefine.
6655         (MD_UNWIND_SUPPORT): Undefine.
6656         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6657         (REG_NAME): Don't undefine.
6658         (MD_UNWIND_SUPPORT): Undefine.
6659         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6660
6661 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6662
6663         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6664         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6665
6666 2011-04-11  Xinliang David Li  <davidxl@google.com>
6667
6668         * value-profile.c (check_ic_target): New function.
6669         (gimple_ic_transform): Sanity check indirect call target.
6670         * gimple-low.c (gimple_check_call_args): Interface change.
6671         (gimple_check_call_matching_types): New function.
6672         * tree-inline.c (tree_can_inline_p): Call new function.
6673
6674 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
6675
6676         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6677         tree-pretty-print.h & realmpfr.h.
6678
6679 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
6680
6681         PR middle-end/48464
6682         * ira.c (setup_pressure_classes): Fix typo in loop condition.
6683         (setup_allocno_and_important_classes): Ditto.
6684
6685 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6686
6687         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6688         GNU_USER_DYNAMIC_LINKER.
6689         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6690         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6691         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6692         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6693         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6694         GNU_USER_TARGET_OS_CPP_BUILTINS.
6695         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6696         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6697         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6698         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6699         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6700         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6701         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6702         GNU_USER_TARGET_OS_CPP_BUILTINS.
6703         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6704         GNU_USER_DYNAMIC_LINKER.
6705         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6706         GNU_USER_TARGET_OS_CPP_BUILTINS.
6707         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6708         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6709         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6710         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6711         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6712         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6713         GNU_USER_DYNAMIC_LINKER64): Remove.
6714         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6715         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6716         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6717         GNU_USER_DYNAMIC_LINKER.
6718         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6719         GNU_USER_TARGET_OS_CPP_BUILTINS.
6720         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6721         GNU_USER_TARGET_OS_CPP_BUILTINS.
6722         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6723         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6724         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6725         GNU_USER_TARGET_OS_CPP_BUILTINS.
6726         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6727         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6728         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6729         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6730         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6731         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6732         GNU_USER_DYNAMIC_LINKER.
6733         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6734         GNU_USER_TARGET_OS_CPP_BUILTINS.
6735         * config/m68k/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_LINKER to
6738         GNU_USER_DYNAMIC_LINKER.
6739         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6740         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6741         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6742         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6743         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6744         GNU_USER_DYNAMIC_LINKER.
6745         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6746         GNU_USER_DYNAMIC_LINKERN32.
6747         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6748         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6749         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6750         GNU_USER_DYNAMIC_LINKER32.
6751         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6752         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6753         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6754         GNU_USER_DYNAMIC_LINKER.
6755         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6756         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6757         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6758         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6759         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6760         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6761         GNU_USER_DYNAMIC_LINKER32.
6762         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6763         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6764         GNU_USER_DYNAMIC_LINKER.
6765         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6766         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6767         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6768         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6769         GNU_USER_DYNAMIC_LINKER64.
6770         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6771         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6772         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6773         GNU_USER_DYNAMIC_LINKER.
6774         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6775         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6776         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6777         GNU_USER_DYNAMIC_LINKER.
6778         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6779         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6780         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6781         GNU_USER_DYNAMIC_LINKER32.
6782         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6783         GNU_USER_DYNAMIC_LINKER64.
6784         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6785         GNU_USER_DYNAMIC_LINKER64.
6786         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6787         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6788         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6789         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6790         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6791
6792 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6793
6794         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6795         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6796         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6797         GNU_USER_DYNAMIC_LINKER.
6798         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6799         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6800         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6801         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6802         GNU_USER_DYNAMIC_LINKER64.
6803         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6804         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6805         GNU_USER_LINK_EMULATION.
6806         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6807         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6808         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6809         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6810         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6811         CPP_SPEC, CC1_SPEC): Remove.
6812         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6813         (GNU_USER_DYNAMIC_LINKER): Define.
6814         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6815         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6816         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6817         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6818         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6819         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6820         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6821         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6822         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6823         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6824         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6825         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6826         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6827         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6828         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6829         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6830         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6831         GNU_USER_DYNAMIC_LINKER.
6832         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6833         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6834         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6835         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6836         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6837         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6838         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6839         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6840         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6841         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6842
6843 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6844
6845         PR target/9601
6846         PR target/11772
6847         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6848         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6849         comment.
6850         (ix86_is_msabi_thiscall): Removed.
6851         (ix86_is_type_thiscall): Likewise.
6852         (ix86_get_callcvt): New function.
6853         (ix86_comp_type_attributes): Simplify check.
6854         (ix86_function_regparm): Use ix86_get_callcvt for calling
6855         convention attribute checks.
6856         (ix86_return_pops_args): Likewise.
6857         (ix86_static_chain): Likewise.
6858         (x86_this_parameter): Likewise.
6859         (x86_output_mi_thunk): Likewise.
6860         (ix86_function_type_abi): Optimize check for types without attributes.
6861         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6862         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6863         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6864         by flag-values.
6865         (IX86_BASE_CALLCVT): Helper macro.
6866         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6867         Use ix86_get_callcvt for calling convention attribute checks and avoid
6868         symbol-decoration for stdcall in TARGET_RTD case.
6869         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6870         Likewise.
6871         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6872         for declaration.
6873
6874 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6875
6876         * config/i386/sse.md (VI_128): New mode iterator.
6877         (VI12_128): Rename from SSEMODE12.
6878         (VI14_128): Rename from SSEMODE14.
6879         (VI124_128): New mode iterator.
6880         (VI24_128): Rename from SSEMODE248.
6881         (VI248_128): Rename from SSEMODE248.
6882         (SSEMODE124C8): Remove.
6883         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6884         (*sse2_<plusminus_insn><mode>3): Merge with
6885         *avx_<plusminus_insn><mode>3.
6886         (*mulv8hi3): Merge with *avx_mulv8hi3.
6887         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6888         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6889         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6890         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6891         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6892         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6893         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6894         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6895         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6896         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6897         (*<smaxmin:code>v8hi3): Ditto.
6898         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6899         (*<smaxmin:code>v16qi3): Ditto.
6900         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6901         (*sse2_eq<mode>3): Ditto.
6902         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6903         (*sse2_gt<mode>3): Ditto.
6904         (vcondv2di): Split out of vcond<mode>.
6905         (vconduv2di): Split out of vcondu<mode>.
6906
6907 2011-04-11  Richard Guenther  <rguenther@suse.de>
6908
6909         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6910         before calling tree_low_cst.
6911
6912 2011-04-11  Richard Guenther  <rguenther@suse.de>
6913
6914         * stor-layout.c (layout_type): Compute all array index size operations
6915         in the original type.
6916         (initialize_sizetypes): Add comment.
6917         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6918
6919 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6920
6921         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6922
6923 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6924
6925         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6926         of cgraph_node, handle NULL return value.
6927         (cgraph_global_info): Likewise.
6928         (cgraph_rtl_info): Likewise.
6929         * tree-inline.c (estimate_num_insns): Likewise.
6930         * gimplify.c (unshare_body): Likewise.
6931         (unvisit_body): Likewise.
6932         (gimplify_body): Likewise.
6933         * predict.c (optimize_function_for_size_p): Likewise.
6934         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6935         (call_may_clobber_ref_p_1): Likewise.
6936         * varasm.c (function_section_1): Likewise.
6937         (assemble_start_function): Likewise.
6938
6939 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6940
6941         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6942         of cgraph_node.
6943         * final.c (rest_of_clean_state): Likewise.
6944         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6945         * passes.c (pass_init_dump_file): Likewise.
6946         (execute_all_ipa_transforms): Likewise.
6947         (function_called_by_processed_nodes_p): Likewise.
6948         * predict.c (maybe_hot_frequency_p): Likewise.
6949         (probably_never_executed_bb_p): Likewise.
6950         (compute_function_frequency): Likewise.
6951         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6952         (unnest_nesting_tree_1): Likewise.
6953         (lower_nested_functions): Likewise.
6954         * tree-optimize.c (execute_fixup_cfg): Likewise.
6955         (tree_rest_of_compilation): Likewise.
6956         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6957         * tree-sra.c (ipa_early_sra): Likewise.
6958         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6959         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6960         * ipa.c (record_cdtor_fn): Likewise.
6961         * ipa-inline.c (cgraph_early_inlining): Likewise.
6962         (compute_inline_parameters_for_current): Likewise.
6963         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6964         * ipa-pure-const.c (local_pure_const): Likewise.
6965         * ipa-split.c (split_function): Likewise.
6966         (execute_split_functions): Likewise.
6967         * cgraphbuild.c (build_cgraph_edges): Likewise.
6968         (rebuild_cgraph_edges): Likewise.
6969         (cgraph_rebuild_references): Likewise.
6970         (remove_cgraph_callee_edges): Likewise.
6971         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6972         (verify_cgraph_node): Likewise.
6973         (cgraph_analyze_functions): Likewise.
6974         (cgraph_preserve_function_body_p): Likewise.
6975         (save_inline_function_body): Likewise.
6976         (save_inline_function_body): Likewise.
6977         * tree-inline.c (copy_bb): Likewise.
6978         (optimize_inline_calls): Likewise.
6979
6980 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6981
6982         PR tree-optimization/48195
6983         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6984         ipa_check_create_edge_args.
6985         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6986         ipa_check_create_edge_args.
6987         * ipa-inline.c (inline_generate_summary): Do not call
6988         ipa_check_create_node_params and ipa_check_create_edge_args.
6989         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6990         ipa_check_create_edge_args.
6991
6992 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6993
6994         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6995         instead of loop.
6996         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6997         * function.c (record_hard_reg_sets): Likewise.
6998         * ira.c (compute_regs_asm_clobbered): Likewise.
6999         * sched-deps.c (sched_analyze_1): Likewise.
7000         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7001
7002 2011-04-09  Xinliang David Li  <davidxl@google.com>
7003
7004         PR tree-optimization/PR48484
7005         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7006         has_valid_pred lazily
7007
7008 2011-04-09  Duncan Sands  <baldrick@free.fr>
7009
7010         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7011
7012 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7013
7014         * combine.c (combine_validate_cost): Adjust comments.  Set registered
7015         cost of I0 to zero at the end, if any.
7016
7017 2011-04-08  Xinliang David Li  <davidxl@google.com>
7018
7019         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7020         to insane profile data.
7021
7022 2011-04-08  Xinliang David Li  <davidxl@google.com>
7023
7024         * ipa-cp.c (ipcp_update_profiling): Correct
7025          negative scale factor due to insane profile data.
7026
7027 2011-04-08  Xinliang David Li  <davidxl@google.com>
7028
7029         * final.c (dump_basic_block_info): New function.
7030         (final): Dump basic block.
7031         (final_scan_insn): Remove old dump.
7032
7033 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
7034
7035         PR target/47829
7036         * config.gcc (i386-*-freebsd): Disable unwind table generation for
7037         crtbegin/crtend.
7038
7039 2011-04-08  Michael Matz  <matz@suse.de>
7040
7041         PR middle-end/48389
7042         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7043         functions.
7044         (rebuild_jump_labels): Call rebuild_jump_labels_1.
7045         * rtl.h (rebuild_jump_labels_chain): Declare.
7046         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7047         insns inserted on edges.
7048
7049 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
7050
7051         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7052         * config/arm/arm-arches.def: New.
7053         * config/arm/arm-opts.h: New.
7054         * config/arm/genopt.sh: New.
7055         * config/arm/arm-tables.opt: New (generated).
7056         * config/arm/arm.c (arm_handle_option, arm_target_help,
7057         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7058         (all_architectures): Get most table contents from arm-arches.def.
7059         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7060         arm_selected_tune here.
7061         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7062         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7063         (march=, mcpu=, mtune=): Use Enum and Var.
7064         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7065         (arm.o): Update dependencies.
7066
7067 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
7068
7069         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7070         of header_file.
7071         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7072         (write_typed_alloc_defns): Likewise.
7073         (main): Calls write_typed_alloc_defns with output_header.
7074
7075 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
7076
7077         PR inline-asm/48435
7078         * ira-color.c (setup_profitable_hard_regs): Add comments.
7079         Don't take prohibited hard regs into account.
7080         (setup_conflict_profitable_regs): Rename to
7081         get_conflict_profitable_regs.
7082         (check_hard_reg_p): Check prohibited hard regs.
7083
7084 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7085
7086         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7087         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7088         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7089
7090 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7091
7092         PR target/48366
7093         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7094         move from floating point to shift amount register.
7095         (emit_move_sequence): Remove secondary reload support for floating
7096         point to shift amount amount register copies.
7097         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7098         amount register copies.
7099         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7100         register, return false if mode isn't a scalar integer mode.
7101         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7102
7103 2011-04-08  Richard Guenther  <rguenther@suse.de>
7104
7105         * gimple.c (gimple_call_flags): Remove kludge.
7106
7107 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7108
7109         * sel-sched.c (sel_region_init): Move call to
7110         sel_setup_region_sched_flags after setup_current_loop_nest.
7111
7112 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
7113
7114         PR rtl-optimization/48272
7115         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7116         init_insn_reg_pressure_info.  Adjust a caller.
7117         * sched-int.h (init_insn_reg_pressure_info): Declare.
7118         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7119         when sched-pressure is enabled.
7120
7121 2011-04-08  Richard Guenther  <rguenther@suse.de>
7122
7123         * gimple.c (gimple_set_modified): Do not queue calls to
7124         MODIFIED_NORETURN_CALLS here ...
7125         * tree-ssa-operands.c (update_stmt_operands): ... but here.
7126
7127 2011-04-08  Richard Guenther  <rguenther@suse.de>
7128
7129         PR lto/48467
7130         * toplev.c (lang_dependent_init): Do not open asm_out_file
7131         in WPA mode, nor perform debug machinery initialization.
7132         (finalize): Do not unlink asm_out_file in WPA mode.
7133
7134 2011-04-08  Richard Guenther  <rguenther@suse.de>
7135
7136         * gimple.h (gimple_call_fntype): New function.
7137         (gimple_call_return_type): Use it.
7138         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7139         * gimple-low.c (gimple_check_call_args): Likewise.
7140         * gimple.c (gimple_call_flags): Likewise.
7141         (gimple_call_arg_flags): Likewise.
7142         (gimple_call_return_flags): Likewise.
7143         * tree-cfg.c (verify_gimple_call): Likewise.
7144         (do_warn_unused_result): Likewise.
7145         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7146         * value-prof.c (gimple_ic_transform): Fix fndecl check.
7147
7148 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
7149
7150         PR rtl-optimization/48235
7151         * sel-sched.c (code_motion_process_successors): Recompute the last
7152         insn in basic block if control flow changed.
7153         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
7154         Update condition for ilist_remove.
7155
7156 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7157
7158         PR rtl-optimization/48302
7159         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7160         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
7161         it to record added preheader blocks.
7162         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
7163         on to sel_add_loop_preheaders.
7164         (sel_region_init): Move call to setup_current_loop_nest after
7165         sel_init_bbs.
7166
7167 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7168
7169         PR target/48273
7170         * cfgloop.h (loop_has_exit_edges): New helper.
7171         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7172         non-clonable.
7173         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7174         that have no exit edges.
7175
7176 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7177
7178         PR rtl-optimization/48442
7179         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
7180         all callers.  Adjust assert.
7181
7182 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
7183
7184         PR tree-optimization/48377
7185         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7186         is_packed to true even for types with smaller TYPE_ALIGN than
7187         TYPE_SIZE.
7188
7189 2011-04-08  Richard Guenther  <rguenther@suse.de>
7190
7191         PR bootstrap/48513
7192         * doc/tm.texi: Re-generate.
7193
7194 2011-04-08  Wei Guozhi  <carrot@google.com>
7195
7196         PR target/47855
7197         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7198         * config/arm/arm.c (arm_attr_length_push_multi): New function.
7199         * config/arm/arm.md (*push_multi): Change the length computation to
7200         call a C function.
7201
7202 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
7203
7204         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7205         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7206         * doc/tm.texi: Regenerate.
7207         * system.h (ASM_OUTPUT_BSS): Poison.
7208         * varasm.c (asm_output_bss): Remove function.
7209         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7210
7211         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7212         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7213         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7214         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7215         Likewise.
7216         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7217         Likewise.
7218         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7219         Likewise.
7220         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7221
7222 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
7223
7224         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7225         EnumValue lines.
7226
7227 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
7228
7229         * config/m68k/m68k.c (m68k_handle_option): Don't handle
7230         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7231         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7232         OPT_mcpu32.
7233         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7234         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7235         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7236         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7237         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7238         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7239         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7240         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7241         options.  Don't map other m68k options manually.  Don't handle
7242         old-style options as canonical.
7243         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7244         * doc/install.texi (m68k-*-*): Document binutils version requirement.
7245
7246 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7247
7248         * basic-block.h (force_nonfallthru): Move to...
7249         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7250         (force_nonfallthru): ...here.
7251         * cfghooks.c (force_nonfallthru): New function.
7252         * cfgrtl.c (force_nonfallthru): Rename into...
7253         (rtl_force_nonfallthru): ...this.
7254         (commit_one_edge_insertion): Do not set AUX field.
7255         (commit_edge_insertions): Do not discover new basic blocks.
7256         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7257         (cfg_layout_rtl_cfg_hooks): Likewise.
7258         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7259         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
7260         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7261
7262 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
7263
7264         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7265         Remove macros.
7266
7267 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
7268
7269         * config/i386/sse.md: Update copyright year.
7270         (avxcvtvecmode): Remove.
7271         (sse_movhlps): Merge with *avx_movhlps.
7272         (sse_movlhps): Merge with *avx_movlhps.
7273         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7274         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7275         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7276         (sse_loadhps): Merge with *avx_loadhps.
7277         (sse_storelps): Merge with *avx_storelps.
7278         (sse_loadlps): Merge with *avx_loadlps.
7279         (sse_movss): Merge with *avx_movss.
7280         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7281         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7282         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7283         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7284         (vec_set<mode>_0): Ditto.
7285         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7286         (sse4_1_insertps): Merge with *avx_insertps.
7287         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7288         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7289         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7290         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7291         (sse2_storehpd): Merge with *avx_storehpd.
7292         (sse2_loadhpd): Merge with *avx_loadhpd.
7293         (sse2_loadlpd): Merge with *avx_loadlpd.
7294         (sse2_movsd): Merge with *avx_movsd.
7295         (*vec_concatv2df): Merge with *vec_concatv2df.
7296
7297 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
7298
7299         PR debug/48343
7300         * combine.c (combine_instructions): Add last_combined_insn,
7301         update it if insn is after it, pass it to all try_combine calls.
7302         (try_combine): Add last_combined_insn parameter, pass it instead of
7303         i3 to propagate_for_debug.
7304
7305 2011-04-07  Nick Clifton  <nickc@redhat.com>
7306
7307         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7308         to handle MDR <-> data register transfers.
7309         (movhi_internal): Likewise.
7310
7311 2011-04-07  Alan Modra  <amodra@gmail.com>
7312
7313         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7314         previous stack info.
7315
7316 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7317
7318         PR target/43920
7319         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
7320         flow_find_cross_jump.  Swap variables to implement backward replacement.
7321         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7322
7323 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7324
7325         PR target/43920
7326         * cfgcleanup.c (walk_to_nondebug_insn): New function.
7327         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
7328         and bb2.
7329         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7330         src1 or src2.  Redirect edges to the last basic block.  Update
7331         frequency and count on multiple basic blocks in case of fallthru.
7332
7333 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7334
7335         PR target/43920
7336         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7337         function.
7338         (old_insns_match_p): Change return type.  Replace return false/true
7339         with return dir_none/dir_both.  Use can_replace_by.
7340         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
7341         direction from dir_p.  Register replacement direction in dir, last_dir
7342         and afterlast_dir.  Handle new return type of old_insns_match_p using
7343         merge_dir.  Return replacement direction in dir_p.
7344         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7345         return type of old_insns_match_p.
7346         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7347         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7348         flow_find_cross_jump.
7349         * basic-block.h (enum replace_direction): New type.
7350         (flow_find_cross_jump): Add parameter to declaration.
7351
7352 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7353
7354         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7355         (AVXMODEDCVTPS2DQ): Ditto.
7356         (VEC_FLOAT_MODE): Ditto.
7357         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
7358         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7359         (<any_logic:code><mode>3): Use VF mode iterator.
7360         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7361         Use VF mode iterator.
7362         (copysign<mode>3): Use VF mode iterator.
7363         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
7364         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7365         (*<any_logic:code><MODEF:mode>3): Merge with
7366         *avx_<any_logic:code><MODEF:mode>3.
7367         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7368         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7369         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7370         (avx_cvtdq2ps<avxmodesuffix>): Remove.
7371         (sse2_cvtdq2ps): Use %v modifier.
7372         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7373         (avx_cvtps2dq<avxmodesuffix>): Remove.
7374         (sse2_cvtps2dq): Use %v modifier.
7375         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7376         (avx_cvttps2dq<avxmodesuffix>): Remove.
7377         (sse2_cvttps2dq): Use %v modifier.
7378         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7379         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7380         (sse2_cvtsd2siq): Fix insn template.
7381         (sse2_cvtsd2siq_2): Ditto.
7382         (sse2_cvttsd2siq): Ditto.
7383         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7384         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7385
7386 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7387
7388         * gcov-io.c: Use GCC Runtime Library Exception.
7389
7390 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
7391
7392         PR debug/48466
7393         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7394         as base_reg whatever register reg has been eliminated to, instead
7395         of hardcoding STACK_POINTER_REGNUM.
7396
7397 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7398
7399         * doc/tm.texi.in: Document C target hooks as separate from general
7400         target hooks.
7401         * doc/tm.texi: Regenerate.
7402         * genhooks.c (struct hook_desc): Add docname field.
7403         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
7404         docname field.
7405         (hook_array): Include c-target.def.
7406         (emit_documentation): Use docname field in output.
7407         (emit_init_macros): Take docname argument.  Only emit definitions
7408         for hooks matching docname.
7409         (main): Expect additional arguments in all cases.  Pass argument
7410         to emit_init_macros.
7411         * target.def: Move initial macro definitions and comments to
7412         target-hooks-macros.h.
7413         (gcc_targetcm): Move to c-family/c-target.def.
7414         * target.h (targetcm): Move declaration to c-family/c-target.h.
7415         * targhooks.c (default_handle_c_option): Move to
7416         c-family/c-opts.c.
7417         * targhooks.h (default_handle_c_option): Move declaration to
7418         c-family/c-common.h.
7419         * target-hooks-macros.h: New file.
7420         * config.gcc (target_has_targetcm): Define and use to add to
7421         c_target_objs and cxx_target_objs.
7422         * config/default-c.c: New file.
7423         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7424         of target.h and target-def.h.
7425         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7426         (darwin_objc_construct_string, darwin_cfstring_ref_p,
7427         darwin_check_cfstring_format_arg): Make static.
7428         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7429         TARGET_STRING_OBJECT_REF_TYPE_P,
7430         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7431         * config/darwin-protos.h (darwin_objc_construct_string,
7432         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7433         declare.
7434         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7435         TARGET_STRING_OBJECT_REF_TYPE_P,
7436         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7437         * config/t-darwin (darwin-c.o): Update dependencies.
7438         * system.h (TARGET_HAS_TARGETCM): Poison.
7439         * Makefile.in (TARGET_H): Update.
7440         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7441         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7442         (default-c.o): New target.
7443         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7444         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7445         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
7446         c-target.def.
7447         (build/genhooks.o): Update dependencies.
7448
7449 2011-04-06  Richard Guenther  <rguenther@suse.de>
7450
7451         * ipa-inline.c (enum inlining_mode): Remove.
7452         (cgraph_flatten): Use some other token.
7453         (cgraph_edge_early_inlinable_p): New function, split out from ...
7454         (cgraph_perform_always_inlining): New function, split out from ...
7455         (cgraph_decide_inlining_incrementally): ... here.
7456         (cgraph_mark_inline_edge): Adjust.
7457         (cgraph_early_inlining): Re-structure.
7458         (pass_early_inline): Require SSA form.
7459
7460 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
7461             Julian Brown  <julian@codesourcery.com>
7462             Mark Shinwell  <shinwell@codesourcery.com>
7463
7464         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7465         LO_REGS only for Thumb-1.
7466         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7467         be used in short instructions when optimising for size on Thumb-2.
7468
7469 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7470
7471         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7472         associated with user returns to be preserved.
7473
7474 2011-04-06  Tristan Gingold  <gingold@adacore.com>
7475
7476         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7477         symbol_queue_size, DBXOUT_DECR_NESTING,
7478         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7479         if XCOFF_DEBUGGING_INFO.
7480
7481 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7482
7483         * config/i386/i386.md (attribute isa): New.
7484         (attribute enabled): New.
7485         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7486         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7487         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7488         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7489         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7490         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7491         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7492         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7493
7494         * config/i386/sse.md (VF): New mode iterator.
7495         (VF1): Ditto.
7496         (VF2): Ditto.
7497         (VF_128): Ditto.
7498         (SSEMODEF4): Remove.
7499         (attribute sse): Handle V8SF and V4DF modes.
7500         (<absneg:code><mode>2): Use VF mode iterator.
7501         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
7502         mode iterator.
7503         (<plusminus_insn><mode>3): Use VF mode iterator.
7504         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7505         Use VF mode iterator.
7506         (<sse>_vm<plusminus_insn><mode>3): Merge with
7507         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
7508         (mul<mode>3): Use VF mode iterator.
7509         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
7510         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
7511         mode iterator.
7512         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7513         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7514         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
7515         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
7516         mode iterator.
7517         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7518         Use VF1 mode iterator.
7519         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7520         (sqrt<VF2:mode>2): New expander.
7521         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7522         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7523         and sqrtv2df2.  Use VF mode iterator.
7524         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
7525         mode iterator.
7526         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7527         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7528         Use VF1 mode iterator.
7529         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7530         (<smaxmin:code><mode>3): Use VF mode iterator.
7531         (*<smaxmin:code><mode>3_finite): Merge with
7532         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
7533         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7534         (<sse>_vm<smaxmin:code><mode>2): Merge with
7535         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
7536         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
7537         mode iterator.
7538         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7539         mode iterator.
7540         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7541         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7542         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7543         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7544         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7545         VF mode iterator.
7546         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7547         Use VF_128 mode iterator.
7548         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7549         mode iterator.
7550         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7551         VF_128 mode iterator.
7552         (vcond<mode>): Use VF mode iterator.
7553         * config/i386/predicates.md (sse_comparison_operator): Merge with
7554         avx_comparison_float_operator.  Do not declare as special_predicate.
7555         * config/i386/i386.c (struct builtin_description): Update for renamed
7556         compare patterns.
7557         (ix86_expand_args_builtin): Ditto.
7558         (ix86_expand_sse_compare_mask): Ditto.
7559
7560 2011-04-06  Richard Guenther  <rguenther@suse.de>
7561
7562         * tree-inline.c (estimate_num_insns): For calls simply account
7563         for all passed arguments and a used return value.
7564
7565 2011-04-06  Richard Guenther  <rguenther@suse.de>
7566
7567         PR tree-optimization/47663
7568         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7569         call_stmt_time fields.
7570         (cgraph_edge_inlinable_p): Declare.
7571         (cgraph_edge_recursive_p): New inline function.
7572         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7573         (cgraph_clone_edge): Copy it.
7574         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7575         Account for call stmt time.
7576         (cgraph_estimate_time_after_inlining): Take edge argument.
7577         (cgraph_estimate_edge_growth): Account call stmt size.
7578         (cgraph_estimate_size_after_inlining): Take edge argument.
7579         (cgraph_mark_inline_edge): Adjust.
7580         (cgraph_check_inline_limits): Likewise.
7581         (cgraph_recursive_inlining_p): Remove.
7582         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7583         (cgraph_decide_recursive_inlining): Take edge argument and
7584         adjust.
7585         (cgraph_decide_inlining_of_small_functions): Do not avoid
7586         diags for recursive inlining here.
7587         (cgraph_flatten): Adjust.
7588         (cgraph_decide_inlining_incrementally): Likewise.
7589         (estimate_function_body_sizes): Remove call cost handling.
7590         (compute_inline_parameters): Initialize caller edge call costs.
7591         (cgraph_estimate_edge_growth): New function.
7592         (cgraph_estimate_growth): Use it.
7593         (cgraph_edge_badness): Likewise.
7594         (cgraph_check_inline_limits): Take an edge argument.
7595         (cgraph_decide_inlining_of_small_functions): Adjust.
7596         (cgraph_decide_inlining): Likewise.
7597         * tree-inline.c (estimate_num_insns): Only account for call
7598         return value if it is used.
7599         (expand_call_inline): Avoid diagnostics on recursive inline
7600         functions here.
7601         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7602         (input_edge): Input edge call costs.
7603
7604 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7605
7606         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7607
7608 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7609
7610         * doc/invoke.texi (Spec Files): Fix typo.
7611
7612 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7613
7614         * profile.c (branch_prob): Move declaration of local variable.  Remove
7615         obsolete ??? comment.  Expand the location explicitly instead of using
7616         the LOCATION_FILE and LOCATION_LINE macros.
7617
7618 2011-04-06  Wei Guozhi  <carrot@google.com>
7619
7620         PR target/47855
7621         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7622         (arm_cond_branch): Likewise.
7623         (arm_cond_branch_reversed): Likewise.
7624         (arm_jump): Likewise.
7625         (push_multi): Likewise.
7626         * config/arm/constraints.md (Py): New constraint.
7627
7628 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7629
7630         PR bootstrap/48471
7631         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7632         Move these...
7633         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7634         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7635         #ifdef DBX_DEBUGGING_INFO.
7636
7637 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7638
7639         PR bootstrap/48403
7640         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7641         if old and new states differ.
7642
7643 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7644
7645         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7646         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7647         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7648         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7649         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7650         mcfv4e): Use Alias.
7651         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7652         ColdFire options to -mcpu= options.
7653
7654 2011-04-05  Jeff Law  <law@redhat.com>
7655
7656         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7657         check if BB is a successor of LOOP->header and return
7658         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7659
7660 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7661
7662         * cprop.c (struct reg_use): Remove.
7663         (reg_use_table): Make an array of RTX.
7664         (find_used_regs, constprop_register, local_cprop_pass,
7665         bypass_block): Simplify users of reg_use_table.
7666         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
7667         on one of the uses found by find_used_regs.
7668
7669 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7670
7671         PR bootstrap/48469
7672         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7673         declaration.
7674
7675 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7676
7677         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7678         as an rtx.
7679         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7680
7681 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7682
7683         PR middle-end/48441
7684         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7685
7686 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7687
7688         * combine.c: Include obstack.h.
7689         (struct insn_link): Define.
7690         (uid_log_links): Adjust type.
7691         (FOR_EACH_LOG_LINK): New macro.
7692         (insn_link_obstack): Declare.
7693         (alloc_insn_link): Define.
7694         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
7695         type of link variables.
7696         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7697         (try_combine, record_promoted_values, distribute_notes): Likewise.
7698         (distribute_links): Likewise.  Tweak prototype.
7699         (clear_log_links): Delete.
7700         (adjust_for_new_dest): Call alloc_insn_link.
7701         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7702
7703 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7704
7705         * gcse.c (modify_mem_list): Convert to an array of VECs.
7706         (canon_modify_mem_list, compute_transp): Tweak formatting.
7707         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7708         (load_killed_in_block_p): Likewise.
7709         (record_last_mem_set_info): Likewise.
7710         (clear_modify_mem_tables): Likewise.
7711
7712 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7713
7714         PR middle-end/48461
7715         * function.c (emit_use_return_register_into_block): Only define if
7716         HAVE_return.
7717
7718 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7719
7720         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7721
7722 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7723
7724         * config/rx/rx-opts.h: New.
7725         * config/rx/rx.c (rx_cpu_type): Remove.
7726         (rx_handle_option): Don't assert that global structures are in
7727         use.  Access variables via opts pointer.  Defer most handling of
7728         OPT_mint_register_.  Use error_at.
7729         (rx_option_override): Handle deferred OPT_mint_register_ here.
7730         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7731         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7732         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7733         (rx_cpu_types): New Enum and EnumValue entries.
7734         (mint-register=): Use Defer and use Var accordingly.
7735
7736 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7737
7738         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7739         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7740         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7741         Move these...
7742         (debug_free_queue, debug_nesting, symbol_queue_index):
7743         ...and these...
7744         * dbxout.c: ...to here.  Make static.
7745
7746 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7747
7748         * gcse.c (modify_pair): Define.  Define a VEC of it.
7749         (canon_modify_mem_list): Convert to an array of VECs.
7750         (free_insn_expr_list_list): Delete.
7751         (clear_modify_mem_tables): Call VEC_free instead.
7752         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7753         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7754         (canon_list_insert, compute_transp): Likewise.
7755
7756 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7757
7758         PR target/43920
7759         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7760         for size.
7761
7762 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7763
7764         PR target/43920
7765         * function.c (emit_use_return_register_into_block): New function.
7766         (thread_prologue_and_epilogue_insns): Use
7767         emit_use_return_register_into_block.
7768
7769 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7770
7771         PR target/43920
7772         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7773         insn.
7774
7775 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7776
7777         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7778
7779 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7780
7781         * config/arm/arm.md (define_constants for unspec): Replace with
7782         define_c_enum.
7783         (define_constants for unspecv): Replace with define_c_enum.
7784         * config/arm/neon.md (define_constants for unspec): Replace with
7785         define_c_enum.
7786
7787 2011-04-04  Richard Henderson  <rth@redhat.com>
7788
7789         PR bootstrap/48400
7790         * dwarf2out.c (output_line_info): Always emit line info from
7791         at least one section.
7792         (dwarf2out_init): Create text_section_line_info here ...
7793         (set_cur_line_info_table): ... not here.
7794
7795 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7796
7797         PR target/48380
7798         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7799         not called.
7800
7801         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7802
7803 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7804
7805         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7806         (expr_equiv_p): Remove.
7807         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7808         (hash_scan_set): Update call to insert_set_in_table.
7809         (dump_hash_table): Dump <dest, src> pair.
7810         (lookup_set): Simplify.  Lookup <dest, src> pair.
7811         (compute_transp): Remove, fold heavily simplified code into...
7812         (compute_local_properties): ...here.  Expect COMP and TRANSP
7813         unconditionally.
7814         (find_avail_set): Take set directly from struct expr.
7815         (find_bypass-set): Likewise.
7816         (bypass_block): Likewise.
7817         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7818
7819         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7820         checks on form of COND from find_implicit_sets to here.
7821         (find_implicit_sets): Cleanup control flow. Split critical edges
7822         if it exposes implicit sets.  Allocate/resize implicit_sets as
7823         necessary.
7824         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7825         changed something.  Run df_analyze after find_implicit_sets if any
7826         edges were split.  Do not allocate implicit_sets here.
7827
7828         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7829         (gcse_obstack): Renamed to cprop_obstack.
7830         (GNEW, GNEWVEC, GNEWVAR): Remove.
7831         (gmalloc): Remove.
7832         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7833         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7834         (gcse_alloc): Likewise, and rename to cprop_alloc.
7835         (alloc_gcse_men, free_gcse_mem): Remove.
7836         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7837         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7838         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7839
7840         * cprop.c (oprs_not_set_p): Remove.
7841         (mark_set, mark_clobber): Remove.
7842         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7843         (reg_not_set_p): New function.
7844         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7845         (cprop_insn): Likewise.
7846         (cprop_jump): Use FOR_EACH_EDGE.
7847
7848 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7849
7850         PR bootstrap/48403
7851         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7852         (rank_for_schedule): Use scheduled_insns vector instead of
7853         last_scheduled_insn.
7854         (ok_for_early_queue_removal): Likewise.
7855         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7856         we have a dbg_cnt.
7857         (choose_ready): Likewise.
7858         (commit_schedule): Use VEC_iterate.
7859         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7860         a dbg_cnt, use it and ensure the first insn is in the ready list.
7861         (haifa_sched_init): Allocate scheduled_insns.
7862         (sched_extend_ready_list): Don't allocate it; reserve space.
7863         (haifa_sched_finish): Free it.
7864
7865 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7866
7867         * optc-gen.awk: Always remove type from Variable entry before
7868         recording in var_seen.
7869
7870 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7871
7872         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7873         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7874         call to tidy_fallthru_edges.
7875
7876 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7877
7878         * doc/options.texi (ToLower): Document.
7879         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7880         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7881         * opts.h (cl_option): Add cl_tolower field.
7882         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7883         arguments with lowercase strings.
7884         * config/rx/rx.opt (mcpu=): Add ToLower.
7885         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7886         argument.
7887
7888 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7889
7890         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7891
7892 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7893
7894         * config/vax/vax.c: Include reload.h.
7895
7896 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7897
7898         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7899         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7900         (sparc_preferred_reload_class): New function.
7901
7902 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7903
7904         PR debug/48401
7905         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7906         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7907
7908 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7909
7910         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7911         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7912
7913 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7914
7915         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7916         (ASM_OUTPUT_ALIGNED_BSS): Define.
7917
7918 2011-04-03  Michael Matz  <matz@suse.de>
7919
7920         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7921         and next_slot members.
7922         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7923         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7924         (lto_streamer_cache_append): Declare.
7925         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7926         unsigned index, remove offset parameter, ensure that we append
7927         or update existing entries.
7928         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7929         parameter, update next_slot for append.
7930         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7931         parameter.
7932         (lto_streamer_cache_insert_at): Likewise.
7933         (lto_streamer_cache_append): New function.
7934         (lto_streamer_cache_lookup): Use unsigned index.
7935         (lto_streamer_cache_get): Likewise.
7936         (lto_record_common_node): Don't test tree_node_can_be_shared.
7937         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7938         (lto_streamer_cache_delete): Don't free offsets member.
7939         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7940         (lto_output_string_with_length): Use lto_output_data_stream.
7941         (lto_output_tree_header): Remove ix parameter, don't write it.
7942         (lto_output_builtin_tree): Likewise.
7943         (lto_write_tree): Adjust callers to above, don't track and write
7944         offset, write unsigned index.
7945         (output_unreferenced_globals): Don't emit all global vars.
7946         (write_global_references): Use unsigned indices.
7947         (lto_output_decl_state_refs): Likewise.
7948         (write_symbol): Likewise.
7949         * lto-streamer-in.c (lto_input_chain): Move earlier.
7950         (input_function): Use unsigned index.
7951         (input_alias_pairs): Don't read and then ignore all global vars.
7952         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7953         don't pass it back, use lto_streamer_cache_append.
7954         (lto_register_var_decl_in_symtab): Use unsigned index.
7955         (lto_register_function_decl_in_symtab): Likewise.
7956         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7957         index.
7958         (lto_get_builtin_tree): Don't read index, use
7959         lto_streamer_cache_append.
7960         (lto_read_tree): Adjust call to lto_materialize_tree.
7961
7962         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7963         don't use function calls in arguments to MIN.
7964
7965         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7966         twice.
7967
7968         * gimple.c (gimple_type_leader_entry): Mark deletable.
7969
7970 2011-04-03  Alan Modra  <amodra@gmail.com>
7971
7972         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7973
7974 2011-04-03  Michael Matz  <matz@suse.de>
7975
7976         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7977         an integer.
7978         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7979
7980 2011-04-03  Michael Matz  <matz@suse.de>
7981
7982         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7983         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7984         without function context.
7985         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7986         current_function_decl and cfun.
7987
7988 2011-04-03  Michael Matz  <matz@suse.de>
7989
7990         * tree.c (decl_init_priority_insert): Don't create entry for
7991         default priority.
7992         (decl_fini_priority_insert): Ditto.
7993         (fields_compatible_p, find_compatible_field): Remove.
7994         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7995         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7996
7997 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7998
7999         * combine.c (try_combine): Remove useless local variable.
8000
8001 2011-04-03  Richard Guenther  <rguenther@suse.de>
8002             Ira Rosen  <ira.rosen@linaro.org>
8003
8004         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8005         non-variable offsets and compare the remaining bases of the two
8006         accesses instead of looking for exact same data-ref.
8007
8008 2011-04-02  Kai Tietz  <ktietz@redhat.com>
8009
8010         PR target/48416
8011         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8012
8013         * i386.c (ix86_is_msabi_thiscall): New helper function.
8014         (ix86_is_type_thiscall): New helper function.
8015         (ix86_comp_type_attributes): Handle thiscall for method-functions
8016         special.
8017         (init_cumulative_args): Likewise.
8018         (find_drap_reg): Likewise.
8019         (ix86_static_chain): Likewise.
8020         (x86_this_parameter): Likewise.
8021         (x86_output_mi_thunk): Likewise.
8022
8023 2011-04-01  Olivier Hainque  <hainque@adacore.com>
8024             Nicolas Setton  <setton@adacore.com>
8025             Eric Botcazou  <ebotcazou@adacore.com>
8026
8027         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8028         (add_gnat_descriptive_type_attribute): New function.
8029         (gen_array_type_die): Call it.
8030         (gen_enumeration_type_die): Likewise.
8031         (gen_struct_or_union_type_die): Likewise.
8032         (modified_type_die): Likewise.
8033         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8034         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8035         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8036
8037 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8038
8039         PR bootstrap/48148
8040         * dwarf2out.c (resolve_addr): Don't call force_decl_die
8041         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8042
8043         Revert:
8044         2011-03-17  Richard Guenther  <rguenther@suse.de>
8045
8046         PR bootstrap/48148
8047         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8048         origin for decls in other ltrans units.
8049         (input_varpool_node): Likewise.
8050
8051 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8052
8053         PR middle-end/48335
8054         * expr.c (expand_assignment): Handle all possibilities
8055         if TO_RTX is CONCAT.
8056         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8057         (store_split_bit_field): If SUBREG_REG (op0) or
8058         op0 itself has smaller mode than word, return it
8059         for offset 0 and const0_rtx for out-of-bounds stores.
8060         If word is const0_rtx, skip it.
8061
8062 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
8063
8064         * config/h8300/h8300.c (print_operand_address): Rename to...
8065         (h8300_print_operand_address): ...this. Make static. Adjust comments.
8066         Call h8300_print_operand and h8300_print_operand_address instead of
8067         print_operand and print_operand_address. Declare.
8068         (print_operand): Renake to...
8069         (h8300_print_operand): ...this. Make static. Adjust comments.
8070         Call h8300_print_operand instead of print_operand. Declare.
8071         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8072         (h8300_register_move_cost): Likewise.
8073         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8074         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8075         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8076         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8077         * config/h8300/h8300-protos.h (print_operand): Delete.
8078         (print_operand_address): Delete.
8079
8080 2011-04-01  Richard Henderson  <rth@redhat.com>
8081
8082         PR 48400
8083         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8084         in strict mode before dwarf4.  Re-order tests to early out
8085         before switching sections.
8086
8087 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
8088
8089         * config/h8300/constraints.md: New file.
8090         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
8091         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8092         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8093         * config/h8300/predicates.md (bit_operand): Likewise.
8094         (incdec_operand): Use satisfies_constraint_M and
8095         satisfies_constraint_O.  Don't use C code block.
8096         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8097         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8098         (compute_mov_length): Use satisfies_constraint_G.
8099         (fix_bit_operand): Use satisfies_constraint_U.
8100         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8101         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8102         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8103         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8104         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8105         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8106         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8107         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8108         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8109         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8110         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8111         (EXTRA_MEMORY_CONSTRAINT): Delete.
8112
8113 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
8114             Michael Meissner  <meissner@linux.vnet.ibm.com>
8115
8116         PR target/48262
8117         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8118         operands, as per the specifications.
8119
8120         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8121         (vec_extract_evenv4sf): Ditto.
8122         (vec_extract_evenv8hi): Ditto.
8123         (vec_extract_evenv16qi): Ditto.
8124         (vec_extract_oddv4si): Ditto.
8125
8126 2011-03-31  Mark Wielaard  <mjw@redhat.com>
8127
8128         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8129         high_pc attribute if the CU has no associated code. Only output
8130         DW_AT_entry_pc for CU if not generating strict dwarf and
8131         dwarf_version < 4.
8132
8133 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
8134
8135         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8136         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8137         out of ...
8138         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8139         * final.c (final_start_function): Call the new function rather
8140         than using a NULL argument for dwarf2out_frame_debug.
8141
8142         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8143         that contains the prologue.
8144
8145         * haifa-sched.c (queue_insn): New arg REASON.  All callers
8146         changed.  Print it in debugging output.
8147
8148         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8149
8150         * sched-ebb.c (begin_schedule_ready): Remove second argument.
8151         Split most of the code into...
8152         (begin_move_insn): ... here.  New function.
8153         (ebb_sched_info): Add a pointer to it.
8154         * haifa-sched.c (scheduled_insns): New static variable.
8155         (sched_extend_ready_list): Allocate it.
8156         (schedule_block): Use it to record the order of scheduled insns.
8157         Perform RTL changes to move insns only after all scheduling
8158         decisions have been made.
8159         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8160         begin_move_insn field.
8161         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8162         * sched-int.h (struct haifa_sched_info): Remove second argument
8163         from begin_schedule_ready hook.  Add new member begin_move_insn.
8164         * sched-rgn.c (begin_schedule_ready): Remove second argument.
8165         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8166
8167         * haifa-sched.c (prune_ready_list): New function, broken out of
8168         schedule_block.
8169         (schedule_block): Use it.
8170
8171 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8172
8173         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8174
8175 2011-04-01  Kai Tietz  <ktietz@redhat.com>
8176
8177         * config.gcc (*-*-mingw*): Allow as option the
8178         posix threading model.
8179         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
8180         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8181         definition.
8182         (CPP_SPEC): Add pthread/no-pthread handling.
8183         (LIB_SPEC): Likewise.
8184         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8185         (LIB_SPEC): Likewise.
8186         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8187         flag to pass -pthread option for shared libgcc build.
8188         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8189         for shared libgcc build.
8190         * config/i386/t-mingw-pthread: New file.
8191         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8192         New define to enable use of library pthread by default.
8193         * config/i386/mingw.opt (pthread): New driver option.
8194         (no-pthread): New driver option.
8195         * config/i386/cygming.opt: Make sure trailing empty line is retained.
8196         * config/i386/mingw-w64.opt: Likewise.
8197
8198 2011-04-01  Gary Funck  <gary@intrepid.com>
8199
8200         * c-decl.c (grokdeclarator): Fix formatting.
8201
8202 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8203
8204         * expr.c (emit_block_move_via_movmem): Use n_generator_args
8205         instead of n_operands.
8206         (set_storage_via_setmem): Likewise.
8207         * optabs.c (maybe_gen_insn): Likewise.
8208         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8209         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8210         (mips_expand_builtin_direct): Likewise.
8211         * config/spu/spu.c (expand_builtin_args): Likewise.
8212
8213 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8214
8215         * recog.h (insn_data_d): Add n_generator_args.
8216         * genoutput.c (data): Likewise.
8217         (output_insn_data): Print it.
8218         (max_opno, num_dups): Delete.
8219         (scan_operands): Just fill in "d->operand[...]".
8220         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8221
8222 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8223
8224         * gensupport.h (pattern_stats): New structure.
8225         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8226         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8227         (max_operand_1, max_operand_vec): Delete.
8228         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8229
8230 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
8231
8232         * emit-rtl.c (emit_pattern_after_setloc): New function.
8233         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8234         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8235         (emit_pattern_after): New function.
8236         (emit_insn_after, emit_jump_insn_after): Call it.
8237         (emit_call_insn_after, emit_debug_insn_after): Likewise.
8238         (emit_pattern_before_setloc): New function.
8239         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8240         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8241         Likewise.
8242         (emit_pattern_before): New function.
8243         (emit_insn_before, emit_jump_insn_before): Call it.
8244         (emit_call_insn_before, emit_debug_insn_before): Likewise.
8245
8246 2011-03-31  Richard Henderson  <rth@redhat.com>
8247
8248         * dwarf2out.c (dw_separate_line_info_ref): Remove.
8249         (dw_separate_line_info_entry): Remove.
8250         (enum dw_line_info_opcode): New.
8251         (dw_line_info_entry): Use it.
8252         (dw_line_info_table, dw_line_info_table_p): New.
8253         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8254         (line_info_table, line_info_label_num): Remove.
8255         (line_info_table_in_use): Remove.
8256         (separate_line_info_table): Remove.
8257         (separate_line_info_table_allocated): Remove.
8258         (separate_line_info_table_in_use): Remove.
8259         (LINE_INFO_TABLE_INCREMENT): Remove.
8260         (line_info_label_num): New.
8261         (cur_line_info_table): New.
8262         (text_section_line_info, cold_text_section_line_info): New.
8263         (separate_line_info): New.
8264         (SEPARATE_LINE_CODE_LABEL): Remove.
8265         (print_dwarf_line_table): Remove.
8266         (debug_dwarf): Don't dump it.
8267         (output_one_line_info_table): New.
8268         (output_line_info): Use it.
8269         (new_line_info_table): New.
8270         (set_cur_line_info_table): New.
8271         (dwarf2out_switch_text_section): Use it.
8272         (dwarf2out_begin_function): Likewise.
8273         (push_dw_line_info_entry): New.
8274         (dwarf2out_source_line): Rewrite for new line info tables.
8275         (dwarf2out_init): Remove dead initailizations.
8276
8277 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
8278
8279         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
8280         various flags.
8281         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8282         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8283         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8284         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8285         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8286         * opt-functions.awk (flag_init, switch_bit_fields): New.
8287         (switch_flags): Don't handle flags moved to bit-fields.  Don't
8288         generate CL_MISSING_OK or CL_SAVE.
8289         * optc-gen.awk: Update to generate bit-field output as well as
8290         flags field.
8291         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8292         bit-field instead of CL_REJECT_DRIVER flag.
8293         * opts-common.c (generate_canonical_option,
8294         decode_cmdline_option): Use bit-fields instead of CL_* flags.
8295         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8296         instead of CL_REJECT_NEGATIVE flag.
8297         * toplev.c (print_switch_values): Use cl_report bit-field instead
8298         of CL_REPORT flag.
8299
8300 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8301
8302         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8303         a zero minimum index only if it is redundant.
8304
8305 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
8306
8307         PR rtl-optimization/48381
8308         * ira-color.c (assign_hard_reg): Use hard reg set intersection
8309         instead of ira_class_hard_reg_index for calculating conflicting
8310         hard registers.
8311
8312 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
8313
8314         * cprop.c: Clean up hash table building.
8315         (reg_avail_info): Remove.
8316         (oprs_available_p): Remove.
8317         (record_last_reg_set_info): Remove.
8318         (record_last_set_info): Remove.
8319         (reg_available_p): New function.
8320         (gcse_constant_p): Do not treat unfolded conditions as constants.
8321         (make_set_regs_unavailable): New function.
8322         (hash_scan_set): Simplify with new reg_available_p.
8323         (compute_hash_table_work): Traverse insns stream only once.
8324         Do not compute reg_avail_info. Traverse insns in reverse order.
8325         Record implicit sets after recording explicit sets from the block.
8326
8327 2011-03-31  Michael Matz  <matz@suse.de>
8328
8329         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8330
8331 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
8332
8333         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8334         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8335         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8336         (h8300_mode_dependent_address_p): New function.
8337         (h8300_get_index): Make static.
8338
8339 2011-03-31  Jeff Law  <law@redhat.com>
8340
8341         * reload1.c (elimination_effects): Fix typo in recent change.
8342
8343         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8344         typo potentially leading to null pointer dereference.
8345
8346         * caller-save.c (new_saved_hard_reg): Eliminate return value.
8347         (setup_save_areas): Corresponding changes to avoid useless
8348         assignments.
8349
8350         * jump.c (reversed_comparison_code_parts): Avoid successive return
8351         statements when REVERSE_CONDITION is defined.
8352
8353         * expr.c (expand_assignment): Avoid useless assignments.
8354         (expand_expr_real_1): Likewise.
8355         (expand_expr_real_2): Avoid useless statements.
8356
8357         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8358
8359         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8360
8361         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8362         statements.
8363
8364         * stmt.c (expand_expr_stmt): Avoid useless assignment.
8365
8366 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
8367
8368         PR target/47109
8369         * doc/tm.texi.in (TARGET_VERSION): Remove.
8370         * doc/tm.texi: Regenerate.
8371         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8372         * collect2.c (main): Don't use TARGET_VERSION.
8373         * mips-tdump.c (main): Don't use TARGET_VERSION.
8374         * mips-tfile.c (main): Don't use TARGET_VERSION.
8375         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8376         * config/rs6000/vxworksae.h: Remove.
8377         * config/alpha/alpha.h (TARGET_VERSION): Remove.
8378         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8379         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8380         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8381         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8382         * config/arm/arm.h (TARGET_VERSION): Remove.
8383         * config/arm/coff.h (TARGET_VERSION): Remove.
8384         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8385         * config/arm/elf.h (TARGET_VERSION): Remove.
8386         * config/arm/freebsd.h (TARGET_VERSION): Remove.
8387         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8388         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8389         * config/arm/pe.h (TARGET_VERSION): Remove.
8390         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8391         * config/arm/semi.h (TARGET_VERSION): Remove.
8392         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8393         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8394         * config/arm/vxworks.h (TARGET_VERSION): Remove.
8395         * config/avr/avr.h (TARGET_VERSION): Remove.
8396         * config/bfin/bfin.h (TARGET_VERSION): Remove.
8397         * config/fr30/fr30.h (TARGET_VERSION): Remove.
8398         * config/frv/frv.h (TARGET_VERSION): Remove.
8399         * config/h8300/h8300.h (TARGET_VERSION): Remove.
8400         * config/i386/cygwin.h (TARGET_VERSION): Remove.
8401         * config/i386/darwin.h (TARGET_VERSION): Remove.
8402         * config/i386/darwin64.h (TARGET_VERSION): Remove.
8403         * config/i386/djgpp.h (TARGET_VERSION): Remove.
8404         * config/i386/freebsd.h (TARGET_VERSION): Remove.
8405         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8406         * config/i386/gnu.h (TARGET_VERSION): Remove.
8407         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8408         * config/i386/i386elf.h (TARGET_VERSION): Remove.
8409         * config/i386/linux.h (TARGET_VERSION): Remove.
8410         * config/i386/linux64.h (TARGET_VERSION): Remove.
8411         * config/i386/lynx.h (TARGET_VERSION): Remove.
8412         * config/i386/mingw32.h (TARGET_VERSION): Remove.
8413         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8414         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8415         * config/i386/netware.h (TARGET_VERSION): Remove.
8416         * config/i386/nto.h (TARGET_VERSION): Remove.
8417         * config/i386/openbsd.h (TARGET_VERSION): Remove.
8418         * config/i386/vxworks.h (TARGET_VERSION): Remove.
8419         * config/ia64/elf.h (TARGET_VERSION): Remove.
8420         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8421         * config/ia64/hpux.h (TARGET_VERSION): Remove.
8422         * config/ia64/linux.h (TARGET_VERSION): Remove.
8423         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8424         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8425         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8426         * config/lm32/lm32.h (TARGET_VERSION): Remove.
8427         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8428         * config/m32c/m32c.h (TARGET_VERSION): Remove.
8429         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8430         * config/m32r/m32r.h (TARGET_VERSION): Remove.
8431         * config/m68k/linux.h (TARGET_VERSION): Remove.
8432         * config/m68k/m68k.h (TARGET_VERSION): Remove.
8433         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8434         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8435         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8436         * config/mep/mep.h (TARGET_VERSION): Remove.
8437         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8438         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8439         * config/mips/iris6.h (MACHINE_TYPE): Remove.
8440         * config/mips/linux.h (TARGET_VERSION): Remove.
8441         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8442         * config/mips/vxworks.h (TARGET_VERSION): Remove.
8443         * config/mmix/mmix.h (TARGET_VERSION): Remove.
8444         * config/mn10300/linux.h (TARGET_VERSION): Remove.
8445         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8446         * config/pa/pa.h (TARGET_VERSION): Remove.
8447         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8448         * config/picochip/picochip.h (TARGET_VERSION): Remove.
8449         * config/rs6000/aix.h (TARGET_VERSION): Remove.
8450         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8451         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8452         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8453         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8454         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8455         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8456         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8457         * config/rs6000/linux.h (TARGET_VERSION): Remove.
8458         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8459         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8460         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8461         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8462         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8463         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8464         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8465         * config/s390/linux.h (TARGET_VERSION): Remove.
8466         * config/s390/s390.h (TARGET_VERSION): Remove.
8467         * config/s390/tpf.h (TARGET_VERSION): Remove.
8468         * config/score/score.h (TARGET_VERSION): Remove.
8469         * config/sh/linux.h (TARGET_VERSION): Remove.
8470         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8471         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8472         * config/sh/sh.h (TARGET_VERSION): Remove.
8473         * config/sh/sh64.h (TARGET_VERSION): Remove.
8474         * config/sh/superh.h (TARGET_VERSION): Remove.
8475         * config/sh/vxworks.h (TARGET_VERSION): Remove.
8476         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8477         * config/sparc/linux.h (TARGET_VERSION): Remove.
8478         * config/sparc/linux64.h (TARGET_VERSION): Remove.
8479         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8480         TARGET_NAME32, TARGET_NAME): Remove.
8481         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8482         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8483         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8484         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8485         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8486         * config/spu/spu.h (TARGET_VERSION): Remove.
8487         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8488         * config/v850/v850.h (TARGET_VERSION): Remove.
8489         * config/vax/linux.h (TARGET_VERSION): Remove.
8490         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8491         * config/xtensa/elf.h (TARGET_VERSION): Remove.
8492         * config/xtensa/linux.h (TARGET_VERSION): Remove.
8493
8494 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8495
8496         PR target/48142
8497         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8498         frame-related from frame-unrelated adjustments to the stack pointer.
8499
8500 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
8501
8502         * common.opt (fdebug-types-section): Move earlier.
8503         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8504
8505 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
8506
8507         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8508         var.
8509
8510 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
8511
8512         * tree.h (CASE_CHAIN): Define.
8513         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8514         (gimple_redirect_edge_and_branch): Likewise.
8515
8516 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8517
8518         PR middle-end/48367
8519         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8520         calculation.
8521
8522 2011-03-30  Jeff Law  <law@redhat.com>
8523
8524         * PR bootstrap/48371
8525         * reload1.c (reload): Fix botch in last change.
8526
8527         * reload.h (struct reload): Fix typo introduced in last change.
8528
8529 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8530
8531         * config/arm/arm.opt (mhard-float, msoft-float): Mark
8532         Undocumented.  Remove help text.
8533         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8534         -mhard-float.
8535
8536 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8537
8538         * doc/options.texi (NegativeAlias): Document.
8539         (Alias): Mention NegativeAlias.
8540         * opt-functions.awk: Handle NegativeAlias.
8541         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8542         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8543         * opts.h (CL_NEGATIVE_ALIAS): Define.
8544         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8545         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8546         OPT_mspe_.
8547         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8548         Alias entries.
8549         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8550         mno-spe and mno-isel instead of mspe=no and -misel=no.
8551
8552 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8553
8554         * common.opt (fdebug-types-section): New flag.
8555         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8556         * dwarf2out.c (use_debug_types): New define.
8557         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8558         (print_die): Guard output of type unit signatures using
8559         use_debug_types.
8560         (build_abbrev_table): Replace assert of dwarf_version >= 4
8561         with assert on use_debug_types.
8562         (size_of_die): Likewise.
8563         (unmark_dies): Likewise.
8564         (value_format): Decide AT_ref_external form on use_debug_types.
8565         (output_die): Replace dwarf_version version check guard with
8566         use_debug_types where appropriate.
8567         (modified_type_die): Likewise.
8568         (gen_reference_type_die): Likewise.
8569         (dwarf2out_start_source_file): Likewise.
8570         (dwarf2out_end_source_file): Likewise.
8571         (prune_unused_types_walk_attribs): Likewise.
8572         (dwarf2out_finish): Likewise.
8573
8574 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8575
8576         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8577
8578 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8579
8580         PR rtl-optimization/48332
8581         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8582         mode of input operand N and modeN to its actual mode.
8583
8584 2011-03-30  Jeff Law  <law@redhat.com>
8585
8586         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8587         define accessor macro.
8588         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8589         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8590         (reg_equiv_init): Likewise.
8591         (reg_equivs_size): New variable.
8592         (reg_equiv_init_size): Remove.
8593         (allocate_initial_values): Move prototype to here from....
8594         * integrate.h (allocate_initial_values): Remove prototype.
8595         * integrate.c: Include reload.h.
8596         (allocate_initial_values): Corresponding changes.
8597         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8598         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8599         (update_equiv_regs): Corresponding changes.
8600         (ira): Corresponding changes.
8601         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8602         (push_secondary_reload): Corresponding changes.
8603         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8604         (make_memloc, find_reloads_address): Corresponding changes.
8605         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8606         (find_reloads_address_1): Corresponding changes.
8607         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8608         (refers_to_regno_for_reload_p): Corresponding changes.
8609         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8610         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8611         * reload1.c: Include ggc.h.
8612         (grow_reg_equivs): New function.
8613         (replace_pseudos_in, reload): Corresponding changes.
8614         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8615         (eliminate_regs_1, elimination_effects): Corresponding changes.
8616         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8617         (delete_output_reload): Likewise.
8618         * caller-save.c (mark_referenced_regs): Corresponding changes.
8619         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8620         * frv/predicates.md (frv_load_operand): Corresponding changes.
8621         * microblaze/microblaze.c (double_memory_operand): Corresponding
8622         changes.
8623         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8624         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8625         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8626         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8627         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8628         changes.
8629         * pa/pa.c (emit_move_sequence): Corresponding changes.
8630         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8631
8632 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8633
8634         PR target/47551
8635         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8636         structure modes.  Don't check neon_vector_mem_operand for
8637         vector or structure modes.
8638
8639 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8640             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8641
8642         PR target/43590
8643         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8644         operand 1 and reshuffle the operands to match.
8645         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8646
8647 2011-03-30  Christian Schüler  <cschueler@gmx.de>
8648
8649         PR driver/48208
8650         * config/c.opt (F): Added 'Driver' to -F option.
8651
8652         PR driver/48260
8653         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8654           handler function.
8655         * config/darwin.opt: Added '-arch' option.
8656
8657 2011-03-30  Nick Clifton  <nickc@redhat.com>
8658
8659         * config/rx/rx.md: Add peepholes and patterns to combine
8660         extending loads and simple arithmetic instructions.
8661         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8662         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8663         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8664         modes to use pre-decrement and post-increment addressing.
8665         (rx_is_restricted_memory_address): Add range checking of REG+INT
8666         addresses.
8667         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
8668         (rx_memory_move_cost): Adjust cost of stores.
8669         (rx_adjust_insn_length): New function.
8670
8671 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
8672
8673         PR c/48305
8674         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8675         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8676         matching arg00/arg01 types.
8677
8678 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8679
8680         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8681         last_location to UNKNOWN_LOCATION.
8682
8683 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8684
8685         PR target/48349
8686         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8687         FLOAT_SSE_REGS.
8688
8689 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8690             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8691
8692         PR bootstrap/48337
8693         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8694         Init(PROCESSOR_V7).
8695         (sparc_cpu): Likewise.
8696         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8697         PROCESSOR_V7.
8698
8699 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8700
8701         PR target/48336
8702         PR middle-end/48342
8703         PR rtl-optimization/48345
8704         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8705         hard regs for given mode from profitable regs when doing secondary
8706         allocation.
8707
8708 2011-03-29  Jeff Law  <law@redhat.com>
8709
8710         PR bootstrap/48327
8711         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8712         do_not_duplicate field.
8713         (lookup_redirection_data): Corresponding changes.
8714         (create_duplicates): Always create a template block.
8715         (redirect_edges): Remove code which reused the original block
8716         when it was going to become unreachable code.
8717         (thread_block): Don't set do_not_duplicate field.
8718
8719 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8720
8721         * lto-opts.c (register_user_option_p, lto_register_user_option):
8722         Make type argument unsigned.
8723         * lto-streamer.h (lto_register_user_option): Make type argument
8724         unsigned.
8725         * opth-gen.awk: Make CL_* macros unsigned.
8726         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8727         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8728         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8729         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8730         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8731         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8732         (find_opt): Make lang_mask argument unsigned.
8733
8734 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8735
8736         PR rtl-optimization/48331
8737         PR rtl-optimization/48334
8738         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8739         for any used algorithm.
8740
8741 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8742
8743         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8744         to parent_max.
8745
8746 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8747
8748         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8749         (alpha_option_override): Don't set alpha_sr_alias_set.
8750         (emit_frame_store_1): Use gen_frame_mem rather than calling
8751         set_mem_alias_set.
8752         (alpha_expand_epilogue): Ditto.
8753
8754 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8755
8756         PR tree-optimization/48290
8757         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8758         vectorization, check that relevant phis in the basic block after
8759         the inner loop are really inner loop's exit phis.
8760
8761 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8762
8763         PR debug/48190
8764         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8765         (cached_dw_loc_list_def): New structure.
8766         (cached_dw_loc_list): New typedef.
8767         (cached_dw_loc_list_table): New variable.
8768         (cached_dw_loc_list_table_hash): New function.
8769         (cached_dw_loc_list_table_eq): Likewise.
8770         (add_location_or_const_value_attribute): Take a bool cache_p.
8771         Cache the list when the parameter is true.
8772         (gen_formal_parameter_die): Update caller.
8773         (gen_variable_die): Likewise.
8774         (dwarf2out_finish): Likewise.
8775         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8776         while generating debug info for the decl.
8777         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8778         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8779         (resolve_addr): Cache the result of resolving a chain of
8780         location lists.
8781
8782 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8783
8784         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8785         conflict object hard regset nodes have intersecting hard reg sets.
8786
8787         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8788         after regstat_init_n_sets_and_refs.
8789
8790         * ira.c: Add more comments at the top.
8791         (setup_stack_reg_pressure_class, setup_pressure_classes):
8792         Add comments how we compute the register pressure classes.
8793         (setup_allocno_and_important_classes): Add more comments.
8794         (setup_class_translate_array, reorder_important_classes)
8795         (setup_reg_class_relations): Add comments.
8796
8797         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8798         start of the file.
8799
8800         * ira-color.c: Add 2011 to the Copyright line.
8801         (assign_hard_reg):  Add more comments.
8802         (improve_allocation): Ditto.
8803
8804         * ira-costs.c: Add 2011 to the Copyright line.
8805         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8806         comments.
8807         (setup_regno_cost_classes_by_mode): Ditto.
8808
8809         Initial patches from ira-improv branch:
8810
8811         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8812
8813         * ira-build.c (ira_create_object): Remove initialization of
8814         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8815         (ira_create_allocno): Remove initialization of
8816         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8817         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8818         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8819         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8820         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8821         Initialize ALLOCNO_ADD_DATA.
8822         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8823         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8824         ALLOCNO_REG.
8825         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8826         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8827
8828         * ira.c (ira_reallocate): Remove.
8829         (setup_pressure_classes): Call
8830         ira_init_register_move_cost_if_necessary.  Use
8831         ira_register_move_cost instead of ira_get_register_move_cost.
8832         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8833         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8834
8835         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8836         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8837         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8838         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8839         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8840         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8841         Fix formatting.
8842         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8843         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8844         (struct allocno_color_data): New.
8845         (allocno_color_data_t): New typedef.
8846         (allocno_color_data): New definition.
8847         (ALLOCNO_COLOR_DATA): New macro.
8848         (struct object_color_data): New.
8849         (object_color_data_t): New typedef.
8850         (object_color_data): New definition.
8851         (OBJECT_COLOR_DATA): New macro.
8852         (update_copy_costs, calculate_allocno_spill_cost): Call
8853         ira_init_register_move_cost_if_necessary.  Use
8854         ira_register_move_cost instead of ira_get_register_move_cost.
8855         (move_spill_restore, update_curr_costs): Ditto.
8856         (allocno_spill_priority): Make it inline.
8857         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8858         (struct coalesce_data, coalesce_data_t): New.
8859         (allocno_coalesce_data): New definition.
8860         (ALLOCNO_COALESCE_DATA): New macro.
8861         (merge_allocnos, coalesced_allocno_conflict_p): Use
8862         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8863         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8864         (coalesce_allocnos): Ditto.
8865         (setup_coalesced_allocno_costs_and_nums): Ditto.
8866         (collect_spilled_coalesced_allocnos): Ditto.
8867         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8868         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8869         (coalesce_spill_slots): Ditto.
8870         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8871         free allocno_coalesce_data.
8872
8873         * ira-conflicts.c: Fix formatting.
8874         (process_regs_for_copy): Call
8875         ira_init_register_move_cost_if_necessary.  Use
8876         ira_register_move_cost instead of ira_get_register_move_cost.
8877         (build_object_conflicts): Optimize.
8878
8879         * ira-costs.c (record_reg_classes): Optimize.  Call
8880         ira_init_register_move_cost_if_necessary.  Use
8881         ira_register_move_cost, ira_may_move_in_cost, and
8882         ira_may_move_out_cost instead of ira_get_register_move_cost and
8883         ira_get_may_move_cost.
8884         (record_address_regs): Ditto.
8885         (scan_one_insn): Optimize.
8886         (find_costs_and_classes): Optimize.
8887         (process_bb_node_for_hard_reg_moves): Call
8888         ira_init_register_move_cost_if_necessary.  Use
8889         ira_register_move_cost instead of ira_get_register_move_cost.
8890
8891         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8892         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8893         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8894         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8895         definitions.
8896         (ira_initiate_emit_data, ira_finish_emit_data)
8897         (create_new_allocno): New functions.
8898         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8899         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8900         Use ira_register_move_cost instead of ira_get_register_move_cost.
8901
8902         * ira-int.h: Fix some comments.
8903         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8904         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8905         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8906         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8907         add_data.
8908         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8909         bitfield after mode.  Make hard_regno a short int.  Make
8910         hard_regno short.  Remove first_coalesced_allocno and
8911         next_coalesced_allocno.  Move mem_optimized_dest_p,
8912         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8913         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8914         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8915         temp, colorable_p.  Add new member add_data.
8916         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8917         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8918         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8919         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8920         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8921         (ALLOCNO_ADD_DATA): New macro.
8922         (ira_emit_data_t): New typedef.
8923         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8924         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8925         from struct ira_allocno.
8926         (ALLOCNO_EMIT_DATA): New macro.
8927         (ira_allocno_emit_data, allocno_emit_reg): New.
8928         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8929         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8930         (OBJECT_ADD_DATA): New macro.
8931         (ira_reallocate): Remove.
8932         (ira_initiate_emit_data, ira_finish_emit_data): New.
8933         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8934         (ira_init_register_move_cost_if_necessary): New.
8935         (ira_object_conflict_iter_next): Merge into
8936         ira_object_conflict_iter_cond.
8937         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8938
8939         * ira-live.c (process_single_reg_class_operands): Call
8940         ira_init_register_move_cost_if_necessary.  Use
8941         ira_register_move_cost instead of ira_get_register_move_cost.
8942
8943         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8944
8945         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8946
8947         * ira-costs.c: Fix formatting.
8948         (cost_classes, cost_classes_num): Remove.
8949         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8950         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8951         (cost_classes_del, cost_classes_htab): New.
8952         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8953         (initiate_regno_cost_classes, setup_cost_classes): New.
8954         (setup_regno_cost_classes_by_aclass): New.
8955         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8956         (record_reg_classes): Use regno_cost_classes instead of
8957         cost_classes.  Move checking opposite operand up.
8958         (record_address_regs): Use regno_cost_classes
8959         instead of cost_classes.
8960         (scan_one_insn): Ditto.  Use always general register.
8961         (print_allocno_costs): Use regno_cost_classes instead of
8962         cost_classes.
8963         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8964         (find_costs_and_classes): Set up cost classes for each registers.
8965         Use also their mode for this.  Use regno_cost_classes instead of
8966         cost_classes.
8967         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8968         cost_classes.
8969         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8970         (ira_costs, ira_set_pseudo_classes): Call
8971         initiate_regno_cost_classes and finish_regno_cost_classes.
8972
8973         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8974
8975         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8976
8977         * target.def (ira_cover_classes): Remove.
8978
8979         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8980
8981         * doc/tm.texi.in: Ditto.
8982
8983         * ira-conflicts.c: Remove mentioning cover classes from the file.
8984         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8985         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8986
8987         * targhooks.c (default_ira_cover_classes): Remove.
8988
8989         * targhooks.h (default_ira_cover_classes): Ditto.
8990
8991         * haifa-sched.c: Remove mentioning cover classes from the file.
8992         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8993         ira_pressure_classes and ira_pressure_classes_num instead of
8994         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8995         sched_regno_pressure_class instead of sched_regno_cover_class.
8996         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8997         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8998
8999         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
9000         classes from the file.
9001         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9002         (struct object_hard_regs, struct object_hard_regs_node): New.
9003         (struct ira_object): New members profitable_hard_regs,
9004         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9005         (struct ira_allocno): Rename cover_class to aclass.  Rename
9006         cover_class_cost and updated_cover_class_cost to class_cost and
9007         updated_class_cost.  Remove splay_removed_p and
9008         left_conflict_size.  Add new members colorable_p.
9009         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9010         (ALLOCNO_COLORABLE_P): New macro.
9011         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9012         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9013         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9014         (OBJECT_...): Rename parameter C to O.
9015         (OBJECT_PROFITABLE_HARD_REGS): New macro.
9016         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9017         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9018         (struct target_ira_int): New members x_ira_max_memory_move_cost,
9019         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9020         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9021         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9022         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
9023         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
9024         x_ira_reg_class_subunion.
9025         (ira_max_memory_move_cost, ira_max_register_move_cost)
9026         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9027         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9028         (ira_important_class_nums, ira_reg_class_superunion): New macros.
9029         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9030         (ira_reg_class_union): Rename to ira_reg_class_subunion.
9031         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9032         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9033         (ira_tune_allocno_costs_and_cover_classes): Rename to
9034         ira_tune_allocno_costs.
9035         (ira_debug_hard_regs_forest): New.
9036         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9037         (ira_object_conflict_iter_next): Fix comments.
9038         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9039         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9040         cover_class to aclass.
9041         (ira_allocate_and_accumulate_costs): Ditto.
9042         (ira_allocate_and_set_or_copy_costs): Ditto.
9043
9044         * opts.c (decode_options): Remove ira_cover_class check.
9045
9046         * ira-color.c: Remove mentioning cover classes from the file.  Use
9047         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9048         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9049         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
9050         (splay-tree.h): Remove include.
9051         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9052         before copy_freq_compare_func.
9053         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9054         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9055         New definitions.
9056         (hard_regs_roots, hard_regs_node_vec): Ditto.
9057         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9058         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9059         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9060         (create_new_object_hard_regs_node): Ditto.
9061         (add_new_object_hard_regs_node_to_forest): Ditto.
9062         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9063         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9064         Ditto.
9065         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9066         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9067         (remove_unused_object_hard_regs_nodes): Ditto.
9068         (enumerate_object_hard_regs_nodes): Ditto.
9069         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9070         (object_hard_regs_subnode_t): Ditto.
9071         (struct object_hard_regs_subnode): Ditto.
9072         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9073         (setup_object_hard_regs_subnode_index): Ditto.
9074         (get_object_hard_regs_subnodes_num): Ditto.
9075         (form_object_hard_regs_nodes_forest): Ditto.
9076         (finish_object_hard_regs_nodes_tree): Ditto.
9077         (finish_object_hard_regs_nodes_forest): Ditto.
9078         (allocnos_have_intersected_live_ranges_p): Rename to
9079         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9080         (pseudos_have_intersected_live_ranges_p): Rename to
9081         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9082         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9083         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9084         (update_copy_costs): Remove assert.  Skip cost update if the hard
9085         reg does not belong the class.
9086         (assign_hard_reg): Process only profitable hard regs.
9087         (uncolorable_allocnos_num): Make it scalar.
9088         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9089         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9090         and ira_reg_class_max_nregs.
9091         (bucket_allocno_compare_func): Check frequency first.
9092         (sort_bucket): Add compare function as a parameter.
9093         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9094         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9095         (push_allocno_to_stack): Rewrite for checking new allocno
9096         colorability.
9097         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
9098         (push_only_colorable): Pass new parameter to sort_bucket.
9099         (push_allocno_to_spill): Remove.
9100         (allocno_spill_priority_compare): Make it inline and rewrite.
9101         (splay_tree_allocate, splay_tree_free): Remove.
9102         (allocno_spill_sort_compare): New function.
9103         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
9104         build and use splay tree.  Choose first allocno in uncolorable
9105         allocno bucket to spill.  Remove setting spill cost.
9106         (all_conflicting_hard_regs): Remove.
9107         (setup_allocno_available_regs_num): Check only profitable hard
9108         regs.  Print info about hard regs nodes.
9109         (setup_allocno_left_conflicts_size): Remove.
9110         (put_allocno_into_bucket): Don't call
9111         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
9112         (improve_allocation): New.
9113         (color_allocnos): Call setup_profitable_hard_regs,
9114         form_object_hard_regs_nodes_forest, improve_allocation,
9115         finish_object_hard_regs_nodes_forest.  Setup spill cost.
9116         (print_loop_title): Use pressure classes.
9117         (color_allocnso): Ditto.
9118         (do_coloring): Remove allocation and freeing splay_tree_node_pool
9119         and allocnos_for_spilling.
9120         (ira_sort_regnos_for_alter_reg): Don't setup members
9121         {first,next}_coalesced_allocno.
9122         (color): Remove allocating and freeing removed_splay_allocno_vec.
9123         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9124         prohibited_class_mode_regs.
9125
9126         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
9127         formatting.
9128         (update_allocno_pressure_excess_length): Use pressure classes.
9129         (inc_register_pressure, dec_register_pressure): Check for pressure
9130         class.
9131         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9132         pressure class.  Use ira_reg_class_nregs instead of
9133         ira_reg_class_max_nregs.
9134         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9135         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9136         (single_reg_class): Use ira_reg_class_nregs instead of
9137         ira_reg_class_max_nregs.
9138         (process_bb_node_lives): Use pressure classes.
9139
9140         * ira-emit.c: Remove mentioning cover classes from the file.  Use
9141         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
9142         (change_loop): Use pressure classes.
9143         (modify_move_list): Call ira_set_allocno_class instead of
9144         ira_set_allocno_cover_class.
9145
9146         * ira-build.c: Remove mentioning cover classes from the file.  Use
9147         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9148         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
9149         ALLOCNO_UPDATED_CLASS_COST instead of
9150         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
9151         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9152         (ira_create_allocno): Remove initialization of
9153         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
9154         ALLOCNO_COLORABLE_P.
9155         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9156         Update conflict regs for the objects.
9157         (create_cap_allocno): Remove assert.  Don't propagate
9158         ALLOCNO_AVAILABLE_REGS_NUM.
9159         (ira_free_allocno_costs): New function.
9160         (finish_allocno): Change a part of code into call of
9161         ira_free_allocno_costs.
9162         (low_pressure_loop_node_p): Use pressure classes.
9163         (object_range_compare_func): Don't compare classes.
9164         (setup_min_max_conflict_allocno_ids): Ditto.
9165
9166         * loop-invariant.c: Remove mentioning cover classes from the file.
9167         Use ira_pressure_classes and ira_pressure_classes_num instead of
9168         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
9169         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9170         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9171         Use reg_allocno_class instead of reg_cover_class.
9172         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9173         STACK_REG_COVER_CLASS.
9174         (get_regno_cover_class): Rename to get_regno_pressure_class.
9175         (move_loop_invariants): Initialize and finalize regstat.
9176
9177         * ira.c: Remove mentioning cover classes from the file.  Add
9178         comments about coloring without cover classes.  Use ALLOCNO_CLASS
9179         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
9180         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9181         setup_class_subset_and_memory_move_costs.
9182         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9183         (setup_cover_and_important_classes): Rename to
9184         setup_allocno_and_important_classes.
9185         (setup_class_translate_array): New.
9186         (setup_class_translate): Call it for allocno and pressure classes.
9187         (cover_class_order): Rename to allocno_class_order.
9188         (comp_reg_classes_func): Use ira_allocno_class_translate instead
9189         of ira_class_translate.
9190         (reorder_important_classes): Set up ira_important_class_nums.
9191         (setup_reg_class_relations): Set up ira_reg_class_superunion.
9192         (print_class_cover): Rename to print_classes.  Add parameter.
9193         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9194         Print pressure classes too.
9195         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
9196         setup_reg_subclasses.
9197         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9198         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9199         (setup_prohibited_class_mode_regs): Use
9200         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9201         (clarify_prohibited_class_mode_regs): New function.
9202         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9203         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9204         (ira_init_once): Initialize them.
9205         (free_register_move_costs): Process them.
9206         (ira_init): Move calls of find_reg_classes and
9207         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9208         Call clarify_prohibited_class_mode_regs.
9209         (ira_no_alloc_reg): Remove.
9210         (too_high_register_pressure_p): Use pressure classes.
9211
9212         * sched-deps.c: Remove mentioning cover classes from the file.
9213         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
9214         ira_pressure_classes and ira_pressure_classes_num instead of
9215         ira_reg_class_cover_size and ira_reg_class_cover.
9216         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9217         sched_regno_pressure_class instead of sched_regno_cover_class.
9218         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
9219         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9220
9221         * ira.h: Add 2010 to Copyright.
9222         (ira_no_alloc_reg): Remove external.
9223         (struct target_ira): Rename x_ira_hard_regno_cover_class,
9224         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9225         x_ira_class_translate to x_ira_hard_regno_allocno_class,
9226         x_ira_allocno_classes_num, x_ira_allocno_classes, and
9227         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
9228         x_ira_pressure_classes, x_ira_pressure_class_translate, and
9229         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
9230         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
9231         x_ira_no_alloc_regs.
9232         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9233         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9234         ira_allocno_classes_num and ira_allocno_classes.
9235         (ira_class_translate): Rename to ira_allocno_class_translate.
9236         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9237         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9238         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9239         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9240         (ira_no_alloc_regs): New.
9241
9242         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
9243         classes from the file.  Use ALLOCNO_CLASS instead of
9244         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
9245         ALLOCNO_COVER_CLASS_COST.
9246         (regno_cover_class): Rename to regno_aclass.
9247         (record_reg_classes): Use ira_reg_class_subunion instead of
9248         ira_reg_class_union.
9249         (record_address_regs): Check overflow.
9250         (scan_one_insn): Ditto.
9251         (print_allocno_costs): Print total mem cost fore regional allocation.
9252         (print_pseudo_costs): Use REG_N_REFS.
9253         (find_costs_and_classes): Use classes intersected with them on the
9254         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
9255         ira_reg_class_union.  Use ira_allocno_class_translate and
9256         regno_aclass instead of ira_class_translate and regno_cover_class.
9257         Modify code for finding regno_aclass.  Setup preferred classes for
9258         the next pass.
9259         (setup_allocno_cover_class_and_costs): Rename to
9260         setup_allocno_class_and_costs.  Use regno_aclass instead of
9261         regno_cover_class.  Use ira_set_allocno_class instead of
9262         ira_set_allocno_cover_class.
9263         (init_costs, finish_costs): Use regno_aclass instead of
9264         regno_cover_class.
9265         (ira_costs): Use setup_allocno_class_and_costs instead of
9266         setup_allocno_cover_class_and_costs.
9267         (ira_tune_allocno_costs_and_cover_classes): Rename to
9268         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
9269         by processing objects.  Use ira_reg_class_max_nregs instead of
9270         ira_reg_class_nregs.
9271
9272         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9273
9274         * sched-int.h: Remove mentioning cover classes from the file.
9275         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9276
9277         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
9278         classes from the file.
9279         (struct reg_pref): Rename coverclass into allocnoclass.
9280         (reg_cover_class): Rename to reg_allocno_class.
9281
9282         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9283
9284         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9285
9286         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9287
9288         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9289
9290         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9291
9292         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9293
9294         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9295
9296         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9297
9298         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9299
9300         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9301
9302         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9303         (i386_ira_cover_classes): Ditto.
9304
9305         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9306
9307         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9308
9309         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9310
9311         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9312
9313         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9314
9315         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9316
9317         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9318         (mips_ira_cover_classes): Ditto.
9319
9320         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9321
9322         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9323
9324         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9325
9326         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9327
9328         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9329
9330         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9331         (IRA_COVER_CLASSES_VSX): Ditto.
9332
9333         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9334         (rs6000_ira_cover_classes): Ditto.
9335
9336         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9337
9338         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9339
9340         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9341
9342         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9343
9344         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9345
9346         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9347
9348         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9349
9350         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9351
9352         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9353
9354         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9355
9356 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
9357
9358         PR debug/48253
9359         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9360         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9361         dw_fde_unlikely_section_end_label, cold_in_std_section,
9362         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9363         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9364         fields.
9365         (output_fde): Use dw_fde_second_{begin,end} if second is
9366         true, otherwise dw_fde_{begin,end}.
9367         (output_call_frame_info): Test dw_fde_second_begin != NULL
9368         instead of dw_fde_switched_sections.
9369         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9370         fields, initialize new fields.  Initialize in_std_section
9371         unconditionally from the first partition.
9372         (dwarf2out_end_epilogue): Don't override dw_fde_end when
9373         dw_fde_second_begin is non-NULL.
9374         (dwarf2out_switch_text_section): Stop initializing removed
9375         dw_fde_struct fields, initialize new fields, initialize
9376         also dw_fde_end here.  Set dw_fde_switch_cfi even when
9377         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
9378         (struct var_loc_list_def): Add last_before_switch field.
9379         (arange_table, arange_table_allocated, arange_table_in_use,
9380         ARANGE_TABLE_INCREMENT, add_arange): Removed.
9381         (size_of_aranges): Count !in_std_section and !second_in_std_section
9382         hunks in fdes, instead of looking at arange_table_in_use.
9383         (output_aranges): Add aranges_length argument, don't call
9384         size_of_aranges here.  Instead of using aranges_table*
9385         emit ranges for fdes when !in_std_section resp.
9386         !second_in_std_section.
9387         (dw_loc_list): Break ranges crossing section switch.
9388         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
9389         use dw_fde_second_end instead of dw_fde_end as end of last range.
9390         (gen_subprogram_die): Don't call add_arange.  Use
9391         dw_fde_{begin,end} for first partition and if switched
9392         section dw_fde_second_{begin,end} for the second.
9393         (var_location_switch_text_section_1,
9394         var_location_switch_text_section): New functions.
9395         (dwarf2out_begin_function): Initialize cold_text_section even
9396         when function_section () isn't text_section.
9397         (prune_unused_types): Don't walk arange_table.
9398         (dwarf2out_finish): Don't needlessly test
9399         flag_reorder_blocks_and_partition when testing cold_text_section_used.
9400         If info_section_emitted, call size_of_aranges and if it indicates
9401         non-empty .debug_aranges, call output_aranges with the computed
9402         size.  Stop using removed dw_fde_struct fields, use
9403         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9404         for second.
9405
9406         PR debug/48203
9407         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9408         create ENTRY_VALUE if incoming or address of incoming's MEM
9409         is a hard REG.
9410         * dwarf2out.c (mem_loc_descriptor): Don't emit
9411         DW_OP_GNU_entry_value of DW_OP_fbreg.
9412         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9413         on ENTRY_VALUE is able to find the canonical parameter VALUE.
9414         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9415         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9416         ENTRY_VALUE_EXPs.
9417         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9418         is a REG_P or MEM_P with REG_P address, compute hash directly
9419         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9420         (preserve_only_constants): Don't clear VALUES forwaring
9421         ENTRY_VALUE to some other VALUE.
9422
9423 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
9424
9425         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9426         instead of GEN_INT.
9427
9428 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9429
9430         * cfgexpand.c (expand_gimple_cond): Always set the source location and
9431         block before expanding the statement.
9432         (expand_gimple_stmt_1): Likewise.  Set them here...
9433         (expand_gimple_stmt): ...and not here.  Tidy.
9434         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9435         unknown.
9436
9437 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9438
9439         * Makefile.in: New rule for cprop.o.
9440         * gcse.c: Move constant/copy propagation to cprop.c.
9441         (compute_local_properties): Only handle expression tables.
9442         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9443         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9444         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9445         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9446         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9447         compute_cprop_data, find_used_regs, try_replace_reg,
9448         find_avail_set, cprop_jump, constprop_register, cprop_insn,
9449         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9450         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9451         find_bypass_set, reg_killed_on_edge, bypass_block,
9452         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9453         execute_rtl_cprop, pass_rtl_cprop): Move to...
9454         * cprop.c: ...here.  New file, constant/copy propagation for RTL
9455         moved from gcse.c to here with minor cleanups in duplicated code.
9456
9457 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9458
9459         * config/i386/i386.c (flag_opts): Fix a typo in
9460         -mavx256-split-unaligned-store.
9461
9462 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9463
9464         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9465         LIBCALL_VALUE): Remove macros.
9466         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9467         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9468         (h8300_function_value, h8300_libcall_value,
9469         h8300_function_value_regno_p): New functions.
9470
9471 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9472
9473         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9474
9475 2011-03-28  Jeff Law  <law@redhat.com>
9476
9477         * tree-ssa-threadupdate.c (redirect_edges): Call
9478         create_edge_and_update_destination_phis as needed.
9479         (create_edge_and_update_destination_phis): Accept new BB argument.
9480         All callers updated.
9481         (thread_block): Do not update the profile when threading around
9482         intermediate blocks.
9483         (thread_single_edge): Likewise.
9484         (determine_bb_domination_status): If BB is not a successor of the
9485         loop header, return NONDOMINATING.
9486         (register_jump_thread): Note when we register a jump thread around
9487         an intermediate block.
9488         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9489         (thread_across_edge): Use it.
9490
9491 2011-03-28  Tristan Gingold  <gingold@adacore.com>
9492
9493         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9494         when for_return is 2.
9495
9496 2011-03-28  Jeff Law  <law@redhat.com>
9497
9498         * var-tracking.c (canonicalize_values_mark): Delete unused
9499         lhs assignment.
9500         (canonicalize_values_star, set_variable_part): Likewise.
9501         (clobber_variable_part, delete_variable_part): Likewise.
9502
9503 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9504
9505         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9506
9507 2011-03-28  Martin Jambor  <mjambor@suse.cz>
9508
9509         * tree-inline.c (expand_call_inline): Do not check that destination
9510         node is analyzed.
9511         (optimize_inline_calls): Assert that destination node is analyzed.
9512         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9513         not call tree_lowering_passes.
9514         * cgraph.h (cgraph_analyze_function): Declare.
9515         * cgraphunit.c (cgraph_analyze_function): Make public.
9516
9517 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
9518
9519         * config/sparc/sparc-opts.h: New.
9520         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9521         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9522         (sparc_option_override): Store processor_type enumeration rather
9523         than string in cpu_default.  Remove name and enumeration from
9524         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
9525         without using sparc_select.  Use target_flags_explicit instead of
9526         fpu_option_set.
9527         * config/sparc/sparc.h (enum processor_type): Move to
9528         sparc-opts.h.
9529         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9530         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9531         HeaderInclude entry.
9532         (mcpu=, mtune=): Use Var and Enum.
9533         (sparc_processor_type): New Enum and EnumValue entries.
9534
9535 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9536             Iain Sandoe  <iains@gcc.gnu.org>
9537
9538         PR target/48245
9539         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9540
9541 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9542
9543         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9544         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9545         Insert new statements at it in lieu of STMT.
9546         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9547         * tree-vect-stmts.c (vectorizable_store): Likewise.
9548         (vectorizable_load): Likewise.
9549
9550 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9551
9552         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9553         (divtf3): Ditto.
9554         (multf3): Ditto.
9555         (subtf3): Ditto.
9556
9557 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9558
9559         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9560         unaligned 256bit load/store.
9561         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9562         (*avx_movdqu<avxmodesuffix>): Likewise.
9563
9564 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9565
9566         PR target/48288
9567         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9568         * config/pa/pa.md (iordi3): Use new predicate in expander.
9569         (iorsi3): Likewise.
9570
9571 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9572
9573         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9574         FUNCTION_VALUE_REGNO_P): Remove macros.
9575         * config/mips/mips-protos.h (mips_function_value): Remove.
9576         * config/mips/mips.c (mips_function_value): Rename to...
9577         (mips_function_value_1): ... this. Make static.  Handle receiving
9578         the function type in 'fn_decl_or_type' argument.
9579         (mips_function_value, mips_libcall_value,
9580         mips_function_value_regno_p): New function.
9581         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9582         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9583
9584 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9585
9586         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9587         and -mavx256-split-unaligned-store.
9588         (ix86_option_override_internal): Split 32-byte AVX unaligned
9589         load/store by default.
9590         (ix86_avx256_split_vector_move_misalign): New.
9591         (ix86_expand_vector_move_misalign): Use it.
9592
9593         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9594         -mavx256-split-unaligned-store.
9595
9596         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9597         256bit load/store.  Generate unaligned store on misaligned memory
9598         operand.
9599         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9600         256bit load/store.
9601         (*avx_movdqu<avxmodesuffix>): Likewise.
9602
9603         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9604         -mavx256-split-unaligned-store.
9605
9606 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9607
9608         PR target/38598
9609         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9610         Update commentary.
9611
9612 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9613
9614         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9615         opno arguments with an expand_operand.  Use create_input_operand.
9616         (mips_prepare_builtin_target): Delete.
9617         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9618         functions.
9619         (mips_expand_builtin_direct): Use create_output_operand and
9620         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9621         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9622         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9623
9624 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9625
9626         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9627         function.
9628         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9629
9630 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9631
9632         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9633         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9634         basic blocks and call commit_edge_insertions directly.
9635         (fixup_abnormal_edges): Move from here to...
9636         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9637         on the edges and return whether some have actually been inserted.
9638         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9639         compensation code.
9640
9641 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9642
9643         PR rtl-optimization/48144
9644         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9645         (merge_expr_data): ... here.
9646         (av_set_intersect): Rename to av_set_code_motion_filter.
9647         Update all callers.  Call merge_history_vect when an expression
9648         is found in both sets.
9649         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9650
9651 2011-03-26  Alan Modra  <amodra@gmail.com>
9652
9653         * config/rs6000/predicates.md (word_offset_memref_op): Handle
9654         cmodel medium addresses.
9655         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9656         64-bit gpr loads and stores.
9657         (rs6000_secondary_reload_ppc64): New function.
9658         * config/rs6000/rs6000-protos.h: Declare it.
9659         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9660
9661 2011-03-26  Alan Modra  <amodra@gmail.com>
9662
9663         PR target/47487
9664         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9665         GNU Go in traceback table.
9666
9667 2011-03-25  Richard Henderson  <rth@redhat.com>
9668
9669         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9670         if there are exactly 6 operands.
9671         (set_storage_via_setmem): Similarly.
9672
9673 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9674
9675         * collect2.c (write_c_file_stat): Handle backslash
9676         as right-hand directory separator.
9677         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9678         checking just for slash.
9679         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9680         instead of checking for trailing slash.
9681         * gcc.c (record_temp_file): Use filename_cmp instead
9682         of strcmp.
9683         (do_spec_1): Likewise.
9684         (replace_outfile_spec_function): Likewise.
9685         (is_directory): Use filename_ncmp instead of strncmp.
9686         (print_multilib_info): Likewise.
9687         * gcov.c (find_source): Use filename_cmp instead
9688         instead of strcmp.
9689         (make_gcov_file_name): Fix order of slash/backslash
9690         checks.
9691         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9692         (add_standard_paths): Likewise.
9693         * mips-tfile.c (saber_stop): Handle backslash.
9694         * prefix.c (update_path): Use filename_ncmp instead of
9695         strncmp.
9696         * profile.c (output_location): Use filename_cmp instead
9697         of strcmp.
9698         * read-md.c (handle_toplevel_file): Handle backslash.
9699         * tlink.c (frob_extension):  Likewise.
9700         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9701         strcmp.
9702         * tree-dump.c (dequeue_and_dump): Handle backslash.
9703         * tree.c (get_file_function_name): Likewise.
9704         * gengtype.c (read_input_list): Likewise.
9705         (get_file_realbasename): Likewise.
9706         (get_output_file_with_visibility): Use filename_cmp
9707         instead of strcmp.
9708
9709 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9710
9711         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9712         case to VFPv1.
9713
9714 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9715
9716         * fold-const.c (expr_location_or): New function.
9717         (fold_truth_not_expr): Call it.
9718
9719 2011-03-25  Jeff Law  <law@redhat.com>
9720
9721         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9722         va_end.
9723         * c-family/c-common.c (def_fn_type): Likewise.
9724         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9725         * emit-rtl.c (gen_rtvec): Likewise.
9726         * lto/lto-lang.c (def_fn_type): Likewise.
9727
9728 2011-03-25  Richard Guenther  <rguenther@suse.de>
9729
9730         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9731         also generate copies.
9732         (fini_copy_prop): Handle constant values properly.
9733
9734 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9735
9736         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9737         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9738         (hash_loc_operands, compare_loc_operands): Handle
9739         DW_OP_GNU_entry_value.
9740
9741 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9742
9743         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9744         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9745         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9746         comment and use macro TARGET_64BIT_MS_ABI instead.
9747         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9748         and change default behavior for 32-bit MS_ABI.
9749         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9750         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9751         32-bit, too.
9752         (ix86_cfun_abi): Likewise.
9753         (ix86_maybe_switch_abi): Adjust comment.
9754         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9755         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9756         instead of checking for SYSV_ABI.
9757         (ix86_nsaved_sseregs): Likewise.
9758         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9759         to 16 bytes.
9760         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9761         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9762         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9763         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9764         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9765
9766 2011-03-25  Richard Guenther  <rguenther@suse.de>
9767
9768         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9769         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9770         (verify_gimple): Remove.
9771         * tree-cfg.c (verify_gimple_call): Merge verification
9772         from verify_stmts.
9773         (verify_gimple_phi): Merge verification from verify_stmts.
9774         (verify_gimple_label): New function.
9775         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9776         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9777         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9778         (verify_stmts): Rename to verify_gimple_in_cfg.
9779         (verify_gimple_in_cfg): New function.
9780         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9781         * tree-ssa.c (verify_ssa): Likewise.
9782         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9783
9784 2011-03-25  Richard Guenther  <rguenther@suse.de>
9785
9786         * passes.c (init_optimization_passes): Add FRE pass after
9787         early SRA.
9788
9789 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9790             Andrew Stubbs  <ams@codesourcery.com>
9791
9792         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9793         for Cortex-A8.
9794         (arm_movdi_vfp_cortexa8): New pattern.
9795         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9796         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9797         instructions when tuning for Cortex-A8.  Set attribute "arch".
9798         * config/arm/arm.md: Move include arm-tune.md up a bit.
9799         (define_attr "arch"): Add "onlya8" and "nota8" values.
9800         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9801
9802 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9803
9804         PR bootstrap/48282
9805         Revert:
9806         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9807
9808         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9809         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9810         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9811         * passes.c (init_optimization_passes): Move
9812         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9813
9814 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9815
9816         * c-typeck.c (comptypes_internal): Replace target
9817         hook call of comp_type_attributes by version in tree.c file.
9818         * gimple.c (gimple_types_compatible_p_1): Likewise.
9819         * tree-ssa.c (useless_type_conversion_p): Likewise.
9820         * tree.c (build_type_attribute_qual_variant): Likewise.
9821         (attribute_value_equal): New static helper function.
9822         (comp_type_attributes): New function.
9823         (merge_attributes): Use attribute_value_equal for comparison.
9824         (attribute_list_contained): Likewise.
9825         * tree.h (comp_type_attributes): New prototype.
9826
9827 2011-03-25  Richard Guenther  <rguenther@suse.de>
9828
9829         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9830         of complex types at -O0.
9831         (verify_gimple_assign_binary): Likewise.
9832         (verify_gimple_assign_ternary): Likewise.
9833
9834 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9835
9836         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9837         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9838
9839 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9840
9841         PR debug/48041
9842         * dwarf2out.c (output_abbrev_section): Only write table when
9843         abbrev_die_table_in_use > 1.
9844
9845 2011-02-24  Richard Henderson  <rth@redhat.com>
9846
9847         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9848         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9849         (alpha_expand_unaligned_load_words): Use extql.
9850         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9851         (emit_insxl): Handle all modes for consistency.
9852
9853 2011-02-24  Richard Henderson  <rth@redhat.com>
9854
9855         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9856         (alpha_expand_unaligned_load): Likewise.
9857         (alpha_expand_unaligned_store): Likewise.
9858         (alpha_expand_unaligned_load_words): Likewise.
9859         (alpha_expand_unaligned_store_words): Likewise.
9860         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9861         (alpha_split_lock_test_and_set_12): Likewise.
9862         (print_operand, alpha_fold_builtin_extxx): Likewise.
9863         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9864         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9865         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9866         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9867         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9868         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9869         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9870         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9871         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9872         (extwl, extll, extql): Similarly.
9873         (inswh, inslh, insqh): Similarly.
9874         (mskbl, mskwl, mskll, mskql): Similarly.
9875         (mskwh, msklh, mskqh): Similarly.
9876
9877 2011-02-24  Richard Henderson  <rth@redhat.com>
9878
9879         * config/alpha/alpha.md (attribute isa): Add er, ner.
9880         (attribute enabled): Handle them.
9881         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9882
9883 2011-02-24  Richard Henderson  <rth@redhat.com>
9884
9885         * config/alpha/alpha.md (attribute isa): Add vms.
9886         (attribute enabled): Handle it.
9887         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9888         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9889         (*movtf): Rename from *movtf_internal for consistency.
9890         (*movsi): Merge with *movsi_nt_vms.
9891         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9892         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9893         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9894         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9895
9896 2011-02-24  Richard Henderson  <rth@redhat.com>
9897
9898         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9899         (extendqisi2, extendhisi2): Likewise.
9900         (extendqidi2): Simplify BWX/non-BWX expansions.
9901         (extendhidi2): Similarly.
9902
9903 2011-02-24  Richard Henderson  <rth@redhat.com>
9904
9905         * config/alpha/alpha.md (attribute isa): New.
9906         (attribute enabled): New.
9907         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9908         (zero_extendqisi2, zero_extendqidi2): Similarly.
9909         (zero_extendhisi2, zero_extendhidi2): Similarly.
9910         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9911
9912 2011-02-24  Richard Henderson  <rth@redhat.com>
9913
9914         * config/alpha/predicates.md (input_operand): Revert last change;
9915         update comment to mention 32-bit VMS rather than Windows.
9916
9917 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9918
9919         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9920         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9921         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9922         * passes.c (init_optimization_passes): Move
9923         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9924
9925 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9926
9927         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9928
9929 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9930
9931         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9932         correctly.
9933
9934 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9935
9936         PR debug/48204
9937         * simplify-rtx.c (simplify_const_unary_operation): Call
9938         real_convert when changing mode class with FLOAT_EXTEND.
9939
9940 2011-03-24  Nick Clifton  <nickc@redhat.com>
9941
9942         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9943         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9944         * config/rx/rx.c (rx_option_override): Set align_jumps,
9945         align_loops and align_labels if not set by the user.
9946         (rx_align_for_label): New function.
9947         (rx_max_skip_for_label): New function.
9948         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9949         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9950         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9951         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9952         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9953
9954 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9955
9956         PR rtl-optimization/48263
9957         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9958         and original commutative_p handling.  Use maybe_gen_insn.
9959
9960 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9961
9962         * reload.c (find_reloads_subreg_address): Add address_reloaded
9963         parameter and return true there if the full address has been
9964         reloaded.
9965         (find_reloads_toplev): Pass address_reloaded flag.
9966         (find_reloads_address_1): Don't use address_reloaded parameter.
9967
9968 2011-03-24  Jeff Law  <law@redhat.com>
9969
9970         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9971         unused variable "ann".
9972         (remove_unused_locals): Likewise.
9973
9974         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9975         statement.
9976
9977         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9978         after it is freed.
9979
9980 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9981
9982         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9983         for invalid symbolic addresses.
9984         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9985         larl operands.
9986
9987 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9988
9989         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9990         the argument in calls to fold_truth_not_expr.
9991
9992 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9993
9994         * tree.c (record_node_allocation_statistics): New function.
9995         (make_node_stat, copy_node_stat, build_string): Call it.
9996         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9997         (build1_stat, build_omp_clause): Likewise.
9998
9999 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10000
10001         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10002         last commit.
10003
10004 2011-03-24  Richard Guenther  <rguenther@suse.de>
10005
10006         PR tree-optimization/48271
10007         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10008         blocks that still exist.
10009
10010 2011-03-24  Richard Guenther  <rguenther@suse.de>
10011
10012         PR tree-optimization/48270
10013         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10014         not free datarefs before ddrs.
10015
10016 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10017
10018         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10019         from the address built for a reference with variable offset.
10020
10021 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
10022
10023         PR target/48237
10024         * config/i386/i386.md (*movdf_internal_rex64): Do not split
10025         alternatives that can be handled with movq or movabsq insn.
10026         (*movdf_internal): Disable for !TARGET_64BIT.
10027         (*movdf_internal_nointeger): Ditto.
10028         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10029
10030 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10031
10032         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10033         (FUNCTION_ARG_ADVANCE): Likewise.
10034         * tm.texi.in: Change references to them to hook references.
10035         * tm.texi: Regenerate.
10036         * targhooks.c (default_function_arg): Eliminate check for target macro.
10037         (default_function_incoming_arg): Likewise.
10038         (default_function_arg_advance): Likewise.
10039         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10040         (function_arg_advance): Likewise.
10041         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10042
10043 2011-03-24  Richard Guenther  <rguenther@suse.de>
10044
10045         PR middle-end/48269
10046         * tree-object-size.c (addr_object_size): Do not double-account
10047         for MEM_REF offsets.
10048
10049 2011-03-24  Diego Novillo  <dnovillo@google.com>
10050
10051         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10052         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10053         (lto_input_data_block): Move from lto-opts.c.  Make extern.
10054         Update all users.
10055         (lto_input_string): Rename from input_string.  Make extern.
10056         Update all users.
10057         * lto-streamer-out.c (lto_output_string_with_length): Rename from
10058         output_string_with_length.
10059         Output 0 to indicate a non-NULL string.  Update all callers to
10060         not emit 0.
10061         (lto_output_string): Rename from output_string.  Make extern.
10062         Update all users.
10063         (lto_output_decl_state_streams): Make extern.
10064         (lto_output_decl_state_refs): Make extern.
10065         * lto-streamer.h (lto_input_string): Declare.
10066         (lto_input_data_block): Declare.
10067         (lto_output_string): Declare.
10068         (lto_output_string_with_length): Declare.
10069         (lto_output_decl_state_streams): Declare.
10070         (lto_output_decl_state_refs): Declare.
10071
10072 2011-03-24  Richard Guenther  <rguenther@suse.de>
10073
10074         PR tree-optimization/46562
10075         * tree.c (build_invariant_address): New function.
10076         * tree.h (build_invariant_address): Declare.
10077         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10078         a renamed function moved ...
10079         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10080         Take valueization callback parameter.
10081         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10082         * gimple-fold.h: New file.
10083         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10084         (ccp_fold, fold_const_aggregate_ref,
10085         fold_ctor_reference, fold_nonarray_ctor_reference,
10086         fold_array_ctor_reference, fold_string_cst_ctor_reference,
10087         get_base_constructor): Move ...
10088         * gimple-fold.c: ... here.
10089         (gimple_fold_stmt_to_constant_1): New function
10090         split out from ccp_fold.  Take a valueization callback parameter.
10091         Valueize all operands.
10092         (gimple_fold_stmt_to_constant): New wrapper function.
10093         (fold_const_aggregate_ref_1): New function split out from
10094         fold_const_aggregate_ref.  Take a valueization callback parameter.
10095         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10096         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10097         invariant POINTER_PLUS_EXPRs to invariant form.
10098         (vn_valueize): New function.
10099         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10100         * tree-vrp.c (vrp_valueize): New function.
10101         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10102         to fold statements to constants.
10103         * tree-ssa-pre.c (eliminate): Properly guard propagation of
10104         function declarations.
10105         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10106         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10107
10108 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10109
10110         * config/h8300/predicates.md (jump_address_operand): Fix register
10111         mode check.
10112
10113 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
10114
10115         * doc/invoke.texi (max-stores-to-sink): Document.
10116         * params.h (MAX_STORES_TO_SINK): Define.
10117         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10118         if either vectorization or if-conversion is disabled.
10119         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10120         tree-vect-data-refs.c vect_equal_offsets.
10121         (dr_equal_offsets_p): New function.
10122         (find_data_references_in_bb): Remove static.
10123         * tree-data-ref.h (find_data_references_in_bb): Declare.
10124         (dr_equal_offsets_p): Likewise.
10125         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10126         (vect_drs_dependent_in_basic_block): Update calls to
10127         vect_equal_offsets.
10128         (vect_check_interleaving): Likewise.
10129         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10130         (cond_if_else_store_replacement): Rename to...
10131         (cond_if_else_store_replacement_1): ... this.  Change arguments and
10132         documentation.
10133         (cond_if_else_store_replacement): New function.
10134         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10135         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10136
10137 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
10138
10139         PR target/46934
10140         * config/arm/arm.md (casesi): Use the gen_int_mode() function
10141         to subtract lower bound instead of GEN_INT().
10142
10143 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
10144
10145         PR other/48179
10146         PR other/48221
10147         PR other/48234
10148         * doc/extend.texi (Alignment): Move section to match order in TOC.
10149         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10150         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10151
10152 2011-03-23  Jeff Law  <law@redhat.com>
10153
10154         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10155         before removing the edge.
10156
10157         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10158         it may have been freed by redirect_branch_edge or
10159         redirect_edge_succ_nodup.
10160
10161 2011-03-23  Richard Guenther  <rguenther@suse.de>
10162
10163         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10164         (check_va_list_escapes): Likewise.
10165         (check_all_va_list_escapes): Likewise.
10166
10167 2011-03-23  Richard Guenther  <rguenther@suse.de>
10168
10169         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10170         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10171         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10172         (alias.o): Likewise.
10173         (ipa-type-escape.o): Remove.
10174         (ipa-struct-reorg.o): Likewise.
10175         (GTFILES): Remove ipa-struct-reorg.c.
10176         * alias.c: Do not include ipa-type-escape.h.
10177         * tree-ssa-alias.c: Likewise.
10178         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10179         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10180         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10181         and ipa-type-escape passes.
10182         * tree-pass.h (pass_ipa_type_escape): Remove.
10183         (pass_ipa_struct_reorg): Likewise.
10184         * ipa-struct-reorg.h: Remove.
10185         * ipa-struct-reorg.c: Likewise.
10186         * ipa-type-escape.h: Likewise.
10187         * ipa-type-escape.c: Likewise.
10188         * doc/invoke.texi (-fipa-struct-reorg): Remove.
10189         (--param struct-reorg-cold-struct-ratio): Likewise.
10190         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10191         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10192         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10193
10194 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10195
10196         * config/s390/2084.md: Enable all insn reservations also for z9_ec
10197         cpu attribute value.
10198         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10199         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10200         * config/s390/s390.c (processor_flags_table): New constant array.
10201         (s390_handle_arch_option): Remove.
10202         (s390_handle_option): Remove s390_handle_arch_option invocations
10203         and OPT_mwarn_framesize_ handling.
10204         (s390_option_override): Remove s390_handle_arch_option invocation.
10205         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10206         warnings.
10207         * config/s390/s390.md (cpu attribute): Add z9_ec value.
10208         * config/s390/s390.opt (s390_tune, s390_arch)
10209         (march=): Replace s390_arch_option enum and values with
10210         processor_type.  Set variable name to s390_arch.  Set
10211         initialization value.
10212         (mtune=): Replace s390_arch_option with processor_type.  Set
10213         variable name to s390_tune.  Set initialization value.
10214
10215 2011-03-23  Julian Brown  <julian@codesourcery.com>
10216
10217         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10218         accesses which are not naturally aligned.
10219
10220 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
10221
10222         PR target/47553
10223         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10224
10225 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
10226
10227         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10228         parameter from "int" to "enum insn_code".
10229         (expand_operand_type): New enum.
10230         (expand_operand): New structure.
10231         (create_expand_operand): New function.
10232         (create_fixed_operand, create_output_operand): Likewise
10233         (create_input_operand, create_convert_operand_to): Likewise.
10234         (create_convert_operand_from, create_address_operand): Likewise.
10235         (create_integer_operand): Likewise.
10236         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10237         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10238         (expand_insn, expand_jump_insn): Likewise.
10239         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10240         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10241         (expand_movstr, expand_builtin___clear_cache): Likewise.
10242         (expand_builtin_lock_release): Likewise.
10243         * explow.c (allocate_dynamic_stack_space): Likewise.
10244         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
10245         and use the default handling in that case.
10246         * expmed.c (check_predicate_volatile_ok): Delete.
10247         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10248         (emit_cstore): Likewise.
10249         * expr.c (emit_block_move_via_movmem): Likewise.
10250         (set_storage_via_setmem, expand_assignment): Likewise.
10251         (emit_storent_insn, try_casesi): Likewise.
10252         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
10253         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10254         (expand_vec_shift_expr, expand_binop_directly): Likewise.
10255         (expand_twoval_unop, expand_twoval_binop): Likewise.
10256         (expand_unop_direct, emit_indirect_jump): Likewise.
10257         (emit_conditional_move, vector_compare_rtx): Likewise.
10258         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10259         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10260         (expand_sync_lock_test_and_set): Likewise.
10261         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
10262         (emit_unop_insn): Likewise.
10263         (expand_copysign_absneg): Change icode to an insn_code.
10264         (create_convert_operand_from_type): New function.
10265         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10266         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10267         (expand_insn, expand_jump_insn): Likewise.
10268         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10269         than const_int_operand for operand 2.
10270
10271 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10272
10273         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10274         if possible.
10275
10276 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10277
10278         * emit-rtl.c (emit_pattern_before_noloc): New function.
10279         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10280         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10281         (emit_pattern_after_noloc): New function.
10282         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10283         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10284
10285 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10286
10287         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10288         (__ffsDI2): Likewise.
10289
10290 2011-03-22  Richard Henderson  <rth@redhat.com>
10291
10292         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10293         of !TARGET_ABI_OPEN_VMS.
10294         (alpha_trampoline_init, alpha_start_function): Likewise.
10295         (alpha_expand_epilogue, alpha_file_start): Likewise.
10296         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10297         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10298         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10299         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10300         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10301
10302 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10303
10304         * config/s390/s390-opts.h: New.
10305         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10306         s390_arch_flags, s390_warn_framesize, s390_stack_size,
10307         s390_stack_guard): Remove.
10308         (s390_handle_arch_option): Return void.  Take enum
10309         s390_arch_option value instead of string and searching array.
10310         (s390_handle_option): Don't assert that global structures are in
10311         use.  Access variables via opts pointer.  Use error_at.  Don't use
10312         sscanf for -mstack-guard= or -mstack-size=.  Update call to
10313         s390_handle_arch_option.
10314         (s390_option_override): Update call to s390_handle_arch_option.
10315         (s390_emit_prologue): Use %d format for s390_stack_size in
10316         diagnostic.  Use %wd for HOST_WIDE_INT.
10317         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10318         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10319         * config/s390/s390.opt (config/s390/s390-opts.h): New
10320         HeaderInclude entry.
10321         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10322         s390_arch_flags, s390_warn_framesize): New Variable entries.
10323         (s390_arch_option): New Enum and EnumValue entries.
10324         (march=): Use Enum instead of Var.
10325         (mstack-guard=, mstack-size=): Use UInteger and Var.
10326         (mtune=): Use Enum.
10327
10328 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10329
10330         * config/score/score.c (score_handle_option): Don't assert that
10331         global structures are in use.  Access target_flags via opts
10332         pointer.  Use value of -march= option to determine target_flags
10333         settings.
10334         * config/score/score.opt (march=): Use Enum.
10335         (score_arch): New Enum and EnumValue entries.
10336
10337 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10338
10339         * config/mep/mep.c (option_mtiny_specified): Remove.
10340         (mep_option_override): Move register handling for -mivc2 from
10341         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
10342         instead of option_mtiny_specified.
10343         (mep_handle_option): Access target_flags via opts pointer.  Don't
10344         assert that global structures are in use.  Defer part of -mivc2
10345         handling and move it to mep_option_override.
10346         * config/mep/mep.opt (IVC2): New Mask entry.
10347         (mivc2): Use Var and Defer instead of Mask.
10348
10349 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10350
10351         * config/v850/v850-opts.h: New.
10352         * config/v850/v850.c (small_memory): Replace with
10353         small_memory_physical_max array.  Make that array static const.
10354         (v850_handle_memory_option): Take integer value of argument.  Take
10355         gcc_options pointer, option text and location.  Return void.
10356         Update for changes to small memory structures.
10357         (v850_handle_option): Access target_flags via opts pointer.  Don't
10358         assert that global structures are in use.  Update calls to
10359         v850_handle_memory_option.
10360         (v850_encode_data_area): Update references to small memory settings.
10361         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10362         (enum small_memory_type): Move to v850-opts.h.
10363         * config/v850/v850.opt (config/v850/v850-opts.h): New
10364         HeaderInclude entry.
10365         (small_memory_max): New Variable entry.
10366         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
10367         (mtda, mzda): Likewise.
10368
10369 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10370
10371         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10372         pointer.  Don't assert that global structures are in use.
10373
10374 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10375
10376         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10377         via opts pointer.  Don't assert that global structures are in use.
10378
10379 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10380
10381         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10382         (munix=93): Use Var.
10383         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10384         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10385         * config/pa/pa-opts.h: New.
10386         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10387         (pa_handle_option): Don't assert that global structures are in
10388         use.  Access target_flags via opts pointer.  Don't handle
10389         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10390         OPT_munix_98 here.
10391         (pa_option_override): Handle deferred OPT_mfixed_range_.
10392
10393 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10394
10395         * config/mn10300/mn10300-opts.h: New.
10396         * config/mn10300/mn10300.c (mn10300_processor,
10397         mn10300_tune_string): Remove.
10398         (mn10300_handle_option): Don't assert that global structures are
10399         in use.  Access mn10300_processor via opts pointer.  Don't handle
10400         OPT_mtune_ here.
10401         * config/mn10300/mn10300.h (enum processor_type): Move to
10402         mn10300-opts.h.
10403         (mn10300_processor): Remove.
10404         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10405         HeaderInclude entry.
10406         (mn10300_processor): New Variable entry.
10407         (mtune=): Use Var.
10408
10409 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10410
10411         * config/microblaze/microblaze.c: Don't include opts.h.
10412         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10413         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10414         (mno-clearbss): Use Var and Warn.
10415
10416 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10417
10418         * config/m32r/m32r-opts.h: New.
10419         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10420         (m32r_handle_option): Don't assert that global structures are in
10421         use.  Access target_flags and m32r_cache_flush_func via opts
10422         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
10423         OPT_mno_flush_trap here.
10424         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10425         include of m32r-opts.h.
10426         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10427         HeaderInclude entry.
10428         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10429         (mmodel=): Use Enum and Var.
10430         (m32r_model): New Enum and EnumValue entries.
10431         (mno-flush-trap): Use Var.
10432         (msdata=): Use Enum and Var.
10433         (m32r_sdata): New Enum and EnumValue entries.
10434
10435 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10436
10437         * config/m32c/m32c.c: Don't include opts.h.
10438         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10439         m32c_handle_option): Remove.
10440         (m32c_option_override): Check global_options_set.x_target_memregs
10441         instead of target_memregs_set.
10442         * config/m32c/m32c.h (target_memregs): Remove.
10443         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10444         variable.
10445
10446 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10447
10448         * config/iq2000/iq2000-opts.h: New.
10449         * config/iq2000/iq2000.c: Don't include opts.h.
10450         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10451         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10452         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10453         HeaderInclude entry.
10454         (iq2000_tune): New Variable entry.
10455         (march=): Add comment.  Use Enum.
10456         (iq2000_arch): New Enum and EnumValue entries.
10457         (mcpu=): Use Enum and Var.
10458         (iq2000_tune): New Enum and EnumValue entries.
10459
10460 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10461
10462         * config/ia64/ia64-opts.h: New.
10463         * config/ia64/ia64.c (ia64_tune): Remove.
10464         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10465         here.  Use error_at.
10466         (ia64_option_override): Handle deferred OPT_mfixed_range_.
10467         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10468         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10469         HeaderInclude entry.
10470         (ia64_tune): New Variable entry.
10471         (mfixed-range=): Use Defer and Var.
10472         (mtune=): Use Enum and Var.
10473         (ia64_tune): New Enum and EnumValue entries.
10474
10475 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10476
10477         * config/frv/frv-opts.h: New.
10478         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10479         frv-opts.h.
10480         (frv_cpu_type): Remove.
10481         * config/frv/frv.c: Don't include opts.h.
10482         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10483         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10484         (frv_cpu_type): New Variable entry.
10485         (frv_cpu): New Enum and EnumValue entries.
10486
10487 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10488
10489         * config/cris/cris.c (cris_handle_option): Access target_flags via
10490         opts pointer.  Don't assert that global structures are in use.
10491         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10492         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10493
10494 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10495
10496         * config/bfin/bfin-opts.h: New.
10497         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10498         bfin_si_revision, bfin_workarounds): Remove.
10499         (bfin_cpus): Make static const.
10500         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10501         not bfin_lib_id_given.
10502         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
10503         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10504         pointer. Use error_at.  Don't assert that global structures are in use.
10505         * config/bfin/bfin.h: Include bfin-opts.h.
10506         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10507         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10508         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10509         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10510         entries.
10511
10512 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10515         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10516         or -msoft-float here.
10517         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10518         -msoft-float and -mhard-float.
10519         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10520         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10521         msoft-float.
10522         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10523         -msoft-float.
10524         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10525         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10526         not mhard-float.
10527         (LIBGCC_SPEC): Don't handle -msoft-float.
10528         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10529         -mhard-float.
10530         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10531         msoft-float.
10532         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10533         -mfloat-abi=*, not -msoft-float and -mhard-float.
10534         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10535         -msoft-float.
10536         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10537         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10538         mhard-float and msoft-float.
10539         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10540         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10541         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10542         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10543         mhard-float.
10544         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10545         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10546         msoft-float.
10547         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10548         not mhard-float.
10549         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10550         not msoft-float.
10551
10552 2011-03-22  Richard Henderson  <rth@redhat.com>
10553
10554         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10555         TARGET_ABI_WINDOWS_NT.
10556         (alpha_output_function_end_prologue): Likewise.
10557         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10558         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10559         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10560         (trap, *movsi_nt_vms): Likewise.
10561         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10562         (*tablejump_osf_nt_internal): Remove.
10563         * config/alpha/predicates.md (input_operand): Only test Pmode.
10564
10565 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10566
10567         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10568         via opts pointer.  Use error_at.  Don't assert that global
10569         structures are in use.
10570
10571 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10572
10573         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10574         (ix86_handle_option): Access ix86_isa_flags and
10575         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10576         global structures are in use.
10577         (ix86_function_specific_save, ix86_function_specific_restore):
10578         Update ix86_isa_flags_explicit field name.
10579         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10580         (ix86_isa_flags_explicit): Rename TargetSave entry to
10581         x_ix86_isa_flags_explicit.
10582
10583 2011-03-22  Richard Henderson  <rth@redhat.com>
10584
10585         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10586         (alpha_option_override, direct_return): Likewise.
10587         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10588         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10589         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10590         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10591         (alpha_expand_epilogue, alpha_end_function): Likewise.
10592         (alpha_init_libfuncs): Likewise.
10593         (struct machine_function): Remove unicosmk members.
10594         (print_operand) ['t']: Remove.
10595         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10596         unicosmk_output_module_name, unicosmk_output_common,
10597         current_section_align, unicosmk_output_text_section_asm_op,
10598         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10599         unicosmk_section_type_flags, unicosmk_unique_section,
10600         unicosmk_asm_named_section, unicosmk_insert_attributes,
10601         unicosmk_output_align, unicosmk_defer_case_vector,
10602         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10603         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10604         unicosmk_output_ssib, unicosmk_add_call_info_word,
10605         unicosmk_extern_head, unicosmk_output_default_externs,
10606         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10607         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10608         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10609         * config/alpha/alpha-protos.h: Update.
10610         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10611         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10612         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10613         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10614         (*mulsi_se, mulvsi3): Likewise.
10615         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10616         (*divmodsi_internal, call, call_value, realign): Likewise.
10617         (moddi3, umoddi3): Likewise; remove duplicate expander.
10618         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10619         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10620         (*movdi_nofix): Remove r/U alternative.
10621         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10622         * config/alpha/constraints.md ("U"): Remove.
10623         * config/alpha/predicates.md (call_operand"): Don't test
10624         TARGET_ABI_UNICOSMK.
10625
10626 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10627
10628         * target.def (handle_option): Take gcc_options and
10629         cl_decoded_option pointers and location_t.
10630         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10631         * doc/tm.texi: Regenerate.
10632         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10633         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10634         * lto-opts.c (lto_reissue_options): Generate option structure for
10635         targetm.handle_option call.
10636         * opts.c (target_handle_option): Update call to
10637         targetm.handle_option.  Remove assertions about values now passed
10638         down to hook.
10639         * targhooks.c (default_target_handle_option): New.
10640         * targhooks.h (default_target_handle_option): Declare.
10641         * config/alpha/alpha.c: Include opts.h.
10642         (alpha_handle_option): Update to new hook interface.
10643         * config/arm/arm.c: Include opts.h.
10644         (arm_handle_option): Update to new hook interface.
10645         * config/arm/t-arm (arm.o): Update dependencies.
10646         * config/bfin/bfin.c: Include opts.h.
10647         (bfin_handle_option): Update to new hook interface.
10648         * config/cris/cris.c: Include opts.h.
10649         (cris_handle_option): Update to new hook interface.
10650         * config/frv/frv.c: Include opts.h.
10651         (frv_handle_option): Update to new hook interface.
10652         * config/i386/i386.c: Include opts.h.
10653         (ix86_handle_option): Update to new hook interface.
10654         (ix86_valid_target_attribute_inner_p): Generate option structure
10655         for call to ix86_handle_option.
10656         * config/i386/t-i386 (i386.o): Update dependencies.
10657         * config/ia64/ia64.c: Include opts.h.
10658         (ia64_handle_option): Update to new hook interface.
10659         * config/ia64/t-ia64 (ia64.o): Update dependencies.
10660         * config/iq2000/iq2000.c: Include opts.h.
10661         (iq2000_handle_option): Update to new hook interface.
10662         * config/m32c/m32c.c: Include opts.h.
10663         (m32c_handle_option): Update to new hook interface.
10664         * config/m32r/m32r.c: Include opts.h.
10665         (m32r_handle_option): Update to new hook interface.
10666         * config/m68k/m68k.c: Include opts.h.
10667         (m68k_handle_option): Update to new hook interface.
10668         * config/mep/mep.c: Include opts.h.
10669         (mep_handle_option): Update to new hook interface.
10670         * config/microblaze/microblaze.c: Include opts.h.
10671         (microblaze_handle_option): Update to new hook interface.
10672         * config/mips/mips.c: Include opts.h.
10673         (mips_handle_option): Update to new hook interface.
10674         * config/mn10300/mn10300.c: Include opts.h.
10675         (mn10300_handle_option): Update to new hook interface.
10676         * config/pa/pa.c: Include opts.h.
10677         (pa_handle_option): Update to new hook interface.
10678         * config/pdp11/pdp11.c: Include opts.h.
10679         (pdp11_handle_option): Update to new hook interface.
10680         * config/rs6000/rs6000.c: Include opts.h.
10681         (rs6000_handle_option): Update to new hook interface.
10682         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10683         * config/rx/rx.c: Include opts.h.
10684         (rx_handle_option): Update to new hook interface.
10685         * config/s390/s390.c: Include opts.h.
10686         (s390_handle_option): Update to new hook interface.
10687         * config/score/score.c: Include opts.h.
10688         (score_handle_option): Update to new hook interface.
10689         * config/sh/sh.c: Include opts.h.
10690         (sh_handle_option): Update to new hook interface.
10691         * config/sparc/sparc.c: Include opts.h.
10692         (sparc_handle_option): Update to new hook interface.
10693         * config/v850/v850.c: Include opts.h.
10694         (v850_handle_option): Update to new hook interface.
10695
10696 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10697
10698         * gcc.c (driver_unknown_option_callback): Only permit and save
10699         unknown -Wno- options.
10700         (driver_wrong_lang_callback): Save options directly instead of via
10701         driver_unknown_option_callback.
10702
10703 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10704
10705         * combine.c (simplify_set): Try harder to find the best CC mode when
10706         simplifying a nested COMPARE on the RHS.
10707
10708 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10709
10710         * config/alpha/gnu.h: Remove.
10711         * config/arc: Remove directory.
10712         * config/arm/netbsd.h: Remove.
10713         * config/arm/t-pe: Remove.
10714         * config/crx: Remove directory.
10715         * config/i386/netbsd.h: Remove.
10716         * config/m68hc11: Remove directory.
10717         * config/m68k/uclinux-oldabi.h: Remove.
10718         * config/mcore/mcore-pe.h: Remove.
10719         * config/mcore/t-mcore-pe: Remove.
10720         * config/netbsd-aout.h: Remove.
10721         * config/rs6000/gnu.h: Remove.
10722         * config/sh/sh-symbian.h: Remove.
10723         * config/sh/symbian-base.c: Remove.
10724         * config/sh/symbian-c.c: Remove.
10725         * config/sh/symbian-cxx.c: Remove.
10726         * config/sh/symbian-post.h: Remove.
10727         * config/sh/symbian-pre.h: Remove.
10728         * config/sh/t-symbian: Remove.
10729         * config/svr3.h: Remove.
10730         * config/vax/netbsd.h: Remove.
10731         * config.build: Don't handle i[34567]86-*-pe.
10732         * config.gcc: Remove handling of deprecations for most deprecated
10733         targets.
10734         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10735         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10736         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10737         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10738         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10739         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10740         Remove cases.
10741         * config.host: Don't handle i[34567]86-*-pe.
10742         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10743         (ASM_SPEC32): Don't handle -mcall-gnu.
10744         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10745         -mcall-gnu.
10746         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10747         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10748         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10749         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10750         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10751         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10752         conditional on SYMBIAN.
10753         * configure.ac: Don't handle powerpc*-*-gnu*.
10754         * configure: Regenerate.
10755         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10756         * doc/install-old.texi (m6811, m6812): Don't mention.
10757         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10758         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10759         (m68k-uclinuxoldabi): Don't mention.
10760         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10761         Remove.
10762         (-mcall-gnu): Remove.
10763         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10764         families): Remove constraint documentation.
10765
10766 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10767
10768         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10769         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10770         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10771
10772 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10773
10774         PR target/48226
10775         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10776         vector when peeking at the next token for vector, don't expand the
10777         keywords.
10778
10779 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10780
10781         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10782         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10783         * config/avr/avr.c (init_cumulative_args)
10784         (avr_function_arg_advance): Use it.
10785         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10786         sibcall epilogues.
10787         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10788         (avr_function_ok_for_sibcall): ...this new function.
10789         (avr_lookup_function_attribute1): New static Function.
10790         (avr_naked_function_p, interrupt_function_p)
10791         (signal_function_p, avr_OS_task_function_p)
10792         (avr_OS_main_function_p): Use it.
10793         * config/avr/avr.md ("sibcall", "sibcall_value")
10794         ("sibcall_epilogue"): New expander.
10795         ("*call_insn", "*call_value_insn"): New insn.
10796         ("call_insn", "call_value_insn"): Remove
10797         ("call", "call_value", "epilogue"): Change expander to handle
10798         sibling calls.
10799
10800 2011-03-21  Nick Clifton  <nickc@redhat.com>
10801
10802         * doc/invoke.texi (Overall Options): Move closing brace to end of
10803         options list.
10804         (Optimization Options): Add missing @gol.
10805         (Directory Options): Likewise.
10806         (i386 and x86-64 Options): Likewise.
10807         (RS6000 and PowerPC Options): Likewise.
10808         (i386 and x86-64 Windows Options): Likewise.
10809         (V850 Options): Add text missing from descriptions.
10810
10811 2011-03-22  Richard Henderson  <rth@redhat.com>
10812
10813         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10814         (avr_incoming_return_addr_rtx): New.
10815         (emit_push_byte): New.
10816         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10817         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10818         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10819         (emit_pop_byte): New.
10820         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10821         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10822         (INCOMING_RETURN_ADDR_RTX): New.
10823         (INCOMING_FRAME_SP_OFFSET): New.
10824         (ARG_POINTER_CFA_OFFSET): New.
10825         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10826         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10827         (pophi): Remove.
10828
10829         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10830
10831 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10832
10833         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10834         (FUNCTION_ARG_ADVANCE): Likewise.
10835         * tm.texi.in: Change references to them to hook references.
10836         * tm.texi: Regenerate.
10837         * targhooks.c (default_function_arg): Eliminate check for target
10838         macro.
10839         (default_function_incoming_arg): Likewise.
10840         (default_function_arg_advance): Likewise.
10841         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10842         (function_arg_advance): Likewise.
10843         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10844
10845 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10846
10847         * tree.c (build_call_1): New function.
10848         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10849
10850 2011-03-22  Richard Guenther  <rguenther@suse.de>
10851
10852         PR tree-optimization/48228
10853         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10854         for single-arg PHIs.
10855
10856 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10857
10858         PR rtl-optimization/48143
10859         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10860         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10861         sse2_cvtps2pd): Likewise.
10862
10863 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10864
10865         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10866
10867 2011-03-22  Richard Guenther  <rguenther@suse.de>
10868
10869         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10870         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10871         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10872         and REALIGN_LOAD_EXPR.
10873         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10874         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10875         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10876         DOT_PROD_EXPR case ...
10877         (expand_expr_real_2): ... here.
10878         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10879         and REALIGN_LOAD_EXPR.
10880         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10881         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10882         (vect_create_epilog_for_reduction): Likewise.
10883         (vectorizable_reduction): Likewise.
10884         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10885         * tree-vect-stmts.c (vectorizable_load): Likewise.
10886
10887 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10888
10889         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10890
10891 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10892
10893         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10894         handling for PLTOFF/GOTOFF.
10895
10896 2011-03-22  Nick Clifton  <nickc@redhat.com>
10897
10898         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10899         trailing backslash from the end of the macro definition.
10900
10901 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10902
10903         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10904         and PLT unspecs.
10905
10906 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10907
10908         * expr.h (prepare_operand): Move to...
10909         * optabs.h (prepare_operand): ...here and change the insn code
10910         parameter from "int" to "enum insn_code".
10911         (insn_operand_matches): Declare.
10912         * expr.c (init_expr_target): Use insn_operand_matches.
10913         (compress_float_constant): Likewise.
10914         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10915         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10916         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10917         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10918         Likewise.
10919         (gen_cond_trap): Likewise.
10920         (prepare_operand): Likewise.  Change icode to an insn_code.
10921         (insn_operand_matches): New function.
10922         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10923         * reload1.c (gen_reload): Likewise.
10924         * targhooks.c (default_secondary_reload): Likewise.
10925
10926 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10927
10928         * config/alpha/alpha.md (unspec): New define_c_enum.
10929         (unspecv): Ditto.
10930
10931 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10932
10933         PR debug/48214
10934         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10935         between a call and its CALL_ARG_LOCATION note.
10936
10937 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10938
10939         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10940
10941 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10942
10943         PR c/42544
10944         PR c/48197
10945         * c-common.c (shorten_compare): If primopN is first sign-extended
10946         to opN and then zero-extended to result type, set primopN to opN.
10947
10948 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10949
10950         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10951         for barrier handlers.
10952
10953 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10954
10955         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10956         UNSPEC constants to be in the unspec enumeration, and redefine
10957         all UNSPECV constants to be in the unspecv enumeration, so that
10958         dumps print which unspec/unspec_volatile this is.
10959         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10960         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10961         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10962         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10963         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10964
10965         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10966         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10967         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10968         * config/rs6000/sync.md (isync, lwsync): Ditto.
10969
10970 2011-03-21  Richard Guenther  <rguenther@suse.de>
10971
10972         * params.def (lto-min-partition): Fix typo.
10973
10974 2011-03-21  Richard Guenther  <rguenther@suse.de>
10975
10976         PR c/47939
10977         * c-decl.c (grokdeclarator): Drop to the main variant only
10978         for array types.  Drop flag_gen_aux_info check.
10979
10980 2011-03-21  Richard Guenther  <rguenther@suse.de>
10981
10982         PR translation/47911
10983         * params.def (lto-partitions): Fix typo.
10984         (lto-min-partition): Fix wording.
10985
10986 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10987
10988         * config/rs6000/t-freebsd: Remove duplication from file.
10989
10990 2011-03-21  Richard Guenther  <rguenther@suse.de>
10991
10992         PR middle-end/47661
10993         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10994
10995 2011-03-21  Richard Guenther  <rguenther@suse.de>
10996
10997         PR lto/48210
10998         * params.def (lto-partitions): Require at least 1 partition.
10999
11000 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11001
11002         * gthr-solaris.h: Remove.
11003         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11004         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11005         (LIB_SPEC): Likewise.
11006         * config/sol2.opt (threads): Remove.
11007         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11008         (sparc*-*-solaris2*): Likewise.
11009         * configure.ac (enable_threads): Enable solaris support.
11010         * configure: Regenerate.
11011         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11012         * doc/install.texi (Configuration, --enable-threads=lib): Remove
11013         solaris.
11014
11015 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11016
11017         * config.gcc: Obsolete *-*-solaris2.8*.
11018         * doc/install.texi (Specific, *-*-solaris2*): Document it.
11019
11020 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11021
11022         PR bootstrap/48135
11023         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11024         reference.  Solaris 8 perl works.
11025
11026 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11027
11028         PR bootstrap/48135
11029         * doc/install.texi (Prerequisites): Move jar etc. up.
11030         Explain support library version requirements.
11031
11032 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11033
11034         PR bootstrap/48135
11035         * doc/install.texi (Prerequisites): Move Perl to build
11036         requirements.  Always necessary on Solaris 2 with Sun ld.
11037
11038 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11039
11040         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11041         binutils 2.21.
11042         (Specific, i?86-*-solaris2.[89]): Likewise.
11043         (Specific, i?86-*-solaris2.10): Likewise.
11044         (Specific, mips-sgi-irix6): Likewise.
11045         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11046         Update for binutils 2.21.
11047
11048 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11049
11050         * configure.ac (gcc_cv_lto_plugin): Fix typo.
11051         Allow -fuse-linker-plugin for non-default plugin linker.
11052         * configure: Regenerate.
11053
11054 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11055
11056         PR bootstrap/48167
11057         * gengtype.c (files_rules): Added rule for cp/parser.h.
11058
11059 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
11060
11061         PR target/48213
11062         * config/s390/s390.c (s390_delegitimize_address): Don't call
11063         lowpart_subreg if orig_x has BLKmode.
11064
11065 2011-03-21  Kai Tietz  <ktietz@redhat.com>
11066
11067         PR target/12171
11068         * doc/plugins.texi: Adjust documentation for plugin register_callback.
11069         * tree.h (attribute_spec): Add new member affects_type_identity.
11070         * attribs.c (empty_attribute_table): Adjust attribute_spec
11071         initializers.
11072         * config/alpha/alpha.c: Likewise.
11073         * config/arc/arc.c: Likewise.
11074         * config/arm/arm.c: Likewise.
11075         * config/avr/avr.c: Likewise.
11076         * config/bfin/bfin.c: Likewise.
11077         * config/crx/crx.c: Likewise.
11078         * config/darwin.h: Likewise.
11079         * config/h8300/h8300.c: Likewise.
11080         * config/i386/cygming.h: Likewise.
11081         * config/i386/i386.c: Likewise.
11082         * config/ia64/ia64.c: Likewise.
11083         * config/m32c/m32c.c: Likewise.
11084         * config/m32r/m32r.c: Likewise.
11085         * config/m68hc11/m68hc11.c: Likewise.
11086         * config/m68k/m68k.c: Likewise.
11087         * config/mcore/mcore.c: Likewise.
11088         * config/mep/mep.c: Likewise.
11089         * config/microblaze/microblaze.c: Likewise.
11090         * config/mips/mips.c: Likewise.
11091         * config/rs6000/rs6000.c: Likewise.
11092         * config/rx/rx.c: Likewise.
11093         * config/sh/sh.c: Likewise.
11094         * config/sol2.h: Likewise.
11095         * config/sparc/sparc.c: Likewise.
11096         * config/spu/spu.c: Likewise.
11097         * config/stormy16/stormy16.c: Likewise.
11098         * config/v850/v850.c: Likewise.
11099
11100 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
11101
11102         * simplify-rtx.c (simplify_binary_operation_1): Handle
11103         (xor (and A B) C) case when B and C are both constants.
11104
11105 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
11106
11107         * tree-dfa.c (add_referenced_var): Fix typo in comment.
11108
11109 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
11110
11111         PR bootstrap/48168
11112         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11113
11114 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
11115
11116         PR rtl-optimization/48156
11117         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11118         assume df and df_lr are not NULL.
11119
11120 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11121
11122         PR debug/48023
11123         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11124         between a call and its CALL_ARG_LOCATION note.
11125
11126 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
11127
11128         PR debug/48178
11129         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11130         between a call and its corresponding CALL_ARG_LOCATION note.
11131
11132 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
11133
11134         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11135         instead of loop. Use HARD_REGISTER_NUM_P predicate.
11136         * haifa-sched.c (setup_ref_regs): Ditto.
11137         * caller-save.c (add_used_regs_1): Ditto.
11138         * dse.c (look_for_hardregs): Ditto.
11139         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11140         * sched-rgn.c (check_live_1): Ditto.
11141
11142 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
11143
11144         * c-decl.c (diagnose_mismatched_decls): Give an error for
11145         redefining a typedef with variably modified type.
11146
11147 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
11148
11149         * c-decl.c (grokfield): Don't allow typedefs for structures or
11150         unions with no tag by default.
11151         * doc/extend.texi (Unnamed Fields): Update.
11152
11153 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
11154
11155         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11156         Rewrite using indirect functions.
11157         (lwp_slwpcb): Ditto.
11158         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11159         (avx_vinsertf128<mode>): Ditto.
11160
11161 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11162
11163         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11164         unspecs.
11165
11166 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11167
11168         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11169         splitting between a call and its corresponding CALL_ARG_LOCATION note.
11170
11171 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11172
11173         PR rtl-optimization/48170
11174         * gcse.c (hoist_code): Remove bogus asserts.
11175
11176 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
11177
11178         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11179         computation for prologue/epilogue.
11180
11181 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11182
11183         * Makefile.in (check-consistency): Remove.
11184
11185 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
11186
11187         PR debug/48176
11188         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11189         arange_table_in_use is 0, but either text_section_used or
11190         cold_text_section_used is true.  Don't call it if
11191         !info_section_emitted.
11192
11193 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
11194
11195         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11196         FUNCTION_VALUE_REGNO_P): Remove.
11197         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11198         Remove.
11199         * config/avr/avr.c (avr_ret_register): Make static inline.
11200         (avr_function_value_regno_p): New function.
11201         (avr_libcall_value): Make static. Add 'func' argument.
11202         (avr_function_value): Make static. Rename 'func' argument to
11203         'fn_decl_or_type', forward it to avr_libcall_value. Call
11204         avr_ret_register function instead of RET_REGISTER macro.
11205         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11206
11207 2011-03-18  Jason Merrill  <jason@redhat.com>
11208
11209         PR c++/23372
11210         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11211
11212 2011-03-18  Richard Guenther  <rguenther@suse.de>
11213
11214         * doc/install.texi (--enable-gold): Remove.
11215         (--with-plugin-ld): Document.
11216         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11217
11218 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
11219
11220         PR middle-end/47790
11221         * expr.c (optimize_bitfield_assignment_op): Revamp to work
11222         again after expansion changes.
11223
11224 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
11225
11226         * combine.c (try_combine): Do simplification only call of
11227         subst() on i2 even when i1 is present. Update comments.
11228
11229 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11230
11231         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11232         and UNSPEC_PCREL_SYMOFF.
11233
11234 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11235
11236         * config/s390/s390.md: Use define_c_enum for the unspec constant
11237         definitions.
11238
11239 2011-03-18  Richard Henderson  <rth@redhat.com>
11240             Jakub Jelinek  <jakub@redhat.com>
11241
11242         PR bootstrap/48161
11243         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11244         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11245
11246 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11247
11248         PR middle-end/47725
11249         * combine.c (cant_combine_insn_p): Don't check zero/sign
11250         extended hard registers.
11251
11252 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11253
11254         PR middle-end/47725
11255         * combine.c (cant_combine_insn_p): Check zero/sign extended
11256         hard registers.
11257
11258 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
11259
11260         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11261         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11262         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11263         Change return type to bool.
11264         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11265
11266 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11267
11268         PR debug/48163
11269         * var-tracking.c (prepare_call_arguments): If CALL target
11270         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11271         pc instead of looking it up using cselib_lookup and use
11272         Pmode for it if x has VOIDmode.
11273         * dwarf2out.c (gen_subprogram_die): If also both first and
11274         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11275
11276         PR debug/48163
11277         * function.c (assign_parms): For data.passed_pointer parms
11278         use MEM of data.entry_parm instead of data.entry_parm itself
11279         as DECL_INCOMING_RTL.
11280         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11281         also when passed and declared mode is the same, DECL_RTL
11282         is a MEM with pseudo as address and DECL_INCOMING_RTL is
11283         a MEM too.
11284
11285 2011-03-16  Jeff Law  <law@redhat.com>
11286
11287         PR rtl-optimization/37273
11288         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11289         handle them like argument loads from stack slots.  Do not double
11290         count memory for memory constants and argument loads from stack slots.
11291
11292 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11293
11294         PR debug/48160
11295         * var-tracking.c (prepare_call_arguments): Check SUBREG.
11296
11297 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11298
11299         PR target/48171
11300         * config/i386/i386.opt: Add Save to -mavx and -mfma.
11301
11302 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11303
11304         PR bootstrap/48153
11305         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11306         if dwarf_strict.
11307         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11308         Clear call_arg_locations and call_arg_loc_last always.
11309
11310         PR middle-end/48152
11311         * var-tracking.c (prepare_call_arguments): If argument needs to be
11312         passed by reference, adjust argtype and mode.
11313
11314 2011-03-17  Richard Guenther  <rguenther@suse.de>
11315
11316         PR middle-end/48134
11317         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11318         a value make sure to fold the statement.
11319
11320 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
11321
11322         PR target/43872
11323         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11324         return condition with !cfun->calls_alloca.
11325
11326 2011-03-17  Richard Guenther  <rguenther@suse.de>
11327
11328         PR bootstrap/48148
11329         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11330         origin for decls in other ltrans units.
11331         (input_varpool_node): Likewise.
11332
11333 2011-03-17  Richard Guenther  <rguenther@suse.de>
11334
11335         PR middle-end/48165
11336         * tree-object-size.c (compute_object_offset): Properly return
11337         the offset operand of MEM_REFs as sizetype.
11338
11339 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11340
11341         PR rtl-optimization/48141
11342         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11343         * dse.c: Include params.h.
11344         (active_local_stores_len): New variable.
11345         (add_wild_read, dse_step1): Clear it when setting active_local_stores
11346         to NULL.
11347         (record_store, check_mem_read_rtx): Decrease it when removing
11348         from the chain.
11349         (scan_insn): Likewise.  Increase it when adding to chain, if it
11350         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11351         set active_local_stores to NULL before the addition.
11352         * Makefile.in (dse.o): Depend on $(PARAMS_H).
11353
11354         PR rtl-optimization/48141
11355         * dse.c (record_store): If no positions are needed in an insn
11356         that cannot be deleted, at least unchain it from active_local_stores.
11357
11358 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
11359
11360         PR debug/47510
11361         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11362         (lookup_type_die_strip_naming_typedef): ... here.
11363         (get_context_die): Use it.
11364         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11365         the anonymous struct named by the naming typedef.
11366
11367 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11368
11369         PR target/48154
11370         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11371         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11372
11373 2011-03-16  Jeff Law  <law@redhat.com>
11374
11375         * tree-vrp.c (identify_jump_threads): Slightly simplify type
11376         check for operands of conditional.  Allow type to be a pointer.
11377
11378 2011-03-16  Richard Guenther  <rguenther@suse.de>
11379
11380         PR tree-optimization/48149
11381         * fold-const.c (fold_binary_loc): Fold
11382         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11383
11384 2011-03-16  Richard Guenther  <rguenther@suse.de>
11385
11386         PR tree-optimization/26134
11387         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11388         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11389         (non_rewritable_mem_ref_base): Handle complex type component
11390         accesses, constrain offsets for vector and complex extracts
11391         more properly.
11392
11393 2011-03-16  Richard Guenther  <rguenther@suse.de>
11394
11395         PR tree-optimization/48146
11396         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11397         operands avoiding the need for renaming.
11398
11399 2011-03-16  Richard Guenther  <rguenther@suse.de>
11400
11401         * gimple-fold.c (maybe_fold_reference): Open-code relevant
11402         constant folding.  Move MEM_REF canonicalization first.
11403         Rely on fold_const_aggregate_ref for initializer folding.
11404         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11405
11406 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11407
11408         PR middle-end/48136
11409         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11410         arg0/arg1 or their arguments are always fold converted to matching
11411         types.
11412
11413         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11414         to nargs.
11415
11416 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11417
11418         PR lto/46944
11419         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11420         Handle in-tree gold.
11421         (ld_vers): Extract binutils version for gold.
11422         (gcc_cv_ld_hidden): Handle gold here.
11423         (gcc_cv_lto_plugin): Determine level of linker plugin support.
11424         * configure: Regenerate.
11425         * config.in: Regenerate.
11426         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11427         -fuse-linker-plugin otherwise.
11428         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
11429         (LINK_COMMAND_SPEC): Use it.
11430         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11431
11432 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11433
11434         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11435         * calls.c: Remove debug.h include.
11436         (emit_call_1): Don't call virtual_call_token debug hook.
11437         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11438         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11439         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11440         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11441         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11442         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11443         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11444         dwarf2out_virtual_call): Remove.
11445         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11446         copy_call_info and virtual_call hooks.
11447         (dwarf2out_init): Don't initialize vcall_insn_table,
11448         debug_dcall_section and debug_vcall_section.
11449         (prune_unused_types): Don't mark nodes from dcall_table.
11450         (dwarf2out_finish): Don't output dcall or vcall tables.
11451         * final.c (final_scan_insn): Don't call direct_call or
11452         virtual_call debug hooks.
11453         * debug.h (struct gcc_debug_hooks): Remove direct_call,
11454         virtual_call_token, copy_call_info and virtual_call hooks.
11455         (debug_nothing_uid): Remove prototype.
11456         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11457         copy_call_info and virtual_call hooks.
11458         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11459         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11460         * debug.c (do_nothing_debug_hooks): Likewise.
11461         (debug_nothing_uid): Remove.
11462         * doc/invoke.texi (-fenable-icf-debug): Remove.
11463         * common.opt (-fenable-icf-debug): Likewise.
11464
11465         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11466         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11467         call's MEM.  Handle functions returning aggregate through a hidden
11468         first pointer.  For virtual calls add clobbered pc to call arguments
11469         chain.
11470         * dwarf2out.c (gen_subprogram_die): Emit
11471         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11472         can't be emitted.
11473
11474         PR debug/45882
11475         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11476         * rtl.h (ENTRY_VALUE_EXP): Define.
11477         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11478         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11479         * print-rtl.c (print_rtx): Likewise.
11480         * gengtype.c (adjust_field_rtx_def): Likewise.
11481         * var-tracking.c (vt_add_function_parameter): Adjust
11482         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11483         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11484         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11485         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11486         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11487
11488         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11489         Call var_location debug hook even on CALL_INSNs.
11490         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11491         * rtl.def (ENTRY_VALUE): New.
11492         * dwarf2out.c: Include cfglayout.h.
11493         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11494         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11495         (struct call_arg_loc_node): New type.
11496         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11497         tail_call_site_count): New variables.
11498         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11499         DW_TAG_GNU_call_site_parameter.
11500         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11501         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11502         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11503         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11504         and DW_AT_GNU_all_source_call_sites.
11505         (mem_loc_descriptor): Handle ENTRY_VALUE.
11506         (add_src_coords_attributes): Don't add enything if
11507         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11508         (dwarf2out_abstract_function): Save and clear call_arg_location,
11509         call_site_count and tail_call_site_count around dwarf2out_decl call.
11510         (gen_call_site_die): New function.
11511         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11512         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11513         (dwarf2out_function_decl): Clear call_arg_locations,
11514         call_arg_loc_last, set call_site_count and tail_call_site_count
11515         to -1 and free block_map.
11516         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11517         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
11518         followed by any real instructions.
11519         (dwarf2out_begin_function): Set call_site_count and
11520         tail_call_site_count to 0.
11521         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11522         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11523         attempt to force a DIE for it and worst case remove the attribute.
11524         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11525         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11526         the decl itself.
11527         * var-tracking.c: Include tm_p.h.
11528         (vt_stack_adjustments): For calls call note_register_arguments.
11529         (argument_reg_set): New variable.
11530         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11531         ensure the VALUE is resolved.
11532         (call_arguments): New variable.
11533         (prepare_call_arguments): New function.
11534         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11535         (struct expand_loc_callback_data): Add ignore_cur_loc field.
11536         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11537         always use the best expression.
11538         (vt_expand_loc): Add ignore_cur_loc argument.
11539         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11540         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11541         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11542         note for all calls.
11543         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11544         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11545         argument.  Don't call cselib_preserve_only_values and
11546         cselib_reset_table.
11547         (note_register_arguments): New function.
11548         (vt_initialize): Compute argument_reg_set.  Call
11549         vt_add_function_parameters before processing basic blocks instead of
11550         afterwards.  For calls call prepare_call_arguments before calling
11551         cselib_process_insn.
11552         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11553         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11554         (var-tracking.o): Depend on $(TM_P_H).
11555         * cfglayout.h (insn_scope): New prototype.
11556         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11557         * cfglayout.c (insn_scope): No longer static.
11558         * insn-notes.def (CALL_ARG_LOCATION): New.
11559         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11560         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11561         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11562         nothing for DECL_EXTERNAL BLOCK_VARS.
11563
11564 2011-03-16  Alan Modra  <amodra@gmail.com>
11565
11566         PR target/45844
11567         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11568         create invalid offset address for vsx splat insn.
11569         * config/rs6000/predicates.md (splat_input_operand): New.
11570         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11571
11572 2011-03-15  Xinliang David Li  <davidxl@google.com>
11573
11574         PR c/47837
11575         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11576         (normalize_preds): New function.
11577         (is_use_properly_guarded): Normalize def predicates.
11578
11579 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11580
11581         PR target/46788
11582         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11583         in the output template.
11584
11585 2011-03-15  Richard Guenther  <rguenther@suse.de>
11586
11587         PR middle-end/47650
11588         * tree-pretty-print.c (dump_function_declaration): Properly
11589         dump unprototyped and varargs function types.
11590
11591 2011-03-15  Richard Guenther  <rguenther@suse.de>
11592
11593         PR tree-optimization/13954
11594         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11595         and friends.
11596
11597 2011-03-15  Richard Guenther  <rguenther@suse.de>
11598
11599         PR tree-optimization/48037
11600         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11601         selects into BIT_FIELD_REFs.
11602         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11603         vector select.
11604
11605 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11606
11607         PR tree-optimization/48129
11608         * builtins.c (fold_builtin_snprintf): Convert to type of
11609         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11610         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11611
11612 2011-03-15  Richard Guenther  <rguenther@suse.de>
11613
11614         PR tree-optimization/41490
11615         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11616         value but with VUSE.
11617         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11618         return statements.
11619         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11620         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11621         * tree-tailcall.c (find_tail_calls): Ignore returns.
11622
11623 2011-03-15  Richard Guenther  <rguenther@suse.de>
11624
11625         PR middle-end/48031
11626         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11627         or variable-indexed array accesses when in gimple form.
11628
11629 2011-03-15  Richard Guenther  <rguenther@suse.de>
11630
11631         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11632
11633 2011-03-15  Alan Modra  <amodra@gmail.com>
11634
11635         PR target/48032
11636         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11637         presume symbol_refs without a symbol_ref_decl are suitably
11638         aligned, nor other trees we may see here.  Handle anchor symbols.
11639         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11640         Check cmodel=medium addresses.  Adjust all calls.
11641         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11642         creating cmodel=medium optimized access to locals.
11643         * config/rs6000/constraints.md (R): Pass QImode to
11644         legitimate_constant_pool_address_p.
11645         * config/rs6000/predicates.md (input_operand): Pass mode to
11646         legitimate_constant_pool_address_p.
11647         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11648         Update prototype.
11649
11650 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11651
11652         PR target/48053
11653         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11654         64-bit constants being loaded into registers other than GPRs such
11655         as loading 0 into a VSX register.
11656
11657 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11658
11659         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11660
11661 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11662
11663         PR middle-end/47917
11664         * builtins.c (fold_builtin_snprintf): New function.
11665         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11666         (fold_builtin_4): Likewise.
11667
11668         PR middle-end/38878
11669         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11670         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
11671         and C - X == X also strip nops from +/-/p+ operand.
11672         When optimizing -X == C, fold C to arg0's type.
11673
11674         PR debug/47946
11675         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11676         emit it as add_AT_int instead of add_AT_unsigned.
11677
11678 2011-03-14  Tom Tromey  <tromey@redhat.com>
11679
11680         * unwind-dw2.c: Include sys/sdt.h if it exists.
11681         (_Unwind_DebugHook): Use STAP_PROBE2.
11682         * config.in, configure: Rebuild.
11683         * configure.ac: Check for sys/sdt.h.
11684
11685 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
11686
11687         * config/i386/i386.md (ROUND_FLOOR): New constant.
11688         (ROUND_CEIL): Ditto.
11689         (ROUND_TRUNC): Ditto.
11690         (ROUND_MXCSR): Ditto.
11691         (ROUND_NO_EXC): Ditto.
11692         (rint<mode>2): Use new defines instead of numerical constants.
11693         (floor<mode>2): Ditto.
11694         (ceil<mode>2): Ditto.
11695         (btrunc<mode>2): Ditto.
11696         * config/i386/i386-builtin-types.def: Define ROUND function type
11697         aliases.
11698         * config/i386/i386.c (enum ix86_builtins): Add
11699         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11700         (struct builtin_description): Add
11701         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11702         (ix86_expand_sse_round): New static function.
11703         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11704         function types.
11705         (ix86_builtin_vectorized_function): Handle
11706         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11707
11708 2011-03-14  Tom Tromey  <tromey@redhat.com>
11709
11710         * c-parser.c (c_parser_asm_string_literal): Clear
11711         warn_overlength_strings.
11712
11713 2011-03-14  Tom Tromey  <tromey@redhat.com>
11714
11715         * c-parser.c (disable_extension_diagnostics): Save
11716         warn_overlength_strings.
11717         (restore_extension_diagnostics): Restore warn_overlength_strings.
11718
11719 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11720
11721         * BASE-VER: Change to 4.7.0.
11722
11723 2011-03-14  Richard Guenther  <rguenther@suse.de>
11724
11725         PR middle-end/48098
11726         * tree.c (build_vector_from_val): Adjust assert to requirements
11727         and reality.
11728
11729 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11730
11731         PR bootstrap/48102
11732         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11733
11734 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11735
11736         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11737         terms of target_flags_explicit. Adjust copyright year.
11738
11739         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11740         * config/rs6000/t-freebsd: New file. Add override for
11741         LIB2FUNCS_EXTRA.
11742
11743 2011-03-13  Chris Demetriou  <cgd@google.com>
11744
11745         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11746         (-fno-diagnostics-show-option): this, to reflect current default.
11747         (-Werror=): Update text about -fno-diagnostics-show-option.
11748
11749 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11750
11751         PR target/48053
11752         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11753         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11754         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11755         mode is not V2DImode or V2DFmode.
11756         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11757         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11758         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11759         registers to 0.
11760         (movdi_internal64): Likewise.
11761
11762 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11763
11764         PR tree-optimization/47127
11765         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11766         parameter.
11767         (set_cloog_options): Same.
11768         (scop_to_clast): Same.
11769         (print_clast_stmt): Do not call cloog_state_malloc and
11770         cloog_state_free.
11771         (print_generated_program): Same.
11772         (gloog): Same.
11773         * graphite-clast-to-gimple.h (cloog_state): Declared.
11774         (scop_to_clast): Adjust declaration.
11775         * graphite.c (cloog_state): Defined here.
11776         (graphite_initialize): Call cloog_state_malloc.
11777         (graphite_finalize): Call cloog_state_free.
11778
11779 2011-03-11  Jason Merrill  <jason@redhat.com>
11780
11781         * attribs.c (lookup_attribute_spec): Take const_tree.
11782         * tree.h: Adjust.
11783
11784 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11785
11786         * config/sparc/sparc.c (sparc_option_override): Use
11787         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11788
11789 2011-03-11  Richard Guenther  <rguenther@suse.de>
11790
11791         PR tree-optimization/48067
11792         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11793         multiplication result will be only used once on the target
11794         stmt.
11795
11796 2011-03-11  Richard Guenther  <rguenther@suse.de>
11797
11798         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11799
11800 2011-03-11  Richard Guenther  <rguenther@suse.de>
11801
11802         PR lto/48073
11803         * tree.c (find_decls_types_r): Do not walk types only reachable
11804         from IDENTIFIER_NODEs.
11805
11806 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11807
11808         PR middle-end/48044
11809         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11810         all vnode->force_output nodes as needed.
11811
11812 2011-03-11  Jason Merrill  <jason@redhat.com>
11813
11814         PR c++/48069
11815         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11816         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11817
11818 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11819
11820         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11821         cgraph_node.
11822
11823 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11824
11825         PR tree-optimization/48063
11826         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11827         inline functions called once if !tree_can_inline_p (node->callers).
11828
11829 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11830
11831         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11832         extra_objs.
11833         * config/score/score3.c: Delete.
11834         * config/score/score3.h: Delete.
11835         * config/score/mul-div.S: Delete.
11836         * config/score/sfp-machine.h: Add new file.
11837         * config/score/constraints.md: Add new file.
11838         * config/score/t-score-softfp: Add new file.
11839         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11840         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11841         (score7_extra_constraint): Delete.
11842         (score7_option_override): Remove unused code.
11843         * config/score/score.c: Remove score3 and score5 define and code.
11844         * config/score/score.h: Remove score3 and score5 define and code.
11845         * config/score/score.md: Remove score3 template and unusual insn.
11846         * config/score/score.opt: Remove score3 and score5 options.
11847
11848 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11849
11850         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11851         when _HPUX_SOURCE is defined.
11852         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11853
11854 2011-03-10  Jason Merrill  <jason@redhat.com>
11855
11856         PR c++/48029
11857         * stor-layout.c (layout_type): Don't set structural equality
11858         on arrays of incomplete type.
11859         * tree.c (type_hash_eq): Handle comparing them properly.
11860
11861 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11862
11863         PR debug/48043
11864         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11865         result mode matches original rtl mode.
11866
11867 2011-03-10  Nick Clifton  <nickc@redhat.com>
11868
11869         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11870         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11871
11872 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11873
11874         PR rtl-optimization/47866
11875         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11876         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11877         if target wasn't scalar.
11878         * function.c (assign_stack_temp_for_type): Assert that neither
11879         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11880         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11881         macro.
11882         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11883
11884 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11885
11886         * config/s390/s390-protos.h (s390_label_align): New prototype.
11887         * config/s390/s390.c (s390_label_align): New function.
11888         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11889
11890 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11891
11892         PR target/47755
11893         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11894         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11895         (output_vec_const_move): Ditto.
11896
11897 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11898
11899         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11900         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11901         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11902         Change 'rclass' argument and result type to reg_class_t.
11903         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11904
11905 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11906
11907         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11908         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11909         (TARGET_MEMORY_MOVE_COST): Define.
11910         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11911
11912 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11913
11914         PR debug/47881
11915         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11916         removed anything.
11917
11918         PR tree-optimization/48022
11919         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11920         for EQ/NE_EXPR.
11921
11922 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11923
11924         PR debug/47991
11925         * var-tracking.c (find_use_val): Return NULL for
11926         cui->sets && cui->store_p BLKmode MEMs.
11927
11928 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11929
11930         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11931         Remove.
11932         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11933         xstormy16_print_operand_address): Remove.
11934         * config/stormy16/stormy16.c (xstormy16_print_operand,
11935         xstormy16_print_operand_address): Make static.
11936         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11937
11938 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11939
11940         PR target/47862
11941         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11942         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11943         before definition.
11944
11945 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11946
11947         PR bootstrap/48000
11948         * cfgloopmanip.c (fix_bb_placements): Return immediately
11949         if FROM is BASE_LOOP's header.
11950
11951 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11952
11953         * gimplify.c (gimplify_function_tree): Fix building calls
11954         to __builtin_return_address.
11955
11956 2011-03-07  Alan Modra  <amodra@gmail.com>
11957
11958         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11959         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11960         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11961         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11962         return_mode args.
11963         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11964         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11965         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11966         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11967         * config/rs6000/rs6000.c
11968         (rs6000_elf_end_indicate_exec_stack): Rename to..
11969         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11970         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11971         (rs6000_file_start): ..here.
11972         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11973         file scope variables.
11974         (call_ABI_of_interest): New function.
11975         (init_cumulative_args): Set above vars when function return value
11976         is a float, vector, or small struct.
11977         (rs6000_function_arg_advance_1): Likewise for function args.
11978         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11979         references float args.
11980
11981 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11982
11983         * doc/cfg.texi: Remove "See" before @ref.
11984         * doc/invoke.texi: Likewise.
11985
11986 2011-03-05  Jason Merrill  <jason@redhat.com>
11987
11988         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11989
11990 2011-03-05  Anthony Green  <green@moxielogic.com>
11991
11992         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11993
11994 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11995
11996         PR rtl-optimization/47899
11997         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11998         to flow_loop_nested_p when moving the loop upward.
11999
12000 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
12001
12002         PR target/47719
12003         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
12004
12005 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
12006
12007         PR tree-optimization/47967
12008         * ipa-cp.c (build_const_val): Return NULL instead of creating
12009         VIEW_CONVERT_EXPR for mismatching sizes.
12010         (ipcp_create_replace_map): Return NULL if build_const_val failed.
12011         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12012         give up on versioning.
12013
12014 2011-03-05  Alan Modra  <amodra@gmail.com>
12015
12016         PR target/47986
12017         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12018         full cmodel medium/large lo_sum + high addresses.
12019
12020 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12021
12022         * config/s390/s390.c (s390_decompose_address): Reject non-literal
12023         pool references in UNSPEC_LTREL_OFFSET.
12024
12025 2011-03-04  Jan Hubicka  <jh@suse.cz>
12026
12027         PR lto/47497
12028         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12029         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12030         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12031         Add node pointers.
12032         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12033         cgraph_add_thunk): Add node pointers.
12034         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12035         associated to right node.
12036         (input_node): Update use of cgraph_same_body_alias
12037         and cgraph_add_thunk.
12038
12039 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
12040
12041         * config/i386/i386.opt (mprefer-avx128): New flag.
12042         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12043         modes when the flag -mprefer-avx128 is on.
12044
12045 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
12046
12047         * dwarf2out.c (compare_loc_operands): Fix address handling.
12048
12049 2011-03-04  Alan Modra  <amodra@gmail.com>
12050
12051         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12052
12053 2011-03-04  Richard Guenther  <rguenther@suse.de>
12054
12055         PR middle-end/47968
12056         * expmed.c (extract_bit_field_1): Prefer vector modes that
12057         vec_extract patterns can handle.
12058
12059 2011-03-04  Richard Guenther  <rguenther@suse.de>
12060
12061         PR middle-end/47975
12062         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12063
12064 2011-03-04  Richard Henderson  <rth@redhat.com>
12065
12066         * explow.c (emit_stack_save): Remove 'after' parameter.
12067         (emit_stack_restore): Likewise.
12068         * expr.h: Update to match.
12069         * builtins.c, calls.c, stmt.c: Likewise.
12070         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12071         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12072         * function.c (expand_function_end): Insert the emit_stack_save
12073         sequence before parm_birth_insn instead of after.
12074
12075 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
12076
12077         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12078         (ssse3_pmaddubsw128): Ditto.
12079         (ssse3_pmaddubsw): Ditto.
12080
12081 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
12082
12083         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12084
12085 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
12086
12087         PR c/47963
12088         * gimplify.c (omp_add_variable): Only call omp_notice_variable
12089         on TYPE_SIZE_UNIT if it is a DECL.
12090
12091         PR debug/47283
12092         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12093         first operand is not is_gimple_mem_ref_addr, try to fold it.
12094         If the operand still isn't is_gimple_mem_ref_addr, clear
12095         MEM_EXPR on op0.
12096
12097 2011-03-03  Richard Guenther  <rguenther@suse.de>
12098
12099         PR middle-end/47283
12100         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12101         match comment.
12102         (refs_may_alias_p_1): For release branches return true if
12103         we are confused by our input.
12104
12105 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12106
12107         * config/s390/s390.c (s390_function_value): Rename to ...
12108         (s390_function_and_libcall_value): ... this.
12109         (s390_function_value): New function.
12110         (s390_libcall_value): New function.
12111         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12112         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12113         target macro definitions.
12114         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12115
12116 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
12117
12118         * config/i386/freebsd64.h (CC1_SPEC): Define.
12119         * config/i386/linux64.h (CC1_SPEC): Define.
12120         * config/i386/x86-64.h (CC1_SPEC): Don't define.
12121
12122 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
12123
12124         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12125         Remove.
12126         * config/stormy16/stormy16.c: Include reload.h.
12127         (xstormy16_memory_move_cost): New function.
12128         (TARGET_MEMORY_MOVE_COST): Define.
12129
12130 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
12131
12132         PR rtl-optimization/47925
12133         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12134         with side effects.  Remove the more-specific check for volatile asms.
12135
12136 2011-03-02  Alan Modra  <amodra@gmail.com>
12137
12138         PR target/47935
12139         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12140         toc relative addresses for valid offsets.
12141
12142 2011-03-01  Richard Guenther  <rguenther@suse.de>
12143
12144         PR tree-optimization/47890
12145         * tree-vect-loop.c (get_initial_def_for_induction): Set
12146         related stmt properly.
12147
12148 2011-03-01  Richard Guenther  <rguenther@suse.de>
12149
12150         PR lto/47924
12151         * lto-streamer.c (lto_record_common_node): Also register
12152         the canonical type.
12153
12154 2011-03-01  Richard Guenther  <rguenther@suse.de>
12155
12156         PR lto/46911
12157         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12158         Do not stream DECL_ABSTRACT_ORIGIN.
12159         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12160         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12161         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12162         Do not stream DECL_ABSTRACT_ORIGIN.
12163         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12164         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12165
12166 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
12167
12168         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12169         FUNCTION_VALUE_REGNO_P): Remove.
12170         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12171         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12172         Add 'outgoing' argument.
12173         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12174         function.
12175         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12176         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12177
12178 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
12179
12180         PR debug/28047
12181         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12182         (lookup_filename): Likewise.
12183         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12184
12185 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
12186             Jakub Jelinek  <jakub@redhat.com>
12187
12188         PR middle-end/47893
12189         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12190         (assign_stack_local_1): Change last argument type to int.
12191         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12192         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
12193         don't record padding space into frame_space_list nor use those areas.
12194         (assign_stack_local): Adjust caller.
12195         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12196         of assign_stack_local, pass 0 as last argument.
12197         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12198         callers.
12199
12200 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
12201
12202         PR debug/47283
12203         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12204         Use target address_mode and pointer_mode hooks instead of hardcoded
12205         Pmode and ptr_mode.  Handle some simple cases of extending if
12206         POINTERS_EXTEND_UNSIGNED < 0.
12207         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12208         Call convert_debug_memory_address.
12209         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12210         convert_debug_memory_address.
12211
12212         PR middle-end/46790
12213         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12214         * configure: Regenerated.
12215         * config.in: Regenerated.
12216         * varasm.c (default_function_section): Return NULL
12217         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12218
12219 2011-02-28  Martin Jambor  <mjambor@suse.cz>
12220
12221         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12222         the description to match the printed values.
12223
12224 2011-02-28  Richard Guenther  <rguenther@suse.de>
12225
12226         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12227         of the copied scope tree.
12228
12229 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12230
12231         * doc/extend.texi (Function Attributes): Avoid deeply (and
12232         wrongly) nested tables.
12233
12234 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
12235
12236         PR middle-end/47903
12237         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12238         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12239         r isn't op0 nor op1.
12240
12241 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
12242
12243         * config/avr/avr.md: Remove magic comment for emacs.
12244
12245 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
12246
12247         PR target/45261
12248         * config/avr/avr.c (avr_option_override): Use error on bad options.
12249         (avr_help): New function.
12250         (TARGET_HELP): Define.
12251
12252 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
12253
12254         PR target/42240
12255         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12256         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12257
12258 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
12259
12260         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12261         (ARM Options): Ditto.
12262         (i386 and x86-64 Options): Ditto.
12263         (RX Options): Ditto.
12264         (SPARC Options): Ditto.
12265
12266 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
12267
12268         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12269         FreeBSD 6 and later.  Generally use cpu generic.
12270
12271 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
12272
12273         * doc/cpp.texi: Update copyright years.
12274
12275 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12276
12277         PR target/46898
12278         * config/lm32/lm32.md (ashrsi3): Added needed variable.
12279
12280 2011-02-25  Jon Beniston  <jon@beniston.com>
12281
12282         PR target/46898
12283         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12284         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12285         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12286         (lm32_block_move_inline): Add type cast to remove warning.
12287         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12288         (gen_int_relational): Move declarations to start of function.
12289
12290 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12291
12292         PR tree-optimization/45470
12293         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12294         can throw internally only.
12295         * tree-vect-stmts.c (vectorizable_call): Likewise.
12296
12297 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
12298
12299         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12300         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12301         * config/stormy16/stormy16-protos.h
12302         (xstormy16_preferred_reload_class): Remove.
12303         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12304         static. Change 'rclass' argument and return type to reg_class_t.
12305         (TARGET_PREFERRED_RELOAD_CLASS,
12306         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12307
12308 2011-02-24  Richard Guenther  <rguenther@suse.de>
12309
12310         * lto-streamer-in.c (input_bb): Do not find referenced vars
12311         in debug statements.
12312
12313 2011-02-23  Jason Merrill  <jason@redhat.com>
12314
12315         * common.opt (fabi-version): Document v5 and v6.
12316
12317 2011-02-23  Richard Guenther  <rguenther@suse.de>
12318
12319         PR tree-optimization/47849
12320         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12321
12322 2011-02-23  Jie Zhang  <jie@codesourcery.com>
12323
12324         * opts-common.c (decode_cmdline_option): Print empty string
12325         argument as "" in decoded->orig_option_with_args_text.
12326         * gcc.c (execute): Print empty string argument as ""
12327         in the verbose output.
12328         (do_spec_1): Keep empty string argument.
12329
12330 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
12331
12332         * config.gcc: Declare score-* and crx-* obsolete.
12333
12334 2011-02-23  Jie Zhang  <jie@codesourcery.com>
12335
12336         PR rtl-optimization/47763
12337         * web.c (web_main): Ignore naked clobber when replacing register.
12338
12339 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
12340
12341         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12342         Remove.
12343
12344 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
12345
12346         PR doc/47848
12347         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12348
12349 2011-02-22  Mike Stump  <mikestump@comcast.net>
12350
12351         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12352         assembler.
12353         * configure: Regenerate.
12354
12355 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
12356
12357         PR rtl-optimization/46002
12358         * ira-color.c (update_copy_costs): Change class intersection
12359         test to reg_class_contents[] test of 'hard_regno'.
12360
12361 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
12362
12363         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12364         than Driver option.
12365         * config/hpux11.opt (mt): Likewise.
12366         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12367         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12368         * config/vax/elf.opt (mno-asm-pic): Likewise.
12369         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12370
12371 2011-02-21  Mike Stump  <mikestump@comcast.net>
12372
12373         PR target/47822
12374         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12375         tree so we can get save the type.
12376         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12377         for CFString instead of trying to use past the end of the builtins.
12378         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12379         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12380         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12381         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12382         Rename to darwin_builtin_cfstring.
12383         (darwin_init_cfstring_builtins): Return the built type.
12384
12385 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
12386
12387         PR target/47840
12388         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12389         (_mm256_insert_epi64): Use _mm_insert_epi64.
12390
12391 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
12392
12393         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12394         * config/stormy16/stormy16-protos.h
12395         (xstormy16_mode_dependent_address_p): Remove.
12396         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12397         Make static. Change return type to bool. Change argument type to
12398         const_rtx. Remove dead code.
12399         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12400
12401 2011-02-21  Richard Guenther  <rguenther@suse.de>
12402
12403         PR lto/47820
12404         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12405         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12406         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12407         TUs context.
12408         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12409         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12410
12411 2011-02-20  Richard Guenther  <rguenther@suse.de>
12412
12413         PR lto/47822
12414         * tree.c (free_lang_data_in_decl): Clean builtins from
12415         the TU decl BLOCK_VARS.
12416
12417 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
12418
12419         PR debug/47620
12420         PR debug/47630
12421         * haifa-sched.c (fix_tick_ready): Skip tick computation
12422         for debug insns.
12423
12424 2011-02-19  Richard Guenther  <rguenther@suse.de>
12425
12426         PR lto/47647
12427         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12428         Remove lazy BLOCK_VARS streaming.
12429         (lto_input_ts_block_tree_pointers): Likewise.
12430         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12431
12432 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12433
12434         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12435
12436 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12437
12438         * config/i386/biarch32.h, config/i386/mach.h,
12439         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12440
12441 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
12442
12443         PR target/47800
12444         * config/i386/i386.md (peephole2 for shift and plus): Use
12445         operands[1] original mode in the first insn.
12446
12447 2011-02-18  Mike Stump  <mikestump@comcast.net>
12448
12449         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12450
12451 2011-02-18  Jan Hubicka  <jh@suse.cz>
12452
12453         PR middle-end/47788
12454         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12455         to zero when the function is not inlinable at all.
12456
12457 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12458
12459         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12460         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12461         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12462         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12463         * config/pa/t-pa64: Likewise.
12464         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12465
12466 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12467
12468         PR driver/47787
12469         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12470
12471 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12472
12473         PR target/47792
12474         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12475
12476 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
12477
12478         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12479         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12480         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12481         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12482         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12483         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12484         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12485         m32r_load_postinc_p, m32r_store_preinc_predec_p,
12486         m32r_legitimate_address_p): New functions.
12487         * config/m32r/constraints.md (constraint "S"): Don't use
12488         STORE_PREINC_PREDEC_P.
12489         (constraint "U"): Don't use LOAD_POSTINC_P.
12490
12491 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
12492
12493         PR rtl-optimization/46178
12494         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12495         compute ira_hard_regno_cover_class[].
12496
12497 2011-02-18  Richard Guenther  <rguenther@suse.de>
12498
12499         PR lto/47798
12500         * lto-streamer.h (lto_global_var_decls): Declare.
12501         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12502         statics for global var processing.
12503
12504 2011-02-18  Richard Guenther  <rguenther@suse.de>
12505
12506         PR tree-optimization/47737
12507         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12508         edge dominance check.
12509
12510 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12511
12512         PR debug/47780
12513         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12514         avoid invalid rtx sharing.
12515
12516 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
12517
12518         * doc/cpp.texi (Obsolete Features): Add background on the
12519         origin of assertions.
12520
12521 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
12522
12523         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12524         objc_abi == 2.
12525         * config/darwin.c (output_objc_section_asm_op): Added support for
12526         ABI v1 and v2.
12527         (is_objc_metadata): New.
12528         (darwin_objc2_section): New.
12529         (darwin_objc1_section): New.
12530         (machopic_select_section): Added support for ABI v1 and v2.
12531         (darwin_emit_objc_zeroed): New.
12532         (darwin_output_aligned_bss): Detect objc metadata and treat it
12533         appropriately.
12534         (darwin_asm_output_aligned_decl_common): Same.
12535         (darwin_asm_output_aligned_decl_local): Same.
12536         * config/darwin-sections.def: Updated for ABI v1 and v2.
12537         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12538         compiling Objective-C code for the NeXT runtime, default to using
12539         ABI version 0 for 32-bit, and version 2 for 64-bit.
12540
12541 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12542
12543         * common.opt (optimize_fast): New Variable.
12544         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12545         instead of local variable ofast.
12546
12547 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12548
12549         * doc/invoke.texi (fobjc-abi-version): Documented.
12550         (fobjc-nilcheck): Documented.
12551         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12552         version.
12553
12554 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12555
12556         PR driver/47390
12557         * common.opt (export-dynamic): New Driver option.
12558         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12559
12560 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12561
12562         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12563
12564 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12565             Jan Hubicka  <jh@suse.cz>
12566
12567         PR debug/47106
12568         PR debug/47402
12569         * cfgexpand.c (account_used_vars_for_block): Remove.
12570         (estimated_stack_frame_size): Use referenced vars.
12571         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12572         that were referenced in the original function.  Test src_fn
12573         rather than cfun.  Drop redundant get_var_ann.
12574         (setup_one_parameter): Drop redundant get_var_ann.
12575         (declare_return_variable): Likewise.
12576         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12577         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12578         * ipa-inline.c (compute_inline_parameters): Do not compute
12579         disregard_inline_limits here.
12580         (compute_inlinable_for_current, pass_inlinable): New.
12581         (pass_inline_parameters): Require PROP_referenced_vars.
12582         * cgraphunit.c (cgraph_process_new_functions): Don't run
12583         compute_inline_parameters explicitly unless function is in SSA form.
12584         (cgraph_analyze_function): Set .disregard_inline_limits.
12585         * tree-sra.c (convert_callers): Compute inliner parameters
12586         only for functions already in SSA form.
12587
12588 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12589
12590         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12591         -mlittle-endian-data.
12592
12593 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12594
12595         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12596         -mno-fpu, not -fpu and -no-fpu.
12597         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12598         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12599
12600 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12601
12602         PR target/43653
12603         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12604         input reload with PLUS RTX.
12605
12606 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12607
12608         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12609         of InverseVar(MDMX).
12610
12611 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12612
12613         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12614         --m4-340.
12615
12616 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12617
12618         * config/mn10300/mn10300.opt (mno-crt0): New.
12619
12620 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12621
12622         * config/m68k/uclinux.opt (static-libc): New Driver option.
12623
12624 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12625
12626         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12627
12628 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12629
12630         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12631         %{muser-extend-enabled}.
12632
12633 2011-02-16  Richard Guenther  <rguenther@suse.de>
12634
12635         PR tree-optimization/47738
12636         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12637         the TODO from tree_predictive_commoning.
12638
12639 2011-02-15  Jeff Law  <law@redhat.com>
12640
12641         Revert
12642         2011-01-25  Jeff Law  <law@redhat.com>
12643
12644         PR rtl-optimization/37273
12645         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12646         handle them like argument loads from stack slots.  Do not double
12647         count memory for memory constants and argument loads from stack slots.
12648
12649 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12650
12651         PR middle-end/47725
12652         * combine.c (cant_combine_insn_p): Revert the last change.
12653
12654 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12655
12656         PR target/47755
12657         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12658         mode for vector constants.  Remove code that checks for TImode.
12659
12660 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12661
12662         PR debug/47106
12663         PR debug/47402
12664         * cgraph.h (compute_inline_parameters): Return void.
12665         * ipa-inline.c (compute_inline_parameters): Adjust.
12666
12667 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12668
12669         PR debug/47106
12670         PR debug/47402
12671         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12672         rather than decl.
12673         * cfgexpand.c (estimated_stack_frame_size): Likewise.
12674         * ipa-inline.c (compute_inline_parameters): Adjust.
12675
12676 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12677
12678         PR debug/47106
12679         PR debug/47402
12680         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12681         Adjust all users.  Pass FN to...
12682         * tree-flow-inline.h (first_referenced_var): ... this.  Add
12683         fn argument.
12684         * ipa-struct-reorg.c: Adjust.
12685         * tree-dfa.c: Adjust.
12686         * tree-into-ssa.c: Adjust.
12687         * tree-sra.c: Adjust.
12688         * tree-ssa-alias.c: Adjust.
12689         * tree-ssa-live.c: Adjust.
12690         * tree-ssa.c: Adjust.
12691         * tree-ssanames.c: Adjust.
12692         * tree-tailcall.c: Adjust.
12693
12694 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12695
12696         PR debug/47106
12697         PR debug/47402
12698         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12699         Adjust all callers.
12700         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12701         * tree-flow-inline.h: Adjust.
12702         * gimple-pretty-print.c: Adjust.
12703         * tree-into-ssa.c: Adjust.
12704         * tree-ssa.c: Adjust.
12705         * cfgexpand.c: Adjust.
12706
12707 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12708
12709         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12710         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12711         (EXTRA_CONSTRAINT): Delete.
12712         * config/iq2000/constraints.md: New file.
12713         * config/iq2000/iq2000.md: Include it.
12714         (define_insn ""): Delete.
12715         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12716         unsupported constraint letters from patterns.
12717         (call_value, call_value_internal1): Likewise.
12718         (call_value_multiple_internal1): Likewise.
12719
12720 2011-02-15  Nick Clifton  <nickc@redhat.com>
12721
12722         * config/mn10300/mn10300.c: Include tm-constrs.h.
12723         (struct liw_data): New data structure describing an LIW candidate
12724         instruction.
12725         (extract_bundle): Use struct liw_data.  Allow small integer
12726         operands for some instructions.
12727         (check_liw_constraints): Use struct liw_data.  Remove swapped
12728         parameter.  Add comments describing the checks.  Fix bug when
12729         assigning the source of liw1 to the source of liw2.
12730         (liw_candidate): Delete.  Code moved into extract_bundle.
12731         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12732         before swapping.
12733         * config/mn10300/predicates.md (liw_operand): New predicate.
12734         Allows registers and small integer constants.
12735         * config/mn10300/constraints.md (O): New constraint.  Accetps
12736         integers in the range -8 to +7 inclusive.
12737         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12738         for moving a small integer into a register.  Give this alternative
12739         LIW attributes.
12740         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12741         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12742         using the J,K,L and M constraints,
12743         (liw): Remove SI mode on second operands to allow for HI and QI
12744         mode values.
12745         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12746         instruction.
12747
12748 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12749
12750         PR middle-end/47725
12751         * combine.c (cant_combine_insn_p): Check zero/sign extended
12752         hard registers.
12753
12754 2011-02-15  Richard Guenther  <rguenther@suse.de>
12755
12756         PR tree-optimization/47743
12757         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12758         for a non-type-compatible VN lookup bail out.
12759
12760 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12761
12762         * config/fr30/constraints.md: New file.
12763         * config/fr30/fr30.md: Include it.
12764         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12765         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12766         (EXTRA_CONSTRAINT): Delete.
12767
12768 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12769
12770         * config/frv/constraints.md: New file.
12771         * config/frv/predicates.md: Include it.
12772         * config/frv/frv.c (reg_class_from_letter): Delete.
12773         (frv_option_override): Don't initialize it.
12774         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12775         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12776         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12777         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12778         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12779         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12780         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12781         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12782         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12783         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12784         (REG_CLASS_FROM_CONSTRAINT): Delete.
12785
12786 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12787
12788         PR middle-end/47581
12789         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12790         if frame size is 0 in a leaf function.
12791
12792 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12793
12794         PR pch/14940
12795         * config/alpha/host-osf.c: New file.
12796         * config/alpha/x-osf: New file.
12797         * config.host (alpha*-dec-osf*): Use it.
12798
12799 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12800
12801         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12802         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12803         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12804         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12805         type to const_rtx.
12806         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12807
12808 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12809
12810         * config/stormy16/constraints.md: New file.
12811         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12812         Use satisfies_constraint_Q and satisfies_constraint_R.
12813         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12814         Delete.
12815         (xstormy16_legitiamte_address_p): Declare.
12816         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12817         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12818         (EXTRA_CONSTRAINT): Delete.
12819         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12820         Un-staticize.
12821         (xstormy16_extra_constraint_p): Delete.
12822
12823 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12824
12825         PR tree-optimization/46494
12826         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12827         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12828         (pass_rtl_loop_done): Add TODO_verify_flow.
12829         * fwprop.c (pass_rtl_fwprop): Likewise.
12830         * modulo-sched.c (pass_sms): Likewise.
12831         * tree-ssa-dom.c (pass_dominator): Likewise.
12832         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12833         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12834         (pass_tree_loop_done): Likewise.
12835         * tree-ssa-pre.c (execute_pre): Likewise.
12836         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12837         * tree-ssa-sink.c (pass_sink_code): Likewise.
12838         * tree-vrp.c (pass_vrp): Likewise.
12839
12840 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12841
12842         * config/v850/constraints.md: New file.
12843         * config/v850/v850.md: Include it.
12844         * config/v850/predicates.md (reg_or_0_operand): Use
12845         satisfies_constraint_G.
12846         (special_symbolref_operand): Use satisfies_constraint_K.
12847         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12848         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12849         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12850         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12851         (EXTRA_CONSTRAINT): Delete.
12852         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12853         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12854         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12855
12856 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12857
12858         PR target/47696
12859         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12860         description.
12861
12862 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12863
12864         * config/mcore/constraints.md: New file.
12865         * config/mcore/mcore.md: Include it.
12866         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12867         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12868         (REG_CLASS_FROM_LETTER): Delete.
12869         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12870         insn_const_int_ok_for_constraint.
12871         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12872         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12873         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12874         (EXTRA_CONSTRAINT): Delete.
12875
12876 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12877
12878         PR ada/41929
12879         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12880         (IS_SIGHANDLER): Define.
12881         (sparc64_is_sighandler): New function, split off from
12882         sparc64_fallback_frame_state.
12883         (sparc_is_sighandler): New function, split off from
12884         sparc_fallback_frame_state.
12885         (sparc64_fallback_frame_state): Merge with ...
12886         (sparc_fallback_frame_state): ... this into ...
12887         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12888         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12889         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12890         stack instead of hardcoded offsets.
12891
12892 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12893
12894         PR target/45808
12895         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12896
12897 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12898
12899         * configure: Regenerate.
12900
12901 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12902
12903         PR driver/45731
12904         * gcc.c (asm_options): Correct spec matching --target-help.
12905
12906 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12907
12908         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12909         to gimple call error.
12910
12911 2011-02-12  Mike Stump  <mikestump@comcast.net>
12912
12913         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12914         comments in backslash regions.
12915
12916 2011-02-12  Mike Stump  <mikestump@comcast.net>
12917             Jakub Jelinek  <jakub@redhat.com>
12918             Iain Sandoe  <iains@gcc.gnu.org>
12919
12920         PR target/47324
12921         * dwarf2out.c (output_cfa_loc): When required, apply the
12922         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12923         (output_loc_sequence): Likewise.
12924         (output_loc_operands_raw): Likewise.
12925         (output_loc_sequence_raw): Likewise.
12926         (output_cfa_loc): Likewise.
12927         (output_loc_list): Suppress register number adjustment when
12928         calling output_loc_sequence()
12929         (output_die): Likewise.
12930
12931 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12932
12933         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12934         Remove macros.
12935         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12936         xtensa_memory_move_cost): New functions.
12937         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12938
12939 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12940
12941         PR lto/47225
12942         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12943         in the current directory.
12944         * configure: Rebuilt.
12945
12946 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12947
12948         * config/darwin.c (darwin_override_options): Add a hunk missed
12949         from the commit of r168571.  Trim comment line lengths and
12950         correct indents of the preceding block.
12951
12952 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12953
12954         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12955         the switch.
12956
12957 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12958
12959         * common.opt (nostartfiles): New Driver option.
12960
12961 2011-02-11  Xinliang David Li  <davidxl@google.com>
12962
12963         PR tree-optimization/47707
12964         * tree-chrec.c (convert_affine_scev): Keep type precision.
12965
12966 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12967
12968         PR tree-optimization/47420
12969         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12970
12971 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12972
12973         PR rtl-optimization/47614
12974         * rtl.h (check_for_inc_dec): Declare.
12975         * dse.c (check_for_inc_dec): Externalize...
12976         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12977         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12978
12979 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12980
12981         PR driver/47678
12982         * gcc.c (main): Do not compile inputs if there were errors in
12983         option handling.
12984         * opts-common.c (read_cmdline_option): Check for wrong language
12985         after other error checks.
12986
12987 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12988
12989         * cgraph.c: Fix comment typos.
12990         * cgraph.h: Likewise.
12991         * cgraphunit.c: Likewise.
12992         * ipa-cp.c: Likewise.
12993         * ipa-inline.c: Likewise.
12994         * ipa-prop.c: Likewise.
12995         * ipa-pure-const.c: Likewise.
12996         * ipa-ref.c: Likewise.
12997         * ipa-reference.c: Likewise.
12998
12999 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13000
13001         PR debug/47684
13002         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13003
13004 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13005
13006         PR testsuite/47400
13007         * doc/sourcebuild.texi (Require Support): Document
13008         dg-require-ascii-locale.
13009
13010 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
13011
13012         * doc/lto.texi (Write summary): Fix missing parentheses.
13013
13014 2011-02-10  DJ Delorie  <dj@redhat.com>
13015
13016         * config/m32c/m32c.c (m32c_option_override): Disable
13017         -fcombine-stack-adjustments until flag value tracking and compare
13018         optimization can be rewritten.
13019
13020 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
13021
13022         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13023         PROCESSOR_POWER7.
13024         (PROCESSOR_DEFAULT64): Likewise.
13025
13026 2011-02-10  Richard Henderson  <rth@redhat.com>
13027
13028         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13029         change from 2011-02-03.
13030         * config/rx/rx.c (flags_from_code): Likewise.
13031         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13032         is valid, n/pz otherwise.
13033         (rx_select_cc_mode): Return CCmode if Y is not zero.
13034
13035 2011-02-10  Richard Guenther  <rguenther@suse.de>
13036
13037         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13038
13039 2011-02-10  Richard Guenther  <rguenther@suse.de>
13040
13041         PR tree-optimization/47677
13042         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13043
13044 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
13045
13046         PR target/47665
13047         * combine.c (make_compound_operation): Only change shifts into
13048         multiplication for SCALAR_INT_MODE_P.
13049
13050 2011-02-10  Jie Zhang  <jie@codesourcery.com>
13051
13052         PR testsuite/47622
13053         Revert
13054         2011-02-05  Jie Zhang  <jie@codesourcery.com>
13055         PR debug/42631
13056         * web.c (entry_register): Don't clobber the number of the
13057         first uninitialized reference in used[].
13058
13059 2011-02-09  Richard Guenther  <rguenther@suse.de>
13060
13061         PR tree-optimization/47664
13062         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13063         all edges again.
13064
13065 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
13066
13067         PR target/46481
13068         PR target/47032
13069         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13070         PROCESSOR_POWER7.
13071         (PROCESSOR_DEFAULT64): Same.
13072         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13073
13074 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13075
13076         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13077
13078 2011-02-09  Martin Jambor  <mjambor@suse.cz>
13079
13080         PR middle-end/45505
13081         * tree-sra.c (struct access): New flags grp_scalar_read and
13082         grp_scalar_write.  Changed description of assignment read and write
13083         flags.
13084         (dump_access): Dump new flags, reorder all of them.
13085         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13086         to detect multiple scalar reads.
13087         (analyze_access_subtree): Use the new scalar read write flags instead
13088         of the old flags.  Adjusted comments.
13089
13090 2011-02-08  DJ Delorie  <dj@redhat.com>
13091
13092         PR target/47548
13093         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13094         patterns.
13095
13096 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13097
13098         * config/m68k/uclinux.opt: New.
13099         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13100
13101 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13102
13103         * config/cris/elf.opt (sim): New Driver option.
13104
13105 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13106
13107         * config/xtensa/elf.opt: New.
13108         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13109
13110 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13111
13112         * config/vax/elf.opt: New.
13113         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13114
13115 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13116
13117         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13118
13119 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13120
13121         * config/gnu-user.opt: New.
13122         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13123         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13124         *-*-uclinux*): Use gnu-user.opt.
13125
13126 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
13127
13128         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13129         * config/i386/gnu.h (CPP_SPEC): Likewise.
13130
13131 2011-02-08  Ian Lance Taylor  <iant@google.com>
13132
13133         * common.opt (fcx-limited-range): Add SetByCombined flag.
13134         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13135         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13136         (fassociative-math, freciprocal-math): Likewise.
13137         (funsafe-math-optimizations): Likewise.
13138         * opth-gen.awk: Handle SetByCombined.
13139         * optc-gen.awk: Likewise.
13140         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13141         (set_unsafe_math_optimizations_flags): Likewise.
13142         * doc/options.texi (Option properties): Document SetByCombined.
13143
13144 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13145
13146         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13147         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13148         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13149         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13150         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13151
13152 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
13153
13154         PR tree-optimization/46834
13155         PR tree-optimization/46994
13156         PR tree-optimization/46995
13157         * graphite-sese-to-poly.c (used_outside_reduction): New.
13158         (detect_commutative_reduction): Call used_outside_reduction.
13159         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13160         translate_scalar_reduction_to_array only when at least one
13161         loop-phi/close-phi tuple has been detected.
13162
13163 2011-02-08  Richard Guenther  <rguenther@suse.de>
13164
13165         PR middle-end/47639
13166         * tree-vect-generic.c (expand_vector_operations_1): Update
13167         stmts here ...
13168         (expand_vector_operations): ... not here.  Cleanup EH info
13169         and the CFG if required.
13170
13171 2011-02-08  Richard Guenther  <rguenther@suse.de>
13172
13173         PR tree-optimization/47641
13174         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13175         require type compatibility.
13176
13177 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13178
13179         * gimple-low.c (lower_function_body): Don't remove the location of
13180         the return statement here.
13181         (lower_gimple_return): Do it here instead but only if the return
13182         statement is actually used twice.
13183
13184 2011-02-08  Richard Guenther  <rguenther@suse.de>
13185
13186         PR tree-optimization/47632
13187         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13188         unused up_to_stmt parameter, return whether cfg-cleanup is
13189         necessary, remove EH info properly.
13190         (forward_propagate_into_gimple_cond): Adjust caller.
13191         (forward_propagate_into_cond): Likewise.
13192         (forward_propagate_comparison): Likewise.
13193         (tree_ssa_forward_propagate_single_use_vars): Make
13194         forward_propagate_comparison case similar to the two others.
13195
13196 2011-02-08  Nick Clifton  <nickc@redhat.com>
13197
13198         * config/mn10300/mn10300.opt (mliw): New command line option.
13199         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13200         (liw_bundling): New automaton.
13201         (liw): New attribute.
13202         (liw_op): New attribute.
13203         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13204         (movsi_internal): Add LIW attributes.
13205         (andsi3): Likewise.
13206         (iorsi3): Likewise.
13207         (xorsi3): Likewise.
13208         (addsi3): Separate register and immediate alternatives.
13209         Add LIW attributes.
13210         (subsi3): Likewise.
13211         (cmpsi): Likewise.
13212         (aslsi3): Likewise.
13213         (lshrsi3): Likewise.
13214         (ashrsi3): Likewise.
13215         (liw): New pattern.
13216         * config/mn10300/mn10300.c (liw_op_names): New
13217         (mn10300_print_operand): Handle 'W' operand descriptor.
13218         (extract_bundle): New function.
13219         (check_liw_constraints): New function.
13220         (liw_candidate): New function.
13221         (mn10300_bundle_liw): New function.
13222         (mn10300_reorg): New function.
13223         (TARGET_MACHINE_DEPENDENT_REORG): Define.
13224         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13225         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13226         __LIW__ or __NO_LIW__.
13227         * doc/invoke.texi: Describe the -mliw command line option.
13228
13229 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13230
13231         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13232         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13233         pthread_mutex_unlock): Remove.
13234         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13235         * config/pa/t-pa64: Likewise.
13236         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13237         shared libc if not linking against libpthread.
13238         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13239
13240 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
13241
13242         PR target/47558
13243         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13244         on 10.6 and later to ensure that we always use the unwinder from
13245         the system.  Only add -no_compact_unwind when tarteting darwin
13246         10.6 or later.
13247
13248 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
13249
13250         PR target/46997
13251         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13252         (vec_interleave_lowv2sf): Ditto.
13253         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13254         (vec_extract_oddv2sf): Ditto.
13255
13256 2011-02-07  Mike Stump  <mikestump@comcast.net>
13257
13258         PR target/42333
13259         Add __ieee_divdc3 entry point.
13260         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13261         entry point.
13262         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13263         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13264         * config/darwin.c (darwin_rename_builtins): Add.
13265         * config/darwin-protos.h (darwin_rename_builtins): Add.
13266
13267 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
13268
13269         PR target/47636
13270         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13271         for the condition.
13272
13273 2011-02-07  Mike Stump  <mikestump@comcast.net>
13274
13275         * config/darwin.opt (mmacosx-version-min): Update default OS version.
13276
13277 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
13278
13279         PR target/47534
13280         * config/avr/libgcc.S (exit): Move .endfunc
13281
13282 2011-02-07  Richard Guenther  <rguenther@suse.de>
13283
13284         PR tree-optimization/47615
13285         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13286         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13287         (run_scc_vn): Initialize it.
13288         (visit_reference_op_load): Use it.
13289         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13290
13291 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13292
13293         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13294         DImode trapping arithmetic libfuncs.
13295
13296 2011-02-07  Richard Guenther  <rguenther@suse.de>
13297
13298         PR tree-optimization/47621
13299         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13300         two duplicates ...
13301         (execute_update_addresses_taken): ... here.  Make it more
13302         conservative in what we accept.
13303
13304 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
13305
13306         * config/sparc/freebsd.h (ASM_SPEC): Define.
13307         * config/sparc/vxworks.h (ASM_SPEC): Define.
13308
13309 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
13310
13311         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13312
13313 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
13314
13315         * doc/invoke.texi: Remove reference to compiler internals from
13316         user documentation.
13317
13318         * reg-notes.def: Remove REG_VALUE_PROFILE.
13319         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13320
13321 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
13322
13323         PR middle-end/47610
13324         * varasm.c (default_section_type_flags): If decl is NULL,
13325         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13326
13327 2011-02-05  Jie Zhang  <jie@codesourcery.com>
13328
13329         PR debug/42631
13330         * web.c (entry_register): Don't clobber the number of the
13331         first uninitialized reference in used[].
13332
13333 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
13334
13335         PR tree-optimization/46194
13336         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13337         (build_classic_dist_vector_1): Do not represent classic distance
13338         vectors when the access functions are variating in different loops.
13339
13340 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13341
13342         * config/mips/iris6.opt: New.
13343         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13344
13345 2011-02-04  Richard Henderson  <rth@redhat.com>
13346             Steve Ellcey  <sje@cup.hp.com>
13347
13348         PR target/46997
13349         * config/ia64/predicates.md (mux1_brcst_element): New.
13350         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13351         * config/ia64/ia64.c (ia64_unpack_assemble): New.
13352         (ia64_unpack_sign): New.
13353         (ia64_expand_unpack): Rewrite using new routines.
13354         (ia64_expand_widen_sum): Ditto.
13355         (ia64_expand_dot_prod_v8qi): Ditto.
13356         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13357         routines, add endian check.
13358         (pmpy2_even): Rename from pmpy2_r, add endian check.
13359         (pmpy2_odd): Rename from pmpy2_l, add endian check.
13360         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13361         (vec_widen_smult_hi_v4hi): Ditto.
13362         (vec_widen_umult_lo_v4hi): Ditto.
13363         (vec_widen_umult_hi_v4hi): Ditto.
13364         (mulv2si3): Change endian checks.
13365         (sdot_prodv4hi): Rewrite with new calls.
13366         (udot_prodv4hi): New.
13367         (vec_pack_ssat_v4hi): Add endian check.
13368         (vec_pack_usat_v4hi): Ditto.
13369         (vec_pack_ssat_v2si): Ditto.
13370         (max1_even): Rename from max1_r, add endian check.
13371         (max1_odd): Rename from max1_l, add endian check.
13372         (*mux1_rev): Format change.
13373         (*mux1_mix): Ditto.
13374         (*mux1_shuf): Ditto.
13375         (*mux1_alt): Ditto.
13376         (*mux1_brcst_v8qi): Use new predicate.
13377         (vec_extract_evenv8qi): Remove endian check.
13378         (vec_extract_oddv8qi): Ditto.
13379         (vec_interleave_lowv4hi): Format change.
13380         (vec_interleave_highv4hi): Ditto.
13381         (mix2_even): Rename from mix2_r, add endian check.
13382         (mix2_odd): Rename from mux2_l, add endian check.
13383         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13384         (vec_extract_evenodd_helper): Format change.
13385         (vec_extract_evenv4hi): Remove endian check.
13386         (vec_extract_oddv4hi): Remove endian check.
13387         (vec_interleave_lowv2si): Format change.
13388         (vec_interleave_highv2si): Format change.
13389         (vec_initv2si): Remove endian check.
13390         (vecinit_v2si): Add endian check.
13391         (reduc_splus_v2sf): Add endian check.
13392         (reduc_smax_v2sf): Ditto.
13393         (reduc_smin_v2sf): Ditto.
13394         (vec_initv2sf): Remove endian check.
13395         (fpack): Add endian check.
13396         (fswap): Add endian check.
13397         (vec_interleave_highv2sf): Add endian check.
13398         (vec_interleave_lowv2sf): Add endian check.
13399         (fmix_lr): Add endian check.
13400         (vec_setv2sf): Format change.
13401         (*vec_extractv2sf_0_be): Use shift to extract operand.
13402         (*vec_extractv2sf_1_be): New.
13403         (vec_pack_trunc_v4hi): Add endian check.
13404         (vec_pack_trunc_v2si): Format change.
13405
13406 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
13407
13408         PR inline-asm/23200
13409         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
13410         do bb, locus and block comparison and disallow loads if it is not set.
13411         (stmt_is_replaceable_p): New function.
13412         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13413         callers.
13414         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13415         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13416         SSA_NAME_DEF_STMT.
13417         * tree-flow.h (stmt_is_replaceable_p): New prototype.
13418
13419 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13420
13421         * config/rs6000/xilinx.opt: New.
13422         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13423
13424 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13425
13426         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13427
13428 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
13429
13430         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13431         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13432         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13433         secondary_reload_info, xtensa_secondary_reload): Remove.
13434         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13435         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13436         (xtensa_preferred_reload_class): Make static. Change return and
13437         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13438         Use CONST_DOUBLE_P predicate.
13439         (xtensa_preferred_output_reload_class): New function.
13440         (xtensa_secondary_reload): Make static.
13441
13442 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
13443
13444         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13445         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13446         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13447
13448 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13449
13450         PR middle-end/31490
13451         * output.h (SECTION_RELRO): Define.
13452         (SECTION_MACH_DEP): Adjust.
13453         (get_variable_section): New prototype.
13454         * varpool.c (varpool_finalize_named_section_flags): New function.
13455         (varpool_assemble_pending_decls): Call it.
13456         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13457         * cgraphunit.c (cgraph_output_in_order): Call
13458         varpool_finalize_named_section_flags.
13459         * varasm.c (get_section): Allow section flags conflicts between
13460         relro and read-only sections if the section hasn't been declared yet.
13461         Set SECTION_OVERRIDE after diagnosing section type conflict.
13462         (get_variable_section): No longer static.
13463         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13464         readonly sections that need relocations.
13465         (decl_readonly_section_1): New function.
13466         (decl_readonly_section): Use it.
13467
13468         Revert:
13469         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
13470                     Steve Ellcey  <sje@cup.hp.com>
13471
13472         PR middle-end/31490
13473         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13474         if section attribute used.
13475
13476 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13477
13478         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13479         * config/darwin.c (SECTION_NO_ANCHOR): Define.
13480         (darwin_init_sections): Remove assertion.
13481
13482 2011-02-03  Nick Clifton  <nickc@redhat.com>
13483
13484         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13485         lt and ge.
13486         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13487         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13488         instead of "n" and "pz".
13489         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13490         CC_FLAG_S.
13491
13492 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13493
13494         PR target/47312
13495         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13496         fma, expand FMA_EXPR as fma{,f,l} call.
13497
13498         PR lto/47274
13499         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13500         copy them into a unsigned char variable and pass address of it to
13501         lto_output_data_stream.
13502
13503         PR target/47564
13504         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13505         around backend_init_target and lang_dependent_init_target calls.
13506         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13507         (verify_cgraph_node): Don't call set_cfun here.  Use
13508         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13509         Set error_found for incorrectly represented calls to thunks.
13510
13511 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13512
13513         PR debug/43092
13514         PR rtl-optimization/43494
13515         * rtl.h (for_each_inc_dec_fn): New type.
13516         (for_each_inc_dec): Declare.
13517         * rtlanal.c (struct for_each_inc_dec_ops): New type.
13518         (for_each_inc_dec_find_inc_dec): New fn.
13519         (for_each_inc_dec_find_mem): New fn.
13520         (for_each_inc_dec): New fn.
13521         * dse.c (struct insn_size): Remove.
13522         (replace_inc_dec, replace_inc_dec_mem): Remove.
13523         (emit_inc_dec_insn_before): New fn.
13524         (check_for_inc_dec): Use it, along with for_each_inc_dec.
13525         (canon_address): Pass mem modes to cselib_lookup.
13526         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
13527         (cselib_lookup_from_insn): Likewise.
13528         (cselib_subst_to_values): Likewise.
13529         * cselib.c (find_slot_memmode): New var.
13530         (cselib_find_slot): New fn.  Use it instead of
13531         htab_find_slot_with_hash everywhere.
13532         (entry_and_rtx_equal_p): Use find_slot_memmode.
13533         (autoinc_split): New fn.
13534         (rtx_equal_for_cselib_p): Rename and implement in terms of...
13535         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
13536         Deal with autoinc.  Special-case recursion into MEMs.
13537         (cselib_hash_rtx): Likewise.
13538         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13539         address and MEM modes.
13540         (cselib_subst_to_values): Add memmode, pass it on.
13541         Deal with autoinc.
13542         (cselib_lookup): Add memmode argument, pass it on.
13543         (cselib_lookup_from_insn): Add memmode.
13544         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13545         (struct cselib_record_autoinc_data): New.
13546         (cselib_record_autoinc_cb): New fn.
13547         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13548         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13549         (cselib_process_insn): ... here.
13550         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13551         to cselib_lookup.
13552         (add_uses): Likewise, also to cselib_subst_to_values.
13553         (add_stores): Likewise.
13554         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13555         cselib_subst_to_values.
13556         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13557         * gcse.c (do_local_cprop): Adjusted.
13558         * postreload.c (reload_cse_simplify_set): Adjusted.
13559         (reload_cse_simplify_operands): Adjusted.
13560         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13561
13562 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13563
13564         PR tree-optimization/45122
13565         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13566         unsafe assumptions when there's more than one loop exit.
13567
13568 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13569
13570         PR target/47272
13571         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13572         Document using vector double with the load/store builtins, and
13573         that the load/store builtins always use Altivec instructions.
13574
13575         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13576         to use altivec memory instructions, even on VSX.
13577         (vector_altivec_store_<mode>): Ditto.
13578
13579         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13580         function.
13581
13582         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13583         V2DF, V2DI support to load/store overloaded builtins.
13584
13585         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13586         altivec load/store builtins for V2DF/V2DI types.
13587
13588         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13589         set avoid indexed addresses on power6 if -maltivec.
13590         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13591         vector_altivec_load/vector_altivec_store builtins.
13592         (altivec_expand_st_builtin): Ditto.
13593         (altivec_expand_builtin): Add VSX memory builtins.
13594         (rs6000_init_builtins): Add V2DI types to internal types.
13595         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13596         load/store builtins.
13597         (rs6000_address_for_altivec): Insure memory address is appropriate
13598         for Altivec.
13599
13600         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13601         vec_vsx_ld and vec_vsx_st.
13602         (vsx_store_<mode>): Ditto.
13603
13604         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13605         variables to hold long long types for VSX vector memory builtins.
13606         (RS6000_BTI_unsigned_long_long): Ditto.
13607         (long_long_integer_type_internal_node): Ditti.
13608         (long_long_unsigned_type_internal_node): Ditti.
13609
13610         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13611         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13612         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13613
13614         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13615         short cuts.
13616         (vec_vsx_st): Ditto.
13617
13618 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13619
13620         * config/pa/pa-hpux10.opt: New.
13621         * config/hpux11.opt (pthread): New Driver option.
13622         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13623         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13624
13625 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13626
13627         * config/ia64/vms.opt: New.
13628         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13629
13630 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13631
13632         PR target/47580
13633         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13634         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13635         generator functions.
13636         (vsx_floatuns<VSi><mode>2): Ditto.
13637         (vsx_fix_trunc<mode><VSi>2): Ditto.
13638         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13639
13640 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13641
13642         * config/i386/djgpp.opt (posix): New Driver option.
13643
13644 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13645
13646         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13647         Move to the unsupported targets list.
13648
13649 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
13650
13651         PR rtl-optimization/47525
13652         * df-scan.c: Update copyright years.
13653         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13654         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13655
13656 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13657
13658         * config/i386/sysv4.h (TARGET_VERSION): Remove.
13659         (SUBTARGET_RETURN_IN_MEMORY): Remove.
13660         (ASM_OUTPUT_ASCII): Remove.
13661         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13662
13663 2011-02-02  Jeff Law  <law@redhat.com>
13664
13665         PR middle-end/47543
13666         * reload.c (find_reloads_address): Handle reg+d address where both
13667         components are invalid by reloading the entire address.
13668
13669 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13670             Richard Guenther  <rguenther@suse.de>
13671
13672         PR tree-optimization/40979
13673         PR bootstrap/47044
13674         * passes.c (init_optimization_passes): After LIM call copy_prop
13675         and DCE to clean up.
13676         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13677
13678 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13679
13680         PR tree-optimization/47576
13681         PR tree-optimization/47555
13682         * doc/invoke.texi (scev-max-expr-complexity): Documented.
13683         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13684         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13685         * tree-scalar-evolution.c (follow_ssa_edge): Use
13686         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13687
13688 2011-02-02  Richard Guenther  <rguenther@suse.de>
13689
13690         PR tree-optimization/47566
13691         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13692
13693 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13694
13695         PR debug/47106
13696         PR debug/47402
13697         * tree-inline.c (declare_return_variable): Remove unused caller
13698         variable.
13699
13700         PR debug/47106
13701         PR debug/47402
13702         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13703         * cfgexpand.c (account_used_vars_for_block): Use them.
13704         * tree-nrv.c (tree_nrv): Likewise.
13705         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13706         (dump_scope_block): Likewise.
13707         (remove_unused_locals): Likewise.
13708
13709         PR debug/47106
13710         PR debug/47402
13711         * tree-inline.c (declare_return_variable): Add result decl to
13712         local decls only once.
13713         * gimple-low.c (record_vars_into): Mark newly-created variables
13714         as referenced.
13715
13716 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13717
13718         PR debug/47498
13719         PR debug/47501
13720         PR debug/45136
13721         PR debug/45130
13722         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13723         debug insns.
13724         (no_real_insns_p, schedule_block, set_priorities): Drop special
13725         treatment of boundary debug insns.
13726         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13727         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13728         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13729         (BOUNDARY_DEBUG_INSN_P): Likewise.
13730         (SCHEDULE_DEBUG_INSN_P): Likewise.
13731         * sched-rgn.c (init_ready_list): Drop special treatment of
13732         boundary debug insns.
13733         * final.c (rest_of_clean_state): Clear notes' BB.
13734
13735 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * config/openbsd.opt (assert=): New Driver option.
13738
13739 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13740
13741         * config/i386/nto.opt: New.
13742         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13743
13744 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13745
13746         * config/i386/netware.opt: New.
13747         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13748
13749 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13750
13751         * config/interix.opt (posix): New Driver option.
13752
13753 2011-02-01  DJ Delorie  <dj@redhat.com>
13754
13755         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13756
13757         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13758         class for A0/A1.
13759
13760 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13761
13762         PR tree-optimization/47561
13763         * toplev.c (process_options): Print the Graphite flags.  Add
13764         flag_loop_flatten to the list of options requiring Graphite.
13765
13766 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13767
13768         * config/i386/cygming.opt (posix): New Driver option.
13769
13770 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13771
13772         * config/arm/vxworks.opt: New.
13773         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13774
13775 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13776
13777         * config/alpha/elf.opt: New.
13778         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13779         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13780
13781 2011-02-01  Richard Guenther  <rguenther@suse.de>
13782
13783         PR tree-optimization/47559
13784         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13785         store-motion on references that can throw.
13786
13787 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13788
13789         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13790         * tree-pass.h (TDF_CSELIB): New macro.
13791         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13792         cselib_lookup): Check for it rather than for TDF_DETAILS.
13793
13794 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13795
13796         PR driver/47547
13797         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13798         is HOST_BIT_BUCKET.
13799
13800         * opts.c (finish_options): Don't add x_aux_base_name if it is
13801         HOST_BIT_BUCKET.
13802
13803 2011-02-01  Richard Guenther  <rguenther@suse.de>
13804
13805         PR tree-optimization/47555
13806         Revert
13807         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13808
13809         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13810
13811 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13812
13813         PR gcc/46692
13814         * config/lm32/t-lm32: Add multilib for all CPU options.
13815
13816 2011-02-01  Richard Guenther  <rguenther@suse.de>
13817
13818         PR tree-optimization/47541
13819         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13820         sure to have a field at offset zero.
13821
13822 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13823
13824         * config/arc/arc.opt (EB, EL): New Driver options.
13825
13826 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13827
13828         * config/alpha/osf5.opt: New.
13829         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13830
13831 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13832
13833         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13834
13835 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13836
13837         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13838         -floop-interchange.
13839         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13840         is an alias of -floop-interchange and that it requires the
13841         Graphite infrastructure.
13842         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13843         flag_loop_interchange based on the value of flag_tree_loop_linear.
13844
13845 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13846             Richard Guenther  <rguenther@suse.de>
13847
13848         PR tree-optimization/47538
13849         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13850         type instead of r1type, except for comparisons.  For right
13851         shifts and comparisons punt if there are mismatches in
13852         sizetype vs. non-sizetype types.
13853
13854 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13855
13856         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13857         avx_runtime.
13858
13859 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13860
13861         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13862         version number.
13863         * configure: Regenerate.
13864
13865 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13866
13867         * configure.ac (gcc_cv_ld_static_option): Define.
13868         (gcc_cv_ld_dynamic_option): Define.
13869         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13870         instead.
13871         (HAVE_LD_STATIC_DYNAMIC): Update message.
13872         (LD_STATIC_OPTION): Define.
13873         (LD_DYNAMIC_OPTION): Define.
13874         * configure: Regenerate.
13875         * config.in: Regenerate.
13876         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13877         HAVE_LD_STATIC_DYNAMIC]: Use them.
13878
13879 2011-01-31  Nick Clifton  <nickc@redhat.com>
13880
13881         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13882         registers inside interrupt handlers if the handler is not a leaf
13883         function.
13884
13885 2011-01-31  Nick Clifton  <nickc@redhat.com>
13886
13887         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13888         reg_renumber returning an INVALID_REGNUM.
13889
13890 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13891
13892         PR libgcj/44341
13893         * doc/install.texi: Document host options discarded when cross
13894         configuring target libraries.
13895
13896 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13897
13898         Reverted:
13899         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13900         PR debug/45136
13901         PR debug/45130
13902         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13903         debug insns.
13904         (no_real_insns_p, schedule_block, set_priorities): Drop special
13905         treatment of boundary debug insns.
13906         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13907         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13908         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13909         (BOUNDARY_DEBUG_INSN_P): Likewise.
13910         (SCHEDULE_DEBUG_INSN_P): Likewise.
13911         * sched-rgn.c (init_ready_list): Drop special treatment of
13912         boundary debug insns.
13913         * final.c (rest_of_clean-state): Clear notes' BB.
13914
13915 2011-01-31  Alan Modra  <amodra@gmail.com>
13916
13917         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13918         toc relative expressions as we do in print_operand_address.
13919
13920 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13921
13922         * doc/extend.texi: Follow spelling conventions.
13923         * doc/invoke.texi: Fix a typo.
13924
13925 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13926
13927         * config/hpux11.opt: New.
13928         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13929         ia64*-*-hpux*): Use hpux11.opt.
13930
13931 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13932
13933         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13934         to tmake_file.
13935
13936 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13937
13938         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13939         support sites.
13940
13941 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13942
13943         * doc/install.texi (Binaries): Remove outdated reference for
13944         Motorola 68HC11/68HC12 downloads.
13945
13946 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13947
13948         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13949         Drepper's paper.
13950
13951 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13952
13953         PR bootstrap/47147
13954         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13955         used by NetBSD.
13956
13957 2011-01-28  Ahmad Sharif  <asharif@google.com>
13958
13959         * value-prof.c (check_counter): Corrected error message.
13960
13961 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13962
13963         * config/arm/arm.c (arm_legitimize_reload_address): New.
13964         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13965         arm_legitimize_reload_address.
13966         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13967
13968 2011-01-28  Ian Lance Taylor  <iant@google.com>
13969
13970         * godump.c (go_define): Ignore macros whose definitions include
13971         two adjacent operands.
13972
13973 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13974
13975         PR target/42894
13976         * varasm.c (force_const_mem): Store copy of x in desc->constant
13977         instead of x itself.
13978         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13979         itself into REG_EQUAL note.
13980
13981 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13982
13983         * config/freebsd.opt (posix, rdynamic): New Driver options.
13984
13985 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13986
13987         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13988         -Bstatic/-Bdynamic.
13989         * configure: Regenerate.
13990
13991 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13992
13993         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13994         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13995
13996 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13997
13998         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13999         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14000         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14001         (s390_preferred_reload_class): Make static. Change return and
14002         'rclass' argument type to reg_class_t.
14003
14004 2011-01-27  Jan Hubicka  <jh@suse.cz>
14005
14006         PR middle-end/46949
14007         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14008         (process_function_and_variable_attributes): Check defined weakrefs.
14009
14010 2011-01-27  Martin Jambor  <mjambor@suse.cz>
14011
14012         PR tree-optimization/47228
14013         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14014         build_ref_for_offset.
14015
14016 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14017
14018         * config/spu/spu-elf.h (ASM_SPEC): Remove.
14019
14020 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
14021
14022         PR rtl-optimization/46856
14023         * postreload.c (reload_combine_recognize_const_pattern): Do not
14024         separate cc0 setter and user on cc0 targets.
14025
14026 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
14027
14028         PR c/43082
14029         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14030         passed a VOID_TYPE expression, immediately emit an error and
14031         return error_mark_node.
14032
14033 2011-01-26  Jeff Law  <law@redhat.com>
14034
14035         PR rtl-optimization/47464
14036         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14037         rather than may_trap_p as needed.
14038
14039 2011-01-26  DJ Delorie  <dj@redhat.com>
14040
14041         PR rtl-optimization/46878
14042         * combine.c (insn_a_feeds_b): Check for the implicit cc0
14043         setter/user dependency as well.
14044
14045 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
14046
14047         PR rtl-optimization/44469
14048         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14049         after removing trivially dead basic blocks.
14050
14051 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14052
14053         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14054         * config/frv/frv.h (LINK_SPEC): Likewise.
14055         * config/i386/netware.h (LINK_SPEC): Likewise.
14056         * config/m68k/linux.h (ASM_SPEC): Likewise.
14057         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14058         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14059         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14060         * config/sparc/linux.h (ASM_SPEC): Likewise.
14061         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14062         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14063
14064 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14065
14066         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14067         * config/frv/frv.h (ASM_SPEC): Likewise.
14068         * config/m68k/linux.h (ASM_SPEC): Likewise.
14069         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14070         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14071         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14072         * config/sparc/linux.h (ASM_SPEC): Likewise.
14073         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14074         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14075
14076 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14077
14078         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14079         * config/frv/frv.h (LINK_SPEC): Likewise.
14080         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14081
14082 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14083
14084         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14085         * config/frv/frv.h (ASM_SPEC): Likewise.
14086         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14087         * config/m68k/linux.h (ASM_SPEC): Likewise.
14088         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14089         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14090         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14091         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14092         * config/sparc/linux.h (ASM_SPEC): Likewise.
14093         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14094         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14095         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14096
14097 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
14098
14099         PR target/46997
14100         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14101         (*mux2): Ditto.
14102         (vec_extract_evenodd_help): Ditto.
14103         (vec_extract_evenv4hi): Ditto.
14104         (vec_extract_oddv4hi): Ditto.
14105         (vec_interleave_lowv2si): Ditto.
14106         (vec_interleave_highv2si): Ditto.
14107         (vec_extract_evenv2si): Ditto.
14108         (vec_extract_oddv2si: Ditto.
14109         (vec_pack_trunc_v2si): Ditto.
14110
14111 2011-01-22  Jan Hubicka  <jh@suse.cz>
14112
14113         PR target/47237
14114         * cgraph.h (cgraph_local_info): New field can_change_signature.
14115         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14116         signature can change.
14117         (ipcp_estimate_growth): Call sequence simplify only if calle signature
14118         can change.
14119         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14120         (cgraph_function_versioning): We can not change signature of functions
14121         that don't allow that.
14122         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14123         (lto_input_node): Likewise.
14124         * ipa-inline.c (compute_inline_parameters): Compute
14125         local.can_change_signature.
14126         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14127         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14128         functions that can not change signature.
14129         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14130         init_cumulative_args): Do not use local calling conventions
14131         for functions that can not change signature.
14132
14133 2011-01-22  Jan Hubicka  <jh@suse.cz>
14134
14135         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14136
14137 2011-01-26  Richard Guenther  <rguenther@suse.de>
14138
14139         PR tree-optimization/47190
14140         * cgraphunit.c (process_common_attributes): New function.
14141         (process_function_and_variable_attributes): Use it.
14142
14143 2011-01-26  Richard Guenther  <rguenther@suse.de>
14144
14145         PR lto/47423
14146         * cgraphbuild.c (record_eh_tables): Record reference to personality
14147         function.
14148
14149 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
14150
14151         PR debug/45454
14152         * sel-sched.c (moveup_expr): Don't let debug insns prevent
14153         non-debug insns from moving up.
14154
14155 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
14156
14157         PR target/40125
14158         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14159         t-dlldir{,-x} fragment for build and add it to tmake_file.
14160         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14161         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14162         * config/i386/t-dlldir: New file.
14163         (SHLIB_DLLDIR): Define.
14164         * config/i386/t-dlldir-x: New file.
14165         (SHLIB_DLLDIR): Define.
14166         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14167         (SHLIB_INSTALL): Use it.
14168
14169 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
14170
14171         PR target/47246
14172         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14173         lower bound of the allowed Thumb-2 coprocessor load/store
14174         index range to -256. Add explaining comment.
14175
14176 2011-01-25  Ian Lance Taylor  <iant@google.com>
14177
14178         * godump.c (go_define): Improve lexing of macro expansion to only
14179         accept expressions which match Go spec.
14180
14181 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
14182
14183         PR c++/43601
14184         * tree.c (handle_dll_attribute): Handle it.
14185         * doc/extend.texi (@item dllexport): Mention it.
14186         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14187
14188 2011-01-25  Ian Lance Taylor  <iant@google.com>
14189
14190         PR tree-optimization/26854
14191         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14192         (decl_jump_unsafe): Move higher in file, with no other change.
14193         (bind): Set has_jump_unsafe_decl if appropriate.
14194         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14195         (check_earlier_gotos): Likewise.
14196         (c_check_switch_jump_warnings): Likewise.
14197
14198 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
14199
14200         * doc/invoke.texi (Warning Options): Add missing hyphen.
14201         (-fprofile-dir): Minor grammatical fixes.
14202         (-fbranch-probabilities): Likewise.
14203
14204 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
14205
14206         PR debug/45136
14207         PR debug/45130
14208         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14209         debug insns.
14210         (no_real_insns_p, schedule_block, set_priorities): Drop special
14211         treatment of boundary debug insns.
14212         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14213         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14214         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14215         (BOUNDARY_DEBUG_INSN_P): Likewise.
14216         (SCHEDULE_DEBUG_INSN_P): Likewise.
14217         * sched-rgn.c (init_ready_list): Drop special treatment of
14218         boundary debug insns.
14219         * final.c (rest_of_clean-state): Clear notes' BB.
14220
14221 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14222
14223         * Makefile.in (LAMBDA_H): Removed.
14224         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14225         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14226         lambda-trans.o, and tree-loop-linear.o.
14227         (lto-symtab.o): Remove dependence on LAMBDA_H.
14228         (tree-loop-linear.o): Remove rule.
14229         (lambda-mat.o): Same.
14230         (lambda-trans.o): Same.
14231         (lambda-code.o): Same.
14232         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14233         (tree-vect-slp.o): Same.
14234         * hwint.h (gcd): Moved here.
14235         (least_common_multiple): Same.
14236         * lambda-code.c: Removed.
14237         * lambda-mat.c: Removed.
14238         * lambda-trans.c: Removed.
14239         * lambda.h: Removed.
14240         * tree-loop-linear.c: Removed.
14241         * lto-symtab.c: Do not include lambda.h.
14242         * omega.c (gcd): Removed.
14243         * passes.c (init_optimization_passes): Remove pass_linear_transform.
14244         * tree-data-ref.c (print_lambda_vector): Moved here.
14245         (lambda_vector_copy): Same.
14246         (lambda_matrix_copy): Same.
14247         (lambda_matrix_id): Same.
14248         (lambda_vector_first_nz): Same.
14249         (lambda_matrix_row_add): Same.
14250         (lambda_matrix_row_exchange): Same.
14251         (lambda_vector_mult_const): Same.
14252         (lambda_vector_negate): Same.
14253         (lambda_matrix_row_negate): Same.
14254         (lambda_vector_equal): Same.
14255         (lambda_matrix_right_hermite): Same.
14256         * tree-data-ref.h: Do not include lambda.h.
14257         (lambda_vector): Moved here.
14258         (lambda_matrix): Same.
14259         (dependence_level): Same.
14260         (lambda_transform_legal_p): Removed declaration.
14261         (lambda_collect_parameters): Same.
14262         (lambda_compute_access_matrices): Same.
14263         (lambda_vector_gcd): Same.
14264         (lambda_vector_new): Same.
14265         (lambda_vector_clear): Same.
14266         (lambda_vector_lexico_pos): Same.
14267         (lambda_vector_zerop): Same.
14268         (lambda_matrix_new): Same.
14269         * tree-flow.h (least_common_multiple): Removed declaration.
14270         * tree-parloops.c (lambda_trans_matrix): Moved here.
14271         (LTM_MATRIX): Same.
14272         (LTM_ROWSIZE): Same.
14273         (LTM_COLSIZE): Same.
14274         (LTM_DENOMINATOR): Same.
14275         (lambda_trans_matrix_new): Same.
14276         (lambda_matrix_vector_mult): Same.
14277         (lambda_transform_legal_p): Same.
14278         * tree-pass.h (pass_linear_transform): Removed declaration.
14279         * tree-ssa-loop.c (tree_linear_transform): Removed.
14280         (gate_tree_linear_transform): Removed.
14281         (pass_linear_transform): Removed.
14282         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14283         flag_loop_interchange.
14284
14285 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14286
14287         PR tree-optimization/47265
14288         PR tree-optimization/47443
14289         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14290         if name still has some uses.
14291
14292 2011-01-25  Martin Jambor  <mjambor@suse.cz>
14293
14294         PR tree-optimization/47382
14295         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14296         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14297
14298 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
14299
14300         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14301         sjlj_except_unwind_info.
14302
14303 2011-01-25  Richard Guenther  <rguenther@suse.de>
14304
14305         PR tree-optimization/47426
14306         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14307         visible functions results escape.
14308
14309 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14310
14311         PR target/45701
14312         * config/arm/arm.c (any_sibcall_uses_r3): New function.
14313         (arm_get_frame_offsets): Use it.
14314
14315 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14316             Jakub Jelinek  <jakub@redhat.com>
14317
14318         PR tree-optimization/47271
14319         * tree-if-conv.c (bb_postdominates_preds): New.
14320         (if_convertible_bb_p): Call bb_postdominates_preds.
14321         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14322         (predicate_scalar_phi): Call bb_postdominates_preds.
14323
14324 2011-01-25  Nick Clifton  <nickc@redhat.com>
14325
14326         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14327         * config/rx/rx.c (rx_function_value): Likewise.
14328         (rx_promote_function_mode): Likewise.
14329         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14330         in order to make it legitimate.
14331         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14332         make sure that the first operand is the same as the result register.
14333         (addsi3_unspec): Delete.
14334         (subdi3): Do not accept immediate operands.
14335         (subdi3_internal): Likewise.
14336
14337 2011-01-25  Jeff Law  <law@redhat.com>
14338
14339         PR rtl-optimization/37273
14340         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14341         handle them like argument loads from stack slots.  Do not double
14342         count memory for memory constants and argument loads from stack slots.
14343
14344 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14345
14346         PR tree-optimization/47427
14347         PR tree-optimization/47428
14348         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14349         coalesce if the new root var would be TREE_READONLY.
14350
14351 2011-01-25  Richard Guenther  <rguenther@suse.de>
14352
14353         PR middle-end/47414
14354         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14355         correct type for TBAA.
14356
14357 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14358
14359         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14360         (close_phi_written_to_memory): Call for_each_index with
14361         dr_indices_valid_in_loop.
14362
14363 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14364
14365         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14366         when it is initialized.
14367
14368 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14369
14370         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14371         call to graphite_find_data_references_in_stmt.
14372         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14373         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
14374         call to graphite_find_data_references_in_stmt.
14375         (analyze_drs_in_stmts): Same.
14376         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14377         in which the scalar analysis of indices is performed.
14378         (create_data_ref): Same.  Update call to dr_analyze_indices.
14379         (find_data_references_in_stmt): Update call to create_data_ref.
14380         (graphite_find_data_references_in_stmt): Same.
14381         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14382         declaration.
14383         (create_data_ref): Same.
14384         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14385         call to create_data_ref.
14386
14387 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14388
14389         * graphite-sese-to-poly.c (build_poly_scop): Move
14390         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14391
14392 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14393
14394         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14395         VAR_DECL, PARM_DECL, and RESULT_DECL.
14396
14397 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14398
14399         * graphite-dependences.c (reduction_dr_1): Allow several reductions
14400         in a reduction PBB.
14401         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14402         that have already been marked as PBB_IS_REDUCTION.
14403
14404 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14405
14406         * graphite-scop-detection.c (same_close_phi_node): New.
14407         (remove_duplicate_close_phi): New.
14408         (make_close_phi_nodes_unique): New.
14409         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14410
14411 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14412
14413         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14414         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14415         of both data references to be the same.
14416
14417 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14418
14419         * graphite-dependences.c (build_lexicographical_constraint): Remove
14420         the gdim parameter.
14421         (build_lexicographical_constraint): Adjust call to
14422         ppl_powerset_is_empty.
14423         (dependence_polyhedron): Same.
14424         (graphite_legal_transform_dr): Same.
14425         (graphite_carried_dependence_level_k): Same.
14426         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14427         parameter.
14428         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14429
14430 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14431
14432         * graphite-sese-to-poly.c
14433         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14434         (close_phi_written_to_memory): New.
14435         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14436         and unshare_expr.
14437
14438 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14439
14440         * doc/install.texi: Update the expected version number of PPL to 0.11.
14441         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14442         #if PPL_VERSION_MINOR < 11.
14443
14444 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14445
14446         * graphite-dependences.c: Include graphite-cloog-util.h.
14447         (new_poly_ddr): Inlined into dependence_polyhedron.
14448         (free_poly_ddr): Moved close by new_poly_ddr.
14449         (dependence_polyhedron_1): Renamed dependence_polyhedron.
14450         Early return NULL when ppl_powerset_is_empty returns true.
14451         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
14452         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
14453         (graphite_legal_transform_dr): Call new_poly_ddr.
14454         (graphite_carried_dependence_level_k): Same.
14455         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
14456         (dot_transformed_deps_stmt_1): Removed.
14457         (dot_deps_stmt_1): Call dot_deps_stmt_2.
14458         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
14459         (dot_deps_1): Call dot_deps_2.
14460         * Makefile.in (graphite-dependences.o): Add missing dependence on
14461         graphite-cloog-util.h.
14462
14463 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14464
14465         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14466         (build_lexicographical_constraint): Same.
14467         (dependence_polyhedron_1): Same.
14468         (graphite_legal_transform_dr): Same.
14469         (graphite_carried_dependence_level_k): Same.
14470         * graphite-ppl.c (ppl_powerset_is_empty): New.
14471         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14472         * tree-data-ref.c (dump_data_reference): Print the basic block index.
14473
14474 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14475
14476         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14477         the "a followed by b" relation and document it.
14478
14479 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14480
14481         * graphite-dependences.c (build_lexicographical_constraint): Stop the
14482         iteration when the bag of constraints is empty.
14483
14484 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14485
14486         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14487
14488 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14489
14490         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14491         nest and two loop depths as parameters.
14492         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14493         lst_perfect_nestify.
14494
14495 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14496
14497         * graphite-dependences.c (print_pddr): Call
14498         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14499
14500 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14501
14502         * graphite-ppl.c (debug_gmp_value): New.
14503         * graphite-ppl.h (debug_gmp_value): Declared.
14504
14505 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
14506
14507         * doc/install.texi: Document availability of cloog-0.16.
14508
14509 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
14510
14511         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14512         invalid postdominance info.
14513
14514 2011-01-24  Jan Hubicka  <jh@suse.cz>
14515
14516         PR c/21659
14517         * doc/extend.texi (weak pragma): Drop claim that it must
14518         appear before definition.
14519         * varasm.c (merge_weak, declare_weak): Only sanity check
14520         that DECL is not output at a time it is declared weak.
14521
14522 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
14523
14524         * machmode.def: Fixed comments.
14525
14526 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
14527
14528         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14529
14530 2011-01-24  Paul Koning  <ni1d@arrl.net>
14531
14532         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14533         WORDS_BIG_ENDIAN.
14534
14535 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14536
14537         PR target/46519
14538         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14539         (block_info): Add scanned and prev.
14540         (move_or_delete_vzeroupper_2): Return if the basic block
14541         has been scanned and the upper 128bit state is unchanged
14542         from the last scan.
14543         (move_or_delete_vzeroupper_1): Return true if the exit
14544         state is changed.
14545         (move_or_delete_vzeroupper): Visit basic blocks using the
14546         work-list based algorithm based on vt_find_locations in
14547         var-tracking.c.
14548
14549         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14550
14551 2011-01-24  Nick Clifton  <nickc@redhat.com>
14552
14553         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14554         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14555         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14556         then define __v850e1__.
14557         * doc/invoke.texi: Document -mv850es.
14558
14559 2011-01-24  Richard Henderson  <rth@redhat.com>
14560
14561         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14562         compound unordered comparisons.
14563         * config/rx/rx.c (rx_split_fp_compare): Remove.
14564         * config/rx/rx-protos.h: Update.
14565         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14566         (cbranchsf4): Don't call rx_split_fp_compare.
14567         (*cbranchsf4): Use rx_split_cbranch.
14568         (*cmpsf): Don't accept "i" constraint.
14569         (*conditional_branch): Only valid after reload.
14570         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14571
14572 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14573
14574         PR target/47385
14575         * config/rs6000/altivec.md (vector constant splitters): Add
14576         support for creating vector single precision constants if -mvsx is
14577         used and we would create the constant using Altivec primitives.
14578
14579 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14580             Richard Sandiford  <rdsandiford@googlemail.com>
14581
14582         PR rtl-optimization/47166
14583         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14584         mechanism for PRE_MODIFY and POST_MODIFY.
14585         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14586         reloadreg.
14587
14588 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14589
14590         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14591
14592 2011-01-22  Jan Hubicka  <jh@suse.cz>
14593
14594         PR lto/47333
14595         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14596
14597 2011-01-22  Jan Hubicka  <jh@suse.cz>
14598
14599         PR tree-optimization/43884
14600         PR lto/44334
14601         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14602         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14603
14604 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14605
14606         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14607         * config/s390/s390.c (s390_register_move_cost,
14608         s390_memory_move_cost): New.
14609         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14610
14611 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14612
14613         PR middle-end/47401
14614         * except.c (sjlj_assign_call_site_values): Move setting the
14615         crtl->uses_eh_lsda flag to ...
14616         (sjlj_mark_call_sites): ... here.
14617         (sjlj_emit_function_enter): Support NULL dispatch label.
14618         (sjlj_build_landing_pads): In a function with no landing pads
14619         that still has must-not-throw regions, generate code to register
14620         a personality function with empty LSDA.
14621
14622 2011-01-21  Richard Henderson  <rth@redhat.com>
14623
14624         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14625
14626         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14627
14628         * compare-elim.c: New file.
14629         * Makefile.in (OBJS-common): Add it.
14630         (compare-elim.o): New.
14631         * common.opt (fcompare-elim): New.
14632         * opts.c (default_options_table): Add OPT_fcompare_elim.
14633         * tree-pass.h (pass_compare_elim_after_reload): New.
14634         * passes.c (init_optimization_passes): Add it.
14635         * recog.h: Protect against re-inclusion.
14636         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14637         * doc/invoke.texi (-fcompare-elim): Document it.
14638         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14639         * doc/tm.texi: Rebuild.
14640
14641 2011-01-22  Nick Clifton  <nickc@redhat.com>
14642
14643         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14644         rx_split_fp_compare.
14645
14646 2011-01-22  Nick Clifton  <nickc@redhat.com>
14647
14648         * config/rx/rx.md (UNSPEC_CONST): New.
14649         (deallocate_and_return): Wrap the amount popped off the stack in
14650         an UNSPEC_CONST in order to stop it being rejected by
14651         -mmax-constant-size.
14652         (pop_and_return): Add a "(return)" rtx.
14653         (call): Drop the immediate operand.
14654         (call_internal): Likewise.
14655         (call_value): Likewise.
14656         (call_value_internal): Likewise.
14657         (sibcall_internal): Likewise.
14658         (sibcall_value_internal): Likewise.
14659         (sibcall): Likewise.  Generate an explicit call using
14660         sibcall_internal.
14661         (sibcall_value): Likewise.
14662         (mov<>): FAIL if a constant operand is not legitimate.
14663         (addsi3_unpsec): New pattern.
14664
14665         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14666         (ok_for_max_constant): New function.
14667         (gen_safe_add): New function.
14668         (rx_expand_prologue): Use gen_safe_add.
14669         (rx_expand_epilogue): Likewise.
14670         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
14671         UNSPEC CONSTs.
14672
14673 2011-01-21  Jeff Law  <law@redhat.com>
14674
14675         PR tree-optimization/47053
14676         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14677         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14678         statements are deleted.
14679         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
14680         is nonempty, then purge dead edges and cleanup the CFG.
14681
14682 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14683
14684         PR debug/47402
14685         Temporarily revert:
14686         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14687         PR debug/47106
14688         * tree-dfa.c (create_var_ann): Mark variable as used.
14689
14690 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14691
14692         PR middle-end/45566
14693         * except.c (convert_to_eh_region_ranges): Emit queued no-region
14694         notes from other section in hot/cold partitioning even if
14695         last_action is -3.  Increment call_site_base.
14696
14697         PR rtl-optimization/47366
14698         * fwprop.c (forward_propagate_into): Return bool.  If
14699         any changes are made, -fnon-call-exceptions is used and
14700         REG_EH_REGION note is present, call purge_dead_edges
14701         and return true if it purged anything.
14702         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14703         any EH edges were purged.
14704
14705 2011-01-21  Jeff Law  <law@redhat.com>
14706
14707         PR rtl-optimization/41619
14708         * caller-save.c (setup_save_areas): Break out code to determine
14709         which hard regs are live across calls by examining the reload chains
14710         so that it is always used.
14711         Eliminate code which checked REG_N_CALLS_CROSSED.
14712
14713 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14714
14715         PR tree-optimization/47355
14716         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14717         NOP has non-debug uses beyond PHIs in new_bb.
14718
14719 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14720
14721         PR debug/47106
14722         * cfgexpand.c (account_used_vars_for_block): Only account vars
14723         that are annotated as used.
14724         (estimated_stack_frame_size): Don't set TREE_USED.
14725         * tree-dfa.c (create_var_ann): Mark variable as used.
14726
14727 2011-01-21  Richard Guenther  <rguenther@suse.de>
14728
14729         PR middle-end/47395
14730         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14731
14732 2011-01-21  Richard Guenther  <rguenther@suse.de>
14733
14734         PR tree-optimization/47365
14735         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14736         (vn_reference_lookup_pieces): Adjust.
14737         (vn_reference_lookup): Likewise.
14738         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14739         (vn_reference_lookup_3): Only look through kills if in
14740         VN_WALKREWRITE mode.
14741         (vn_reference_lookup_pieces): Adjust.
14742         (vn_reference_lookup): Likewise.
14743         (visit_reference_op_load): Likewise.
14744         (visit_reference_op_store): Likewise.
14745         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14746         (compute_avail): Likewise.
14747         (eliminate): Likewise.
14748
14749 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14750
14751         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14752         DECL_IGNORED_P non-reg vars if they are used.
14753
14754         PR tree-optimization/47391
14755         * varpool.c (const_value_known_p): Return false if
14756         decl is volatile.
14757
14758 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14759
14760         PR bootstrap/47215
14761         * config/i386/i386.c (ix86_local_alignment): Handle
14762         case for va_list_type_node is nil.
14763         (ix86_canonical_va_list_type): Likewise.
14764
14765 2011-01-21  Alan Modra  <amodra@gmail.com>
14766
14767         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14768         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14769
14770 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14771
14772         * config/arm/arm.md (define_attr type): Rename f_load
14773         and f_store to f_fpa_load and f_fpa_store. Update.
14774         (write_conflict): Deal with rename fallout.
14775         (*push_fp_multi): Likewise.
14776         * config/arm/fpa.md (f_load): Use f_fpa_load.
14777         (f_store): Use f_fpa_store.
14778         (*movsf_fpa): Likewise.
14779         (*movdf_fpa): Likewise.
14780         (*movxf_fpa): Likewise.
14781         (*thumb2_movsf_fpa): Likewise.
14782         (*thumb2_movdf_fpa): Likewise.
14783         (*thumb2_movxf_fpa): Likewise.
14784         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14785         f_loadd and f_stored.
14786         (*thumb2_movdi_vfp): Likewise.
14787         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14788         (*thumb2_movsi_vfp): Likewise.
14789         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14790         Use f_loads instead of f_load.
14791         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14792
14793 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14794
14795         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14796         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14797         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14798         (xtensa_mode_dependent_address_p): New function.
14799         (constantpool_address_p): Make static. Change return type to bool.
14800         Change argument type to const_rtx. Use CONST_INT_P predicate.
14801
14802 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14803
14804         PR debug/46583
14805         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14806
14807 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14808
14809         PR debug/47283
14810         * cfgexpand.c (expand_debug_expr): Instead of generating
14811         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14812         etc. handling.
14813
14814 2011-01-20  Richard Guenther  <rguenther@suse.de>
14815
14816         PR middle-end/47370
14817         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14818         the pointer operand of MEM_REFs.
14819
14820 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14821
14822         PR tree-optimization/46130
14823         * ipa-split.c (consider_split): If return_bb contains non-virtual
14824         PHIs other than for retval or if split_function would not adjust it,
14825         refuse to split.
14826
14827 2011-01-20  Richard Guenther  <rguenther@suse.de>
14828
14829         PR tree-optimization/47167
14830         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14831         Revert previous change, only avoid enumeral type changes.
14832
14833 2011-01-19  Mike Stump  <mikestump@comcast.net>
14834
14835         * doc/tm.texi.in (BRANCH_COST): Englishify.
14836         * doc/tm.texi (BRANCH_COST): Likewise.
14837
14838 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14839
14840         PR c++/47291
14841         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14842         (gen_scheduled_generic_parms_dies): New functions.
14843         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14844         generation for the end of CU compilation.
14845         (dwarf2out_finish): Generate template parameters DIEs here.
14846
14847 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14848
14849         PR debug/46240
14850         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14851         debug bind stmt on merge edges.
14852
14853 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14854
14855         PR debug/47079
14856         PR debug/46724
14857         * function.c (instantiate_expr): Instantiate incoming rtl of
14858         implicit arguments, and recurse on VALUE_EXPRs.
14859         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14860         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14861
14862 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14863
14864         * c-parser.c (c_parser_for_statement): Initialize
14865         collection_expression.
14866
14867 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14868
14869         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14870
14871 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14872
14873         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14874         (LINK_SHLIB_SPEC): Don't use %(link_path).
14875         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14876
14877 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14878
14879         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14880         (NO_SHARED_LIB_SUPPORT): Remove.
14881         (LINK_SHLIB_SPEC): Remove one conditional definition.
14882
14883 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14884
14885         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14886         %{call_shared}.
14887         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14888         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14889         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14890         %{call_shared} and conditionals on these options not being passed.
14891         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14892         %{call_shared}.
14893
14894 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14895
14896         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14897         simplify.
14898
14899         * ipa-split.c: Spelling fixes.
14900
14901 2011-01-19  Richard Henderson  <rth@redhat.com>
14902
14903         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14904         (*mulsi3): Likewise.
14905
14906         * longlong.h [__mn10300__] (count_leading_zeros): New.
14907         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14908         [__mn10300__] (add_ssaaaa, subddmmss): New.
14909         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14910         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14911
14912 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14913
14914         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14915
14916 2011-01-19  Richard Henderson  <rth@redhat.com>
14917
14918         * config/mn10300/mn10300.md (addsi3_flags): New.
14919         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14920         (subsi3_flags, subc_internal, subdi3): New.
14921         (subdi3_internal, *subdi3_degenerate): New.
14922         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14923
14924         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14925         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14926         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14927         * config/mn10300/mn10300-protos.h: Update.
14928         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14929         (return_ret): Likewise.  Rename from return_internal_regs.
14930         (return_internal): Remove.
14931
14932         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14933         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14934         (mn10300_legitimate_constant_p): Likewise.
14935         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14936         (mn10300_frame_size): New.
14937         (mn10300_expand_prologue): Use it.
14938         (mn10300_expand_epilogue): Likewise.
14939         (mn10300_initial_offset): Likewise.
14940         * config/mn10300/mn10300-protos.h: Update.
14941         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14942         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14943         (prologue, epilogue, return_internal): Tidy output code.
14944         (mn10300_store_multiple_operation, return): Likewise.
14945         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14946         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14947         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14948         (load_pic, am33_load_pic): New.
14949         (mn10300_load_pic0, mn10300_load_pic1): New.
14950
14951         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14952         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14953         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14954         (cc_flags_for_mode, cc_flags_for_code): New.
14955         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14956         overflow flag is not valid.  Validate that the flags we need
14957         for the comparison are valid.
14958         (mn10300_output_cmp): Remove.
14959         (mn10300_output_add): New.
14960         (mn10300_select_cc_mode): Use cc_flags_for_code.
14961         (mn10300_split_cbranch): New.
14962         (mn10300_match_ccmode): New.
14963         (mn10300_split_and_operand_count): New.
14964         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14965         to the function.
14966         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14967         (addsi3): ... here.  Use mn10300_output_add.
14968         (*addsi3_flags): New.
14969         (*am33_subsi3, *mn10300_subsi3): Merge...
14970         (subsi3): ... here.  Use attribute isa.
14971         (*subsi3_flags): New.
14972         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14973         when possible.
14974         (*am33_andsi3, *mn10300_andsi3): Merge...
14975         (andsi3): ... here.
14976         (*andsi3_flags): New.
14977         (andsi3 splitters): New.
14978         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14979         (iorsi3): ... here.
14980         (*iorsi3_flags): New.
14981         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14982         (xorsi3): ... here.
14983         (*xorsi3_flags): New.
14984         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14985         (one_cmplsi2): ... here.
14986         (*one_cmplsi2_flags): New.
14987         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14988         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14989         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14990         use matching constraints to eliminate a self-comparison.
14991         (*integer_conditional_branch): Rename from integer_conditional_branch.
14992         Use int_mode_flags to match CC_REG.
14993         (*cbranchsi4_btst, *btstsi): New.
14994         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14995         mn10300_split_cbranch.
14996         (*am33_cmpsf): Rename from am33_cmpsf.
14997         (*float_conditional_branch): Rename from float_conditional_branch.
14998         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14999         (zero_extendqisi2): ... here.
15000         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15001         (zero_extendhisi2): ... here.
15002         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15003         (extendqisi2): ... here.
15004         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15005         (extendhisi2): ... here.
15006         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15007         (ashlsi3): ... here.
15008         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15009         (lshrsi3): ... here.
15010         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15011         (ashrsi3): ... here.
15012         (consecutive add peephole): Remove.
15013         * config/mn10300/predicates.md (label_ref_operand): New.
15014         (int_mode_flags): New.
15015         (CCZN_comparison_operator): New.
15016
15017         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15018         (throughput_42_latency_43): New reservation.
15019         (mulsidi3, umulsidi3): New expanders.
15020         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
15021         the MDR register to allocation; separately allocate the low and
15022         high parts of the DImode result.
15023         (umulsidi3_internal): Similarly.
15024         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15025         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
15026         (udivsi3, umodsi3): Remove.
15027         (udivmodsi4, divmodsi4): New expanders.
15028         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
15029         (*divmodsi4): Simiarly.
15030         (ext_internal): New.
15031
15032         * config/mn10300/constraints.md ("z"): New constraint.
15033         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15034         (FIXED_REGISTERS): Don't fix MDR.
15035         (CALL_USED_REGSITERS): Reformat nicely.
15036         (REG_ALLOC_ORDER): Add MDR.
15037         (enum regclass): Add MDR_REGS.
15038         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15039         (IRA_COVER_CLASSES): Add MDR_REGS.
15040         (REGNO_REG_CLASS): Handle MDR_REG.
15041         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15042         (mn10300_register_move_cost): Likewise.
15043         * config/mn10300/mn10300.md (MDR_REG): New.
15044         (*movsi_internal): Handle moves to/from MDR_REGS.
15045
15046         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15047         POST_MODIFY.
15048         (mn10300_secondary_reload): Tidy combination reload classes.
15049         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15050         addresses for AM33.  Allow symbolic offsets for reg+imm.
15051         (mn10300_regno_in_class_p): New.
15052         (mn10300_legitimize_reload_address): New.
15053         * config/mn10300/mn10300.h (enum reg_class): Remove
15054         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15055         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
15056         SP_OR_GENERAL_REGS.
15057         (REG_CLASS_NAMES): Update to match.
15058         (REG_CLASS_CONTENTS): Likewise.
15059         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15060         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15061         (REGNO_IN_RANGE_P): Remove.
15062         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15063         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15064         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15065         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15066         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15067         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15068         (REGNO_GENERAL_P): New.
15069         (HAVE_POST_MODIFY_DISP): New.
15070         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15071         (LEGITIMIZE_RELOAD_ADDRESS): New.
15072         * config/mn10300/mn10300-protos.h: Update.
15073
15074         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15075         DATA_REGS for AM33 stack-pointer destination.
15076         (mn10300_preferred_output_reload_class): Likewise.
15077         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15078         into a form appropriate for ...
15079         (TARGET_SECONDARY_RELOAD): New.
15080         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15081         * config/mn10300/mn10300-protos.h: Update.
15082         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15083         reload_insi; use the "A" constraint for the scratch; handle AM33
15084         moves of sp to non-address registers.
15085
15086         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15087         (*movqi_internal): ... here.
15088         (*am33_movhi, *mn10300_movhi): Merge into...
15089         (*movhi_internal): ... here.
15090         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
15091         as the source/destination of moves from/to SP.
15092         (movsf): Only allow for AM33-2.
15093         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15094         any integer constant constraint.  Only allow for AM33-2.  Tidy
15095         all of the alternative outputs.
15096         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15097         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
15098         for MN103.
15099         (udivsi3, umodsi3): New patterns for MN103 only.
15100
15101 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
15102
15103         * doc/tm.texi.in: Spell out that a lack of register class unions
15104         can lead to ICEs.
15105         * doc/tm.texi: Regenerate.
15106
15107 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
15108
15109         PR rtl-optimization/47337
15110         * dce.c (check_argument_store): New function.
15111         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
15112
15113         PR tree-optimization/47290
15114         * tree-eh.c (infinite_empty_loop_p): New function.
15115         (cleanup_empty_eh): Use it.
15116
15117 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
15118
15119         PR target/46997
15120         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15121         (a64_expand_widen_sum): Ditto.
15122         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15123         (vec_extract_evenodd_help): Ditto.
15124         (vec_extract_evenv4hi): Ditto.
15125         (vec_extract_oddv4hi): Ditto.
15126         (vec_extract_evenv2si): Ditto.
15127         (vec_extract_oddv2si): Ditto.
15128         (vec_extract_evenv2sf): Ditto.
15129         (vec_extract_oddv2sf): Ditto.
15130         (vec_pack_trunc_v4hi: Ditto.
15131         (vec_pack_trunc_v2si): Ditto.
15132         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15133         (vec_interleave_highv8qi): Ditto.
15134         (mix1_r): Ditto.
15135         (vec_extract_oddv8qi): Ditto.
15136         (vec_interleave_lowv4hi): Ditto.
15137         (vec_interleave_highv4hi): Ditto.
15138         (vec_interleave_lowv2si): Ditto.
15139         (vec_interleave_highv2si): Ditto.
15140
15141 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15142
15143         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15144         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15145         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
15146         (pa_c_mode_for_suffix): New.
15147         (TARGET_EXPAND_BUILTIN): Define.
15148         (TARGET_C_MODE_FOR_SUFFIX): Define.
15149         (pa_builtins): Define.
15150         (pa_init_builtins): Register __float128 type and init new support
15151         builtins.
15152         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15153         * config/pa/quadlib.c (_U_Qfcopysign): New.
15154
15155 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
15156
15157         PR middle-end/46894
15158         * explow.c (allocate_dynamic_stack_space): Do not assume more than
15159         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15160         are defined.
15161
15162 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15163
15164         PR tree-optimization/47179
15165         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15166         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15167
15168 2011-01-18  Richard Guenther  <rguenther@suse.de>
15169
15170         PR rtl-optimization/47216
15171         * emit-rtl.c: Include tree-flow.h.
15172         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15173         of replicating it with different semantics.
15174         * Makefile.in (emit-rtl.o): Adjust.
15175
15176 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15177
15178         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15179         (cortex_a9_dp): Handle neon types correctly.
15180
15181 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
15182
15183         PR rtl-optimization/47299
15184         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15185         subtarget.  Use normal multiplication if both operands are constants.
15186         * expmed.c (expand_widening_mult): Don't try to optimize constant
15187         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
15188         before using it.
15189
15190 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15191
15192         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
15193         spacing after 'e.g.', typos, comma, hyphenation.
15194
15195 2011-01-17  Richard Henderson  <rth@redhat.com>
15196
15197         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15198         (rx_restricted_mem_operand): New.
15199         (rx_shift_operand): Use register_operand.
15200         (rx_source_operand, rx_compare_operand): Likewise.
15201         * config/rx/rx.md (addsi3_flags): New expander.
15202         (adddi3): Rewrite as expander.
15203         (adc_internal, *adc_flags, adddi3_internal): New patterns.
15204         (subsi3_flags): New expander.
15205         (subdi3): Rewrite as expander.
15206         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15207
15208         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15209         (rx_init_builtins): Remove sat builtin.
15210         (rx_expand_builtin): Likewise.
15211         * config/rx/rx.md (ssaddsi3): New.
15212         (*sat): Rename from sat.  Represent the CC_REG input.
15213
15214         * config/rx/predicates.md (rshift_operator): New.
15215         * config/rx/rx.c (rx_expand_insv): Remove.
15216         * config/rx/rx-protos.h: Update.
15217         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
15218         operand to the canonical position.
15219         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15220         (*bitclr, *bitclr_in_memory): Similarly.
15221         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15222         (insv): Retain the zero_extract in the expansion.
15223
15224         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15225         (bswaphi2, bitinvert, revw): Likewise.
15226
15227         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15228         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15229         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15230         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15231         (bitset, bitset_in_memory): Likewise.
15232         (bitinvert, bitinvert_in_memory): Likewise.
15233         (bitclr, bitclr_in_memory): Likewise.
15234         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15235         (rx_strend, rx_cmpstrn): Likewise.
15236         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
15237         (bitop peep2 patterns): Remove.
15238
15239         * config/rx/rx.c (rx_match_ccmode): New.
15240         * config/rx/rx-protos.h: Update.
15241         * config/rx/rx.md (abssi2): Clobber, don't set flags.
15242         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15243         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15244         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15245         (fix_truncsfsi2, floatsisf2): Likewise.
15246         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15247         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15248         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15249         (*subsi3_flags, *xorsi3_flags): New.
15250
15251         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15252
15253         * config/rx/rx.c (rx_print_operand): Remove workaround for
15254         unsplit comparison operations.
15255
15256         * config/rx/rx.md (movsicc): Split after reload.
15257         (*movsicc): Merge *movsieq and *movsine via match_operator.
15258         (*stcc): New pattern.
15259
15260         * config/rx/rx.c (rx_float_compare_mode): Remove.
15261         * config/rx/rx.h (rx_float_compare_mode): Remove.
15262         * config/rx/rx.md (cstoresi4): Split after reload.
15263         (*sccc): New pattern.
15264
15265         * config/rx/predicates.md (label_ref_operand): New.
15266         (rx_z_comparison_operator): New.
15267         (rx_zs_comparison_operator): New.
15268         (rx_fp_comparison_operator): New.
15269         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15270         Validate that the flags are set properly for the comparison.
15271         (rx_gen_cond_branch_template): Remove.
15272         (rx_cc_modes_compatible): Remove.
15273         (mode_from_flags): New.
15274         (flags_from_code): Rename from flags_needed_for_conditional.
15275         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15276         (rx_select_cc_mode): Likewise.
15277         (rx_split_fp_compare): New.
15278         (rx_split_cbranch): New.
15279         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15280         (*cbranchsi4): Use match_operator and rx_split_cbranch.
15281         (*cbranchsf4): Similarly.
15282         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
15283         match_operator and rx_split_cbranch.
15284         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15285         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
15286         (*cmpsi): Rename from cmpsi.
15287         (*tstsi): Rename from tstsi.
15288         (*cmpsf): Rename from cmpsf; use CC_Fmode.
15289         (*conditional_branch): Rename from conditional_branch.
15290         (*reveresed_conditional_branch): Remove.
15291         (b<code>): Remove expander.
15292         * config/rx/rx-protos.h: Update.
15293
15294         * config/rx/rx.c (rx_compare_redundant): Remove.
15295         * config/rx/rx.md (cmpsi): Don't use it.
15296         * config/rx/rx-protos.h: Update.
15297
15298         * config/rx/rx-modes.def (CC_F): New mode.
15299         * config/rx/rx.c (rx_select_cc_mode): New.
15300         * config/rx/rx.h (SELECT_CC_MODE): Use it.
15301         * config/rx/rx-protos.h: Update.
15302
15303 2011-01-17  Richard Henderson  <rth@redhat.com>
15304
15305         * except.c (dump_eh_tree): Fix stray ; after for statement.
15306
15307 2011-01-17  Richard Guenther  <rguenther@suse.de>
15308
15309         PR tree-optimization/47313
15310         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15311         handling before copying the body.  Properly deal with
15312         by-reference result in SSA form.
15313
15314 2011-01-17  Ian Lance Taylor  <iant@google.com>
15315
15316         PR target/47219
15317         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15318         (struct_value_alias_set): Don't define.
15319         (sparc_option_override): Don't set sparc_sr_alias_set and
15320         struct_value_alias_set.
15321         (save_or_restore_regs): Use gen_frame_mem rather than calling
15322         set_mem_alias_set.
15323         (sparc_struct_value_rtx): Likewise.
15324
15325 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
15326
15327         PR target/47318
15328         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15329         (_mm_maskstore_pd): Likewise.
15330         (_mm_maskload_ps): Likewise.
15331         (_mm_maskstore_ps): Likewise.
15332         (_mm256_maskload_pd): Change mask to __m256i.
15333         (_mm256_maskstore_pd): Likewise.
15334         (_mm256_maskload_ps): Likewise.
15335         (_mm256_maskstore_ps): Likewise.
15336
15337         * config/i386/i386-builtin-types.def: Updated.
15338         (ix86_expand_special_args_builtin): Likewise.
15339
15340         * config/i386/i386.c (bdesc_special_args): Update
15341         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15342         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15343         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15344         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15345
15346         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15347         Use <avxpermvecmode> on mask register.
15348         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15349
15350 2011-01-17  Olivier Hainque  <hainque@adacore.com>
15351             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15352             Eric Botcazou  <ebotcazou@adacore.com>
15353
15354         PR target/46655
15355         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15356         if <= USHRT_MAX in 32-bit mode.
15357
15358 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15359
15360         * doc/install.texi (Configuration, Specific): Wrap long
15361         lines in examples.  Allow line wrapping in long options
15362         and URLs where beneficial for PDF output.
15363
15364 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
15365
15366         * config/mips/mips.c (mips_classify_symbol): Don't return
15367         SYMBOL_PC_RELATIVE for nonlocal labels.
15368
15369 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
15370
15371         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15372
15373 2011-01-15  Jan Hubicka  <jh@suse.cz>
15374
15375         PR tree-optimization/47276
15376         * ipa.c (function_and_variable_visibility): Do not try to mark alias
15377         declarations as needed.
15378
15379 2011-01-15  Martin Jambor  <mjambor@suse.cz>
15380
15381         * common.opt (fdevirtualize): New flag.
15382         * doc/invoke.texi (Option Summary): Document it.
15383         * opts.c (default_options_table): Add devirtualize flag.
15384         * ipa-prop.c (detect_type_change): Return immediately if
15385         devirtualize flag is not set.
15386         (detect_type_change_ssa): Likewise.
15387         (compute_known_type_jump_func): Likewise.
15388         (ipa_analyze_virtual_call_uses): Likewise.
15389
15390 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15391
15392         PR tree-optimization/45934
15393         PR tree-optimization/46302
15394         * ipa-prop.c (type_change_info): New type.
15395         (stmt_may_be_vtbl_ptr_store): New function.
15396         (check_stmt_for_type_change): Likewise.
15397         (detect_type_change): Likewise.
15398         (detect_type_change_ssa): Likewise.
15399         (compute_complex_assign_jump_func): Check for dynamic type change.
15400         (compute_complex_ancestor_jump_func): Likewise.
15401         (compute_known_type_jump_func): Likewise.
15402         (compute_scalar_jump_functions): Likewise.
15403         (ipa_analyze_virtual_call_uses): Likewise.
15404         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15405
15406 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15407
15408         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15409         * config/i386/i386.opt (msse5): New Alias.
15410
15411 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15412
15413         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15414         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15415         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15416         * config/sparc/sparc.h (CC1_SPEC): Likewise.
15417
15418 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15419
15420         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15421         -mcpu options.
15422         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15423         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15424         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15425         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15426         Likewise.
15427         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15428
15429 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15430
15431         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15432
15433 2011-01-14  Mike Stump  <mikestump@comcast.net>
15434
15435         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15436         * config/fr30/fr30.md: Likweise
15437         (movsi_push): Likewise.
15438         (movsi_pop): Likewise.
15439         (enter_func): Likewise.
15440         * config/moxie/moxie.md (movsi_push): Likewise.
15441         (movsi_pop): Likewise.
15442
15443 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15444
15445         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15446         %{no_archive} %{exact_version}.
15447         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15448         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15449         %{no_archive} %{exact_version}.
15450         * config/mips/openbsd.h (LINK_SPEC): Likewise.
15451         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15452         * config/mips/vxworks.h: Likewise.
15453
15454 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15455
15456         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15457
15458 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15459
15460         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15461         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15462
15463 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15464
15465         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15466         -nodefaultlib.
15467
15468 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15469
15470         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15471         for mcpu not cpu.
15472         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15473         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15474         not cpu.
15475         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15476         Don't handle -shlib.
15477
15478 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15479
15480         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15481         (CC1_SPEC): Don't handle -profile.
15482
15483 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15484
15485         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15486         * config/mips/mips.h (CC1_SPEC): Likewise.
15487
15488 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15489
15490         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15491         * config/mips/mips.h (CC1_SPEC): Likewise.
15492
15493 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15494
15495         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15496         * config/m32r/linux.h (LINK_SPEC): Likewise.
15497         * config/mips/linux.h (LINK_SPEC): Likewise.
15498         * config/mips/linux64.h (LINK_SPEC): Likewise.
15499         * config/sparc/linux.h (LINK_SPEC): Likewise.
15500         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15501         LINK_SPEC): Likewise.
15502         * config/xtensa/linux.h (LINK_SPEC): Likewise.
15503
15504 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15505
15506         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15507         %{version:-v}.
15508         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15509
15510 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15511
15512         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15513         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15514
15515 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15516
15517         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15518
15519 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15520
15521         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15522         supports -Bstatic/-Bdynamic.
15523         * configure: Regenerate.
15524
15525 2011-01-14  Jan Hubicka  <jh@suse.cz>
15526             Jack Howarth  <howarth@bromo.med.uc.edu>
15527
15528         PR target/46037
15529         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15530         when checking debug_info_level. Test write_symbols instead of
15531         debug_hooks->var_location when setting flag_var_tracking_uninit.
15532
15533 2011-01-14  Richard Guenther  <rguenther@suse.de>
15534
15535         PR tree-optimization/47179
15536         * target.def (ref_may_alias_errno): New target hook.
15537         * targhooks.h (default_ref_may_alias_errno): Declare.
15538         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15539         (default_ref_may_alias_errno): New function.
15540         * target.h (struct ao_ref_s): Declare.
15541         * tree-ssa-alias.c: Include target.h.
15542         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15543         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15544         (targhooks.o): Likewise.
15545         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15546         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15547
15548 2011-01-14  Richard Guenther  <rguenther@suse.de>
15549
15550         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15551
15552 2011-01-14  Richard Guenther  <rguenther@suse.de>
15553
15554         PR tree-optimization/47280
15555         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15556         return CFG changes.
15557         (tree_ssa_forward_propagate_single_use_vars): Deal with
15558         CFG changes from associate_plusminus.
15559
15560 2011-01-14  Richard Guenther  <rguenther@suse.de>
15561
15562         PR middle-end/47281
15563         Revert
15564         2011-01-11  Richard Guenther  <rguenther@suse.de>
15565
15566         PR tree-optimization/46076
15567         * tree-ssa.c (useless_type_conversion_p): Conversions from
15568         unprototyped to empty argument list function types are useless.
15569
15570 2011-01-14  Richard Guenther  <rguenther@suse.de>
15571
15572         PR tree-optimization/47286
15573         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15574
15575 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15576
15577         PR middle-end/46823
15578         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15579
15580 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15581
15582         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15583         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15584         * config/xtensa/xtensa.c (xtensa_libcall_value,
15585         xtensa_function_value_regno_p): New functions.
15586         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15587
15588 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15589
15590         PR c++/47213
15591         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15592         PE specific hook.
15593         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15594         New function prototype.
15595         * config/i386/winnt.c (i386_pe_assemble_visibility):
15596         Warn only if attribute was specified by user.
15597
15598 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15599
15600         PR target/47251
15601         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15602         floating point.
15603         (floatunsdidf2_fcfidu): Ditto.
15604
15605 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15606
15607         * config/s390/s390.c (print_operand_address): Replace 'error' with
15608         'output_operand_lossage'.
15609         (print_operand): Likewise.
15610
15611 2011-01-13  Jeff Law  <law@redhat.com>
15612
15613         PR rtl-optimization/39077
15614         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15615         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15616         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15617         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15618         * gcse.c (prune_insertions_deletions): New function.
15619         (compute_pre_data): Use it.
15620
15621 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15622
15623         PR debug/PR46973
15624         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15625         static function.
15626         (prune_unused_types_mark): Use it.
15627
15628 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15629
15630         PR rtl-optimization/45352
15631         * sel-sched.c: Update copyright years.
15632         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15633         in the advancing loop when we have issued issue_rate insns.
15634
15635 2011-01-12  Richard Henderson  <rth@redhat.com>
15636
15637         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15638         (TARGET_MD_ASM_CLOBBERS): New.
15639
15640         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15641         (TARGET_DELEGITIMIZE_ADDRESS): New.
15642
15643         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15644         (clzsi2, *bsch): New patterns.
15645
15646         * config/mn10300/mn10300.md (INT): New mode iterator.
15647         (*mov<INT>_clr): New pattern, and peep2 to generate it.
15648
15649         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15650         flag_split_wide_types.
15651
15652         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15653         (mn10300_trampoline_init): Rewrite without a template, an immediate
15654         load and a direct branch.
15655         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15656
15657 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
15658
15659         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15660         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15661         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15662         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15663
15664 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
15665
15666         PR debug/47209
15667         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15668         of type.
15669
15670 2011-01-12  Jan Hubicka  <jh@suse.cz>
15671
15672         PR driver/47244
15673         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15674         (PLUGIN_COND_CLOSE): New macro.
15675         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15676
15677 2011-01-12  Richard Guenther  <rguenther@suse.de>
15678
15679         PR lto/47259
15680         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15681         register variables in a MEM_REF.
15682
15683 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
15684
15685         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15686         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15687         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15688         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15689         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15690         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15691         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15692         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15693         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15694         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15695         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15696         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15697         * config/gnu-user.h: New.  Copied from linux.h.
15698         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15699         GNU_USER_TARGET_STARTFILE_SPEC.
15700         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15701         GNU_USER_TARGET_ENDFILE_SPEC.
15702         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15703         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15704         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15705         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15706         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15707         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15708         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15709         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15710         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15711         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15712         * config/arm/linux-eabi.h (CC1_SPEC): Use
15713         GNU_USER_TARGET_CC1_SPEC.
15714         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15715         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15716         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15717         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15718         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15719         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15720         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15721         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15722
15723 2011-01-12  Richard Guenther  <rguenther@suse.de>
15724
15725         PR other/46946
15726         * doc/invoke.texi (ffast-math): Document it is turned on
15727         with -Ofast.
15728
15729 2011-01-12  Jan Hubicka  <jh@suse.cz>
15730
15731         PR tree-optimization/47233
15732         * opts.c (common_handle_option): Disable ipa-reference with profile
15733         feedback.
15734
15735 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15736
15737         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15738         error message.
15739
15740 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15741
15742         * c-parser.c (c_lex_one_token): Updated and reindented some
15743         comments.  No changes in code.
15744
15745 2011-01-11  Ian Lance Taylor  <iant@google.com>
15746
15747         * godump.c (go_output_var): Don't output the variable if there is
15748         already a type with the same name.
15749
15750 2011-01-11  Ian Lance Taylor  <iant@google.com>
15751
15752         * godump.c (go_format_type): Don't generate float80.
15753
15754 2011-01-11  Richard Henderson  <rth@redhat.com>
15755
15756         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15757         declaration.  Rewrite for both speed and size.
15758         (mn10300_address_cost_1): Remove.
15759         (mn10300_register_move_cost): New.
15760         (mn10300_memory_move_cost): New.
15761         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15762         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15763         extensions, shifts, BSWAP, CLZ.
15764         (mn10300_wide_const_load_uses_clr): Remove.
15765         (TARGET_REGISTER_MOVE_COST): New.
15766         (TARGET_MEMORY_MOVE_COST): New.
15767         * config/mn10300/mn10300-protos.h: Update.
15768         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15769
15770         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15771         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15772         * config/mn10300/mn10300-protos.h: Update.
15773         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15774         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15775         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15776         (*test_int_bitfield, *test_byte_bitfield): Remove.
15777         (*bit_test, *subreg_bit_test): Remove.
15778         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15779
15780         * config/mn10300/constraints.md ("c"): Rename from "A".
15781         ("A", "D"): New constraint letters.
15782         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15783         (fmssf4, fnmasf4, fnmssf4): Likewise.
15784
15785         * config/mn10300/mn10300.md (isa): New attribute.
15786         (enabled): New attribute.
15787
15788         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15789         (abssf2, negsf2): Define only for hardware fp.
15790         (sqrtsf2): Reformat.
15791         (addsf3, subsf3, mulsf3): Merge expander and insn.
15792
15793         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15794         (DEBUGGER_AUTO_OFFSET): Remove.
15795         (DEBUGGER_ARG_OFFSET): Remove.
15796
15797         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15798         Emit register stores with the same offsets as the hardware.
15799         (mn10300_store_multiple_operation): Don't check that the register
15800         save offsets are monotonic.
15801         * config/mn10300/mn10300-protos.h: Update.
15802
15803         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15804
15805         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15806         in terms of the value on the stack, not the MDR register.
15807
15808 2011-01-11  Jan Hubicka  <jh@suse.cz>
15809
15810         PR lto/45721
15811         PR lto/45375
15812         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15813         (symbol_alias_set_destroy, symbol_alias_set_contains,
15814         propagate_aliases_backward): Declare.
15815         * lto-streamer-out.c (struct sets): New sturcture.
15816         (trivally_defined_alias): New function.
15817         (output_alias_pair_p): Rewrite.
15818         (output_unreferenced_globals): Fix output of alias pairs.
15819         (produce_symtab): Likewise.
15820         * ipa.c (function_and_variable_visibility): Set weak alias destination
15821         as needed in lto.
15822         * varasm.c (symbol_alias_set_t): Remove.
15823         (symbol_alias_set_destroy): Export.
15824         (propagate_aliases_forward, propagate_aliases_backward): New functions
15825         based on ...
15826         (compute_visible_aliases): ... this one; remove.
15827         (trivially_visible_alias): New
15828         (trivially_defined_alias): New.
15829         (remove_unreachable_alias_pairs): Rewrite.
15830         (finish_aliases_1): Reorganize code checking if alias is defined.
15831         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15832         in LTO mode.
15833
15834 2011-01-11  Richard Guenther  <rguenther@suse.de>
15835
15836         PR tree-optimization/46076
15837         * tree-ssa.c (useless_type_conversion_p): Conversions from
15838         unprototyped to empty argument list function types are useless.
15839
15840 2011-01-11  Richard Guenther  <rguenther@suse.de>
15841
15842         PR middle-end/45235
15843         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15844         volatile MEMs as MEM_READONLY_P.
15845
15846 2011-01-11  Richard Guenther  <rguenther@suse.de>
15847
15848         PR tree-optimization/47239
15849         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15850
15851 2011-01-11  Jeff Law  <law@redhat.com>
15852
15853         PR tree-optimization/47086
15854         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15855         IVs from statements that might throw.
15856
15857 2011-01-10  Jan Hubicka  <jh@suse.cz>
15858
15859         PR lto/45375
15860         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15861
15862 2011-01-10  Jan Hubicka  <jh@suse.cz>
15863
15864         PR lto/45375
15865         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15866         when correcting profile.
15867
15868 2011-01-10  Jan Hubicka  <jh@suse.cz>
15869
15870         PR lto/46083
15871         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15872         DECL_FINI_PRIORITY.
15873         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15874         Restore DECL_FINI_PRIORITY.
15875
15876 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15877
15878         * doc/gimple.texi: Fix quoting of multi-word return values in
15879         @deftypefn statements.  Ensure presence of return value.  Wrap
15880         overlong @deftypefn lines.
15881         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15882         descriptions of removed functions.
15883         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15884         of multi-word return value in @deftypefn statement.
15885
15886 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15887
15888         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15889         (Conditional Expressions, Logical Operators)
15890         (Statement and operand traversals): Do not indent smallexample
15891         code.  Fix duplicate function argument in example.
15892
15893 2011-01-10  Jeff Law  <law@redhat.com>
15894
15895         PR tree-optimization/47141
15896         * ipa-split.c (split_function): Handle case where we are
15897         returning a value and the return block has a virtual operand phi.
15898
15899 2011-01-10  Jan Hubicka  <jh@suse.cz>
15900
15901         PR tree-optimization/47234
15902         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15903         (pass_feedback_split_functions): Declare.
15904         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15905         tree-profile.
15906         * ipa-split.c (gate_split_functions): Update comments; disable
15907         split-functions for profile_arc_flag and branch_probabilities.
15908         (gate_feedback_split_functions): New function.
15909         (execute_feedback_split_functions): New function.
15910         (pass_feedback_split_functions): New global var.
15911
15912 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15913
15914         PR lto/46760
15915         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15916         calling gimple_call_set_cannot_inline.
15917
15918 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15919
15920         * config/darwin-sections.def: Remove unused section.
15921
15922 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15923
15924         PR c++/47218
15925         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15926
15927 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15928
15929         PR objc/47232
15930         * c-parser.c (c_parser_declaration_or_fndef): Improved
15931         error message.
15932
15933 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15934
15935         * config/i386/winnt.c (i386_pe_start_function): Make sure
15936         to switch back to function's section.
15937
15938 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15939
15940         PR gcc/46902
15941         PR testsuite/46912
15942         * plugin.c: Move include of dlfcn.h from here...
15943         * system.h: ... to here.
15944
15945 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15946
15947         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15948         file name.
15949         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15950         two extra empty pages in PDF output.
15951
15952 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15953
15954         PR objc/47078
15955         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15956         for error recovery purposes behave as if it was not specified so
15957         that the default type is usd.
15958
15959 2011-01-07  Jan Hubicka  <jh@suse.cz>
15960
15961         PR tree-optmization/46469
15962         * ipa.c (function_and_variable_visibility): Clear needed flags on
15963         nodes with external decls; handle weakrefs merging correctly.
15964
15965 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15966
15967         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15968         not false.
15969
15970 2011-01-07  Jan Hubicka  <jh@suse.cz>
15971
15972         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15973         and no longer claim that gold is required for linker plugin.
15974         * configure: Regenerate.
15975         * gcc.c (PLUGIN_COND): New macro.
15976         (LINK_COMMAND_SPEC): Use it.
15977         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15978         * config.in (HAVE_LTO_PLUGIN): New.
15979         * configure.ac (--with-lto-plugin): New parameter; autodetect
15980         HAVE_LTO_PLUGIN.
15981
15982 2011-01-07  Jan Hubicka  <jh@suse.cz>
15983
15984         PR tree-optimization/46367
15985         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15986         when we can update original.
15987         (cgraph_mark_inline_edge): Sanity check.
15988         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15989
15990 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15991
15992         * config/spu/spu.h (ASM_COMMENT_START): Define.
15993
15994 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15995
15996         PR driver/42445
15997         * gcc.c (%>S): New.
15998         (SWITCH_KEEP_FOR_GCC): Likewise.
15999         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16000         (do_spec_1): Handle "%>".
16001
16002         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16003
16004 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
16005
16006         PR target/47201
16007         * config/i386/i386.c (ix86_delegitimize_address): If
16008         simplify_gen_subreg fails, return orig_x.
16009
16010         PR bootstrap/47187
16011         * value-prof.c (gimple_stringop_fixed_value): Handle
16012         lhs of the call properly.
16013
16014 2011-01-07  Jan Hubicka  <jh@suse.cz>
16015
16016         PR lto/45375
16017         * lto-opt.c (lto_reissue_options): Set flag_shlib.
16018
16019 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16020
16021         * target.def (function_switched_text_sections): New hook.
16022         * doc/tm.texi: Regenerated.
16023         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16024         * final.c (default_function_switched_text_sections): New.
16025         (final_scan_insn): Call function_switched_text_sections when a
16026         mid-function section change occurs.
16027         * output.h (default_function_switched_text_sections): Declare.
16028         * config/darwin-protos.h (darwin_function_switched_text_sections):
16029         Likewise.
16030         * config/darwin.c (darwin_function_switched_text_sections): New.
16031         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16032
16033 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16034
16035         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
16036         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
16037         the secondary code fragment when outputting for DWARF == 2.
16038
16039 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
16040
16041         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16042         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16043         Remove.
16044         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16045         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16046
16047 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
16048
16049         PR debug/46704
16050         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16051         when it is not empty.
16052
16053 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
16054
16055         Bobcat Enablement
16056         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16057         (case ${target}): Add btver1.
16058         * config/i386/driver-i386.c (host_detect_local_cpu): Let
16059         -march=native recognize btver1 processors.
16060         * config/i386/i386-c.c (ix86_target_macros_internal): Add
16061         btver1 def_and_undef
16062         * config/i386/i386.c (struct processor_costs btver1_cost): New
16063         btver1 cost table.
16064         (m_BTVER1): New definition.
16065         (m_AMD_MULTIPLE): Includes m_BTVER1.
16066         (initial_ix86_tune_features): Add btver1 tune.
16067         (processor_target_table): Add btver1 entry.
16068         (static const char *const cpu_names): Add btver1 entry.
16069         (software_prefetching_beneficial_p): Add btver1.
16070         (ix86_option_override_internal): Add btver1 instruction sets.
16071         (ix86_issue_rate): Add btver1.
16072         (ix86_adjust_cost): Add btver1.
16073         * config/i386/i386.h (TARGET_BTVER1): New definition.
16074         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16075         (enum processor_type): Add PROCESSOR_BTVER1.
16076         * config/i386/i386.md (define_attr "cpu"): Add btver1.
16077
16078 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16079
16080         PR target/43309
16081         * config/i386/i386.c (legitimize_tls_address)
16082         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16083         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16084         (tls_initial_exec_64_sun): New pattern.
16085
16086 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
16087
16088         * doc/invoke.texi (Overall Options): Improve wording and markup
16089         of the description of -wrapper.
16090
16091 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
16092
16093         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16094         rdynamic, threads): New Driver options.
16095
16096 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16097
16098         PR target/38118
16099         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16100         if coming from .tdata.
16101         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16102
16103 2011-01-06  Jan Hubicka  <jh@suse.cz>
16104
16105         PR lto/47188
16106         * collect2.c (main): Do not enable LTOmode when plugin is active.
16107
16108 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16109
16110         PR other/45915
16111         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16112         --version output if supported.
16113         * configure: Regenerate.
16114
16115 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
16116
16117         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16118         Driver options.
16119
16120 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
16121
16122         PR c/47150
16123         * c-convert.c (convert): When converting a complex expression
16124         other than COMPLEX_EXPR to a different complex type, ensure
16125         c_save_expr is called instead of save_expr, unless in_late_binary_op.
16126         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16127         when converting COMPLEX_TYPE.
16128
16129 2011-01-06  Ira Rosen  <irar@il.ibm.com>
16130
16131         PR tree-optimization/47139
16132         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16133         only the last reduction value is used outside the loop.  Update
16134         documentation.
16135
16136 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
16137
16138         * config/rtems.opt: New.
16139         * config.gcc (*-*-rtems*): Use rtems.opt.
16140
16141 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
16142
16143         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16144         processors do not support 3DNow instructions.
16145
16146 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16147
16148         * config/spu/spu.c (spu_option_override): Set parameter
16149         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16150
16151 2011-01-05  Jan Hubicka  <jh@suse.cz>
16152
16153         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16154         at the command line.
16155
16156 2011-01-05  Martin Jambor  <mjambor@suse.cz>
16157
16158         PR lto/47162
16159         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16160         deltas on streamed outgoing edges.
16161         (output_node_opt_summary): Output info for outgoing edges only when
16162         the node is in new parameter set.
16163         (output_cgraph_opt_summary): New parameter set, passed to the two
16164         aforementioned functions.  Update its forward declaration and its
16165         callee too.
16166
16167 2011-01-05  Tom Tromey  <tromey@redhat.com>
16168
16169         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16170         operator to c_finish_omp_atomic.
16171         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16172         (build_unary_op): Update.
16173         (build_modify_expr): Update.
16174         (build_asm_expr): Update.
16175
16176 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16177
16178         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16179         newly inserted insns.
16180         (pad_bb): Likewise.
16181         (spu_emit_branch_hint): Likewise.
16182         (insert_hbrp_for_ilb_runout): Likewise.
16183         (spu_machine_dependent_reorg): Call df_finish_pass after
16184         schedule_insns returns.
16185
16186 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16187
16188         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16189
16190 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16191
16192         PR tree-optimization/47005
16193         * tree-sra.c (struct access): Add 'non_addressable' bit.
16194         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16195         (decide_one_param_reduction): Return 0 if the parameter is passed by
16196         reference and one of the accesses in the group is non_addressable.
16197
16198 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16199
16200         PR tree-optimization/47056
16201         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16202         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
16203         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
16204
16205 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16206
16207         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16208         initializer.  Skip view conversions from aggregate types.
16209
16210 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
16211
16212         PR bootstrap/47055
16213         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16214
16215 2011-01-04  Philipp Thomas  <pth@suse.de>
16216
16217         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16218         obvious typo.
16219
16220 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16221
16222         * function.c (thread_prologue_and_epilogue_insns): Do not crash
16223         on empty epilogue sequences.
16224
16225 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
16226
16227         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16228         non-static): New Driver options.
16229
16230 2011-01-04  Jie Zhang  <jie@codesourcery.com>
16231
16232         PR driver/47137
16233         * gcc.c (default_compilers[]): Set combinable field to 0
16234         for all assembly languages.
16235
16236 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
16237
16238         * config/mips/loongson3a.md: New file.
16239         * config/mips/mips.md: Include loongson3a.md.
16240         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16241         TUNE_LOONGSON_3A.
16242
16243 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
16244
16245         PR middle-end/47017
16246         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16247         instead of convert_memory_address_addr_space on the base expression.
16248
16249 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16250
16251         * config/spu/spu.c (spu_option_override): Update error text
16252         for bad -march= / -mtune= values.
16253
16254 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16255
16256         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16257         if branch-hint optimization will be performed.
16258
16259 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
16260
16261         PR tree-optimization/47148
16262         * ipa-split.c (split_function): Convert arguments to
16263         DECL_ARG_TYPE if possible.
16264
16265         PR tree-optimization/47155
16266         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16267         when computing uns.
16268
16269         PR rtl-optimization/47157
16270         * combine.c (try_combine): If undobuf.other_insn becomes
16271         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16272         and set *new_direct_jump_p too.
16273
16274 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16275
16276         PR tree-optimization/47021
16277         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16278
16279 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
16280
16281         * gcc.c (process_command): Update copyright notice dates.
16282         * gcov.c (print_version): Likewise.
16283         * gcov-dump.c (print_version): Likewise.
16284         * mips-tfile.c (main): Likewise.
16285         * mips-tdump.c (main): Likewise.
16286
16287 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16288
16289         PR tree-optimization/46801
16290         * tree-sra.c (type_internals_preclude_sra_p): Check whether
16291         aggregate fields start at byte boundary instead of the bit-field flag.
16292
16293 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
16294
16295         PR driver/47137
16296         * gcc.c (main): Revert revision 168407.
16297
16298 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16299
16300         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16301
16302 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16303
16304         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16305         vector optab to expand vector/scalar shift, update gimple to vector.
16306
16307 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16308
16309         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16310         a thunk.
16311
16312 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16313
16314         PR tree-optimization/46984
16315         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16316         HOST_WIDE_INT.
16317         (cgraph_create_indirect_edge): Fixed line length.
16318         (cgraph_indirect_call_info): Declare.
16319         (cgraph_make_edge_direct) Update declaration.
16320         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16321         (cgraph_create_indirect_edge): Use it.
16322         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
16323         callees.
16324         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16325         the new thunk_delta representation.
16326         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16327         HOST_WIDE_INT.
16328         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16329         (ipa_read_indirect_edge_info): Likewise.
16330         * lto-cgraph.c (output_edge_opt_summary): New function.
16331         (output_node_opt_summary): Call it on all outgoing edges.
16332         (input_edge_opt_summary): New function.
16333         (input_node_opt_summary): Call it on all outgoing edges.
16334
16335 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
16336
16337         PR driver/47137
16338         * gcc.c (main): Don't check have_o when settting combine_inputs.
16339
16340 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
16341
16342         * regrename.c: Add general comment describing the pass.
16343         (struct du_head): Remove 'length' field.
16344         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16345         (regrename_optimize): Do not sort chains.  Rework comments, add others.
16346         Force renaming to the preferred class (if any) in the first pass and do
16347         not consider registers that belong to it in the second pass.
16348         (create_new_chain): Do not set 'length' field.
16349         (scan_rtx_reg): Likewise.
16350
16351 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
16352
16353         PR tree-optimization/47140
16354         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16355         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16356         to bit_value_binop.
16357
16358         PR rtl-optimization/47028
16359         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16360         parm_birth_insn instead of at the beginning of first bb.
16361
16362 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
16363
16364         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16365         Remove the word "see" before "@pxref".
16366         * doc/rtl.texi: Remove the word "see" before "@pxref".
16367
16368 2011-01-01  Jan Hubicka  <jh@suse.cz>
16369
16370         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16371         memory.
16372
16373 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
16374
16375         PR target/38662
16376         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16377
16378 \f
16379 Copyright (C) 2011 Free Software Foundation, Inc.
16380
16381 Copying and distribution of this file, with or without modification,
16382 are permitted in any medium without royalty provided the copyright
16383 notice and this notice are preserved.