i386.md (*movoi_internal_avx): Use standard_sse_constant_opcode for alternative 0.
[gcc.git] / gcc / ChangeLog
1 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2
3 * config/i386/i386.md (*movoi_internal_avx): Use
4 standard_sse_constant_opcode for alternative 0.
5 (*movti_internal_sse): Ditto.
6 (*movti_internal_rex64): Use standard_sse_constant_opcode for
7 alternative 2.
8 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
9 sselog1 type moves.
10 (*movsi_internal): Ditto.
11 (*movdi_internal): Ditto. Add ssecvt type moves.
12
13 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14
15 PR target/48830
16 * rtlanal.c (simplify_subreg_regno): Adjust comment.
17
18 2011-05-29 Jakub Jelinek <jakub@redhat.com>
19
20 PR rtl-optimization/49095
21 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
22 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
23
24 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
25
26 PR target/43995
27 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
28 recurse_p argument. Only follow register copies if it is set,
29 and prevent mips_find_pic_call_symbol from recursing.
30 (mips_find_pic_call_symbol): Add a recurse_p argument.
31 Pass it to mips_pic_call_symbol_from_set.
32 (mips_annotate_pic_calls): Update accordingly.
33
34 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
35
36 * emit-rtl.c (try_split): Use a loop to search for
37 NOTE_INSN_CALL_ARG_LOCATIONs.
38
39 2011-05-29 Richard Guenther <rguenther@suse.de>
40
41 PR tree-optimization/49217
42 * ipa-pure-const.c (propagate_pure_const): Fix typos.
43
44 2011-05-28 Jan Hubicka <jh@suse.cz>
45
46 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
47 length.
48 (string_slot_free): Remove
49 (create_output_block): Initialize obstack.
50 (destroy_output_block): Free obstack.
51 (lto_string_index): Add PERSISTENT parameter; do not duplicate
52 the string unless it needs to be added into the hash.
53 (lto_output_string_with_length): Add persistent attribute;
54 handle NULL strings.
55 (lto_output_string): Add PERSISTENT parameter.
56 (output_string_cst, output_identifier): Simplify.
57 (lto_output_location_bitpack): Update.
58 (lto_output_builtin_tree): Update.
59 * lto-streamer.h (struct output_block): Add obstack.
60 (lto_output_string, lto_output_string_with_length): Remove
61 declarations; functions are static now.
62
63 2011-05-28 Jan Hubicka <jh@suse.cz>
64
65 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
66 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
67 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
68 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
69 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
70 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
71 unpack_ts_decl_with_vis_value_fields,
72 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
73 lto_get_builtin_tree): Use enum and variable length i/o.
74 * basic-block.h (profile_status_d): Add PROFILE_LAST.
75 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
76 New functions.
77 (bp_pack_enum, bp_unpack_enum): New macros.
78
79 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
80
81 * genrecog.c: Remove redundant forward declarations.
82
83 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
84
85 * config.gcc: Deprecate mips*-*-openbsd*.
86
87 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
88
89 PR bootstrap/49195
90 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
91 for match_op_dup.
92
93 2011-05-27 Andrew Pinski <pinskia@gmail.com>
94
95 PR middle-end/48981
96 * gengtype.c (vec_prefix_type): New function.
97 (note_def_vec): Use vec_prefix_type and change the length
98 attribute to be based on the prefix.
99 * vec.c: Include coretypes.h before vec.h.
100 (struct vec_prefix): Remove.
101 (vec_gc_p_reserve): Change the offsetof to sizeof.
102 (vec_gc_p_reserve_exact): Likewise.
103 (vec_heap_p_reserve): Likewise.
104 (vec_heap_p_reserve_exact): Likewise.
105 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
106 (vec_stack_p_reserve): Change the offsetof to sizeof.
107 (vec_stack_p_reserve_exact): Likewise.
108 * vec.h (struct vec_prefix): New struct definition.
109 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
110 (VEC_T_GTY(T,B)): Likewise.
111 (DEF_VEC_FUNC_P(T)): Use prefix field.
112 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
113 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
114
115 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
116
117 PR tree-optimization/46728
118 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
119 (powi_as_mults): Add gimple_set_location.
120 (build_and_insert_call): New.
121 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
122 0.5, 0.25, 0.75, 1./3., or 1./6.
123
124 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
125
126 * doc/contrib.texi: Update copyright years.
127 (Contributors): Add Zdenek Sojka.
128
129 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
130
131 * c-decl.c (c_push_function_context): Copy the current statement
132 list stack.
133 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
134 (finish_struct): Call building_stmt_list_p instead of checking
135 cur_stmt_list.
136 * c-parser.c (c_parser_postfix_expression): Likewise.
137 * c-typeck.c (c_end_compound_stmt): Likewise.
138 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
139 * tree-iterator.c (stmt_list_cache): Change to a VEC.
140 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
141 (free_stmt_list): Likewise.
142 * tree.h (struct tree_statement_list): Include typed_tree instead
143 of tree_common.
144 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
145 as TS_TYPED instead of TS_COMMON.
146
147 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
148 Uros Bizjak <ubizjak@gmail.com>
149
150 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
151 (HAVE_AS_IX86_TLSGDPTL): Define.
152 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
153 (HAVE_AS_IX86_TLSLDMPLT): Define.
154 * configure: Regenerate.
155 * config.in: Regenerate.
156 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
157 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
158 TARGET_SUN_TLS, use @tlsgdplt or @plt.
159 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
160 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
161 @tlsldmplt or @plt.
162 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
163
164 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
165
166 * sched-int.h (struct _haifa_deps_insn_data): New members cond
167 and reverse_cond.
168 (INSN_COND, INSN_REVERSE_COND): New macros.
169 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
170 once.
171 (sched_get_condition_with_rev): Cache the results, and look them up
172 if possible.
173 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
174 are clobbered by the current insn.
175 * target.def (exposed_pipline): New sched data hook.
176 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
177 * doc/tm.texi: Regenerate.
178
179 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
180
181 PR tree-optimization/49170
182 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
183 sincos or cexp.
184
185 2011-05-27 Richard Guenther <rguenther@suse.de>
186
187 PR middle-end/49189
188 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
189 of comparisons.
190
191 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
192
193 * haifa-sched.c (sched_scan_info): Remove.
194 (schedule_block): Call sched_extend_luids rather than sched_init_luids
195 with NULL args.
196 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
197 Remove functions.
198 (sched_scan): Remove.
199 (sched_extend_luids): Renamed from luids_extend_insn and no longer
200 static. All callers changed.
201 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
202 static. All callers changed.
203 (sched_init_luids): Remove all arguments except the first. All
204 callers changed. Don't use sched_scan.
205 (haifa_init_h_i_d): Likewise.
206 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
207 manually rather than using sched_init_luids. Likewise with
208 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
209 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
210 rather than sched_init_luids with NULL args.
211 * sel-sched-ir.c (new_insns): Remove variable.
212 (sched_scan): New static function, previously in haifa-sched.c. Remove
213 all arguments but the first two; all callers changed.
214 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
215 rather than sched_init_luids.
216 (sel_init_bbs): Remove second argument. All callers changed.
217 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
218 with NULL arguments.
219 (create_insn_rtx_from_pattern): Likewise.
220 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
221 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
222 (sched_init_insn_luid, sched_extend_luids): Declare.
223 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
224 declarations.
225
226 2011-05-27 Richard Guenther <rguenther@suse.de>
227
228 PR middle-end/49177
229 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
230 A CMP B ? (T) true : (T) false for non-integral types T again.
231
232 2011-05-27 Jan Hubicka <jh@suse.cz>
233
234 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
235 so 0 means NULL string.
236 (lto_output_string_with_length): ... here.
237 (lto_output_string, output_string_cst, output_identifier): Update
238 handling of NULL strings.
239 (lto_output_location_bitpack): New function.
240 (lto_output_location): Use it.
241 (lto_output_tree_ref): Use output_record_start.
242 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
243 len values.
244 * lto-streamer-in.c (string_for_index): Break out from ...; offset
245 values by 1.
246 (input_string_internal): ... here;
247 (input_string_cst, input_identifier, lto_input_string): Update handling
248 of NULL strings.
249 (lto_input_location_bitpack): New function
250 (lto_input_location): Use it.
251 (unpack_ts_type_common_value_fields): Pack align & alias in var len
252 values.
253 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
254 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
255 (bp_pack_value): Sanity check the value range.
256 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
257 New functions.
258 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
259 New functions.
260
261 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
262
263 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
264 call_arg_location instructions down the floor.
265
266 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
267
268 PR rtl-optimization/49154
269 * ira.c (setup_pressure_classes): Process class without sublcasses
270 as a candidate for pressure classes.
271
272 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
273
274 PR rtl-optimization/48575
275 * genrecog.c (position_type): New enum.
276 (position): New structure.
277 (decision): Use position structure instead of a string.
278 (root_pos, peep2_insn_pos_list): New variables.
279 (next_position, compare_positions): New functions.
280 (new_decision): Use position structures instead of strings.
281 (maybe_both_true): Likewise.
282 (change_state): Likewise.
283 (write_tree): Likewise.
284 (make_insn_sequence): Likewise.
285
286 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
287
288 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
289 TS_BASE instead of TS_COMMON.
290 (find_decls_types_r): Check for TS_TYPED structure before looking at
291 TREE_TYPE.
292 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
293 Add chain field.
294 (BLOCK_CHAIN): Use new chain field.
295
296 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
297
298 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
299 moves expensive on Power7 also.
300
301 2011-05-26 Richard Guenther <rguenther@suse.de>
302
303 * fold-const.c (fold_unary_loc): Remove bogus code.
304
305 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
306
307 * tree.h (struct tree_identifier): Inherit from tree_typed, not
308 tree_common.
309 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
310 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
311 TS_BASE instead of TS_COMMON.
312 * varasm.c (assemble_name): Remove assert.
313
314 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
315
316 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
317 substituted first.
318 * libgcc-std.ver: Delete file.
319
320 2011-05-26 Richard Guenther <rguenther@suse.de>
321
322 PR tree-optimization/48702
323 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
324 only when we know the base address is within bounds.
325 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
326 assume the base address of TARGET_MEM_REFs is in bounds.
327
328 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
329
330 PR target/49099
331 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
332 declaration in TARGET_SOLARIS.
333
334 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
335
336 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
337 The instruction is then expanded explicitly.
338 (supported_compare): Callable instruction.
339 (compare): Likewise.
340
341 2011-05-26 Jakub Jelinek <jakub@redhat.com>
342
343 PR c++/49165
344 * gimplify.c (shortcut_cond_r): Don't special case
345 COND_EXPRs if they have void type on one of their arms.
346
347 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
348
349 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
350 to reduce duplication, and to achieve a slightly more logical order
351 of operations.
352
353 2011-05-26 Jakub Jelinek <jakub@redhat.com>
354
355 PR tree-optimization/49161
356 * tree-vrp.c (struct case_info): New type.
357 (compare_case_labels): Sort case_info structs instead of
358 trees, and not primarily by CASE_LABEL uids but by
359 label_for_block indexes.
360 (find_switch_asserts): Put case labels into struct case_info
361 array instead of TREE_VEC, adjust sorting, compare label_for_block
362 values instead of CASE_LABELs.
363
364 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
365
366 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
367 ("orndi3_neon"): Likewise.
368 ("bic<mode>3_neon"): Likewise.
369
370 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
371
372 PR tree-optimization/49038
373 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
374 Ensure at least one epilogue iteration if required by data
375 accesses with gaps.
376 * tree-vectorizer.h (struct _loop_vec_info): Add new field
377 to mark loops that require peeling for gaps.
378 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
379 (vect_get_known_peeling_cost): Take peeling for gaps into
380 account.
381 (vect_transform_loop): Generate epilogue if required by data
382 access with gaps.
383 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
384 loop as requiring an epilogue if there are gaps in the end of
385 the strided group.
386
387 2011-05-25 Ian Lance Taylor <iant@google.com>
388
389 * godump.c (go_format_type): Output the first field with a usable
390 Go type, if any.
391
392 2011-05-25 Ian Lance Taylor <iant@google.com>
393
394 * godump.c (go_format_type): Check for invalid type names, pointer
395 target types, and struct field types.
396
397 2011-05-25 Jason Merrill <jason@redhat.com>
398
399 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
400
401 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
402
403 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
404
405 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
406
407 * config/i386/i386.md (*movqi_extv_1)): Put back
408 "register_operand" check in "type" calculation.
409 (*movqi_extzv_2): Likewise.
410
411 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
412
413 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
414
415 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
416
417 PR bootstrap/49160
418 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
419 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
420 __divxc3, __divtc3): Wrap definitions in #ifndef.
421
422 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
423
424 PR target/49142
425 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
426 "register_operand" check and replace q_regs_operand with
427 QIreg_operand in "type" calculation.
428 (*movqi_extv_1): Likewise.
429 (*movqi_extzv_2_rex64): Likewise.
430 (*movqi_extzv_2): Likewise.
431
432 * config/i386/predicates.md (QIreg_operand): New.
433
434 2011-05-25 Richard Guenther <rguenther@suse.de>
435
436 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
437 type-based offset disambiguation, streamline MEM_REF and
438 TARGET_MEM_REF handling.
439
440 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
441
442 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
443 (bdesc_special_args): Add pause intrinsic.
444
445 * config/i386/i386.md (UNSPEC_PAUSE): New.
446 (pause): Likewise.
447 (*pause): Likewise.
448 * config/i386/ia32intrin.h (__pause): Likewise.
449
450 * doc/extend.texi (X86 Built-in Functions): Add documentation for
451 pause intrinsic.
452
453 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
454
455 PR tree-optimization/46728
456 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
457 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
458
459 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
460
461 * tree.h (struct tree_exp): Inherit from struct tree_typed.
462 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
463 instead of TS_COMMON.
464
465 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
466
467 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
468 LIBGCC2_GNU_PREFIX is defined.
469 (__N): New macro.
470 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
471 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
472 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
473 __clz_tab): Define using __N.
474 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
475 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
476 * target.def (libfunc_gnu_prefix): New hook.
477 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
478 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
479 * doc/tm.texi: Regenerate.
480 * system.h (LIBGCC2_GNU_PREFIX): Poison.
481 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
482 account.
483 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
484 (init_optabs): Likewise for the bswap libfuncs.
485 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
486 and divide.
487 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
488 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
489 * libgcc-std.ver: Remove.
490 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
491 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
492 libgcc-std.ver.
493 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
494 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
495 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
496 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
497 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
498 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
499 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
500 * config/fixed-bit.h (FIXED_OP): Define differently depending on
501 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
502 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
503
504 2011-05-25 Jan Hubicka <jh@suse.cz>
505
506 * lto-streamer-out.c (output_record_start): Use lto_output_enum
507 (lto_output_tree): Use output_record_start.
508 * lto-streamer-in.c (input_record_start): Use lto_input_enum
509 (lto_get_pickled_tree): Use input_record_start.
510 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
511 (lto_value_range_error): New function.
512 * lto-streamer.h (lto_value_range_error): Declare.
513 (lto_output_int_in_range, lto_input_int_in_range): New functions.
514 (lto_output_enum, lto_input_enum): New macros.
515
516 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
517
518 * common.opt (flag_stack_usage_info): New variable.
519 (-Wstack-usage): New option.
520 * doc/invoke.texi (Warning options): Document -Wstack-usage.
521 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
522 <OPT_fstack_usage>: Likewise.
523 * toplev.c (output_stack_usage): Handle -Wstack-usage.
524 * calls.c (expand_call): Test flag_stack_usage_info variable instead
525 of flag_stack_usage.
526 (emit_library_call_value_1): Likewise.
527 * explow.c (allocate_dynamic_stack_space): Likewise.
528 * function.c (instantiate_virtual_regs ): Likewise.
529 (prepare_function_start): Likewise.
530 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
531 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
532 * config/arm/arm.c (arm_expand_prologue): Likewise.
533 (thumb1_expand_prologue): Likewise.
534 * config/avr/avr.c (expand_prologue): Likewise.
535 * config/i386/i386.c (ix86_expand_prologue): Likewise.
536 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
537 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
538 * config/mips/mips.c (mips_expand_prologue): Likewise.
539 * config/pa/pa.c (hppa_expand_prologue): Likewise.
540 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
541 * config/s390/s390.c (s390_emit_prologue): Likewise.
542 * config/sh/sh.c (sh_expand_prologue): Likewise.
543 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
544 * config/spu/spu.c (spu_expand_prologue): Likewise.
545
546 2011-05-25 Richard Guenther <rguenther@suse.de>
547
548 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
549 (gimple_canonical_types_compatible_p): Likewise.
550
551 2011-05-25 Jan Hubicka <jh@suse.cz>
552
553 PR middle-end/49062
554 * ipa.c (function_and_variable_visibility): Only add to same
555 comdat group list if DECL_ONE_ONLY.
556
557 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
558
559 PR rtl-optimization/49014
560 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
561
562 2011-05-25 Jakub Jelinek <jakub@redhat.com>
563
564 PR target/49128
565 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
566
567 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
568
569 PR rtl-optimization/48757
570 * ira-build.c (loop_with_eh_edge_p): Rename to
571 loop_with_complex_edge_p, check edges on complexity, make function
572 conditional.
573 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
574 conditional.
575
576 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
577
578 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
579 force flag_ira_share_save_slots to 0.
580
581 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
582
583 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
584 (vt_initialize): Set PROLOGUE_BB unconditionally.
585 Add block comment about CFA_BASE_RTX machinery.
586 Reset FP_CFA_OFFSET to -1 on all invalid paths.
587 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
588
589 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
590
591 PR objc/48187
592 * c-parser.c (c_parser_objc_class_instance_variables): More robust
593 parsing of syntax error in ObjC instance variable lists. In
594 particular, avoid an infinite loop if there is a stray ']'.
595 Updated error message.
596
597 2011-05-24 Ian Lance Taylor <iant@google.com>
598
599 * godump.c (go_define): Don't accept a string immediately after
600 another operand.
601
602 2011-05-24 Ian Lance Taylor <iant@google.com>
603
604 * godump.c (struct godump_container): Add invalid_hash field.
605 (go_format_type): Return false if type is found in invalid_hash.
606 (go_output_typedef): Add invalid type to invalid_hash.
607 (go_finish): Create and delete invalid_hash.
608
609 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
610
611 PR tree-optimization/46728
612 * tree-ssa-math-opts.c (powi_table): New.
613 (powi_lookup_cost): New.
614 (powi_cost): New.
615 (powi_as_mults_1): New.
616 (powi_as_mults): New.
617 (gimple_expand_builtin_powi): New.
618 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
619 (gate_cse_sincos): Remove sincos/cexp restriction.
620
621 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
622
623 PR target/3746
624 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
625 mips-tdump native.
626 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
627 * mips-tdump.c: Likewise.
628
629 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
630
631 PR target/49128
632 * config/i386/driver-i386.c (host_detect_local_cpu): Always
633 add -mno-XXX. Handle FMA.
634
635 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
636
637 PR rtl-optimization/48633
638 * ira-build.c (loop_with_eh_edge_p): New function.
639 (mark_loops_for_removal): Use it.
640
641 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
642
643 PR rtl-optimization/48971
644 * ira.c (setup_pressure_classes): Don't check register move cost
645 for classes with one registers. Don't add pressure class if there
646 is a pressure class with the same available hard registers.
647 Check contains_reg_of_mode. Fix a typo in collecting
648 temp_hard_regset. Ignore hard registers not belonging to a class.
649
650 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
651
652 PR target/49133
653 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
654
655 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
656 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
657
658 PR gcov-profile/48845
659 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
660
661 2011-05-24 Richard Guenther <rguenther@suse.de>
662
663 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
664 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
665 (gimple_types_compatible_p_1): Adjust.
666 (iterative_hash_canonical_type): Do not bother about complete vs.
667 incomplete types.
668 (gimple_canonical_types_compatible_p): Likewise.
669
670 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
671
672 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
673
674 2011-05-24 Richard Guenther <rguenther@suse.de>
675
676 PR bootstrap/49078
677 * gimple.c (gimple_register_canonical_type): Revert
678 previous change.
679 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
680 does not for a tree for the case where it matters. Cache
681 pointer-type alias-sets.
682
683 2011-05-24 Joseph Myers <joseph@codesourcery.com>
684
685 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
686 (OBJS): Remove options.o, opts-common.o and prefix.o.
687 (OBJS-libcommon-target): New.
688 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
689 (BACKEND): Include libcommon-target.a.
690 (MOSTLYCLEANFILES): Include libcommon-target.a.
691 (libcommon-target.a): New.
692 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
693 prefix.o.
694
695 2011-05-23 Joseph Myers <joseph@codesourcery.com>
696
697 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
698 parts of output shared with the driver.
699 * optc-gen.awk: Don't generate parts of output not shared with the
700 driver.
701 * opth-gen.awk: Remove GCC_DRIVER conditionals.
702 * doc/options.texi (SourcerInclude): Mention options-save.c.
703 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
704 (OBJS): Add options-save.o.
705 (options-save.c, options-save.o): New.
706 (options.o): Update dependencies.
707 (gcc-options.o): Remove.
708 (mostlyclean): Remove options-save.c.
709
710 2011-05-23 Jakub Jelinek <jakub@redhat.com>
711
712 PR debug/49032
713 * dbxout.c: Include cgraph.h.
714 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
715 and without value expr, return NULL if no varpool node exists for
716 it or if it is not needed.
717 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
718
719 PR c/49120
720 * c-decl.c (start_decl): Convert expr to void_type_node.
721
722 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
723
724 PR rtl-optimization/48826
725 * emit-rtl.c (try_split): When splitting a call that is followed
726 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
727
728 2011-05-23 Jakub Jelinek <jakub@redhat.com>
729
730 * cfgexpand.c (expand_debug_expr): For unused non-addressable
731 parameters passed in memory prefer using DECL_INCOMING_RTL over
732 the pseudos it will be copied into.
733
734 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
735
736 PR target/47315
737 * config/i386/i386.c (ix86_option_override_internal): Save the
738 initial options after checking vzeroupper.
739
740 2011-05-23 David Li <davidxl@google.com>
741
742 PR tree-optimization/48988
743 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
744 Initialize has_valid_pred for each pred chain.
745
746 2011-05-23 Richard Guenther <rguenther@suse.de>
747
748 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
749 (iterative_hash_gimple_type): Always hash type names.
750
751 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
752
753 * c-typeck.c (build_function_call_vec): Tweak call to
754 check_function_arguments.
755
756 2011-05-23 Richard Guenther <rguenther@suse.de>
757
758 PR tree-optimization/49115
759 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
760 is not necessarily carried out, do not claim it kills the ref.
761 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
762
763 2011-05-23 Richard Guenther <rguenther@suse.de>
764
765 PR middle-end/15419
766 * builtins.c (fold_builtin_memory_op): Be less restrictive about
767 what pointer types we accept for folding.
768
769 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
770
771 * gthr-gnat.c: Remove.
772 * gthr-gnat.h: Remove.
773 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
774 * config/t-freebsd (LIB2ADDEH): Likewise.
775 * config/t-linux (LIB2ADDEH): Likewise.
776 * config/t-sol2 (LIB2ADDEH): Likewise.
777 * config/ia64/t-vms (LIB2ADDEH): Likewise.
778 * configure.ac (target_thread_file): Remove gnat handling.
779 * configure: Regenerate.
780 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
781
782 2011-05-23 Tristan Gingold <gingold@adacore.com>
783 Eric Botcazou <ebotcazou@adacore.com>
784
785 * gcov.c (create_file_names): If no object directory is specified,
786 keep the directory of the file.
787
788 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
789
790 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
791 * configure: Regenerate.
792
793 2011-05-23 Jakub Jelinek <jakub@redhat.com>
794
795 PR middle-end/48973
796 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
797 failed and the comparison has a single bit signed type, use
798 constm1_rtx instead of const1_rtx for true value.
799 (do_store_flag): If ops->type is single bit signed type, disable
800 signel bit test optimization and pass -1 instead of 1 as last
801 parameter to emit_store_flag_force.
802
803 2011-05-23 Tom de Vries <tom@codesourcery.com>
804
805 PR target/45098
806 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
807 function.
808 (infer_loop_bounds_from_undefined): Use new function.
809
810 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
811
812 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
813 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
814 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
815 and -O0 otherwise.
816 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
817
818 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
819
820 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
821 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
822 returns true.
823
824 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
825
826 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
827
828 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
829
830 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
831 UNSPEC_MOVE_PIC pattern.
832
833 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
834
835 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
836 (sparc-*-rtems*): Likewise.
837 (sparc64-*-elf*): Likewise.
838 (sparc64-*-rtems*): Likewise.
839 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
840 * config/sparc/t-crtin: New file.
841 * config/sparc/t-sol2 (crti.o): Delete rule.
842 (crtn.o): Likewise.
843 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
844 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
845 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
846 (ENDFILE_SPEC): Add crtn.o.
847
848 2011-05-22 Tom de Vries <tom@codesourcery.com>
849
850 PR middle-end/48689
851 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
852 CODE_CONTAINS_STRUCT (TS_COMMON).
853
854 2011-05-22 Jakub Jelinek <jakub@redhat.com>
855
856 PR middle-end/49029
857 * expmed.c (extract_fixed_bit_field): Test whether target can be used
858 only after deciding which mode to use.
859
860 2011-05-22 Tom de Vries <tom@codesourcery.com>
861
862 PR target/45098
863 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
864 for call to get_shiftadd_cost.
865
866 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
867
868 PR target/49104
869 * config/i386/cpuid.h (bit_MMXEXT): New define.
870
871 2011-05-22 Nick Clifton <nickc@redhat.com>
872
873 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
874 initialisation of non-existant args[2] element. Use args[] array
875 not arg[] array to pass arguments to build_function_type_list.
876
877 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
878
879 PR tree-optimization/49087
880 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
881
882 2011-05-21 Jason Merrill <jason@redhat.com>
883
884 PR c++/49092
885 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
886 static storage duration.
887
888 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
889
890 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
891 frame pointer.
892
893 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
894
895 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
896 false if there are call-saved registers here...
897 (sparc_can_use_return_insn_p): ...but here instead.
898 (save_or_restore_regs): Fix thinko.
899 (sparc_expand_prologue): Use current_function_is_leaf.
900 (sparc_frame_pointer_required): Likewise.
901
902 2011-05-21 Nick Clifton <nickc@redhat.com>
903
904 PR target/49098
905 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
906
907 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
908
909 * gengtype.c (walk_type): Implemented "atomic" GTY option.
910 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
911
912 2011-05-21 Joseph Myers <joseph@codesourcery.com>
913
914 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
915 * optc-gen.awk: Move common code to opt-read.awk.
916 * opth-gen.awk: Likewise.
917 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
918
919 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
920
921 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
922
923 2011-05-20 Tom de Vries <tom@codesourcery.com>
924
925 PR target/45098
926 * tree-ssa-loop-ivopts.c: Include expmed.h.
927 (get_shiftadd_cost): New function.
928 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
929
930 2011-05-20 Jakub Jelinek <jakub@redhat.com>
931
932 PR bootstrap/49086
933 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
934 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
935
936 2011-05-20 Joseph Myers <joseph@codesourcery.com>
937
938 * Makefile.in: Update comment referring to $(OBJS-common).
939
940 2011-05-20 Ian Lance Taylor <iant@google.com>
941
942 * godump.c (go_output_typedef): Put enum constants in the macro
943 hash table to avoid duplicate Go const definitions.
944
945 2011-05-20 Joseph Myers <joseph@codesourcery.com>
946
947 * Makefile.in (LIBDEPS): Add libcommon.a.
948 (LIBS): Likewise.
949 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
950 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
951 pretty-print.o and version.o.
952 (OBJS-libcommon): New.
953 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
954 (BACKEND): Add libcommon.a.
955 (MOSTLYCLEANFILES): Likewise.
956 (libcommon.a): New.
957 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
958 (cpp$(exeext)): Likewise.
959 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
960 pretty-print.o and input.o.
961 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
962 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
963 (errors.o): Remove.
964 (mips-tfile): Don't explicitly use version.o.
965 (mips-tdump): Likewise.
966 (gcov.o): Depend on $(DIAGNOSTIC_H).
967 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
968 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
969 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
970 * gcov-dump.c: Include intl.h and diagnostic.h.
971 (main): Initialize diagnostics.
972 * gcov.c: Include diagnostic.h.
973 (fnotice): Remove.
974 (main): Initialize diagnostics.
975 * lto-wrapper.c: Include diagnostic.h.
976 (main): Initialize diagnostics.
977
978 2011-05-20 Michael Matz <matz@suse.de>
979
980 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
981
982 2011-05-20 Michael Matz <matz@suse.de>
983 Richard Guenther <rguenther@suse.de>
984
985 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
986 use lto_streamer_cache_append directly instead of returning a VEC.
987 (preload_common_node): Remove.
988 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
989 track seen nodes.
990 (lto_streamer_cache_create): Call lto_preload_common_nodes.
991
992 2011-05-20 Richard Guenther <rguenther@suse.de>
993
994 PR tree-optimization/49079
995 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
996 MEM_REFs correctly for the trailing array access detection.
997 Special case constants the same way as decls for overall size
998 constraining.
999
1000 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1001
1002 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1003 argument expansion.
1004
1005 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1006
1007 PR tree-optimization/49073
1008 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1009 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1010 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1011
1012 2011-05-20 Richard Guenther <rguenther@suse.de>
1013
1014 PR middle-end/48849
1015 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1016 of pointer types the same way the middle-end does.
1017
1018 2011-05-20 Richard Guenther <rguenther@suse.de>
1019
1020 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1021 or pointer-to chains. Delay all fixup to uniquify_nodes.
1022
1023 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1024
1025 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1026 (fma4_fmaddsub): Likewise
1027
1028 2011-05-19 Jan Hubicka <jh@suse.cz>
1029
1030 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1031 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1032 (type_pair_cache): New static var.
1033 (lookup_type_pair): Use fixed sized custom hash; make inline.
1034 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1035 calls of lookup_type_pair.
1036 (print_gimple_types_stats): Remove cache stats.
1037 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1038 and gtc_ob.
1039
1040 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1041
1042 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1043 when TARGET_RDRND is active.
1044 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1045 Generate dummy SImode target register when target is NULL.
1046
1047 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1048
1049 * config/arm/arm-fpus.def: New.
1050 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1051 arm-fpus.def.
1052 * config/arm/arm-tables.opt: Regenerate.
1053 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1054 (arm_option_override): Don't decode FPU name to string here.
1055 * config/arm/arm.opt (mfpu=): Use Enum.
1056 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1057 Update dependencies.
1058
1059 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1060
1061 * collect2.c: Include diagnostic.h.
1062 (fatal_perror, fatal, error, fancy_abort): Remove.
1063 (main): Set progname. Call xmalloc_set_program_name and
1064 diagnostic_initialize.
1065 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1066 scan_libraries, resolve_lib_name): Call fatal_error instead of
1067 fatal and fatal_perror.
1068 * collect2.h (error, fatal, fatal_perror): Don't declare.
1069 * tlink.c: Include diagnostic-core.h.
1070 (recompile_files): Call fatal_error instead of fatal_perror.
1071 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1072 pretty-print.o and input.o.
1073 (collect2.o, tlink.o): Update dependencies.
1074
1075 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1076
1077 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1078
1079 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1080
1081 PR target/40483
1082 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1083 COMDAT group syntax, both SPARC and x86 variants.
1084 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1085 * configure: Regenerate.
1086 * config/sol2.h (TARGET_SOLARIS): Define.
1087 (PUSHSECTION_FORMAT): Remove.
1088 (SECTION_NAME_FORMAT): Define.
1089 * config/sol2.c: Include hashtab.h.
1090 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1091 expansion, using SECTION_NAME_FORMAT.
1092 (solaris_comdat_htab): New variable.
1093 (struct comdat_entry): Define.
1094 (comdat_hash): New function.
1095 (comdat_eq): New function.
1096 (solaris_elf_asm_comdat_section): New function.
1097 (solaris_define_comdat_signature): New function.
1098 (solaris_code_end): New function.
1099 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1100 (solaris_code_end): Declare.
1101 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1102 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1103 solaris_code_end.
1104 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1105 Remove ATTRIBUTE_UNUSED.
1106 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1107 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1108 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1109 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1110 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1111 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1112 (PUSHSECTION_FORMAT): Remove.
1113 (SECTION_NAME_FORMAT): Redefine.
1114
1115 2011-05-19 Kai Tietz <ktietz@redhat.com>
1116
1117 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1118 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1119 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1120
1121 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1122 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1123
1124 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1125
1126 2011-05-19 Richard Guenther <rguenther@suse.de>
1127
1128 PR middle-end/48985
1129 * tree-object-size.c (addr_object_size): If the pointed-to
1130 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1131
1132 2011-05-19 Richard Guenther <rguenther@suse.de>
1133
1134 * gimple.c (gimple_types_compatible_p_1): Compare names of
1135 the types themselves.
1136 (iterative_hash_gimple_type): And hash them that way.
1137 (gimple_register_type_1): If we register a main variant properly
1138 initialize the leader to ourselves.
1139
1140 2011-05-19 Tom de Vries <tom@codesourcery.com>
1141
1142 PR target/45098
1143 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1144 get_loop_invariant_expr_id.
1145 (get_loop_invariant_expr_id): Use get_expr_id.
1146 (parm_decl_cost): New function.
1147 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1148 Improve bound cost estimation. Use different inv_expr_id for elim and
1149 express cases.
1150
1151 2011-05-19 Tom de Vries <tom@codesourcery.com>
1152
1153 PR target/45098
1154 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1155 cost_base.cost == 0.
1156
1157 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1158
1159 PR target/49002
1160 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1161 Properly handle load cast.
1162
1163 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1164
1165 PR tree-optimization/49039
1166 * tree-vrp.c (extract_range_from_binary_expr): For
1167 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1168 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1169
1170 2011-05-18 Tom de Vries <tom@codesourcery.com>
1171
1172 PR target/45098
1173 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1174
1175 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1176
1177 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1178 (*tls_global_dynamic_64): Ditto.
1179 (*tls_local_dynamic_base_32_gnu): Ditto.
1180 (*tls_local_dynamic_base_64): Ditto.
1181 (tls_initial_exec_64_sun): Ditto.
1182
1183 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1184
1185 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1186 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1187 bf592-none.
1188 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1189 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1190 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1191 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1192 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1193 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1194 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1195
1196 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1197
1198 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1199 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1200 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1201 target_thread_pointer, arm_structure_size_boundary, struct
1202 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1203 struct abi_name, arm_all_abis): Remove.
1204 (arm_option_override) Don't process most enumerated option values here.
1205 Don't process target_fpe_name here. Work with integer not string for
1206 structure size boundary; use separate diagnostics for each case.
1207 * config/arm/arm.h (enum float_abi_type, enum
1208 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1209 to arm-opts.h.
1210 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1211 arm_structure_size_boundary): Remove.
1212 * config/arm/arm.opt (mabi=): Use Enum and Init.
1213 (arm_abi_type): New Enum and EnumValue entries.
1214 (mfloat-abi=): Use Enum and Init.
1215 (float_abi_type): New Enum and EnumValue entries.
1216 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1217 (mfp16-format=): Use Enum and Init.
1218 (arm_fp16_format_type): New Enum and EnumValue entries.
1219 (mstructure-size-boundary=): Use UInteger and Init.
1220 (mtp=): Use Enum and Init.
1221 (arm_tp_type): New Enum and EnumValue entries.
1222
1223 2011-05-18 Richard Guenther <rguenther@suse.de>
1224
1225 PR tree-optimization/49018
1226 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1227 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1228 gimple_has_side_effects.
1229
1230 2011-05-18 Richard Guenther <rguenther@suse.de>
1231
1232 * gimple.c (gimple_register_type_1): New function, split out from ...
1233 (gimple_register_type): ... here. Avoid infinite recursion.
1234
1235 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1236
1237 PR tree-optimization/41881
1238 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1239 reduction_chains along with a macro for its access.
1240 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1241 (destroy_loop_vec_info): Free reduction chains.
1242 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1243 (vect_is_slp_reduction): New function.
1244 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1245 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1246 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1247 definition types for reduction chains.
1248 (vect_supported_load_permutation_p): Don't allow permutations for
1249 reduction chains.
1250 (vect_analyze_slp_instance): Support reduction chains.
1251 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1252 (vect_get_constant_vectors): Handle reduction chains.
1253 (vect_schedule_slp_instance): Mark the first statement of the
1254 reduction chain as reduction.
1255
1256 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1257
1258 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1259 names for group elements access.
1260 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1261 reduction chains as well. Remove data reference and interleaving
1262 related words from the fields names.
1263 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1264 elements access.
1265 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1266 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1267 vect_update_interleaving_chain, vect_same_range_drs,
1268 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1269 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1270 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1271 vect_analyze_group_access, vect_analyze_data_ref_access,
1272 vect_create_data_ref_ptr, vect_transform_strided_load,
1273 vect_record_strided_load_vectors): Likewise.
1274 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1275 vect_model_load_cost, vectorizable_store, vectorizable_load,
1276 vect_remove_stores, new_stmt_vec_info): Likewise.
1277 * tree-vect-slp.c (vect_build_slp_tree,
1278 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1279
1280 2011-05-18 Richard Guenther <rguenther@suse.de>
1281
1282 PR middle-end/48989
1283 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1284 operand verification.
1285 (verify_gimple_assign_binary): Likewise.
1286 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1287 to non-1-precision BOOLEAN_TYPEs.
1288
1289 2011-05-18 Tom de Vries <tom@codesourcery.com>
1290
1291 PR target/45098
1292 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1293
1294 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1295
1296 PR tree-optimization/49000
1297 * tree-ssa.c (execute_update_addresses_taken): Call
1298 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1299 be rewritten and decl has been marked for renaming, reset
1300 the debug stmt.
1301
1302 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1303
1304 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1305 enum_opts_set when testing if attributes have set -mfpmath=.
1306
1307 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1308
1309 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1310
1311 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1312
1313 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1314 info->entry with 0
1315 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1316 id.transform_lang_insert_block with NULL.
1317
1318 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1319
1320 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1321 (output_fp_compare): Change args 3 and 4 to bool.
1322 (ix86_expand_call): Change arg 6 to bool.
1323 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1324 (ix86_attr_length_vex_default): Change arg 3 to bool.
1325 * config/i386/i386.md: Update all uses.
1326 * config/i386/i386.c: Ditto.
1327 (ix86_flags_dependent): Change return type to bool.
1328
1329 2011-05-17 Richard Guenther <rguenther@suse.de>
1330
1331 * gimple.c (type_hash_pair_compare): Fix comparison.
1332
1333 2011-05-17 Richard Guenther <rguenther@suse.de>
1334
1335 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1336 case some more, fix final hash value of the non-singleton case.
1337
1338 2011-05-17 Richard Guenther <rguenther@suse.de>
1339
1340 PR bootstrap/49013
1341 Revert
1342 2011-05-16 Richard Guenther <rguenther@suse.de>
1343
1344 * gimple.c (gimple_types_compatible_p_1): Use names of the
1345 type itself, not its main variant.
1346 (iterative_hash_gimple_type): Likewise.
1347
1348 2011-05-17 Richard Guenther <rguenther@suse.de>
1349
1350 * gimple.c (gimple_register_canonical_type): Use the main-variant
1351 leader for computing the canonical type.
1352
1353 2011-05-17 Nick Clifton <nickc@redhat.com>
1354
1355 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1356 moves.
1357
1358 * config/rx/rx.md: Add peephole to remove redundant extensions
1359 after loads.
1360 (bitset_in_memory): Use rx_restricted_mem_operand.
1361 (bitinvert_in_memory): Likewise.
1362 (bitclr_in_memory): Likewise.
1363
1364 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1365 Nick Clifton <nickc@redhat.com>
1366
1367 * config/rx/rx.md: Add peepholes to match a register move followed
1368 by a comparison of the moved register. Replace these with an
1369 addition of zero that does both actions in one instruction.
1370
1371 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1372
1373 PR target/48986
1374 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1375 predicate to allow CONST_INT.
1376 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1377
1378 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1379
1380 * opts-common.c (opt_enum_arg_to_value): New.
1381 * opts.h (opt_enum_arg_to_value): Declare.
1382 * config/i386/i386.opt (fpmath): Remove.
1383 (mfpmath=): Use Enum, Init and Save.
1384 (fpmath_unit): New Enum and EnumValue entries.
1385 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1386 name for function fpmath state.
1387 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1388 * config/i386/i386.c: Include diagnostic.h.
1389 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1390 (ix86_target_string): Take enum fpmath_unit value instead of string.
1391 (ix86_debug_options): Update call to ix86_target_string.
1392 (ix86_option_override_internal): Don't process fpmath strings here.
1393 (x86_function_specific_save, ix86_function_specific_restore):
1394 Don't handle fpmath state specially.
1395 (ix86_function_specific_print): Pass fpmath state to
1396 ix86_target_string instead of printing in this function.
1397 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1398 Handle enum attributes.
1399 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1400 (ix86_valid_target_attribute_tree): Update option_strings
1401 handling. Handle fpmath as enum option.
1402 (ix86_can_inline_p): Update field names for function fpmath state.
1403 (ix86_expand_builtin): Update call to ix86_target_string.
1404 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1405 (ix86_fpmath): Remove.
1406 * config/i386/t-i386 (i386.o): Update dependencies.
1407
1408 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1409
1410 PR preprocessor/48677
1411 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1412 from decoded_options[0], not from itself.
1413
1414 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1415
1416 * config/i386/constraints.md (z): New constraint.
1417 * config/i386/i386.c (c): New mode attribute.
1418 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1419 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1420 constraint for operand 0.
1421 (*call_vzeroupper): Ditto.
1422 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1423 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1424 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1425 Use "lzm" constraint for operand 0.
1426 (*call_pop_vzeroupper): Ditto.
1427 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1428 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1429 constraint for operand 0.
1430 (*sibcall_vzeroupper): Ditto.
1431 (*sibcall_rex64_ms_sysv): Ditto.
1432 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1433 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1434 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1435 (*sibcall_pop_vzeroupper): Ditto.
1436 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1437 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1438 mode iterator. Use "<c>zm" constraint for operand 1.
1439 (*call_value_vzeroupper): Ditto.
1440 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1441 for operand 1.
1442 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1443 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1444 *call_value_pop_1. Use "lzm" constraint for operand 1.
1445 (*call_value_pop_vzeroupper): Ditto.
1446 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1447 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1448 mode iterator. Use "Uz" constraint for operand 1.
1449 (*sibcall_value_vzeroupper): Ditto.
1450 (*sibcall_value_rex64_ms_sysv): Ditto.
1451 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1452 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1453 constraint for operand 1.
1454 (*sibcall_value_pop_vzeroupper): Ditto.
1455 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1456 and "z" constraint for operand 2.
1457 (*tls_global_dynamic_32_gnu): Ditto.
1458 (*tls_local_dynamic_base_32_gnu): Ditto.
1459 (*tls_local_dynamic_base_64): Ditto.
1460 (*tls_local_dynamic_32_once): Ditto.
1461 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1462 Update all callers.
1463 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1464
1465 2011-05-16 Richard Guenther <rguenther@suse.de>
1466
1467 * gimple.c (gimple_types_compatible_p_1): Use names of the
1468 type itself, not its main variant.
1469 (iterative_hash_gimple_type): Likewise.
1470
1471 2011-05-16 Richard Guenther <rguenther@suse.de>
1472
1473 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1474 always visit pointer target and function result and argument types.
1475
1476 2011-05-16 Jason Merrill <jason@redhat.com>
1477
1478 PR c++/48999
1479 * tree-inline.c (copy_statement_list): Put back recursion.
1480
1481 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1482
1483 PR target/27663
1484 PR target/41076
1485 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1486 * config/avr/avr.md ("*ior<mode>qi.byte0",
1487 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1488
1489 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1490
1491 PR target/45099
1492 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1493 register is needed for a function argument.
1494
1495 2011-05-16 Richard Guenther <rguenther@suse.de>
1496
1497 * gimple.c (struct type_hash_pair): New type.
1498 (type_hash_pair_compare): New function.
1499 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1500
1501 2011-05-16 Revital Eres <revital.eres@linaro.org>
1502
1503 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1504
1505 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1506
1507 * config/i386/i386.md (floating point move splitters): Fix
1508 usage of standard_80387_constant_p.
1509 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1510
1511 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1512
1513 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1514
1515 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1516
1517 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1518 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1519 (tree_ssa_lim_finalize): Likewise.
1520
1521 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1522
1523 * config/i386/constraint.md (Yd, Yx): New register constraints.
1524 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1525 Yd conditional register constraint.
1526 (*movtf_internal): Use standard_sse_constant_opcode.
1527 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1528 Yx conditional register constraint.
1529 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1530 Yd conditional register constraint. Use standard_sse_constant_p to
1531 check for valid SSE constants and call standard_sse_constant_opcode to
1532 output SSE insn.
1533 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1534 constants and call standard_sse_constant_opcode to output SSE insn.
1535 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1536 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1537 optimize_size is set.
1538 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1539
1540 2011-05-14 Tobias Burnus <burnus@net-b.de>
1541
1542 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1543
1544 2011-05-13 Martin Jambor <mjambor@suse.cz>
1545
1546 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1547 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1548 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1549 (evaluate_conditions_for_ipcp_clone): Removed.
1550 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1551 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1552 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1553
1554 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1555
1556 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1557 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1558 lieu of MAY_HAVE_DEBUG_STMTS.
1559 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1560 debug statements if !MAY_HAVE_DEBUG_STMTS.
1561
1562 2011-05-13 Martin Thuresson <martint@google.com>
1563
1564 PR gcov-profile/47793
1565 * libgcov.c (gcov_exit): Support relative profile paths.
1566 * doc/invoke.texi (-fprofile-dir): Update for above change.
1567
1568 2011-05-13 Richard Guenther <rguenther@suse.de>
1569
1570 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1571 type-pair caching, do not compare hashes.
1572
1573 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1574
1575 PR middle-end/48965
1576 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1577 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1578
1579 2011-05-13 Kai Tietz <ktietz@redhat.com>
1580
1581 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1582 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1583 compatible type for TRUTH_NOT_EXPR.
1584
1585 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1586
1587 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1588 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1589 can_create_pseudo_p ().
1590
1591 2011-05-13 Richard Guenther <rguenther@suse.de>
1592
1593 PR lto/48978
1594 * gimple.c (iterative_hash_gimple_type): Revert change in
1595 pointer target and function result and argument hashing.
1596
1597 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1598
1599 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1600 (*movxf_internal_nointeger): Ditto.
1601 (*movdf_internal_rex64): Ditto.
1602 (*movdf_internal): Ditto.
1603 (*movdf_internal_nointeger): Ditto.
1604 (*movsf_internal): Ditto.
1605 (sincos splitters): Use can_create_pseudo ().
1606
1607 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1608
1609 * config/i386/i386-opts.h: New.
1610 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1611 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1612 ix86_section_threshold): Remove.
1613 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1614 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1615 OPT_mbranch_cost_.
1616 (ix86_option_override_internal): Don't decode strings for options
1617 other than -march=, -mtune= and -mfpmath=. Don't allow for
1618 __attribute__ uses in remaining diagnostics for options with
1619 string arguments. Don't check for integer arguments being negative.
1620 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1621 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1622 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1623 ix86_branch_cost, ix86_section_threshold): Remove.
1624 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1625 HeaderInclude.
1626 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1627 but not Var.
1628 (masm=): Use Enum and Init.
1629 (asm_dialect): New Enum and EnumValue entries.
1630 (mbranch-cost=): Use UInteger.
1631 (mlarge-data-threshold=): Use UInteger and Init.
1632 (mcmodel=): Use Enum and Init.
1633 (cmodel): New Enum and EnumValue entries.
1634 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1635 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1636 mregparm=): Use UInteger.
1637 (mstringop-strategy=): Use Enum and Init.
1638 (stringop_alg): New Enum and EnumValue entries.
1639 (mtls-dialect=): Use Enum and Init.
1640 (tls_dialect): New Enum and EnumValue entries.
1641 (mabi=): Use Enum and Init.
1642 (calling_abi): New Enum and EnumValue entries.
1643 (mveclibabi=): Use Enum and Init.
1644 (ix86_veclibabi): New Enum and EnumValue entries.
1645
1646 2011-05-13 Nick Clifton <nickc@redhat.com>
1647
1648 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1649 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1650
1651 2011-05-13 Kai Tietz <ktietz@redhat.com>
1652
1653 PR middle-end/48984
1654 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1655 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1656 (gimple_boolify): Check for cast for boolean_type_node instead for
1657 BOOLEAN_TYPE.
1658
1659 2011-05-13 Richard Guenther <rguenther@suse.de>
1660
1661 PR tree-optimization/48172
1662 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1663 multiplying by number of iterations for equal step.
1664 (vect_create_cond_for_alias_checks): Likewise.
1665
1666 2011-05-13 Andreas Schwab <schwab@redhat.com>
1667
1668 * configure.ac: Use AS_HELP_STRING throughout.
1669 * configure: Regenerate.
1670
1671 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1672
1673 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1674 (ix86_emit_restore_regs_using_mov): Likewise.
1675 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1676
1677 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1678
1679 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1680 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1681 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1682 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1683 RTX_OK_FOR_OLO10_P): ...here.
1684 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1685 SYMBOLIC_CONST.
1686
1687 2011-05-12 Kai Tietz <ktietz@redhat.com>
1688
1689 * gimplify.c (gimple_boolify): Re-boolify expression
1690 arguments even if expression type is of kind BOOLEAN_TYPE.
1691 (gimplify_boolean_expr): Removed.
1692 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1693 and XOR. Additional take care that we keep expression's type.
1694 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1695 of TRUTH_AND|OR|XOR_EXPR.
1696
1697 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1698
1699 PR tree-optimization/48975
1700 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1701 on all bbs here and free and clear ifc_bbs at the end.
1702
1703 2011-05-12 Richard Guenther <rguenther@suse.de>
1704
1705 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1706 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1707 until after simple checks.
1708 (gimple_types_compatible_p): Likewise.
1709 (iterative_hash_gimple_type): Always hash pointer targets
1710 and function return and argument types.
1711 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1712 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1713 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1714 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1715 completely in the simple compare section.
1716 (gimple_register_canonical_type): Query the cache again after
1717 registering.
1718
1719 2011-05-12 Richard Guenther <rguenther@suse.de>
1720
1721 PR tree-optimization/48172
1722 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1723 the number of iterations from the segment size calculation.
1724 (vect_create_cond_for_alias_checks): Adjust.
1725
1726 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1727
1728 PR debug/48967
1729 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1730 if validate_subreg fails.
1731
1732 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1733
1734 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1735 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1736 early.
1737
1738 2011-05-12 DJ Delorie <dj@redhat.com>
1739
1740 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1741 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1742 created builtin into rx_builtins array.
1743 (rx_builtin_decl): New function.
1744 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1745
1746 2011-05-12 DJ Delorie <dj@redhat.com>
1747 Nick Clifton <nickc@redhat.com>
1748
1749 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1750 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1751 (rx_is_legitimate_address): Add pre-decrement and post-increment
1752 addressing in HImode and QImode. Fix test for out of range
1753 REG+INT addressing.
1754 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1755 (rx_align_for_label): Test label before extracting its usage count.
1756 (rx_adjust_insn_lengths): Fix selection of insn codes.
1757 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1758
1759 2011-05-11 Jason Merrill <jason@redhat.com>
1760
1761 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1762
1763 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1764
1765 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1766 reindent the subsequent block.
1767
1768 2011-05-11 Satoru Takabayashi <satorux@google.com>
1769 Paul Pluzhnikov <ppluzhnikov@google.com>
1770
1771 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1772 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1773 * config.in: Add LINKER_HASH_STYLE.
1774 * configure.ac: Add --with-linker-hash-style.
1775 * configure: Regenerate.
1776
1777 2011-05-11 Richard Guenther <rguenther@suse.de>
1778
1779 PR middle-end/48964
1780 * gimple.c (iterative_hash_canonical_type): Fix typo.
1781
1782 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1783
1784 * config/i386/i386.c (legitimize_tls_address)
1785 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1786 expanders directly for TARGET_GNU2_TLS. Determine pic and
1787 __tls_get_addr symbol reference here. Update call to
1788 gen_tls_global_dynamic_{32,64} for added arguments.
1789 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1790 expanders directly for TARGET_GNU2_TLS. Determine
1791 __tls_get_addr symbol reference here. Update call to
1792 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1793 unique UNSPEC REG_EQUIV to libcall block.
1794 (ix86_tls_get_addr): Declare static.
1795 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1796 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1797 Do not determine pic and __tls_get_addr symbol reference here. Do not
1798 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1799 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1800 (tls_global_dynamic_64): Add operand 2. Do not determine
1801 __tls_get_addr symbol reference here. Do not call
1802 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1803 (tls_local_dynamic_base64): Ditto for operand 1.
1804
1805 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1806
1807 * function.c (expand_function_start): Initialize stack_check_probe_note
1808 only if the generic stack checking mechanism is used.
1809
1810 2011-05-11 Richard Guenther <rguenther@suse.de>
1811
1812 PR tree-optimization/15256
1813 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1814 (A & B) | C, combine (A op CST1) op CST2.
1815 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1816 visit assigns that have uses.
1817
1818 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1819
1820 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1821 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1822 (unpack_ts_type_common_value_fields): ...this. Update comment.
1823 (unpack_value_fields): Adjust for renaming.
1824 (lto_input_ts_type_tree_pointers): Split into...
1825 (lto_input_ts_type_common_tree_pointer): ...this and...
1826 (lto_input_ts_type_non_common_tree_pointers): ...this.
1827 (lto_input_tree_pointers): Adjust for above split.
1828 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1829 (pack_ts_type_common_value_fields): ...this. Update comment.
1830 (lto_output_ts_type_tree_pointers): Split into...
1831 (lto_output_ts_type_common_tree_pointers): ...this and...
1832 (lto_output_ts_type_non_common_tree_pointers): ...this.
1833 (lto_output_tree_pointers): Adjust for above split.
1834 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1835 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1836 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1837 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1838 Define.
1839 (struct tree_type): Split into...
1840 (struct tree_type_common: ...this and...
1841 (struct tree_type_with_lang_specific): ...this and...
1842 (struct tree_type_non_common): ...this. Adjust accessor macros
1843 accordingly.
1844 (TYPE_VALUES_RAW): Define.
1845 (union tree_node): Update for above changes.
1846 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1847 TS_TYPE_NON_COMMON.
1848 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1849 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1850 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1851 * treestructu.def (TS_TYPE): Remove.
1852 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1853 Define.
1854
1855 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1856
1857 PR debug/48159
1858 * tree-ssa.c (reset_debug_uses): New function.
1859 * tree-flow.h (reset_debug_uses): New prototype.
1860 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1861 * tree-loop-distribution.c (generate_loops_for_partition): Call
1862 reset_debug_uses on the stmts that will be removed. Keep around
1863 all debug stmts, don't count them as bits in partition bitmap.
1864 (generate_builtin): Don't count debug stmts or labels as bits in
1865 partition bitmap.
1866
1867 2011-05-11 Richard Guenther <rguenther@suse.de>
1868
1869 * gimple.c (gimple_type_hash_1): Merge with ...
1870 (gimple_type_hash): ... this.
1871 (gtc_visit): Remove mode parameter and simplify accordingly.
1872 (gimple_types_compatible_p_1): Likewise.
1873 (gimple_types_compatible_p): Likewise.
1874 (iterative_hash_gimple_type): Likewise.
1875 (visit): Likewise.
1876 (gimple_type_eq): Adjust.
1877
1878 2011-05-11 Revital Eres <revital.eres@linaro.org>
1879
1880 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1881 enters the branch create an anti edge in the opposite direction
1882 to prevent the creation of reg-moves.
1883 * modulo-sched.c: Adjust comment to reflect the fact we are
1884 scheduling closing branch.
1885 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1886 (stage_count): New field in struct partial_schedule.
1887 (calculate_stage_count): New function.
1888 (normalize_sched_times): Rename to reset_sched_times and handle
1889 incrementing the sched time of the nodes by a constant value
1890 passed as parameter.
1891 (duplicate_insns_of_cycles): Skip closing branch.
1892 (sms_schedule_by_order): Schedule closing branch.
1893 (ps_insn_find_column): Handle closing branch.
1894 (sms_schedule): Call reset_sched_times and adjust the code to
1895 support scheduling of the closing branch.
1896 (ps_insert_empty_row): Update calls to normalize_sched_times
1897 and rotate_partial_schedule functions.
1898
1899 2011-05-11 Richard Guenther <rguenther@suse.de>
1900
1901 PR middle-end/48953
1902 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1903
1904 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1905
1906 * opts.c (finish_options): Move warning settings from process_options.
1907 * toplev.c (process_options): Move warning settings to finish_options.
1908
1909 2011-05-11 Richard Guenther <rguenther@suse.de>
1910
1911 PR tree-optimization/18041
1912 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1913 (simplify_bitwise_binary): ... this. Handle operand conversions
1914 by applying them to the result instead.
1915 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1916
1917 2011-05-11 Richard Guenther <rguenther@suse.de>
1918
1919 * gimple.c (gimple_canonical_types_compatible_p): Split out
1920 from gimple_types_compatible_p and friends. Do not recurse
1921 to pointed-to types.
1922 (gimple_canonical_type_eq): Use it.
1923 (iterative_hash_canonical_type): Split out from
1924 iterative_hash_gimple_type and friends. Do not recurse
1925 to pointed-to types.
1926 (gimple_canonical_type_hash): Use it, allocate the hash here.
1927
1928 2011-05-11 Revital Eres <revital.eres@linaro.org>
1929
1930 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1931 recognizing doloop.
1932
1933 2011-05-11 Revital Eres <revital.eres@linaro.org>
1934
1935 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1936 instead of PREV_INSN.
1937
1938 2011-05-11 Revital Eres <revital.eres@linaro.org>
1939
1940 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1941 * loop-doloop.c (doloop_condition_get): Likewise.
1942 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1943 (doloop_end): New.
1944 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1945
1946 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1947
1948 * tree.def (CASE_LABEL_EXPR): Add an operand.
1949 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1950
1951 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1952
1953 * c-decl.c (c_override_global_bindings_to_false): Remove.
1954 (global_bindings_p): Don't check
1955 c_override_global_bindings_to_false.
1956 * c-tree.h (c_override_global_bindings_to_false): Remove.
1957 * c-typeck.c (composite_type): Don't set
1958 c_override_global_bindings_to_false.
1959
1960 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1961
1962 PR target/48857, 48495
1963 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1964 (VSX_MODE): Ditto.
1965 (VSX_MOVE_MODE): Ditto.
1966 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1967 VSX vector types. Add V2DImode.
1968 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1969 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1970 (MODES_TIEABLE_P): Ditto.
1971
1972 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1973 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1974 VSX_VECTOR_MODE.
1975 (init_cumulative_args): Ditto.
1976 (rs6000_function_arg_boundary): Ditto.
1977 (rs6000_function_arg_advance_1): Ditto.
1978 (rs6000_function_arg): Ditto.
1979 (rs6000_function_ok_for_sibcall): Ditto.
1980 (emit_frame_save): Ditto.
1981 (rs6000_function_value): Ditto.
1982 (rs6000_libcall_value): Ditto.
1983
1984 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1985
1986 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1987 i386/darwin-lib.h to $libgcc_tm_file.
1988 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1989
1990 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1991
1992 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1993
1994 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1995
1996 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1997 * config/rs6000/rs6000-tables.opt: New file (generated).
1998 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1999 rs6000/rs6000-tables.opt to extra_options.
2000 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2001 * config/rs6000/rs6000.c (rs6000_select): Remove.
2002 (processor_target_table): Move contents to rs6000-cpus.def.
2003 (darwin_rs6000_override_options): Check
2004 global_options_set.x_rs6000_cpu_index instead of
2005 rs6000_select[1].string.
2006 (rs6000_option_override_internal): Likewise.
2007 (rs6000_handle_option): Don't assert that global structures are in
2008 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2009 (rs6000_default_cpu): New variable.
2010 (rs6000_file_start): Set it instead of local default_cpu. Check
2011 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2012 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2013 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2014 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2015 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2016 rs6000_select): Remove.
2017 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2018 Remove.
2019 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2020 * config/rs6000/t-rs6000
2021 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2022 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2023 global_options_set.x_rs6000_cpu_index instead of
2024 rs6000_select[1].string.
2025 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2026 global_options_set.x_rs6000_cpu_index instead of
2027 rs6000_select[1].string.
2028
2029 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2030
2031 * config.gcc (libgcc_tm_file): Define instead of including files
2032 from ../../libgcc/config/ in tm_file.
2033 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2034 * configure: Regenerate.
2035 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2036 libgcc_tm.h, cs-libgcc_tm.h): New.
2037 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2038 (clean): Remove libgcc_tm.h.
2039 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2040 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2041 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2042
2043 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2044
2045 PR target/48896
2046 * config/avr/avr.c (avr_ret_register): Return unsigned int
2047 instead of int.
2048 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2049 it to avr_libcall_value.
2050 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2051 expand_expr.
2052 (avr_expand_binop_builtin): Ditto.
2053 (avr_expand_unop_builtin): Ditto.
2054
2055 2011-05-10 DJ Delorie <dj@redhat.com>
2056
2057 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2058 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2059 * config/rx/rx.c (rx_align_for_label): Add label and
2060 uses_threshold parameters. Do not align when the label is not
2061 used enough.
2062 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2063
2064 2011-05-10 Richard Guenther <rguenther@suse.de>
2065
2066 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2067 a series of conversions and apply foldings similar to what
2068 fold-const does.
2069 (tree_ssa_forward_propagate_single_use_vars): Call it.
2070
2071 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2072
2073 PR tree-optimization/48611
2074 PR tree-optimization/48794
2075 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2076 referenced from RESX or EH_DISPATCH arguments.
2077
2078 PR debug/48928
2079 * dfp.c (decimal_to_decnumber): Handle conversion from
2080 dconst{1,2,m1,half}.
2081
2082 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2083
2084 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2085 for !flag_prefer_avx128.
2086 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2087
2088 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2089
2090 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2091 (fold_ternary_loc): Use expr_location_or.
2092
2093 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 PR debug/48853
2096 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2097 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2098 Pmode and mem_mode is not VOIDmode.
2099
2100 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2101
2102 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2103 TYPE_QUAL_RESTRICT): Convert to enum.
2104
2105 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2106
2107 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2108 (const_pow2_1_to_8_operand): Ditto.
2109 (const_pow2_1_to_128_operand): Ditto.
2110 (const_pow2_1_to_32768_operand): Ditto.
2111 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2112 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2113 in insn constraint to check integer value of operand 3.
2114 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2115
2116 (PINSR_MODE): New mode iterator.
2117 (sse2p4_1): New mode attribute.
2118 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2119 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2120 iterator. Use const_int_operand instead of
2121 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2122 exact_log2 in insn constraint to check integer value of operand 3.
2123
2124 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2125
2126 * config/i386/sse.md (blendbits): Remove mode attribute.
2127 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2128 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2129 Check integer value of operand 3 in insn constraint.
2130
2131 2011-05-09 Richard Guenther <rguenther@suse.de>
2132
2133 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2134 for diagnostics.
2135 (lto_symtab_merge): Likewise. Do not register types here.
2136 (lto_symtab_merge_decls_2): Likewise.
2137 (lto_symtab_merge_decls_1): Likewise.
2138 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2139 * gimple.c (enum gtc_mode): Declare.
2140 (gimple_types_compatible_p): Make static.
2141
2142 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2143
2144 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2145 temporary register to match Pmode.
2146
2147 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2148
2149 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2150 and *vec_concatv4si_1_avx.
2151
2152 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2153
2154 PR rtl-optimization/48927
2155 * ira-conflicts.c (commutative_constraint_p): Use
2156 recog_data.alternative_enabled_p to disable alternatives where
2157 "enabled" attribute is false.
2158 (get_dup_num): Ditto.
2159 * ira-lives.c (single_reg_class): Ditto.
2160 (ira_implicitly_set_insn_hard_regs): Ditto.
2161
2162 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2163
2164 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2165 (dataflow_set_preserve_mem_locs): Likewise.
2166
2167 2011-05-09 Philipp Thomas <pth@suse.de>
2168
2169 * config/mep/mep.c (mep_validate_vliw): Syntax description
2170 should not be translated.
2171
2172 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2173
2174 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2175 * config/mips/mips-tables.opt: New file (generated).
2176 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2177 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2178 MIPS_ARCH_OPTION_NATIVE): Define.
2179 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2180 mips-cpus.def.
2181 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2182 mips_parse_cpu): Remove.
2183 (mips_cpu_info_from_opt, mips_default_arch): New.
2184 (mips_handle_option): Don't assert that global structures are in
2185 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2186 (mips_option_override): Use new variables and functions to set
2187 state of these options. Use strcmp to check for individual CPU names.
2188 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2189 definition.
2190 * config/mips/mips.opt (march=): Use ToLower and Enum.
2191 (mips): Use ToLower, Enum and Var.
2192 (mtune=): Use ToLower and Enum.
2193 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2194
2195 2011-05-08 Jan Hubicka <jh@suse.cz>
2196
2197 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2198 Arrange type pairs to be UID ordered.
2199 (gimple_lookup_type_leader): Make inline.
2200
2201 2011-05-09 Nick Clifton <nickc@redhat.com>
2202
2203 PR target/48899
2204 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2205 PROCESSOR_DEFAULT.
2206
2207 PR target/48897
2208 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2209 variable 's'.
2210
2211 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2212
2213 * combine.c (simplify_comparison): Abstract out parts into...
2214 (simplify_compare_const): ... new function.
2215 (try_combine): Generalize parallel arithmetic/compare combining
2216 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2217
2218 2011-05-08 Jan Hubicka <jh@suse.cz>
2219
2220 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2221 (cgraph_create_virtual_clone): Call hooks once virtual clone
2222 is finished.
2223 * cgraph.h (cgraph_clone_node): Update prototype.
2224 * ipa-cp.c (ipcp_estimate_growth): Use
2225 estimate_ipcp_clone_size_and_time.
2226 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2227 * lto-cgraph.c (input_node): Update.
2228 * ipa-inline.c (recursive_inlining): Update.
2229 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2230 (evaluate_conditions_for_known_args): Break out from ...
2231 (evaluate_conditions_for_edge): ... here.
2232 (evaluate_conditions_for_ipcp_clone): New function.
2233 (inline_node_duplication_hook): Update clone summary based
2234 on parameter map.
2235 (estimate_callee_size_and_time): Rename to ...
2236 (estimate_node_size_and_time): take NODE instead of EDGE;
2237 take POSSIBLE_TRUTHS as argument.
2238 (estimate_callee_size_and_time): Update.
2239 (estimate_ipcp_clone_size_and_time): New function.
2240 (do_estimate_edge_time): Update.
2241
2242 2011-05-08 Richard Guenther <rguenther@suse.de>
2243
2244 PR middle-end/48908
2245 PR middle-end/48905
2246 * expmed.c (expand_shift_1): Compute adjusted constant shift
2247 amount manually.
2248
2249 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2250
2251 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2252
2253 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2254
2255 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2256
2257 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2258
2259 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2260
2261 2011-05-07 Jan Hubicka <jh@suse.cz>
2262
2263 * ipa-inline-transform.c (inline_call): Account when program size
2264 decreases.
2265 * ipa-inline.c (relative_time_benefit): New function.
2266 (edge_badness): Reorganize to be power 2 based; fix thinko when
2267 computing badness for negative growth; update comments to match
2268 reality; better dumps.
2269
2270 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2271
2272 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2273 type to bool and adjust comment.
2274 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2275 (fold_mathfn_compare): Remove calls to global_bindings_p.
2276 (fold_inf_compare): Likewise.
2277 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2278 * c-tree.h (global_bindings_p): Adjust prototype.
2279 * c-decl.c (global_bindings_p): Return bool and simplify.
2280
2281 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2282
2283 PR tree-optimization/48837
2284 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2285 when accumulator transformation is performed.
2286
2287 2011-05-06 Jan Hubicka <jh@suse.cz>
2288
2289 * i386.h (ix86_tune_indices): Add
2290 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2291 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2292 * i386.c (initial_ix86_tune_features): Add
2293 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2294 (software_prefetching_beneficial_p): Remove predicate.
2295 (ix86_option_override_internal): Use new macro.
2296
2297 2011-05-06 Jan Hubicka <jh@suse.cz>
2298
2299 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2300
2301 2011-05-06 Jan Hubicka <jh@suse.cz>
2302
2303 * cgraph.c (cgraph_add_thunk): Create real function node instead
2304 of alias node; finalize it and mark needed/reachale; arrange visibility
2305 to be right and add it into the corresponding same comdat group list.
2306 (dump_cgraph_node): Dump thunks.
2307 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2308 cgraph_function_with_gimple_body_p,
2309 cgraph_first_function_with_gimple_body,
2310 cgraph_next_function_with_gimple_body): New functions.
2311 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2312 New macros.
2313 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2314 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2315 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2316 devirtualization when optimizing.
2317 (verify_cgraph_node): Verify thunks.
2318 (cgraph_analyze_function): Analyze thunks.
2319 (cgraph_mark_functions_to_output): Output thunks only in combination
2320 with function they are assigned to.
2321 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2322 alias into normal node.
2323 (assemble_thunks): New functoin.
2324 (cgraph_expand_function): Use it.
2325 * lto-cgraph.c (lto_output_node): Stream thunks.
2326 (input_overwrite_node): Stream in thunks.
2327 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2328 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2329 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2330 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2331 (inline_analyze_function): Do not care about thunk jump functions.
2332 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2333 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2334 cgraph_function_with_gimple_body_p.
2335 * passes.c (do_per_function_toporder): Use
2336 cgraph_function_with_gimple_body_p.
2337 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2338 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2339 (function_called_by_processed_nodes_p): Likewise.
2340
2341 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2342
2343 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2344 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2345 entries.
2346 (mabi=): Replace with separate entries for mabi=altivec,
2347 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2348 mabi=ieeelongdouble and mabi=ibmlongdouble.
2349 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2350 check for -mabi=spe without SPE ABI support here.
2351 (rs6000_handle_option): Replace OPT_mabi_ handling with
2352 OPT_mabi_altivec and OPT_mabi_spe handling.
2353
2354 2011-05-06 Cary Coutant <ccoutant@google.com>
2355
2356 * dwarf2out.c (contains_subprogram_definition): New function.
2357 (should_move_die_to_comdat): Call it.
2358
2359 2011-05-06 Jeff Law <law@redhat.com>
2360
2361 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2362 remove_ctrl_stmt_and_useless_edges.
2363 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2364 (fixup_template_block, thread_single_edge): Likewise.
2365 (mark_threaded_blocks): Use THREAD_TARGET.
2366
2367 2011-05-06 Alan Modra <amodra@gmail.com>
2368
2369 PR target/48900
2370 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2371 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2372
2373 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2374
2375 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2376 constraint modifier to "r".
2377
2378 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2379
2380 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2381 fall through for OPT_mcmodel_.
2382
2383 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2384
2385 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2386 instruction sizes.
2387 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2388
2389 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2390
2391 PR target/47930
2392 * config/arm/arm.opt (marm): Document it.
2393 (mthumb): Reject negative variant.
2394
2395 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2396
2397 PR target/48898
2398 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2399 Fix typo in "ccvt" variable name.
2400
2401 2011-05-06 Tristan Gingold <gingold@adacore.com>
2402
2403 PR target/48895
2404 * config/vms/vms-ar.c (main): Remove cwd variable.
2405
2406 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2407
2408 PR debug/48902
2409 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2410
2411 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2412
2413 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2414 * gimplify.c (gimplify_switch_expr): Likewise.
2415 * omp-low.c (expand_omp_sections): Likewise.
2416 * tree-eh.c (lower_try_finally_switch): Likewise.
2417 (lower_eh_dispatch): Likewise.
2418 * tree.h (build_case_label): Declare.
2419 * tree.c (build_case_label): Define.
2420
2421 2011-05-05 Jason Merrill <jason@redhat.com>
2422
2423 PR c++/40975
2424 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2425 (copy_statement_list): Don't recurse.
2426 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2427 STATEMENT_LIST.
2428
2429 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2430
2431 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2432 through from -mfpu= handling.
2433 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2434
2435 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2436
2437 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2438 POST_MODIFY.
2439
2440 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2441
2442 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2443 for 11.31.
2444 (hppa[12]*-*-hpux11*): Ditto.
2445 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2446 * config/ia64/hpux-unix2003.h: New.
2447 * config/pa/pa-hpux1131.opt: New.
2448 * config/pa/pa-hpux1131.h: New.
2449 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2450 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2451 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2452
2453 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2454
2455 PR debug/48853
2456 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2457 instead of mode as 3rd argument to recursive call.
2458 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2459 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2460 VOIDmode.
2461 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2462 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2463 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2464 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2465
2466 2011-05-05 Julian Brown <julian@codesourcery.com>
2467
2468 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2469 parenthesis in D-register case.
2470
2471 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2472
2473 * opt-functions.awk (var_type_struct): Handle Enum options.
2474 * optc-gen.awk: Don't check range of variables of character type.
2475 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2476 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2477 rs6000_sdata_name, rs6000_explicit_options): Remove.
2478 (rs6000_option_override_internal): Check for -malign-power here.
2479 Use global_options_set instead of rs6000_explicit_options.
2480 (rs6000_parse_fpu_option): Remove.
2481 (rs6000_handle_option): Access variables via opts and opts_set
2482 pointers. Use error_at and warning_at. Add fall-through
2483 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2484 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2485 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2486 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2487 here. Don't use rs6000_parse_fpu_option.
2488 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2489 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2490 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2491 (mrecip=): Use Var.
2492 (mspe): Use Var and Save.
2493 (mtraceback=): Use Enum and Var.
2494 (rs6000_traceback_type): New Enum and EnumValue entries.
2495 (mfloat-gprs=): Use Enum, Var and Save.
2496 (rs6000_float_gprs): New Enum and EnumValue entries.
2497 (mlong-double-): use Var and Save.
2498 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2499 (malign-): Use Enum and Var.
2500 (rs6000_alignment_flags): New Enum and EnumValue entries.
2501 (mfpu=): Use Enum.
2502 (fpu_type_t): New Enum and EnumValue entries.
2503 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2504 global_options_set instead of rs6000_explicit_options.
2505 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2506 global_options_set instead of rs6000_explicit_options.
2507 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2508 global_options_set instead of rs6000_explicit_options.
2509 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2510 global_options_set instead of rs6000_explicit_options.
2511 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2512 global_options_set instead of rs6000_explicit_options.
2513 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2514 global_options_set instead of rs6000_explicit_options.
2515 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2516 definition.
2517 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2518 global_options_set instead of rs6000_explicit_options.
2519 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2520 (rs6000_cmodel): New Enum and EnumValue entries.
2521 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2522 global_options_set instead of rs6000_explicit_options.
2523 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2524 (mtls-size=): Use Enum and Var.
2525 (rs6000_tls_size): New Enum and EnumValue entries.
2526
2527 2011-05-05 Michael Matz <matz@suse.de>
2528
2529 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2530 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2531 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2532 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2533 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2534 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2535 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2536 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2537 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2538 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2539 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2540 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2541 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2542 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2543 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2544 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2545
2546 2011-05-05 Richard Guenther <rguenther@suse.de>
2547
2548 * expmed.c (expand_variable_shift): Rename to ...
2549 (expand_shift_1): ... this. Take an expanded shift amount.
2550 For rotates recurse directly not building trees for the shift amount.
2551 (expand_variable_shift): Wrap around expand_shift_1.
2552 (expand_shift): Adjust.
2553
2554 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2555
2556 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2557
2558 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2559
2560 * tree.h (get_pending_sizes): Remove prototype.
2561 (put_pending_size): Likewise.
2562 (put_pending_sizes): Likewise.
2563 * stor-layout.c (pending_sizes): Delete.
2564 (get_pending_sizes): Likewise.
2565 (put_pending_size): Likewise.
2566 (put_pending_sizes): Likewise.
2567 (variable_size): Do not call put_pending_size and tidy up.
2568 * function.h (struct function): Remove dont_save_pending_sizes_p.
2569 * lto-streamer-in.c (input_function): Do not stream it.
2570 * lto-streamer-out.c (output_function): Likewise.
2571 * tree-inline.c (initialize_cfun): Do not copy it.
2572 * c-decl.c (store_parm_decls): Do not set it.
2573 * omp-low.c (create_task_copyfn): Likewise.
2574 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2575
2576 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2577
2578 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2579 conditions.
2580 (*movdf_internal): Ditto.
2581 (*movdf_internal_nointeger): Ditto.
2582 (*movsf_internal): Ditto.
2583
2584 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2585
2586 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2587 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2588 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2589 (c_variable_size): Remove.
2590 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2591 call put_pending_sizes.
2592 (get_parm_info): Add parameter expr. Use it to set
2593 arg_info->pending_sizes.
2594 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2595 get_pending_sizes.
2596 * c-parser.c (c_parser_parms_declarator): Update call to
2597 c_parser_parms_list_declarator.
2598 (c_parser_parms_list_declarator): Take parameter expr. Update
2599 call to push_parm_decl. Update recursive call. Don't call
2600 get_pending_sizes. Update calls to get_parm_info.
2601 (c_parser_objc_method_definition): Update calls to
2602 c_parser_objc_method_decl and objc_start_method_definition.
2603 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2604 (c_parser_objc_method_decl): Add parameter expr. Update call to
2605 grokparm.
2606 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2607 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2608 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2609
2610 2011-05-05 Michael Hope <michael.hope@linaro.org>
2611
2612 PR pch/45979
2613 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2614 __ARM_EABI__ hosts.
2615
2616 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2617
2618 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2619 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2620 (spu_output_mi_thunk): New function.
2621
2622 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2623
2624 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2625 targetm.asm_out.print_operand.
2626 * config/sol2.c: Include target.h.
2627
2628 2011-05-04 Jan Hubicka <jh@suse.cz>
2629
2630 * ipa-inline.c (reset_edge_caches): New function.
2631 (update_caller_keys): Add check_inlinablity_for; do not
2632 reset edge caches; remove now unnecesary loop.
2633 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2634 (update_all_callee_keys): Likewise.
2635 (inline_small_functions): Sanity check cache; update code
2636 recomputing it.
2637
2638 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2639
2640 PR rtl-optimization/47612
2641 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2642 as the last insn of the sequence to be moved.
2643
2644 2011-05-04 Tobias Burnus <burnus@net-b.de>
2645
2646 PR fortran/48864
2647 * doc/invoke.texi (Ofast): Document that it
2648 enables Fortran's -fno-protect-parens.
2649
2650 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2651
2652 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2653
2654 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2655
2656 * stor-layout.c (variable_size): Do not issue errors.
2657
2658 2011-05-04 Richard Guenther <rguenther@suse.de>
2659
2660 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2661 for array-ref indices.
2662 (tree_coverage_counter_addr): Likewise.
2663 (build_fn_info_type): Use size_int for index types.
2664 (build_gcov_info): Likewise.
2665
2666 2011-05-04 Richard Guenther <rguenther@suse.de>
2667
2668 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2669 to build_int_cst.
2670 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2671 for constructor indices.
2672 (push_init_level): Likewise.
2673
2674 2011-05-04 Richard Guenther <rguenther@suse.de>
2675
2676 * explow.c (promote_mode): Move variable declarations before code.
2677
2678 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2679
2680 * tree.h (build_function_type_array): Declare.
2681 (build_varargs_function_type_array): Declare.
2682 (build_function_type_vec, build_varargs_function_type_vec): Define.
2683 * tree.c (build_function_type_array_1): New function.
2684 (build_function_type_array): New function.
2685 (build_varargs_function_type_array): New function.
2686
2687 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2688
2689 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2690 before setting STMT_VINFO_TYPE.
2691
2692 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2693
2694 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2695 instead of spu_pass_by_reference.
2696
2697 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2698
2699 * calls.c (emit_library_call_value_1): Invoke
2700 promote_function_mode hook on libcall arguments.
2701 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2702 argument being NULL.
2703 * targhooks.c (default_promote_function_mode): Lisewise.
2704 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2705 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2706
2707 * doc/tm.texi: Document that TYPE argument might be NULL.
2708
2709 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2710
2711 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2712
2713 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2714
2715 From Bernd Schmidt
2716 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2717
2718 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2719
2720 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2721 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2722 Move ...
2723 * mips-tfile.c: ... here.
2724 Don't include coretypes.h, tm.h, filenames.h.
2725 (saber_stop): Remove definition and all calls.
2726 [__SABER__]: Remove.
2727 (__LINE__): Remove default.
2728 (Size_t, Ptrdiff_t): Remove definitions.
2729 Replace by size_t, ptrdiff_t.
2730 [!MIPS_DEBUGGING_INFO]: Remove.
2731 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2732 (progname): Add const.
2733 (STATIC): Remove.
2734 Replace all uses by static.
2735 (ALIGN_SYMTABLE_OFFSET): Remove default.
2736 * mips-tdump.c: Don't include coretypes.h, tm.h.
2737 Remove !MIPS_IS_STAB guard.
2738 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2739 $(TM_H), filenames.h dependencies.
2740 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2741
2742 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2743
2744 From Jie Zhang
2745 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2746 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2747
2748 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2749
2750 From Bernd Schmidt
2751 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2752 account and save/restore RETS.
2753 (PROFILE_BEFORE_PROLOGUE): Define.
2754 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2755 the push insn to use predecrement.
2756
2757 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2758
2759 From Jie Zhang
2760 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2761
2762 2011-05-04 Nick Clifton <nickc@redhat.com>
2763
2764 * config/mn10300/mn10300.c: Include cfgloop.h.
2765 (DUMP): New macro.
2766 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2767 Lcc or a FLcc insn into the instruction stream.
2768 (mn10300_block_contains_call): New function. Returns true if the
2769 given basic block contains a CALL insn.
2770 (mn10300_loop_contains_call_insn): New function. Returns true if
2771 the given loop contains a CALL insn.
2772 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2773 to use the SETLB and Lcc or FLcc insns.
2774 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2775 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2776 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2777 disable the SETLB optimization.
2778 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2779 __SETLB__ or __NO_SETLB__.
2780 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2781 (movsf_internal): Handle MDR register.
2782 (cmpsi): Make visible.
2783 (setlb): New pattern.
2784 (Lcc): New pattern.
2785 (FLcc): New pattern.
2786
2787 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2788
2789 PR target/48860
2790 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2791 for reg<->xmm moves.
2792 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2793 (vec_concatv2di_rex64_sse): Ditto.
2794 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2795 (*vec_extractv2di_1_rex64): Ditto.
2796
2797 Revert:
2798 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2799
2800 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2801 reg<->xmm moves.
2802 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2803
2804 2011-05-04 Richard Guenther <rguenther@suse.de>
2805
2806 * tree.h (int_const_binop): Remove notrunc argument.
2807 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2808 create integer constants that are properly truncated.
2809 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2810 (const_binop): Remove zero notrunc argument to int_const_binop.
2811 (size_binop_loc): Likewise.
2812 (fold_div_compare): Likewise.
2813 (maybe_canonicalize_comparison_1): Likewise.
2814 (fold_comparison): Likewise.
2815 (fold_binary_loc): Likewise.
2816 (multiple_of_p): Likewise.
2817 * expr.c (store_constructor): Likewise.
2818 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2819 (maybe_fold_stmt_addition): Likewise.
2820 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2821 * stor-layout.c (layout_type): Likewise.
2822 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2823 * tree-sra.c (build_ref_for_offset): Likewise.
2824 (build_user_friendly_ref_for_offset): Likewise.
2825 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2826 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2827 * tree-ssa-loop-niter.c (inverse): Likewise.
2828 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2829 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2830 * tree-switch-conversion.c (check_range): Likewise.
2831 (build_constructors): Likewise.
2832 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2833 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2834 (extract_range_from_assert): Likewise.
2835 (vrp_int_const_binop): Likewise.
2836 (extract_range_from_binary_expr): Likewise.
2837 (extract_range_from_unary_expr): Likewise.
2838 (check_array_ref): Likewise.
2839 (find_case_label_range): Likewise.
2840 (simplify_div_or_mod_using_ranges): Likewise.
2841 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2842 comparing case labels for merging.
2843
2844 2011-05-03 Mark Wielaard <mjw@redhat.com>
2845
2846 * dwarf2out.c (debug_str_hash_forced): Removed.
2847 (gen_label_for_indirect_string): Removed.
2848 (get_debug_string_label): Removed.
2849 (AT_string_form): Generate label directly.
2850 (output_indirect_string): Test indirect_string_node for
2851 DW_FORM_strp instead of checking label and refcount.
2852 (prune_indirect_string): Removed.
2853 (prune_unused_types): Don't check debug_str_hash_forced or
2854 call prune_indirect_string.
2855
2856 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2857
2858 PR other/48093
2859 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2860
2861 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2862
2863 PR debug/47994
2864 PR debug/47919
2865 * combine.c (try_combine): Skip debug insns at m_split tests.
2866
2867 2011-04-26 Mark Wielaard <mjw@redhat.com>
2868
2869 PR42288
2870 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2871 when info_section_emitted.
2872
2873 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2874
2875 * config/mips/mips-opts.h: New.
2876 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2877 to mips-opts.h.
2878 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2879 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2880 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2881 via opts pointer.
2882 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2883 mips-opts.h.
2884 (mips_abi, mips_code_readable): Don't declare.
2885 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2886 (mabi=): Use Enum and Var.
2887 (mips_abi): New Enum and EnumValue entries.
2888 (mcode-readable=): Use Enum and Var.
2889 (mips_code_readable_setting): New Enum and EnumValue entries.
2890 (mr10k-cache-barrier=): Use Enum and Var.
2891 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2892
2893 2011-05-03 Jan Hubicka <jh@suse.cz>
2894
2895 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2896 replace hash by pointer map.
2897 (cgraph_node_set_element_def, cgraph_node_set_element,
2898 const_cgraph_node_set_element, varpool_node_set_element_def,
2899 varpool_node_set_element, const_varpool_node_set_element): Remove.
2900 (free_cgraph_node_set, free_varpool_node_set): New function.
2901 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2902 * tree-emutls.c: Free varpool node set.
2903 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2904 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2905 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2906 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2907 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2908 Move here from ipa.c; implement using pointer_map
2909 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2910 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2911 debug_cgraph_node_set, varpool_node_set_new,
2912 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2913 dump_varpool_node_set, debug_varpool_node_set):
2914 Move to ipa-uitls.c.
2915 * passes.c (ipa_write_summaries): Update.
2916
2917 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2918
2919 From Mike Frysinger:
2920 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2921 bf542/bf544/bf547/bf548/bf549.
2922
2923 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2924
2925 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2926
2927 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2928
2929 From Bernd Schmidt:
2930 * config/bfin/bfin.md (MOVCC): New mode_macro.
2931 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2932 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2933 comments from generated assembly.
2934
2935 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2936
2937 From Bernd Schmidt
2938 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2939 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2940 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2941 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2942 * config/bfin/lib1funcs.asm (___muldi3): New function.
2943
2944 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2945
2946 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2947 build_function_type_list instead of build_function_type.
2948 Rearrange initialization of `args' to do so.
2949
2950 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2951
2952 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2953 instead of build_function_type.
2954
2955 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2956
2957 * config/rs6000/rs6000.c (spe_init_builtins): Call
2958 build_function_type_list instead of build_function_type.
2959 (paired_init_builtins, altivec_init_builtins): Likewise.
2960 (builtin_function_type): Likewise.
2961
2962 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2963
2964 * config/sh/sh.c (sh_media_init_builtins): Call
2965 build_function_type_list instead of build_function_type.
2966
2967 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2968
2969 * config/sparc/sparc.c (sparc_file_end): Call
2970 build_function_type_list instead of build_function_type.
2971
2972 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2973
2974 * config/alpha/alpha.c (alpha_init_builtins): Call
2975 build_function_type_list instead of build_function_type.
2976
2977 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2978
2979 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2980 build_function_type_list instead of build_function_type.
2981
2982 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2983
2984 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2985 build_function_type_list instead of build_function_type.
2986 Delete `endlink' variable.
2987
2988 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2989
2990 * config/avr/avr.c (avr_init_builtins): Call
2991 build_function_type_list instead of build_function_type.
2992
2993 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2994
2995 * config/picochip/picochip.c (picochip_init_builtins): Call
2996 build_function_type_list instead of build_function_type.
2997 Delete `endlink' variable.
2998
2999 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3000
3001 * config/bfin/bfin.c (bfin_init_builtins): Call
3002 build_function_type_list instead of build_function_type.
3003
3004 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3005
3006 From Bernd Schmidt
3007 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3008 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3009
3010 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3011
3012 From Jie Zhang:
3013 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3014 libbffastfp overrides libgcc when -mfast-fp.
3015
3016 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3017
3018 Originally from Bernd Schmidt
3019 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3020 * config/bfin/bfin.c (override_options): Test it and error if
3021 TARGET_FDPIC.
3022
3023 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3024
3025 Originally From Bernd Schmidt
3026 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3027 FD-PIC.
3028
3029 2011-05-03 Jeff Law <law@redhat.com>
3030
3031 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3032 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3033 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3034 than accessing AUX field directly. Free the AUX field before
3035 clearing it.
3036 (thread_block, thread_through_loop_header): Likewise.
3037 (thread_single_edge, mark_threaded_blocks): Likewise.
3038 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3039 (register_jump_thread): Do not attempt to thread to a NULL edge.
3040
3041 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3042
3043 * function.c (init_function_start): Call decide_function_section.
3044 * varasm.c (decide_function_section): New function.
3045 (assemble_start_function): When not using
3046 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3047 or first_function_block_is_cold.
3048 * rtl.h (decide_function_section): Declare.
3049
3050 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3051 Jakub Jelinek <jakub@redhat.com>
3052
3053 PR target/48774
3054 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3055 only succeed if req_mode is the same as set_mode.
3056
3057 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3058
3059 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3060 * genemit.c (gen_exp): Handle RETURN.
3061 * emit-rtl.c (verify_rtx_sharing): Likewise.
3062 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3063 * rtl.c (copy_rtx): RETURN is shared.
3064 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3065 (ret_rtx): New.
3066 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3067 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3068 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3069 * config/cris/cris.c (cris_expand_return): Likewise.
3070 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3071 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3072 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3073 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3074 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3075 Likewise.
3076 * config/v850/v850.c (expand_epilogue): Likewise.
3077 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3078 * config/arm/arm.md (epilogue): Likewise.
3079 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3080 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3081 variable to ret_reg.
3082
3083 2011-05-03 Richard Guenther <rguenther@suse.de>
3084
3085 PR lto/48846
3086 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3087 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3088 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3089
3090 2011-05-03 Richard Guenther <rguenther@suse.de>
3091
3092 * c-decl.c (grokdeclarator): Instead of looking at
3093 TREE_OVERFLOW check if the constant fits in the index type.
3094
3095 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3096
3097 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3098 (vec_store_lanes<mode><mode>): Likewise.
3099
3100 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3101
3102 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3103 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3104 convert_optab_index values.
3105 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3106 * genopinit.c (optabs): Initialize the new optabs.
3107 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3108 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3109 (expand_STORE_LANES): New functions.
3110 * tree.h (build_array_type_nelts): Declare.
3111 * tree.c (build_array_type_nelts): New function.
3112 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3113 (vect_model_load_cost): Likewise.
3114 (vect_store_lanes_supported, vect_load_lanes_supported)
3115 (vect_record_strided_load_vectors): Declare.
3116 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3117 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3118 (vect_transform_strided_load): Split out statement recording into...
3119 (vect_record_strided_load_vectors): ...this new function.
3120 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3121 (write_vector_array, create_array_ref): New functions.
3122 (vect_model_store_cost): Add store_lanes_p argument.
3123 (vect_model_load_cost): Add load_lanes_p argument.
3124 (vectorizable_store): Try to use store-lanes functions for
3125 interleaved stores.
3126 (vectorizable_load): Likewise load-lanes and loads.
3127 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3128 to vect_model_store_cost.
3129 (vect_build_slp_tree): Likewise vect_model_load_cost.
3130
3131 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3132
3133 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3134 * hooks.c (hook_bool_mode_uhwi_false): New function.
3135 * target.def (array_mode_supported_p): New hook.
3136 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3137 * doc/tm.texi: Regenerate.
3138 * stor-layout.c (mode_for_array): New function.
3139 (layout_type): Use it.
3140 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3141 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3142
3143 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3144
3145 PR target/48723
3146 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3147 for -fstack-check if the size to allocate is negative.
3148
3149 2011-05-02 Lawrence Crowl <crowl@google.com>
3150
3151 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3152 (timevar_cond_start): New for starting a timer only when it is not
3153 already running.
3154 (timevar_cond_stop): New for stopping a timer when it was not already
3155 running.
3156
3157 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3158 (timevar_cond_start): New as above.
3159 (timevar_cond_stop): New as above.
3160
3161 * timevar.def: Add start/stop timers for compiler phases,
3162 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3163 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3164 and TV_PHASE_FINALIZE.
3165 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3166 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3167 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3168 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3169 Make unused TV_OVERLOAD into a start/stop timer.
3170
3171 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3172 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3173 to indicate that they are start/stop timers.
3174
3175 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3176 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3177 Move initialization to do_compile.
3178 (do_compile): Add initialization from above.
3179 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3180
3181 * c-decl.c (c_write_global_declarations): Add start/stop of
3182 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3183
3184 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3185 or TV_PARSE_INLINE, as appropriate.
3186 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3187 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3188
3189 2011-05-02 Jason Merrill <jason@redhat.com>
3190
3191 PR c++/40975
3192 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3193
3194 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3195
3196 PR c/35445
3197 * c-decl.c (finish_decl): Only create a composite if the types are
3198 compatible.
3199
3200 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3201
3202 * config/fr30/fr30-protos.h (Mmode): Don't define.
3203 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3204 definition where used.
3205 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3206 define. Expand definitions where used.
3207 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3208 Expand definitions where used.
3209 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3210 rx_function_arg, rx_function_arg_advance,
3211 rx_function_arg_boundary): Expand definitions of those macros.
3212 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3213 definition where used.
3214
3215 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3216
3217 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3218 reg<->xmm moves.
3219 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3220 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3221 with *movv2sf_internal_rex64_avx.
3222 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3223 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3224 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3225 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3226 "vex" in "prefix" attribute calculation.
3227 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3228
3229 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3230
3231 PR target/47951
3232 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3233 inputs match the output.
3234
3235 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3236
3237 PR target/47955
3238 * config/m68k/m68k.c (m68k_expand_prologue): Set
3239 current_function_static_stack_size.
3240
3241 2011-05-02 Jan Hubicka <jh@suse.cz>
3242
3243 * lto-streamer.c (lto_streamer_cache_insert_1,
3244 lto_streamer_cache_lookup, lto_streamer_cache_create,
3245 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3246 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3247
3248 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3249
3250 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3251 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3252 config/m68k/t-opts: New files.
3253 * config/m68k/m68k-tables.opt: New file (generated).
3254 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3255 extra_options and m68k/t-opts to tmake_file.
3256 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3257 (all_isas): Initialize using m68k-isas.def.
3258 (all_microarchs): Initialize using m68k-microarchs.def.
3259 (m68k_find_selection): Remove.
3260 (m68k_handle_option): Don't assert that global structures are in
3261 use. Use error_at. Access variables via opts pointer. Don't
3262 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3263 directly for -m68020-40 and -m68020-60.
3264 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3265 m68k_tune_entry here.
3266 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3267 to m68k-opts.h.
3268 (m68k_library_id_string): Remove declaration.
3269 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3270 (m68k_library_id_string): New Variable.
3271 (march=, mcpu=, mtune=): Use Enum and Var.
3272
3273 2011-05-02 Richard Guenther <rguenther@suse.de>
3274
3275 * varasm.c (output_constructor_regular_field): Compute zero-based
3276 index with double-ints. Make sure to ICE instead of producing
3277 wrong code.
3278 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3279 in asserts. Properly use a signed type.
3280
3281 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3282
3283 * config/i386/sse.md (V): New mode iterator.
3284 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3285 TARGET_SSE2.
3286 (V_256): Rename from AVX256MODE.
3287 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3288 condition to all users.
3289 (VF1): Ditto.
3290 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3291 condition to all users.
3292 (VF_128): Make V4SF mode unconditional.
3293 (VF_256): Rename from AVX256MODEF2P.
3294 (VI4F_128): Rename from SSEMODE4S.
3295 (VI8F_128): Rename from SSEMODE2D.
3296 (VI4F_256): Rename from AVX256MODE8P.
3297 (VI8F_256): Rename from AVX256MODE4P.
3298 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3299 (ssescalarmodesuffix): Remove SF and DF modes.
3300 (SSEMODE124): Remove.
3301 (SSEMODE1248): Ditto.
3302 (SSEMODEF2P): Ditto.
3303 (AVXMODEF2P): Ditto.
3304 (AVXMODEFDP): Ditto.
3305 (AVXMODEFSP): Ditto.
3306 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3307 unconditional.
3308 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3309 unconditional.
3310 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3311 xop_pcmov_<mode>256. Use V mode iterator.
3312
3313 Adjust RTX patterns globally for renamed mode attributes.
3314
3315 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3316
3317 * haifa-sched.c (sched_emit_insn): Emit insn before first
3318 non-scheduled insn. Inform back-end about new insn. Add
3319 new insn to scheduled_insns list.
3320
3321 2011-05-02 Richard Guenther <rguenther@suse.de>
3322
3323 PR tree-optimization/48822
3324 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3325 (process_scc): Indicate which iteration we start.
3326
3327 2011-05-02 Jan Hubicka <jh@suse.cz>
3328
3329 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3330 (lto_section_overrun): New.
3331 * lto-section-out.c (append_block): Rename to ...
3332 (lto_append_block): ... this one; export.
3333 (lto_output_1_stream): Move lto lto-streamer.h
3334 (lto_output_data_stream): Update.
3335 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3336 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3337 functions.
3338
3339 2011-05-02 Richard Guenther <rguenther@suse.de>
3340
3341 * tree.c (tree_code_counts): New global array.
3342 (record_node_allocation_statistics): Count individual tree codes.
3343 (dump_tree_statistics): Dump individual code stats.
3344
3345 2011-05-01 Jan Hubicka <jh@suse.cz>
3346
3347 * ipa-inline.c (caller_growth_limits): Fix thinko when
3348 looking for largest stack frame.
3349 * ipa-inline.h (dump_inline_summary): Declare.
3350 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3351 on stack usage.
3352 (dump_inline_summary): Export.
3353 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3354
3355 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3356
3357 * reginfo.c (memory_move_cost): Change rclass argument type form
3358 'enum reg_class' to reg_class_t.
3359 * reload.h (memory_move_cost): Update prototype.
3360 * postreload.c reload_cse_simplify_set): Change type dclass var to
3361 reg_class_t.
3362 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3363 Update prototype.
3364 (ira_allocate_and_set_costs): Change aclass argument type form
3365 'enum reg_class' to reg_class_t.
3366 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3367 Change aclass argument type to reg_class_t.
3368 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3369 to reg_class_t.
3370 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3371 memory_move_cost call.
3372
3373 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3374 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3375 Change type tmp var to reg_class_t.
3376
3377 2011-04-30 Jan Hubicka <jh@suse.cz>
3378
3379 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3380 inlining into function with flatten attribute.
3381 (want_inline_small_function_p): Be more realistic about inlining
3382 cold calls where callee size grows.
3383
3384 2011-04-30 Jan Hubicka <jh@suse.cz>
3385
3386 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3387 flags.
3388
3389 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3390
3391 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3392 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3393 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3394 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3395 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3396 (print_operand): Rename to...
3397 (sparc_print_operand): ...this. Make static. Adjust
3398 sparc_print_operand function call.
3399 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3400 functions.
3401
3402 2011-04-30 Jan Hubicka <jh@suse.cz>
3403
3404 PR middle-end/48752
3405 * ipa-inline.c (early_inliner): Disable when doing late
3406 addition of function.
3407
3408 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3409
3410 * dwarf2out.c (get_address_mode): New inline.
3411 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3412 if not dwarf_strict emit
3413 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3414 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3415 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3416 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3417 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3418 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3419 mem_loc_descriptor callers.
3420 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3421 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3422 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3423 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3424 (base_types): New variable.
3425 (get_base_type_offset, calc_base_type_die_sizes,
3426 base_type_for_mode, mark_base_types, base_type_cmp,
3427 move_marked_base_types): New functions.
3428 (calc_die_sizes): Assert that die_offset is 0 or equal to
3429 next_die_offset.
3430 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3431 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3432 callers. If not dwarf_strict, call mem_loc_descriptor even for
3433 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3434 (gen_subprogram_die): Don't give up on call site parameters
3435 with non-integral or large integral modes. Adjust
3436 mem_loc_descriptor callers.
3437 (prune_unused_types): Call prune_unused_types_mark on base_types
3438 vector entries.
3439 (resolve_addr): Call mark_base_types.
3440 (dwarf2out_finish): Call move_marked_base_types.
3441
3442 PR tree-optimization/48809
3443 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3444 type.
3445 (gen_inbound_check): Don't compute index_expr - range_min in utype
3446 again, instead reuse SSA_NAME initialized in build_arrays.
3447 Remove two useless gsi_for_stmt calls.
3448
3449 2011-04-29 Jeff Law <law@redhat.com>
3450
3451 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3452
3453 2011-04-29 Martin Jambor <mjambor@suse.cz>
3454
3455 * cgraph.h (cgraph_postorder): Remove declaration.
3456 * ipa-utils.h (ipa_free_postorder_info): Declare.
3457 (ipa_reverse_postorder): Likewise.
3458 * cgraphunit.c: Include ipa-utils.h.
3459 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3460 * ipa-inline.c: Include ipa-utils.h.
3461 (ipa_inline): Update call to ipa_reverse_postorder.
3462 * ipa-pure-const.c (propagate_pure_const): Update call to
3463 ipa_reduced_postorder and ipa_print_order. Call
3464 ipa_free_postorder_info to clean up.
3465 (propagate_nothrow): Likewise.
3466 * ipa-reference.c (propagate): Removed a useless call to
3467 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3468 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3469 * ipa.c: Include ipa-utils.h.
3470 (ipa_profile): Update call to ipa_reverse_postorder.
3471 (cgraph_postorder): Moved to...
3472 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3473 (ipa_utils_print_order): Renamed to ipa_print_order.
3474 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3475 comments.
3476 (ipa_free_postorder_info): New function.
3477 * passes.c: Include ipa-utils.h.
3478 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3479 (ipa_write_summaries): Likewise.
3480 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3481 (cgraphunit.o): Likewise.
3482 (ipa.o): Likewise.
3483 (ipa-inline.o): Likewise.
3484
3485 2011-04-29 Jan Hubicka <jh@suse.cz>
3486
3487 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3488 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3489 * ipa-inline.h (clause_t): Turn into unsigned int.
3490 * ipa-inline-analysis.c (add_clause): Do more simplification.
3491 (and_predicates): Shortcut more cases.
3492 (predicates_equal_p): Move forward; check that clauses are properly
3493 ordered.
3494 (or_predicates): Shortcut more cases.
3495 (edge_execution_predicate): Rewrite as...
3496 (set_cond_stmt_execution_predicate): ... this function; handle
3497 __builtin_constant_p.
3498 (set_switch_stmt_execution_predicate): New .
3499 (compute_bb_predicates): New.
3500 (will_be_nonconstant_predicate): Update TODO.
3501 (estimate_function_body_sizes): Use compute_bb_predicates
3502 and free them later, always try to estimate if stmt is constant.
3503 (estimate_time_after_inlining, estimate_size_after_inlining):
3504 Gracefully handle optimized out edges.
3505 (read_predicate): Fix off by one error.
3506
3507 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3508
3509 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3510
3511 2011-04-27 Xinliang David Li <davidxl@google.com>
3512
3513 * tree-profile.c (init_ic_make_global_vars): Set
3514 tls attribute on ic vars.
3515 * coverage.c (coverage_end_function): Initialize
3516 function_list with zero.
3517
3518 2011-04-29 Richard Guenther <rguenther@suse.de>
3519
3520 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3521 for the type of the result.
3522 (fold_builtin_isascii): Likewise.
3523 (fold_builtin_toascii): Use integer_type_node where appropriate.
3524 (fold_builtin_logb): Likewise.
3525 (fold_builtin_frexp): Likewise.
3526 (fold_builtin_strstr): Likewise.
3527 (fold_builtin_strpbrk): Likewise.
3528 (fold_builtin_fputs): Likewise.
3529 (fold_builtin_sprintf): Likewise.
3530 (fold_builtin_snprintf): Likewise.
3531 (fold_builtin_printf): Likewise.
3532 (do_mpfr_remquo): Use a proper type for the assigned constant.
3533 (do_mpfr_lgamma_r): Likewise.
3534 * dwarf2out.c (resolve_one_addr): Use size_int.
3535 * except.c (init_eh): Likewise.
3536 (assign_filter_values): Use integer_type_node for filter values.
3537 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3538 indices.
3539 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3540 for EH region numbers.
3541 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3542 for the shift amount.
3543
3544 2011-04-29 Richard Guenther <rguenther@suse.de>
3545
3546 * expr.h (expand_shift): Rename to ...
3547 (expand_variable_shift): ... this.
3548 (expand_shift): Take a constant shift amount.
3549 * expmed.c (expand_shift): Rename to ...
3550 (expand_variable_shift): ... this.
3551 (expand_shift): New wrapper around expand_variable_shift.
3552 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3553 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3554 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3555 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3556 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3557 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3558 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3559 emit_store_flag_1, emit_store_flag): Likewise.
3560 * builtins.c (expand_builtin_signbit): Likewise.
3561 * calls.c (load_register_parameters): Likewise.
3562 * function.c (assign_parm_setup_block): Likewise.
3563 * lower-subreg.c (resolve_shift_zext): Likewise.
3564 * optabs.c (widen_bswap, expand_abs_nojump,
3565 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3566 * spu/spu.c (spu_expand_extv): Likewise.
3567 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3568
3569 2011-04-29 Richard Guenther <rguenther@suse.de>
3570
3571 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3572 for the remapped region number.
3573 * predict.c (build_predict_expr): Use integer_type_node for the
3574 predict kind.
3575 * fold-const.c (fold_binary_loc): Use integer_type_node for
3576 the shift amount. Use a proper type for the PLUS_EXPR operand.
3577
3578 2011-04-29 Michael Matz <matz@suse.de>
3579
3580 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3581 other trees that just builtins.
3582 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3583
3584 2011-04-29 Richard Guenther <rguenther@suse.de>
3585
3586 * tree-nested.c (get_trampoline_type): Use size_int.
3587 (get_nl_goto_field): Likewise.
3588 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3589 for all indexes.
3590 (lower_eh_constructs_2): Likewise.
3591 (lower_resx): Likewise.
3592 (lower_eh_dispatch): Likewise.
3593 * tree-mudflap.c (mf_build_string): Use size_int.
3594 (mudflap_register_call): Use integer_type_node for the flag.
3595 (mudflap_enqueue_constant): Use size_int.
3596 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3597 instead of rebuilding it.
3598
3599 2011-04-29 Richard Guenther <rguenther@suse.de>
3600
3601 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3602 Handle OBJ_TYPE_REF.
3603 (find_func_aliases_for_call): Use it more consistently.
3604
3605 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3606
3607 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3608 (rank_for_schedule): Use it.
3609 (schedule_block): Set it.
3610
3611 2011-04-28 David Li <davidxl@google.com>
3612
3613 * tree.c (crc32_string): Use crc32_byte.
3614 (crc32_byte): New function.
3615 * tree.h (crc32_byte): New function.
3616 * gcov.c (read_graph_file): Handle new cfg_cksum.
3617 (read_count_file): Ditto.
3618 * profile.c (instrument_values): Ditto.
3619 (get_exec_counts): Ditto.
3620 (read_profile_edge_counts): Ditto.
3621 (compute_branch_probabilities): Ditto.
3622 (compute_value_histograms): Ditto.
3623 (branch_prob): Ditto.
3624 (end_branch_prob): Ditto.
3625 * coverage.c (read_counts_file): Ditto.
3626 (get_coverage_counts): Ditto.
3627 (tree_coverage_counter_addr): Ditto.
3628 (coverage_checksum_string): Ditto.
3629 (coverage_begin_output): Ditto.
3630 (coverage_end_function): Ditto.
3631 (build_fn_info_type): Ditto.
3632 (build_fn_info_value): Ditto.
3633 * libgcov.c (gcov_exit): Ditto.
3634 * gcov-dump.c (tag_function): Ditto.
3635 (compute_checksum): Remove.
3636
3637 2011-04-29 Alan Modra <amodra@gmail.com>
3638
3639 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3640 unspec plus offset. Tidy macho code.
3641
3642 2011-04-29 Martin Jambor <mjambor@suse.cz>
3643
3644 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3645 node instead of a decl. Update all callers.
3646 * cgraph.h: Update declaration.
3647
3648 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3649
3650 PR tree-optimization/48765
3651 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3652 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3653 to indicate if loop aware SLP is being used. Scan the statements
3654 and update the vectorization factor according to the type of
3655 vectorization before statement analysis.
3656 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3657 pass it to vect_analyze_loop_operations.
3658 (vectorizable_reduction): Set number of copies to 1 in case of pure
3659 SLP statement.
3660 * tree-vect-stmts.c (vectorizable_conversion,
3661 vectorizable_assignment, vectorizable_shift,
3662 vectorizable_operation, vectorizable_type_demotion,
3663 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3664 Likewise.
3665 (vectorizable_condition): Move the check that it is not SLP
3666 vectorization before the number of copies check.
3667 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3668 to vectorize the loop using SLP.
3669
3670 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3671
3672 PR middle-end/48597
3673 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3674 inline asm.
3675
3676 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3677
3678 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3679 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3680 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3681 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3682 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3683 linux*.h headers.
3684 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3685 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3686 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3687 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3688 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3689 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3690 REG_NAME.
3691 * config/i386/linux.h (REG_NAME): Don't define.
3692 * config/i386/linux64.h (REG_NAME): Don't define.
3693 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3694 Undefine before defining.
3695
3696 2011-04-28 Jan Hubicka <jh@suse.cz>
3697
3698 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3699 nonconstant_names array.
3700 (estimate_function_body_sizes): Build nonconstant_names array; handle
3701 BUILT_IN_CONSTANT_P.
3702
3703 2011-04-28 Richard Guenther <rguenther@suse.de>
3704
3705 PR bootstrap/48804
3706 Revert
3707 2011-04-28 Richard Guenther <rguenther@suse.de>
3708
3709 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3710 as late as possible.
3711
3712 2011-04-28 Richard Guenther <rguenther@suse.de>
3713
3714 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3715 (debug_constraint): Do it here.
3716 (dump_constraints): And here.
3717 (rewrite_constraints): And here.
3718 (dump_constraint_edge): Remove.
3719 (dump_constraint_graph): Rewrite to produce DOT output.
3720 (solve_constraints): Build succ graph as late as possible.
3721 Dump constraint graphs before and after solving.
3722
3723 2011-04-28 Richard Guenther <rguenther@suse.de>
3724
3725 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3726 New function split out from ...
3727 (find_func_aliases): ... here. Call it.
3728 (find_func_aliases_for_call): Likewise.
3729
3730 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3731
3732 * internal-fn.h (internal_fn_name_array): Declare.
3733 (internal_fn_flags_array): Likewise.
3734
3735 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3736
3737 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3738 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3739 Move from sse.md.
3740 (ssemodefsuffix): Remove.
3741 (ssevecmodesuffix): New mode attribute.
3742 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3743 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3744 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3745 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3746 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3747 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3748 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3749 ssemodesuffix mode attribute.
3750 (float splitters): Use ssevecmodesuffix mode attribute.
3751 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3752 (sseinsmode): Rename from avxvecmode.
3753 (avxsizesuffix): Rename from avxmodesuffix.
3754 (sseintvecmode): Rename from avxpermvecmode.
3755 (ssedoublevecmode): Rename from ssedoublesizemode.
3756 (ssehalfvecmode): Rename from avxhalfvecmode.
3757 (ssescalarmode): Rename from avxscalarmode.
3758 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3759 templates for ssemodesuffix mode attribute.
3760 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3761 mode attribute.
3762
3763 Adjust RTX patterns globally for renamed mode attributes.
3764
3765 2011-04-27 Jan Hubcika <jh@suse.cz>
3766
3767 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3768 * ipa-inline-analysis.c: Include alloc-pool.h.
3769 (edge_predicate_pool): New.
3770 (trye_predicate_p): New function
3771 (false_predicate_p): New function.
3772 (add_clause): Sanity check that false clauses are "optimized";
3773 never add clauses to predicate that is already known to be false.
3774 (and_predicate): Use flase_predicate_p.
3775 (evaulate_predicate): Rename to ...
3776 (evaluate_predicate): ... this one; update all callers; assert
3777 that false is not listed among possible truths.
3778 (dump_predicate): Use true_predicate_p.
3779 (account_size_time): Use false_predicate_p.
3780 (evaulate_conditions_for_edge): Rename to ...
3781 (evaluate_conditions_for_edge) ... this one.
3782 (edge_set_predicate): New function.
3783 (inline_edge_duplication_hook): Duplicate edge predicates.
3784 (inline_edge_removal_hook): Free edge predicates.
3785 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3786 (dump_inline_summary): Update.
3787 (estimate_function_body_sizes): Set edge predicates.
3788 (estimate_calls_size_and_time): Handle predicates.
3789 (estimate_callee_size_and_time): Update.
3790 (remap_predicate): Add toplev_predicate; update comment.
3791 (remap_edge_predicates): New function.
3792 (inline_merge_summary): Compute toplev predicate; update.
3793 (read_predicate): New function.
3794 (read_inline_edge_summary): Use it.
3795 (inline_read_section): Likewise.
3796 (write_predicate): New function.
3797 (write_inline_edge_summary): Use it.
3798 (inline_write_summary): Likewise.
3799 (inline_free_summary): Free alloc pool and edge summary vec.
3800
3801 2011-04-27 Richard Guenther <rguenther@suse.de>
3802
3803 * tree-ssa-structalias.c (changed_count): Remove.
3804 (changed): Use a bitmap.
3805 (unify_nodes): Adjust.
3806 (do_sd_constraint): Likewise.
3807 (do_ds_constraint): Likewise.
3808 (do_complex_constraint): Likewise.
3809 (solve_graph): Likewise.
3810
3811 2011-04-27 Jan Hubicka <jh@suse.cz>
3812
3813 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3814
3815 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3816
3817 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3818 (avx_vperm2f128_*_operand): Ditto.
3819 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3820 Use avx_vpermilp_parallel in insn condition.
3821 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3822 Use avx_vperm2f128_parallel in insn condition.
3823
3824 2011-04-27 Richard Guenther <rguenther@suse.de>
3825
3826 * Makefile.in (tree-ssa-structalias.o): Remove
3827 gt-tree-ssa-structalias.h dependency.
3828 (GTFILES): Remove tree-ssa-structalias.c.
3829 * tree.c (allocate_decl_uid): New function.
3830 (make_node_stat): Use it.
3831 (copy_node_stat): Likewise.
3832 * tree.h (allocate_decl_uid): Declare.
3833 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3834 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3835 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3836 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3837 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3838 (struct heapvar_map): Likewise.
3839 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3840 heapvar_insert): Likewise.
3841 (make_heapvar_for): Rename to ...
3842 (make_heapvar): ... this. Simplify.
3843 (fake_var_decl_obstack): New global var.
3844 (build_fake_var_decl): New function.
3845 (make_constraint_from_heapvar): Adjust.
3846 (handle_lhs_call): Likewise.
3847 (create_function_info_for): Likewise.
3848 (intra_create_variable_infos): Likewise.
3849 (init_alias_vars): Allocate fake_var_decl_obstack.
3850 (init_alias_heapvars, delete_alias_heapvars): Remove.
3851 (compute_points_to_sets): Do not call init_alias_heapvars.
3852 (ipa_pta_execute): Likewise.
3853 (delete_points_to_sets): Free fake_var_decl_obstack.
3854
3855 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3856
3857 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3858 (si_from_UTItype, si_to_UTItype): New functions.
3859 (__udivmodti4): Use them to implement type-punning.
3860 * config/spu/multi3.c (union qword_TItype): New data type.
3861 (si_from_TItype, si_to_TItype): New functions.
3862 (__multi3): Use them to implement type-punning.
3863
3864 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3865
3866 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3867
3868 2011-04-27 Jan Hubicka <jh@suse.cz>
3869
3870 * ipa-prop.c (function_insertion_hook_holder): New holder.
3871 (ipa_add_new_function): New function.
3872 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3873 Register/deregister holder.
3874
3875 2011-04-27 Richard Guenther <rguenther@suse.de>
3876
3877 PR tree-optimization/48772
3878 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3879
3880 2011-04-27 Richard Guenther <rguenther@suse.de>
3881
3882 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3883 TARGET_MEM_REF handling.
3884
3885 2011-04-27 Nick Clifton <nickc@redhat.com>
3886
3887 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3888 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3889 (REG_CLASS_NAMES): Likewise.
3890 (REG_CLASS_CONTENTS): Likewise.
3891 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3892 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3893 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3894 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3895 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3896 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3897 duplicate register classes.
3898 (frv_class_likely_spilled_p): Likewise.
3899 (frv_register_move_cost): Likewise.
3900
3901 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3902 end of the regno_reg_class array.
3903
3904 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3905
3906 PR c/48742
3907 * c-typeck.c (build_binary_op): Don't wrap arguments if
3908 int_operands is true.
3909
3910 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3911
3912 PR target/48767
3913 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3914 targetm.calls.must_pass_in_stack for void type.
3915
3916 2011-04-26 Jan Hubicka <jh@suse.cz>
3917
3918 * cgraphbuild.c (build_cgraph_edges): Update call
3919 of cgraph_create_edge and cgraph_create_indirect_edge.
3920 * cgraph.c (cgraph_create_edge_including_clones,
3921 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3922 cgraph_update_edges_for_call_stmt_node): Do not take nest
3923 argument; do not initialize call_stmt_size/time.
3924 (dump_cgraph_node): Do not dump nest.
3925 (cgraph_clone_edge): Do not take loop_nest argument;
3926 do not propagate it; do not clone call_stmt_size/time.
3927 (cgraph_clone_node): Likewise.
3928 (cgraph_create_virtual_clone): Update.
3929 * cgraph.h (struct cgraph_edge): Remove
3930 call_stmt_size/call_stmt_time/loop_nest.
3931 (cgraph_create_edge, cgraph_create_indirect_edge,
3932 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3933 prototype.
3934 * tree-emutls.c (gen_emutls_addr): Update.
3935 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3936 loop_nest; handle indirect calls, too.
3937 (clone_inlined_nodes): Do not care about updating inline summaries.
3938 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3939 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3940 stream call_stmt_size/call_stmt_time/loop_nest.
3941 * ipa-inline.c (edge_badness): Update.
3942 (ipa_inline): dump summaries after inlining.
3943 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3944 New.
3945 (inline_edge_summary): New function.
3946 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3947 (inline_edge_removal_hook): Handle edge summaries.
3948 (inline_edge_duplication_hook): New hook.
3949 (inline_summary_alloc): Alloc hooks.
3950 (initialize_growth_caches): Do not register removal hooks.
3951 (free_growth_caches); Do not free removal hook.
3952 (dump_inline_edge_summary): New function.
3953 (dump_inline_summary): Use it.
3954 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3955 (inline_update_callee_summaries): New function.
3956 (inline_merge_summary): Use it.
3957 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3958 (read_inline_edge_summary): New function.
3959 (inline_read_section): Use it.
3960 (write_inline_edge_summary): New function.
3961 (inline_write_summary): Use it.
3962 (inline_free_summary): Free edge new holders.
3963 * tree-inline.c (copy_bb): Update.
3964
3965 2011-04-26 Jason Merrill <jason@redhat.com>
3966
3967 * tree-eh.c (lower_try_finally_switch): Create the label along with
3968 the CASE_LABEL_EXPR.
3969
3970 2011-04-26 David S. Miller <davem@davemloft.net>
3971 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3972
3973 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3974 * configure: Regenerate.
3975
3976 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3977
3978 PR target/48258
3979 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3980 reduction.
3981 (VEC_reduc): New code iterator and splitters for vector reduction.
3982 (VEC_reduc_name): Ditto.
3983 (VEC_reduc_rtx): Ditto.
3984 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3985 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3986
3987 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3988 support for extracting SF on VSX.
3989
3990 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3991 generating xscvspdp.
3992 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3993 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3994 double add, minimum, maximum vector reduction.
3995 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3996 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3997 optimize double vector reduction.
3998 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3999
4000 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4001
4002 * config/fr30/fr30.h (inhibit_libc): Don't define.
4003 * config/m32r/m32r-protos.h: Correct comment.
4004 * config/v850/v850.h (GHS_default_section_names,
4005 GHS_current_section_names): Use tree, not union tree_node *.
4006
4007 2011-04-26 Xinliang David Li <davidxl@google.com>
4008
4009 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4010 * c-family/c-opts.c (c_common_handle_option): Set
4011 warn_maybe_uninitialized.
4012 * opts.c (common_handle_option): Ditto.
4013 * common.opt: New option.
4014 * tree-ssa.c (warn_uninit): Add one more parameter.
4015 (warn_uninitialized_var): Pass warning code.
4016 * tree-flow.h: Interface change.
4017
4018
4019 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4020
4021 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4022 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4023 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4024
4025 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4026
4027 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4028 * config/mips/mips.opt (mmips-tfile): Remove.
4029
4030 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4031 mips-tdump reference to ...
4032 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4033 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4034 reference by Tru64 UNIX.
4035
4036 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4037
4038 PR debug/48768
4039 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4040 is error_mark_node, set value to NULL.
4041
4042 PR tree-optimization/48734
4043 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4044 if return value from maybe_fold_*_comparsions isn't something
4045 the code is prepared to handle.
4046
4047 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4048
4049 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4050 mode check.
4051 (ext_QIreg_nomode_operands): Remove.
4052 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4053 (*andsi_1): Ditto.
4054 (*andhi_1): Ditto.
4055
4056 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4057
4058 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4059
4060 2011-04-26 Richard Guenther <rguenther@suse.de>
4061
4062 * c-typeck.c (build_unary_op): Do not expand array-refs via
4063 pointer arithmetic. Only adjust qualifiers for function types.
4064
4065 2011-04-26 Richard Guenther <rguenther@suse.de>
4066
4067 PR middle-end/48694
4068 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4069 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4070 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4071 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4072
4073 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4074
4075 * doc/extend.texi: Document __underlying_type.
4076
4077 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4078
4079 * config/rs6000/titan.md (automata_option "progress"): Remove.
4080
4081 2011-04-25 Jeff Law <law@redhat.com>
4082
4083 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4084
4085 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4086
4087 * system.h (ENUM_BITFIELD): Remove.
4088
4089 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4090 Eric Botcazou <ebotcazou@adacore.com>
4091
4092 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4093 for STORE_FLAG_VALUE==-1 case.
4094
4095 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4096
4097 PR target/43804
4098 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4099 LEGITIMATE_PIC_OPERAND_P.
4100
4101 2011-04-24 Jan Hubicka <jh@suse.cz>
4102
4103 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4104 WPA hack.
4105 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4106 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4107 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4108 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4109 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4110 Sanity check predicate length.
4111 (remap_predicate): Likewise; sanity check jump functions.
4112 (inline_read_section, inline_write_summary): Sanity check
4113 predicate length.
4114
4115 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4116
4117 PR other/48748
4118 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4119 __is_literal_type, and __is_trivial; update throughout about
4120 possibly cv-qualified void types.
4121
4122 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4123
4124 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4125 testsuite and make it version agnostic.
4126
4127 2011-04-22 Jan Hubicka <jh@suse.cz>
4128
4129 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4130
4131 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4132
4133 PR c/48685
4134 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4135 to VOID_TYPE even around MODIFY_EXPR.
4136
4137 2011-04-22 Mike Stump <mikestump@comcast.net>
4138
4139 * gensupport.c (read_md_rtx): Fix typo in comment.
4140 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4141 comment.
4142
4143 2011-04-22 Jan Hubicka <jh@suse.cz>
4144
4145 * gengtype.c (open_base_files): Add ipa-inline.h include.
4146 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4147 ipa-prop.c; update all uses.
4148 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4149 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4150 merge summary of inlined function into former caller.
4151 * ipa-inline.c (max_benefit): Remove.
4152 (edge_badness): Compensate for removal of benefits.
4153 (update_caller_keys): Use
4154 reset_node_growth_cache/reset_edge_growth_cache.
4155 (update_callee_keys): Likewise.
4156 (update_all_callee_keys): Likewise.
4157 (inline_small_functions): Do not collect max_benefit; do not reset
4158 estimated_growth; call free_growth_caches and initialize_growth_caches.
4159 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4160 struct size_time_entry): New structures.
4161 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4162 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4163 and estimated_growth.
4164 (edge_growth_cache_entry): New structure.
4165 (node_growth_cache, edge_growth_cache): New global vars.
4166 (estimate_growth): Turn into inline.
4167 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4168 initialize_growth_caches, free_growth_caches): Declare.
4169 (estimate_edge_growth): Rewrite.
4170 (estimate_edge_time): Implement as inline cache lookup.
4171 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4172 functions.
4173 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4174 (NUM_CONDITIONS): New constant.
4175 (predicate_conditions): New enum.
4176 (IS_NOT_CONSTANT): New constant.
4177 (edge_removal_hook_holder): New var.
4178 (node_growth_cache, edge_growth_cache): New global vars.
4179 (true_predicate, single_cond_predicate, false_predicate,
4180 not_inlined_predicate, add_condition, add_clause, and_predicates,
4181 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4182 dump_clause, dump_predicate, account_size_time,
4183 evaulate_conditions_for_edge): New functions.
4184 (inline_summary_alloc): Move to heap.
4185 (inline_node_removal_hook): Clear condition and entry vectors.
4186 (inline_edge_removal_hook): New function.
4187 (initialize_growth_caches, free_growth_caches): New function.
4188 (dump_inline_summary): Update.
4189 (edge_execution_predicate): New function.
4190 (will_be_nonconstant_predicate): New function.
4191 (estimate_function_body_sizes): Compute BB and constantness predicates.
4192 (compute_inline_parameters): Do not clear estimated_growth.
4193 (estimate_edge_size_and_time): New function.
4194 (estimate_calls_size_and_time): New function.
4195 (estimate_callee_size_and_time): New function.
4196 (remap_predicate): New function.
4197 (inline_merge_summary): New function.
4198 (do_estimate_edge_time): New function based on...
4199 (estimate_edge_time): ... this one.
4200 (do_estimate_edge_growth): New function.
4201 (do_estimate_growth): New function based on....
4202 (estimate_growth): ... this one.
4203 (inline_analyze_function): Analyze after deciding on jump functions.
4204 (inline_read_section): New function.
4205 (inline_read_summary): Use it.
4206 (inline_write_summary): Write all the new data.
4207 * ipa-prop.c (ipa_get_param_decl_index): Export.
4208 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4209 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4210 Declare.
4211 (ipa_get_lattice): Move here from ipa-cp.c
4212 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4213 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4214 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4215 cgraph_edge_inlinable_p): Remove.
4216 * cgraphunit.c: Include ipainline.h
4217 (cgraph_process_new_functions): Update call of
4218 compute_inline_parameters.
4219
4220 2011-04-22 Richard Guenther <rguenther@suse.de>
4221
4222 * tree.c (build_int_cst): Properly create canonicalized integer
4223 constants.
4224 (build_int_cst_type): Remove scary comments.
4225
4226 2011-04-22 Xinliang David Li <davidxl@google.com>
4227
4228 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4229 by default when -Wno-error is not specified.
4230 * opts-global.c (decode_options): Remove call to
4231 control_warning_options.
4232
4233 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4234
4235 PR tree-optimization/48717
4236 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4237 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4238
4239 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4240
4241 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4242 definition where used.
4243
4244 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4245
4246 PR c/48716
4247 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4248 TREE_STATIC variables declared inside of some OpenMP construct.
4249
4250 2011-04-22 Martin Jambor <mjambor@suse.cz>
4251
4252 PR middle-end/48585
4253 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4254
4255 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4256
4257 PR c/36750
4258 * c-typeck.c (pop_init_level): Do not warn about initializing
4259 with ` = {0}'.
4260
4261 2011-04-22 Alan Modra <amodra@gmail.com>
4262
4263 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4264 when returning call_cookie.
4265 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4266 pointers, to functions with no more vector args than the current
4267 function, and some non-local calls for ABI_V4.
4268 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4269 sibcall_nonlocal_aix64): Combine to ..
4270 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4271 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4272 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4273 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4274 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4275 operand.
4276 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4277 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4278 sibcall_value_symbolic_64): Delete.
4279
4280 2011-04-21 Xinliang David Li <davidxl@google.com>
4281
4282 * cgraph.h: Remove pid.
4283 * cgraph.c: Remove pid.
4284 * value-prof.c (init_node_map): New function.
4285 (del_node_map): New function.
4286 (find_func_by_funcdef_no): New function.
4287 (gimple_ic_transform): Call new function.
4288 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4289 * function.c (get_last_funcdef_no): New function.
4290 * function.h (get_last_funcdef_no): New function.
4291 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4292 to libgcov function.
4293 (tree-profiling): Call node map init and delete function.
4294
4295 2011-04-21 Ian Lance Taylor <iant@google.com>
4296
4297 * godump.c (go_format_type): Use exported Go name for anonymous
4298 field name.
4299
4300 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4301
4302 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4303 Call builtin_function_type_list instead of builtin_function_type.
4304 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4305
4306 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4307
4308 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4309 build_function_type_list instead of build_function_type.
4310 Delete variable `endlink'.
4311
4312 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4313
4314 * config/s390/s390.c (s390_init_builtins): Call
4315 build_function_type_list instead of build_function_type.
4316
4317 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4318
4319 * config/ia64/ia64.c (ia64_init_builtins): Call
4320 build_function_type_list instead of builtin_function_type.
4321
4322 2011-04-21 Easwaran Raman <eraman@google.com>
4323
4324 * cfgexpand.c (stack_var): Remove OFFSET...
4325 (add_stack_var): ...and its reference here...
4326 (expand_stack_vars): ...and here.
4327 (stack_var_cmp): Sort by descending order of size.
4328 (partition_stack_vars): Change heuristic.
4329 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4330 (dump_stack_var_partition): Add newline after each partition.
4331
4332 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4333 Jeff Law <law@redhat.com>
4334
4335 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4336 * gengtype.c (matching_file_name_substitute): Likewise.
4337
4338 2011-04-21 Richard Guenther <rguenther@suse.de>
4339
4340 PR lto/48703
4341 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4342
4343 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4344
4345 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4346
4347 2011-04-21 Richard Guenther <rguenther@suse.de>
4348
4349 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4350 file name.
4351
4352 2011-04-21 Richard Guenther <rguenther@suse.de>
4353
4354 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4355 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4356 Use DECL_P, not SSA_VAR_P.
4357 (ptr_derefs_may_alias_p): Likewise.
4358 (ptr_deref_may_alias_ref_p_1): Likewise.
4359 (decl_refs_may_alias_p): Likewise.
4360 (refs_may_alias_p_1): Likewise.
4361 (ref_maybe_used_by_call_p_1): Likewise.
4362 (call_may_clobber_ref_p_1): Likewise.
4363 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4364 are either MEM_REF or TARGET_MEM_REF.
4365 (indirect_refs_may_alias_p): Likewise.
4366 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4367 for MEM_EXPR of indirect calls.
4368
4369 2011-04-21 Tristan Gingold <gingold@adacore.com>
4370
4371 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4372 (dst_file_info_struct): Remove flen field.
4373 (lookup_filename): Remove code that set flen field.
4374
4375 2011-04-21 Tristan Gingold <gingold@adacore.com>
4376
4377 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4378
4379 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4380
4381 PR target/48708
4382 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4383 vec_extract and vec_concat for non-SSE4_1 targets.
4384
4385 2011-04-21 Richard Guenther <rguenther@suse.de>
4386
4387 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4388 return statements.
4389
4390 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4391
4392 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4393 undefine.
4394 (FILE): Don't undefine.
4395
4396 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4397
4398 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4399 struct rtx_def *.
4400 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4401 struct rtx_def *.
4402 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4403 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4404 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4405 rtx_def *.
4406 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4407 definitions where used.
4408 * config/microblaze/microblaze.h (struct microblaze_args): Use
4409 rtx, not struct rtx_def *.
4410 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4411 rtx_def *.
4412 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4413 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4414 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4415 not struct rtx_def *.
4416 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4417 struct rtx_def *.
4418 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4419 rtx_def *.
4420 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4421
4422 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4423
4424 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4425 operand_equal_p to compare DR_BASE_ADDRESSes.
4426 (vect_check_interleaving): Likewise.
4427
4428 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4429
4430 PR target/46329
4431 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4432 for all Neon struct constants.
4433
4434 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4435
4436 * target.def (legitimate_constant_p): New hook.
4437 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4438 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4439 * doc/tm.texi: Regenerate.
4440 * hooks.h (hook_bool_mode_rtx_true): Declare.
4441 * hooks.c (hook_bool_mode_rtx_true): Define.
4442 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4443 * calls.c (precompute_register_parameters): Replace uses of
4444 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4445 (emit_library_call_value_1): Likewise.
4446 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4447 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4448 * ira-costs.c (scan_one_insn): Likewise.
4449 * recog.c (general_operand, immediate_operand): Likewise.
4450 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4451 * reload1.c (init_eliminable_invariants): Likewise.
4452
4453 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4454 mode argument.
4455 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4456 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4457 argument.
4458 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4459 * config/alpha/predicates.md (input_operand): Update call to
4460 alpha_legitimate_constant_p.
4461
4462 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4463 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4464 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4465 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4466 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4467 (arm_legitimate_constant_p): New functions.
4468 (arm_cannot_force_const_mem): Make static.
4469
4470 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4471
4472 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4473 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4474 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4475 instead of bfin_legitimate_constant_p.
4476 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4477 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4478
4479 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4480
4481 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4482
4483 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4484 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4485 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4486 (frv_legitimate_constant_p): Make static. Add a mode argument.
4487
4488 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4489 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4490 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4491
4492 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4493 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4494 * config/i386/i386.c (legitimate_constant_p): Rename to...
4495 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4496 argument.
4497 (ix86_cannot_force_const_mem): Update accordingly.
4498 (ix86_legitimate_address_p): Likewise.
4499 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4500 * config/i386/i386.md: Update commentary.
4501
4502 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4503 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4504 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4505 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4506
4507 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4508
4509 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4510 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4511 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4512 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4513
4514 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4515 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4516 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4517
4518 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4519 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4520 (m32r_legitimate_constant_p): New function.
4521
4522 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4523 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4524 LEGITIMATE_CONSTANT_P.
4525 (LEGITIMATE_CONSTANT_P): Delete.
4526 * config/m68k/m68k.c (m68k_expand_prologue): Call
4527 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4528 (m68k_legitimate_constant_p): New function.
4529 * config/m68k/m68k.md: Update comments.
4530
4531 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4532 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4533 (mcore_legitimate_constant_p): New function.
4534
4535 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4536 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4537 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4538 Add a mode argument.
4539 (mep_legitimate_address): Update accordingly.
4540 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4541
4542 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4543 Delete.
4544 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4545 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4546 static. Check OP's mode for VOIDmode.
4547 (microblaze_legitimate_constant_p): New function.
4548 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4549
4550 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4551 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4552 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4553 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4554 * config/mips/predicates.md: Update comments.
4555
4556 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4557 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4558 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4559 (mmix_legitimate_constant_p): Make static, return a bool, and take
4560 a mode argument.
4561 (mmix_print_operand_address): Update accordingly.
4562
4563 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4564 Delete.
4565 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4566 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4567 static. Add a mode argument.
4568 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4569
4570 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4571
4572 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4573 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4574 (pa_legitimate_constant_p): New function.
4575
4576 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4577
4578 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4579 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4580 (pdp11_legitimate_constant_p): New function.
4581
4582 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4583 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4584 (rs6000_legitimate_constant_p): New function.
4585
4586 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4587 (rx_legitimate_constant_p): ...this.
4588 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4589 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4590 (rx_legitimate_constant_p): ...this.
4591 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4592 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4593
4594 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4595 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4596 * config/s390/s390.c (legitimate_constant_p): Rename to...
4597 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4598 and add a mode argument.
4599 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4600
4601 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4602
4603 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4604 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4605 (sh_legitimate_constant_p): New function.
4606
4607 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4608 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4609 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4610 (legitimate_constant_p): Rename to...
4611 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4612 argument.
4613 (constant_address_p): Update accordingly.
4614
4615 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4616 argument and return a bool.
4617 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4618 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4619 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4620 (spu_rtx_costs): Update accordingly.
4621 * config/spu/predicates.md (vec_imm_operand): Likewise.
4622
4623 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4624
4625 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4626 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4627 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4628
4629 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4630 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4631 * config/vax/vax.c (legitimate_constant_p): Likewise.
4632
4633 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4634 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4635 (xtensa_legitimate_constant_p): New function.
4636
4637 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4638
4639 * target.def (cannot_force_const_mem): Add a mode argument.
4640 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4641 * doc/tm.texi: Regenerate.
4642 * hooks.h (hook_bool_mode_rtx_false): Declare.
4643 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4644 (hook_bool_mode_const_rtx_true): Likewise.
4645 (hook_bool_mode_rtx_false): New function.
4646 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4647 to be non-VOID. Update call to cannot_force_const_mem.
4648 (find_reloads): Update accordingly.
4649 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4650 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4651 argument.
4652 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4653 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4654 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4655 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4656 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4657 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4658 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4659 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4660 (m68k_cannot_force_const_mem): ...this new function.
4661 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4662 argument.
4663 (mips_const_insns, mips_legitimize_const_move): Update calls.
4664 (mips_secondary_reload_class): Likewise.
4665 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4666 (pa_cannot_force_const_mem): ...this new function.
4667 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4668 (rs6000_cannot_force_const_mem): ...this new function.
4669 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4670 argument.
4671 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4672 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4673 to...
4674 (xtensa_cannot_force_const_mem): ...this new function.
4675
4676 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4677
4678 * config/mips/mips.c (mips16_build_function_stub): Call
4679 build_function_type_list instead of build_function_type.
4680 (mips16_build_call_stub): Likewise.
4681
4682 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4683
4684 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4685 instead of build_function_type.
4686
4687 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4688
4689 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4690 instead of build_function_type.
4691
4692 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4693
4694 PR target/48678
4695 * config/i386/i386.md (insv): Change operand 0 constraint to
4696 "register_operand". Change operand 1 and 2 constraint to
4697 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4698 * config/i386/sse.md (sse4_1_pinsrb): Export.
4699 (sse2_pinsrw): Ditto.
4700 (sse4_1_pinsrd): Ditto.
4701 (sse4_1_pinsrq): Ditto.
4702 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4703 * config/i386/i386.c (ix86_expand_pinsr): New.
4704
4705 2011-04-20 Easwaran Raman <eraman@google.com>
4706
4707 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4708 containing union type only with -fstrict-aliasing.
4709
4710 2011-04-20 Jim Meyering <meyering@redhat.com>
4711
4712 Remove useless if-before-free tests.
4713 * calls.c (expand_call, save_area): Likewise.
4714 * cfgcleanup.c (try_forward_edges): Likewise.
4715 * collect2.c (collect_execute): Likewise.
4716 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4717 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4718 * coverage.c (coverage_checksum_string): Likewise.
4719 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4720 * cselib.c (cselib_init): Likewise.
4721 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4722 (df_set_clean_cfg): Likewise.
4723 * function.c (free_after_compilation): Likewise.
4724 * gcc.c (do_spec_1, main): Likewise.
4725 * gcov.c (create_file_names): Likewise.
4726 * gensupport.c (identify_predicable_attribute): Likewise.
4727 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4728 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4729 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4730 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4731 * ipa-pure-const.c (local_pure_const): Likewise.
4732 * ipa-reference.c (propagate): Likewise.
4733 * ira-costs.c (free_ira_costs): Likewise.
4734 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4735 * matrix-reorg.c (mat_free): Likewise.
4736 * prefix.c (get_key_value): Likewise.
4737 * profile.c (compute_value_histograms): Likewise.
4738 * reload1.c (free_reg_equiv): Likewise.
4739 * sched-deps.c (free_deps): Likewise.
4740 * sel-sched-ir.c (fence_clear): Likewise.
4741 * sese.c (set_rename, if_region_set_false_region): Likewise.
4742 * tree-data-ref.c (free_rdg): Likewise.
4743 * tree-eh.c (lower_try_finally): Likewise.
4744 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4745 * tree-ssa-live.c (delete_var_map): Likewise.
4746 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4747 * tree-ssa-pre.c (phi_trans_add): Likewise.
4748
4749 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4750
4751 PR tree-optimization/48611
4752 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4753 beyond ERT_MUST_NOT_THROW region.
4754
4755 2011-04-20 Catherine Moore <clm@codesourcery.com>
4756
4757 * config/mips/mips.opt (mfix-24k): New.
4758 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4759 * config/mips/mips.md (length): Increase by 4 for stores if
4760 fixing 24K errata.
4761 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4762 all noreorder if fixing 24K errata.
4763 * doc/invoke.texi: Document mfix-24k.
4764
4765 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4766
4767 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4768 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4769
4770 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4771
4772 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4773 (const_ok_for_op): ... to here.
4774
4775 2011-04-20 Kai Tietz <ktietz@redhat.com>
4776
4777 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4778 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4779
4780 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4781
4782 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4783
4784 2011-04-20 Richard Guenther <rguenther@suse.de>
4785
4786 PR tree-optimization/47892
4787 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4788 are if-convertible.
4789
4790 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4791
4792 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4793
4794 2011-04-20 Tristan Gingold <gingold@adacore.com>
4795
4796 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4797
4798 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4799
4800 PR target/18145
4801
4802 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4803 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4804 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4805 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4806 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4807
4808 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4809 New prototype.
4810
4811 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4812 (avr_asm_named_section, avr_asm_output_aligned_common,
4813 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4814 New functions to update...
4815 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4816 (avr_asm_init_sections): Overwrite section callbacks for
4817 data_section, bss_section.
4818 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4819 from here to...
4820 (avr_file_end): ...here.
4821
4822 2011-04-20 Richard Guenther <rguenther@suse.de>
4823
4824 PR middle-end/48695
4825 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4826 objects and types here. Adjust for their offset before comparing.
4827
4828 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4829
4830 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4831 statement per copy.
4832
4833 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4834
4835 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4836 (GIMPLE_H): Include $(INTERNAL_FN_H).
4837 (OBJS-common): Add internal-fn.o.
4838 (internal-fn.o): New rule.
4839 * internal-fn.def: New file.
4840 * internal-fn.h: Likewise.
4841 * internal-fn.c: Likewise.
4842 * gimple.h: Include internal-fn.h.
4843 (GF_CALL_INTERNAL): New gf_mask.
4844 (gimple_statement_call): Put fntype into a union with a new
4845 internal_fn field.
4846 (gimple_build_call_internal): Declare.
4847 (gimple_build_call_internal_vec): Likewise.
4848 (gimple_call_same_target_p): Likewise.
4849 (gimple_call_internal_p): New function.
4850 (gimple_call_internal_fn): Likewise.
4851 (gimple_call_fntype): Return null for internal calls.
4852 (gimple_call_set_fntype): Assert that the function is not internal.
4853 (gimple_call_set_fn): Likewise.
4854 (gimple_call_set_fndecl): Likewise.
4855 (gimple_call_set_internal_fn): New function.
4856 (gimple_call_addr_fndecl): Handle null functions.
4857 (gimple_call_return_type): Likewise null types.
4858 * gimple.c (gimple_build_call_internal_1): New function.
4859 (gimple_build_call_internal): Likewise.
4860 (gimple_build_call_internal_vec): Likewise.
4861 (gimple_call_same_target_p): Likewise.
4862 (gimple_call_flags): Handle calls to internal functions.
4863 (gimple_call_fnspec): New function.
4864 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4865 (gimple_has_side_effects): Handle null functions.
4866 (gimple_rhs_has_side_effects): Likewise.
4867 (gimple_call_copy_skip_args): Handle calls to internal functions.
4868 * cfgexpand.c (expand_call_stmt): Likewise.
4869 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4870 * gimple-fold.c (gimple_fold_call): Handle null functions.
4871 (gimple_fold_stmt_to_constant_1): Don't fold
4872 calls to internal functions.
4873 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4874 functions.
4875 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4876 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4877 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4878 (do_warn_unused_result): Likewise.
4879 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4880 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4881 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4882 the target of a call.
4883 (initialize_hash_element): Update accordingly.
4884 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4885 (iterative_hash_hashable_expr): Handle calls to internal functions.
4886 (print_expr_hash_elt): Likewise.
4887 * tree-ssa-pre.c (can_value_number_call): Likewise.
4888 (eliminate): Handle null functions.
4889 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4890 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4891 (find_func_aliases): Likewise.
4892 * value-prof.c (gimple_ic_transform): Likewise.
4893 (gimple_indirect_call_to_profile): Likewise.
4894 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4895 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4896
4897 2011-04-19 Jan Hubicka <jh@suse.cz>
4898
4899 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4900 * ipa-inline.c (inline_small_functions): Compute summaries first,
4901 populate heap later.
4902
4903 2011-04-19 Jan Hubicka <jh@suse.cz>
4904
4905 * cgraph.h (save_inline_function_body): Remove.
4906 * ipa-inline-transform.c: New file, broke out of...
4907 * ipa-inline.c: ... this one; Update toplevel comment.
4908 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4909 make global.
4910 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4911 (cgraph_mark_inline_edge): Rename to inline_call; move to
4912 ipa-inline-transform.c.
4913 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4914 move to ipa-inline-transform.c
4915 (recursive_inlining, inline_small_functions, flatten_function,
4916 ipa_inline, inline_always_inline_functions,
4917 early_inline_small_functions): Update.
4918 (inline_transform): Move to ipa-inline-transform.c.
4919 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4920 Declare.
4921 * Makefile.in (ipa-inline-transform.o): New file.
4922 * cgraphunit.c (save_inline_function_body): Move to
4923 ipa-inline-transform.c
4924
4925 2011-04-19 DJ Delorie <dj@redhat.com>
4926
4927 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4928 registers if we already know there aren't any.
4929 (m32c_emit_epilogue): Don't emit a barrier here.
4930 (m32c_emit_eh_epilogue): Likewise.
4931 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4932 operands at expand time.
4933 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4934 int" wchar type.
4935 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4936 duplicates. Provide aliases instead.
4937 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4938 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4939 the compiler.
4940
4941 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4942
4943 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4944 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4945 (general_or_i64_p, sparc_register_move_cost): New function.
4946
4947 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4948
4949 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4950 Add lynx, mipssde. Sort table.
4951
4952 2011-04-19 Xinliang David Li <davidxl@google.com>
4953
4954 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4955 not negative.
4956
4957 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4958
4959 PR target/48678
4960 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4961 is a SUBREG with non-MODE_INT mode inside of it.
4962
4963 2011-04-19 Martin Jambor <mjambor@suse.cz>
4964
4965 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4966 also according to actual contants.
4967 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4968 (gimple_fold_call): Use it.
4969 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4970
4971 2011-04-19 Martin Jambor <mjambor@suse.cz>
4972
4973 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4974 non-pointer assignments.
4975
4976 2011-04-19 Martin Jambor <mjambor@suse.cz>
4977
4978 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4979 account anc_offset and otr_type from the indirect edge info.
4980 * ipa-prop.c (get_ancestor_addr_info): New function.
4981 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4982 get_ancestor_addr_info, call it.
4983 (ipa_note_param_call): Do not initialize information about polymorphic
4984 calls, return the indirect call graph edge. Remove the last
4985 parameter, adjust all callers.
4986 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4987 parameters. Initialize polymorphic information in the indirect edge.
4988
4989 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4990
4991 PR lto/48148
4992 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4993 the types if they have different enumeration identifiers.
4994
4995 2011-04-19 Jan Hubicka <jh@suse.cz>
4996
4997 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4998 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4999 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5000 (optimize_function_for_size_p) ... here.
5001
5002 2011-04-19 Richard Guenther <rguenther@suse.de>
5003
5004 PR lto/48207
5005 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5006 langhook.
5007
5008 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5009
5010 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5011 if DECL_NO_INLINE_WARNING_P is set on the function.
5012
5013 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5014
5015 PR fortran/47976
5016 * reload1.c (inc_for_reload): Return void. All callers changed.
5017 (emit_input_reload_insns): Don't try to delete previous output
5018 reloads to a register, or record spill_reg_store for autoincs.
5019
5020 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5021
5022 * gengtype.h: Updated copyright year.
5023 (struct input_file_st): Add inpisplugin field.
5024 (type_fileloc): New function.
5025 * gengtype.c
5026 (write_typed_struct_alloc_def): Add gcc_assert.
5027 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5028 (write_typed_alloc_defns): Don't output for plugin files.
5029 (input_file_by_name): Clear inpisplugin field.
5030 (main): Set inpisplugin field for plugin files.
5031
5032 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5033
5034 * gengtype-state.c (string_eq): New.
5035 (read_state): Use string_eq instead of strcmp when creating the
5036 state_ident_tab.
5037
5038 2011-04-19 Wei Guozhi <carrot@google.com>
5039
5040 PR target/47855
5041 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5042 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5043 linkage.
5044 * config/arm/constraints.md (Uu): New constraint.
5045 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5046
5047 2011-04-19 Tristan Gingold <gingold@adacore.com>
5048
5049 * config.gcc (-*-*-*vms): Added.
5050 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5051 definitions moved.
5052 * config/vms/vms-ld.c: New file.
5053 * config/vms/vms-ar.c: New file.
5054 * config/vms/t-vmsnative: New file.
5055
5056 2011-04-18 Xinliang David Li <davidxl@google.com>
5057
5058 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5059
5060 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5061
5062 PR middle-end/48661
5063 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5064 if TREE_TYPE (v) is non-NULL.
5065
5066 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5067 gimple_get_virt_mehtod_for_binfo.
5068 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5069 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5070 callers.
5071 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5072
5073 2011-04-18 Michael Matz <matz@suse.de>
5074 Steve Ellcey <sje@cup.hp.com>
5075
5076 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5077 use its mode as source mode if it isn't VOIDmode.
5078
5079 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5080
5081 * doc/passes.texi: Fill crossref nodes.
5082
5083 2011-04-18 Jim Meyering <meyering@redhat.com>
5084
5085 Fix doubled-word typos in comments and strings
5086 * config/alpha/vms-unwind.h: s/for for/for/
5087 * config/arm/unwind-arm.h: Likewise.
5088 * config/microblaze/microblaze.c: Likewise.
5089 * config/sh/constraints.md: s/in in/in/
5090 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5091
5092 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5093
5094 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5095 (AVX_FLOAT_MODE_P): Ditto.
5096 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5097 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5098 (AVX_VEC_FLOAT_MODE_P): Ditto.
5099 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5100 (UNSPEC_MASKSTORE): Ditto.
5101 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5102 Merge from <sse>_movmsk<ssemodesuffix> and
5103 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5104 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5105 iterator.
5106 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5107 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5108 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5109
5110 2011-04-18 Jan Hubicka <jh@suse.cz>
5111
5112 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5113
5114 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5115 (want_inline_function_called_once_p): Break out the logic from
5116 ipa_inline.
5117 (edge_badness): Ensure that profile is not misupdated.
5118 (lookup_recursive_calls): Prioritize by call frequencies.
5119 (inline_small_functions): Move program size estimates here;
5120 actually process whole queue even when unit growth has been
5121 met. (to properly compute inline_failed reasons and for the
5122 case unit size decrease.) Revisit comments on recursive inlining.
5123 (ipa_inline): Remove unit summary code; first inline hot calls
5124 of functions called once, cold calls next.
5125 (order, nnodes): Remove unused variables.
5126 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5127 (GTFILES): Remove ipa-inline.c
5128 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5129
5130 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5131
5132 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5133
5134 2011-04-18 Jie Zhang <jie@codesourcery.com>
5135 Richard Earnshaw <rearnsha@arm.com>
5136
5137 * arm.c (neon_builtin_type_bits): Remove.
5138 (typedef enum neon_builtin_mode): New.
5139 (T_MAX): Don't define.
5140 (typedef enum neon_builtin_datum): Remove bits, codes[],
5141 num_vars and base_fcode. Add mode, code and fcode.
5142 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5143 VAR10): Change accordingly.
5144 (neon_builtin_data[]): Change accordingly
5145 (arm_init_neon_builtins): Change accordingly.
5146 (neon_builtin_compare): Remove.
5147 (locate_neon_builtin_icode): Remove.
5148 (arm_expand_neon_builtin): Change accordingly.
5149
5150 * arm.h (enum arm_builtins): Move to ...
5151 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5152
5153 * arm.c (arm_builtin_decl): Declare.
5154 (TARGET_BUILTIN_DECL): Define.
5155 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5156 (arm_builtin_decls[]): New.
5157 (arm_init_neon_builtins): Store builtin declarations in
5158 arm_builtin_decls[].
5159 (arm_init_tls_builtins): Likewise.
5160 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5161 (arm_builtin_decl): New.
5162
5163 2011-04-18 Richard Guenther <rguenther@suse.de>
5164
5165 * tree.c (upper_bound_in_type): Build properly canonicalized
5166 INTEGER_CSTs.
5167 (lower_bound_in_type): Likewise.
5168
5169 2011-04-18 Richard Guenther <rguenther@suse.de>
5170
5171 * gimple.h (gimple_call_addr_fndecl): New function.
5172 (gimple_call_fndecl): Use it.
5173 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5174 for direct calls.
5175 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5176 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5177
5178 2011-04-18 Richard Guenther <rguenther@suse.de>
5179
5180 PR middle-end/48650
5181 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5182
5183 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5184
5185 PR lto/48492
5186 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5187 DECL_IN_CONSTANT_POOL without RTL.
5188
5189 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5190 Ira Rosen <ira.rosen@linaro.org>
5191
5192 PR target/48252
5193 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5194 to match neon_vzip/vuzp/vtrn_internal.
5195 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5196 outputs explicitly dependent on both inputs.
5197 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5198
5199 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5200
5201 PR tree-optimization/48616
5202 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5203 whether the shift is by scalar or vector based on whether all SLP
5204 scalar stmts have the same rhs.
5205
5206 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5207
5208 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5209 memory operands.
5210
5211 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5212
5213 PR target/43700
5214 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5215 registers.
5216
5217 2011-04-17 Jan Hubicka <jh@suse.cz>
5218
5219 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5220 * cgrpahunit.c (cgraph_finalize_function): Do not set
5221 finalized_by_frontend.
5222 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5223 finalized_by_frontend.
5224
5225 2011-04-17 Jan Hubicka <jh@suse.cz>
5226
5227 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5228 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5229 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5230 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5231 method.
5232 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5233 gimple-fold.c
5234 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5235
5236 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5237
5238 PR lto/48538
5239 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5240 is non-null before accessing it.
5241 (input_cgraph): Remove trailing spaces.
5242
5243 2011-04-17 Revital Eres <revital.eres@linaro.org>
5244
5245 * params.def (sms-min-sc): New param flag.
5246 * modulo-sched.c (sms_schedule): Use it.
5247 * doc/invoke.texi (sms-min-sc): Document it.
5248
5249 2011-04-17 Jan Hubicka <jh@suse.cz>
5250
5251 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5252 present, also set gimple_call_set_cannot_inline.
5253 * ipa-inline.c: Update toplevel comment.
5254 (MAX_TIME): Remove.
5255 (cgraph_clone_inlined_nodes): Fix linebreaks.
5256 (cgraph_check_inline_limits): Restructure to ...
5257 (caller_growth_limits): ... this one; be more tolerant
5258 on growth in nested inline chains; add explanatory comment;
5259 fix stack accounting thinko introduced by previous patch.
5260 (cgraph_default_inline_p): Remove.
5261 (report_inline_failed_reason): New function.
5262 (can_inline_edge_p): New function.
5263 (can_early_inline_edge_p): New function.
5264 (leaf_node_p): Move upwards in file.
5265 (want_early_inline_function_p): New function.
5266 (want_inline_small_function_p): New function.
5267 (want_inline_self_recursive_call_p): New function.
5268 (cgraph_edge_badness): Rename to ...
5269 (edge_badness) ... this one; fix linebreaks.
5270 (update_edge_key): Update call of edge_baddness; add
5271 detailed dump about queue updates.
5272 (update_caller_keys): Use can_inline_edge_p and
5273 want_inline_small_function_p.
5274 (cgraph_decide_recursive_inlining): Rename to...
5275 (recursive_inlining): Use can_inline_edge_p and
5276 want_inline_self_recursive_call_p; simplify and remove no longer
5277 valid FIXME.
5278 (cgraph_set_inline_failed): Remove.
5279 (add_new_edges_to_heap): Use can_inline_edge_p and
5280 want_inline_small_function_p.
5281 (cgraph_decide_inlining_of_small_functions): Rename to ...
5282 (inline_small_functions): ... this one; cleanup; use
5283 can/want predicates; cleanup debug ouput; work edges till fibheap
5284 is exhausted and do not stop once unit growth is reached; remove
5285 later loop processing remaining edges.
5286 (cgraph_flatten): Rename to ...
5287 (flatten_function): ... this one; use can_inline_edge_p
5288 and can_early_inline_edge_p predicates.
5289 (cgraph_decide_inlining): Rename to ...
5290 (ipa_inline): ... this one; remove unreachable nodes before
5291 inlining functions called once; simplify the pass.
5292 (cgraph_perform_always_inlining): Rename to ...
5293 (inline_always_inline_functions): ... this one; use
5294 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5295 (cgraph_decide_inlining_incrementally): Rename to ...
5296 (early_inline_small_functions): ... this one; simplify
5297 using new predicates; cleanup; make dumps prettier.
5298 (cgraph_early_inlining): Rename to ...
5299 (early_inliner): newer inline regular functions into always-inlines;
5300 fix updating of call stmt summaries.
5301 (pass_early_inline): Update for new names.
5302 (inline_transform): Fix formating.
5303 (gate_cgraph_decide_inlining): Rename to ...
5304 (pass_ipa_inline): ... this one.
5305 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5306 * ipa-inline-analysis.c (dump_inline_summary): Update.
5307 (compute_inline_parameters): Do not compute disregard_inline_limits;
5308 look for mismatching arguments.
5309 (estimate_growth): Fix handlig of non-trivial self recursion.
5310 (inline_read_summary): Do not read info->disregard_inline_limits.
5311 (inline_write_summary): Do not write info->disregard_inline_limits.
5312 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5313 and move all checks into can_inline_edge_p predicate; re-enable code
5314 comparing optimization levels.
5315 (expand_call_inline): Do not test inline_forbidden_into_p.
5316 * Makefile.in (ipa-inline.o): Update arguments.
5317
5318 2011-04-17 Revital Eres <revital.eres@linaro.org>
5319
5320 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5321
5322 2011-04-17 Revital Eres <revital.eres@linaro.org>
5323
5324 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5325
5326 2011-04-17 Michael Matz <matz@suse.de>
5327
5328 PR tree-optimization/48622
5329 PR lto/48645
5330 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5331 in same order as they're written.
5332
5333 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5334
5335 * config/pa/predicates.md: Reorganize and simplify predicates.
5336 Eliminate duplicate code checks.
5337 (arith_operand): Rename to arith14_operand
5338 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5339 * config/pa/pa.md: Use renamed operands.
5340 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5341 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5342 arith11_operand, adddi3_operand, indexed_memory_operand,
5343 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5344 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5345 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5346 move_dest_operand, move_src_operand, prefetch_cc_operand,
5347 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5348 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5349 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5350 div_operand, int5_operand, movb_comparison_operator,
5351 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5352 arith_double_operand, ireg_operand, lhs_lshift_operand,
5353 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5354 integer_store_memory_operand): Likewise.
5355 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5356 (integer_store_memory_operand, read_only_operand,
5357 function_label_operand, borx_reg_operand,
5358 non_hard_reg_operand): Likewise.
5359 (eq_neq_comparison_operator): Delete unused operator.
5360 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5361 function_label_operand.
5362 (emit_move_sequence): Likewise.
5363
5364 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5365
5366 * config/i386/sse.md (sseunpackmode): New mode attribute.
5367 (ssepackmode): Ditto.
5368 (vec_pack_trunc_<mode>): Macroize expander from
5369 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5370 (vec_unpacks_lo_<mode>): Macroize expander from
5371 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5372 (vec_unpacks_hi_<mode>): Macroize expander from
5373 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5374 (vec_unpacku_lo_<mode>): Macroize expander from
5375 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5376 (vec_unpacku_hi_<mode>): Macroize expander from
5377 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5378 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5379 ix86_expand_sse4_unpack.
5380 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5381
5382 2011-04-16 Jan Hubicka <jh@suse.cz>
5383
5384 * cgraphbuild.c: Include ipa-inline.h.
5385 (reset_inline_failed): Use initialize_inline_failed.
5386 * cgraph.c: Include ipa-inline.h.
5387 (cgraph_create_node_1): Do not initialize estimated_growth.
5388 (initialize_inline_failed): More to ipa-inline-analysis.c
5389 (dump_cgraph_node): Do not dump inline flags.
5390 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5391 and disregard_inline_limits flags.
5392 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5393 time, size, estimated_growth.
5394 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5395 Update.
5396 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5397 DECL_DISREGARD_INLINE_LIMITS.
5398 (cgraph_analyze_function): Do not initialize
5399 node->local.disregard_inline_limits.
5400 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5401 inlinable, versionable and disregard_inline_limits.
5402 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5403 cgraph_check_inline_limits, cgraph_default_inline_p,
5404 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5405 add_new_edges_to_heap): Update.
5406 (cgraph_decide_inlining_of_small_function): Update; set
5407 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5408 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5409 cgraph_decide_inlining_incrementally): Update.
5410 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5411 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5412 time, size and estimated_growth parameters.
5413 (estimate_edge_growth): Update.
5414 (initialize_inline_failed): Declare.
5415 * ipa-split.c: Include ipa-inline.h
5416 (execute_split_functions): Update.
5417 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5418 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5419 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5420 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5421 estimated_growth to INT_MIN.
5422 (inline_node_duplication_hook): Likewise.
5423 (dump_inline_summary): Dump new fields.
5424 (compute_inline_parameters): Update.
5425 (estimate_edge_time, estimate_time_after_inlining,
5426 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5427 inline_write_summary):
5428 (initialize_inline_failed): Move here from cgraph.c.
5429 * tree-sra.c: Include ipa-inline.h.
5430 (ipa_sra_preliminary_function_checks): Update.
5431 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5432 ipa-inline.h.
5433
5434 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5435
5436 * config/i386/sse.md (V16): New mode iterator.
5437 (VI1, VI8): Ditto.
5438 (AVXMODEQI, AVXMODEDI): Remove.
5439 (sse2, sse3): New mode attribute.
5440 (mov<mode>): Use V16 mode iterator.
5441 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5442 (push<mode>1): Use V16 mode iterator.
5443 (movmisalign<mode>): Ditto.
5444 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5445 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5446 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5447 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5448 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5449 avx_movdqu<avxmodesuffix>.
5450 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5451 *avx_movdqu<avxmodesuffix>.
5452 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5453 avx_lddqu<avxmodesuffix>.
5454 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5455 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5456 avx_movnt<AVXMODEDI:mode>.
5457 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5458 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5459
5460 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5461
5462 PR target/48629
5463 * haifa-sched.c (prune_ready_list, schedule_block): Use
5464 sched_pressure_p rather than flag_sched_pressure.
5465
5466 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5467
5468 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5469 cgraph_get_node instead of cgraph_get_create_node.
5470
5471 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5472
5473 * cfgexpand.c (expand_debug_expr): Use
5474 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5475
5476 2011-04-15 Michael Matz <matz@suse.de>
5477
5478 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5479 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5480 * function.c (gimplify_parameters): Ditto.
5481 * gimplify.c (gimplify_vla_decl): Ditto.
5482
5483 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5484 (gimple_call_set_alloca_for_var): New inline function.
5485 (gimple_call_alloca_for_var_p): Ditto.
5486 * gimple.c (gimple_build_call_from_tree): Remember
5487 CALL_ALLOCA_FOR_VAR_P state.
5488 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5489
5490 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5491 calls if they were for VLA objects.
5492
5493 2011-04-15 Martin Jambor <mjambor@suse.cz>
5494
5495 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5496 of ADR_EXPRs.
5497
5498 2011-04-15 Martin Jambor <mjambor@suse.cz>
5499
5500 PR middle-end/48601
5501 * tree-emutls.c (lower_emutls_function_body): Call
5502 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5503 result is non-NULL.
5504
5505 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5506
5507 * c-decl.c (detect_field_duplicates): Call
5508 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5509
5510 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5511
5512 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5513 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5514 * ipa-pure-const.c (check_stmt): Call it.
5515 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5516
5517 2011-04-15 Richard Guenther <rguenther@suse.de>
5518
5519 PR tree-optimization/48290
5520 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5521 Properly decide inhibiting propagation based on the valueized
5522 operand. Do loop-closed SSA form preserving here ...
5523 (init_copy_prop): ... not here.
5524
5525 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5526
5527 PR target/48612
5528 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5529 (*ieee_smax<mode>3): Likewise.
5530
5531 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5532
5533 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5534 Replace match_operand with match_dup for the third operand in
5535 these expanders.
5536
5537 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5538
5539 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5540 to track processing of conditionals. Update all callers.
5541 (try_combine, simplify_if_then_else): Update.
5542
5543 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5544
5545 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5546 -fsched-pressure.
5547
5548 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5549
5550 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5551 instead of match_operand for operand 3.
5552
5553 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5554
5555 * recog.h (insn_operand_data): Add an "allows_mem" field.
5556 * genoutput.c (output_operand_data): Initialize it.
5557 * optabs.c (maybe_legitimize_operand_same_code): New function.
5558 (maybe_legitimize_operand): Use it when matching the original
5559 op->value.
5560
5561 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5562
5563 * gimplify.c: Fix issues in comments throughout.
5564 (voidify_wrapper_expr): Fix long line.
5565 (build_stack_save_restore): Likewise.
5566 (gimplify_loop_expr): Likewise.
5567 (gimplify_compound_lval): Likewise.
5568 (gimplify_init_ctor_eval): Likewise.
5569 (gimplify_modify_expr_rhs): Likewise.
5570 (omp_notice_threadprivate_variable): Likewise.
5571
5572 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5573
5574 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5575 original one if this is not a builtin function.
5576
5577 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR target/48605
5580 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5581 offset it as needed based on top 2 bits in operands[3], change
5582 MEM mode to SFmode and mask those 2 bits away from operands[3].
5583
5584 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5585
5586 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5587 change from objc_declare_protocols() to objc_declare_protocol().
5588
5589 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5590
5591 * config/i386/sse.md (sse4_1): New mode attribute.
5592 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5593 avx_blend<ssemodesuffix><avxmodesuffix> and
5594 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5595 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5596 avx_blendv<ssemodesuffix><avxmodesuffix> and
5597 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5598 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5599 avx_dp<ssemodesuffix><avxmodesuffix> and
5600 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5601 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5602 (sse4_1_packusdw): Merge with *avx_packusdw.
5603 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5604 (sse4_1_pblendw): Merge with *avx_pblendw.
5605 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5606 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5607 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5608 VF mode iterator.
5609 (sse4_1_round<ssescalarmodesuffix>): Merge with
5610 *avx_round<ssescalarmodesuffix>.
5611 (aesenc): Merge with *avx_aesenc.
5612 (aesenclast): Merge with *avx_aesenclast.
5613 (aesdec): Merge with *avx_aesdec.
5614 (aesdeclast): Merge with *avx_aesdeclast.
5615 (pclmulqdq): Merge with *pclmulqdq.
5616 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5617 New predicate.
5618 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5619
5620 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5621
5622 PR middle-end/48608
5623 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5624 (align_local_variable): This. Update DECL_ALIGN.
5625 (add_stack_var): Updated.
5626 (expand_one_stack_var): Likewise.
5627
5628 2011-04-14 Richard Guenther <rguenther@suse.de>
5629
5630 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5631 Remove.
5632 (dse_initialize_block_local_data, dse_leave_block,
5633 record_voperand_set, get_stmt_uid): Likewise.
5634 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5635 (dse_optimize_stmt): Remove voperand set handling code.
5636 Simplify and improve to handle any kind of killing stmt.
5637 (dse_record_phi): Remove.
5638 (dse_enter_block): Simplify.
5639 (tree_ssa_dse): Likewise.
5640 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5641
5642 2011-04-14 Jan Hubicka <jh@suse.cz>
5643
5644 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5645 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5646 (cgraph_local_info): Remove inline_summary.
5647 * ipa-cp.c: Include ipa-inline.h.
5648 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5649 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5650 accesor.
5651 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5652 (input_overwrite_node): Do not set inline summary.
5653 (input_node): Do not stream inline summary.
5654 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5655 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5656 growth; we do not have inline parameters computed for that anyway.
5657 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5658 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5659 (inline_summary_t): New type and VECtor.
5660 (debug_inline_summary, dump_inline_summaries): Declare.
5661 (inline_summary): Use VOCtor.
5662 (estimate_edge_growth): Kill hack computing call stmt size directly.
5663 * lto-section-in.c (lto_section_name): Add inline section.
5664 * ipa-inline-analysis.c: Include lto-streamer.h
5665 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5666 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5667 (inline_summary_vec): Define.
5668 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5669 dump_inline_summaries): New functions.
5670 (estimate_function_body_sizes): Properly compute size/time of outgoing
5671 calls.
5672 (compute_inline_parameters): Alloc inline_summary; do not compute
5673 size/time of incomming calls.
5674 (estimate_edge_time): Avoid missing time summary hack.
5675 (inline_read_summary): Read inline summary info.
5676 (inline_write_summary): Write inline summary info.
5677 (inline_free_summary): Free all hooks and inline summary vector.
5678 * lto-streamer.h: Add LTO_section_inline_summary section.
5679 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5680 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5681
5682 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5683
5684 * tree-vectorizer.h (vect_strided_store_supported): Add a
5685 HOST_WIDE_INT argument.
5686 (vect_strided_load_supported): Likewise.
5687 (vect_permute_store_chain): Return void.
5688 (vect_transform_strided_load): Likewise.
5689 (vect_permute_load_chain): Delete.
5690 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5691 count argument. Check that the count is a power of two.
5692 (vect_strided_load_supported): Likewise.
5693 (vect_permute_store_chain): Return void. Update after above changes.
5694 Assert that the access is supported.
5695 (vect_permute_load_chain): Likewise.
5696 (vect_transform_strided_load): Return void.
5697 * tree-vect-stmts.c (vectorizable_store): Update calls after
5698 above interface changes.
5699 (vectorizable_load): Likewise.
5700 (vect_analyze_stmt): Don't check for strided powers of two here.
5701
5702 2011-04-14 Richard Guenther <rguenther@suse.de>
5703
5704 PR tree-optimization/48590
5705 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5706 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5707 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5708 BUILT_IN_STACK_SAVE.
5709 * tree-ssa-dce.c (propagate_necessity): Handle
5710 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5711
5712 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5713
5714 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5715 objc_declare_class.
5716
5717 2011-04-14 Richard Guenther <rguenther@suse.de>
5718
5719 * tree.h (get_object_alignment_1): Declare.
5720 * builtins.c (get_object_alignment_1): Split out worker from ...
5721 (get_object_alignment): ... here.
5722 * fold-const.c (get_pointer_modulus_and_residue): Use
5723 get_object_alignment_1.
5724
5725 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5726
5727 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5728 type parameter.
5729 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5730 parameter. Generalise code to handle arrays as well as vectors.
5731 (vect_setup_realignment): Update accordingly.
5732 * tree-vect-stmts.c (vectorizable_store): Likewise.
5733 (vectorizable_load): Likewise.
5734
5735 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5736
5737 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5738 within the per-copy loop.
5739
5740 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5741
5742 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5743 in the dump file.
5744
5745 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5746
5747 * doc/options.texi (Negative): Explicitly mention that the
5748 Negative chain must be circular.
5749
5750 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5751
5752 * function.h (block_chainon): Declare.
5753 * function.c (block_chainon): Define.
5754
5755 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5756 Eric Weddington <eric.weddington@atmel.com>
5757 Georg-Johann Lay <avr@gjlay.de>
5758
5759 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5760 New Includes
5761 (avr_init_builtins, avr_expand_builtin,
5762 avr_expand_delay_cycles, avr_expand_unop_builtin,
5763 avr_expand_binop_builtin ): New functions.
5764 (avr_builtin_id): New enum
5765 (struct avr_builtin_description): New struct
5766 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5767 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5768
5769 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5770 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5771 UNSPECV_DELAY_CYCLES): new enumeration values
5772 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5773 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5774 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5775 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5776 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5777 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5778 "fmulsu"): New insns
5779
5780 * config/avr/avr-c.c: fix line endings
5781 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5782 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5783 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5784 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5785 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5786
5787 * doc/extend.texi (AVR Built-in Functions): New node
5788 (Target Builtins): Add documentation of AVR
5789 built-in functions.
5790
5791 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5792
5793 PR target/44643
5794 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5795 alone. Error if non-const data has attribute progmem.
5796
5797 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5798
5799 * tree.h (struct tree_constructor): Include tree_typed instead of
5800 tree_common.
5801 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5802 TS_TYPED instead of TS_COMMON.
5803
5804 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5805
5806 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5807 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5808 (sse2_psadbw): Merge with *avx_psadbw.
5809 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5810 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5811 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5812 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5813 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5814 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5815 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5816 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5817 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5818 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5819 (ssse3_palignrti): Merge with *avx_palignrti.
5820
5821 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5822
5823 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5824 * tree-ssanames.c (fini_ssanames): VEC_free it.
5825 (make_ssa_name_fn): Update for VECness of free_ssanames.
5826 (release_ssa_name, release_dead_ssa_names): Likewise.
5827 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5828 tree_common.
5829 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5830 TS_TYPED instead of TS_COMMON.
5831
5832 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5833
5834 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5835 statistics_counter_event.
5836 * tree-ssa-copyrename.c (stats): Define.
5837 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5838 statistics_counter_event.
5839 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5840 (bswap_stats, widen_mul_stats): Define.
5841 (insert_reciprocals): Increment rdivs_inserted.
5842 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5843 rfuncs_inserted. Add calls to statistics_counter_event.
5844 (execute_cse_sincos_1): Increment inserted.
5845 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5846 statistics_counter_event.
5847 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5848 of bswap_stats. Add calls to statistics_counter_event.
5849 (convert_mult_to_widen): Increment widen_mults_inserted.
5850 (convert_plusminus_to_widen): Increment maccs_inserted.
5851 (convert_mult_to_fma): Increment fmas_inserted.
5852 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5853 calls to statistics_counter_event.
5854
5855 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5856
5857 PR rtl-optimization/48455
5858 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5859 `temp_costs->mem_cost'.
5860
5861 2011-04-13 Jan Hubicka <jh@suse.cz>
5862
5863 * ipa-inline.h: New file.
5864 * ipa-inline-analysis.c: New file. Broken out of ...
5865 * ipa-inline.c: ... this file; update toplevel comment;
5866 include ipa-inline.h
5867 (inline_summary): Move to ipa-inline.h
5868 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5869 ipa-inline-analysis.c.
5870 (cgraph_estimate_time_after_inlining): Rename to
5871 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5872 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5873 to estimate_edge_growth.
5874 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5875 rename to estimate_size_after_inlining.
5876 (cgraph_mark_inline_edge): Update for new naming convention.
5877 (cgraph_check_inline_limits): Likewise.
5878 (cgraph_edge_badness): Likewise.
5879 (cgraph_decide_recursive_inlining): Likewise.
5880 (cgraph_decide_inlining_of_small_functions): Likewise.
5881 (cgraph_decide_inlining_incrementally): Likewise.
5882 (cgraph_estimate_growth): Rename to estimate_growth; move to
5883 ipa-inline-analysis.c.
5884 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5885 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5886 (compute_inline_parameters): Likewise.
5887 (compute_inline_parameters_for_current): Likewise.
5888 (pass_inline_parameters): Likewise.
5889 (inline_indirect_intraprocedural_analysis): Likewise.
5890 (analyze_function): Rename to inline_analyze_function; likewise.
5891 (add_new_function): Move to ipa-inline-analysis.c.
5892 (inline_generate_summary): Likewise.
5893 (inline_read_summary): Likewise.
5894 (inline_write_summary): Likewise.
5895 * Makefile.in (ipa-inline-analysis.c): New file.
5896
5897 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5898
5899 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5900 * configure: Regenerate.
5901
5902 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5903
5904 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5905 instead of tree_common.
5906 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5907 Likewise.
5908 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5909 TS_TYPED rather than TS_COMMON.
5910 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5911
5912 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5913
5914 PR target/45263
5915 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5916 r20 around calls of __tablejump_elpm__
5917
5918 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5919
5920 PR middle-end/48591
5921 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5922 NULL.
5923 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5924
5925 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5926
5927 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5928 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5929 (cfi_vec): New typedef.
5930 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5931 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5932 (cie_cfi_vec): New static variable.
5933 (cie_cfi_head): Delete.
5934 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5935 declaration changed. Use vector rather than list operations.
5936 (new_cfi): Don't initialize the dw_cfi_next field.
5937 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5938 rather than list operations.
5939 (lookup_cfa): Use vector rather than list operations.
5940 (output_cfis): New argument upto. Accept a cfi_vec rather than
5941 a dw_cfi_ref list head as argument. All callers changed.
5942 Iterate over the vector using upto as a maximum index.
5943 (output_all_cfis): New static function.
5944 (output_fde): Use vector rather than list operations. Use the
5945 new upto argument for output_cfis rather than manipulating a
5946 list.
5947 (dwarf2out_begin_prologue): Change initializations to match
5948 new struct members.
5949 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5950 from the vector length rather than searching for the end of a list.
5951 Use output_all_cfis.
5952 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5953
5954 2011-04-13 Nick Clifton <nickc@redhat.com>
5955
5956 * config/rx/rx.md (movmemsi): Do not use this pattern when
5957 volatile pointers are involved.
5958
5959 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5960
5961 * config/i386/sse.md (pinsrbits): Remove.
5962 (sse2_packsswb): Merge with *avx_packsswb.
5963 (sse2_packssdw): Merge with *avx_packssdw.
5964 (sse2_packuswb): Merge with *avx_packuswb.
5965 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5966 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5967 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5968 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5969 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5970 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5971 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5972 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5973 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5974 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5975 (sse2_loadld): Merge with *avx_loadld.
5976 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5977 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5978 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5979 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5980 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5981
5982 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5983
5984 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5985 calling TREE_CHAIN.
5986 * print-tree.c (print_node): Likewise.
5987 * tree-inline.c (copy_tree_r): Likewise.
5988 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5989 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5990 instead of TS_COMMON.
5991 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5992 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5993 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5994 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5995 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5996 ...and these...
5997 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5998 * tree.h: ...here.
5999 (TREE_CHAIN): Check for a TS_COMMON structure.
6000 (TREE_TYPE): Check for a TS_TYPED structure.
6001
6002 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6003
6004 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6005 cgraph_get_create_node instead of cgraph_node.
6006
6007 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6008
6009 * c-parser.c (c_parser_initelt): Updated call to
6010 objc_build_message_expr.
6011 (c_parser_postfix_expression): Likewise.
6012
6013 2011-04-12 Kai Tietz <ktietz@redhat.com>
6014
6015 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6016 MASK_MS_BITFIELD_LAYOUT bit.
6017
6018 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6019
6020 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6021 assert it is always true.
6022 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6023 moves.
6024
6025 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6026
6027 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6028 compiling Objective-C to be more efficient.
6029
6030 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6031
6032 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6033 argv_copied.
6034
6035 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6036
6037 * recog.h, genoutput.c, optabs.c: Revert last patch.
6038
6039 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6040
6041 PR target/48090
6042 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6043
6044 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6045
6046 * recog.h (insn_operand_data): Add an "allows_mem" field.
6047 * genoutput.c (output_operand_data): Initialize it.
6048 * optabs.c (maybe_legitimize_operand_same_code): New function.
6049 (maybe_legitimize_operand): Use it when matching the original
6050 op->value.
6051
6052 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6053
6054 * genpreds.c (process_define_predicate): Move most processing
6055 to gensupport.c. Continue to validate the expression.
6056 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6057 (process_define_predicate): Move processing to gensupport.c.
6058 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6059 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6060 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6061 argument.
6062 (valid_predicate_name_p): New function, split out from old
6063 genpreds.c:process_define_predicate.
6064 (process_define_predicate): New function, combining code from
6065 old genpreds.c and genrecog.c functions.
6066 (process_rtx): Call it for DEFINE_PREDICATE and
6067 DEFINE_SPECIAL_PREDICATE.
6068
6069 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6070
6071 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6072 size of a '%A' memory reference.
6073 (T_DREG, T_QREG): New neon_builtin_type_bits.
6074 (arm_init_neon_builtins): Assert that the load and store operands
6075 are neon_struct_operands.
6076 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6077 (NEON_ARG_MEMORY): New builtin_arg.
6078 (neon_dereference_pointer): New function.
6079 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6080 Handle NEON_ARG_MEMORY.
6081 (arm_expand_neon_builtin): Update after above interface changes.
6082 Use NEON_ARG_MEMORY for loads and stores.
6083 * config/arm/predicates.md (neon_struct_operand): New predicate.
6084 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6085 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6086 (V_four_elem): Tweak formatting.
6087 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6088 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6089 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6090 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6091 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6092 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6093 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6094 Use %A in the output template.
6095 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6096 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6097 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6098 the width of the memory access. Remove post-increment.
6099 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6100
6101 2011-04-12 Nick Clifton <nickc@redhat.com>
6102
6103 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6104 instruction for interrupt handlers if the target is the basic V850
6105 architecture.
6106 (expand_epilogue): Likewise.
6107
6108 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6109
6110 PR rtl-optimization/48549
6111 * combine.c (propagate_for_debug): Also stop after BB_END of
6112 this_basic_block. Process LAST and just stop processing after it.
6113 (combine_instructions): If last_combined_insn has been deleted,
6114 set last_combined_insn to its PREV_INSN.
6115
6116 2011-04-12 Richard Guenther <rguenther@suse.de>
6117
6118 PR tree-optimization/46076
6119 * gimple.h (struct gimple_statement_call): Add fntype field.
6120 (gimple_call_fntype): Adjust.
6121 (gimple_call_set_fntype): New function.
6122 * gimple.c (gimple_build_call_1): Set the call function type.
6123 * gimplify.c (gimplify_call_expr): Preserve the function
6124 type the frontend used for the call.
6125 (gimplify_modify_expr): Likewise.
6126 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6127 function type.
6128 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6129 function type.
6130 * tree-ssa.c (useless_type_conversion_p): Function pointer
6131 conversions are useless.
6132
6133 2011-04-12 Martin Jambor <mjambor@suse.cz>
6134
6135 * cgraph.h (cgraph_node): Remove function declaration.
6136 (cgraph_create_node): Declare.
6137 (cgraph_get_create_node): Likewise.
6138 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6139 Updated all callers.
6140 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6141 the decl does not already exist. Call cgraph_get_create_node instead
6142 of cgraph_node.
6143 (cgraph_get_create_node): New function.
6144 (cgraph_same_body_alias): Update comment.
6145 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6146 assert it does not return NULL.
6147 (cgraph_update_edges_for_call_stmt): Likewise.
6148 (cgraph_clone_edge): Likewise.
6149 (cgraph_create_virtual_clone): Likewise.
6150 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6151 instead of cgraph_node.
6152 (cgraph_add_new_function): Call cgraph_create_node or
6153 cgraph_get_create_node instead of cgraph_node.
6154 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6155 instead of cgraph_node.
6156 (record_eh_tables): Likewise.
6157 (mark_address): Likewise.
6158 (mark_load): Likewise.
6159 (build_cgraph_edges): Call cgraph_get_create_node instead
6160 of cgraph_node.
6161 (rebuild_cgraph_edges): Likewise.
6162 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6163 instead of cgraph_node.
6164 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6165 cgraph_node.
6166 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6167 cgraph_create_node instead of cgraph_node.
6168 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6169 of cgraph_node.
6170 * lto-cgraph.c (input_node): Likewise.
6171 * lto-streamer-in.c (input_function): Likewise.
6172 * varasm.c (mark_decl_referenced): Likewise.
6173 (assemble_alias): Likewise.
6174
6175 2011-04-12 Martin Jambor <mjambor@suse.cz>
6176
6177 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6178 instead of cgraph_node and assert it does not return NULL.
6179 * lto-streamer-in.c (lto_read_body): Likewise.
6180 * omp-low.c (new_omp_context): Likewise.
6181 (create_task_copyfn): Likewise.
6182 * tree-emutls.c (lower_emutls_function_body): Likewise.
6183 * matrix-reorg.c (transform_allocation_sites): Likewise.
6184
6185 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6186
6187 PR c/48552
6188 * c-typeck.c (build_asm_expr): Error out on attempts to use
6189 void type outputs or inputs for constraints that allow reg or
6190 don't allow memory.
6191
6192 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6193 Richard Earnshaw <rearnsha@arm.com>
6194
6195 PR target/48250
6196 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6197 to use sign-magnitude offsets. Reject unsupported unaligned
6198 cases. Add detailed description in comments.
6199 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6200 condition from TARGET_32BIT to TARGET_ARM.
6201
6202 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6203
6204 * tree.h (struct typed_tree): New.
6205 (struct tree_common): Include it instead of tree_base.
6206 (TREE_TYPE): Update for new location of type field.
6207 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6208 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6209 (union tree_node): Add typed field.
6210 * treestruct.def (TS_TYPED): New.
6211 * lto-streamer.c (check_handled_ts_structures): Handle it.
6212 * tree.c (MARK_TS_TYPED): New macro.
6213 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6214
6215 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6216
6217 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6218 (force_nonfallthru): Do not alter the loop nest if no basic block
6219 was created.
6220
6221 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6222
6223 * config/i386/sse.md (VI): New mode iterator.
6224 (SSEMODEI): Remove.
6225 (AVX256MODEI): Ditto.
6226 (AVXMODEF4P): Ditto.
6227 (avxvecpsmode): Ditto.
6228 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6229 (sse2_andnot<mode>3): New expander.
6230 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6231 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6232 (<any_logic:code><mode>3): Use VI mode iterator.
6233 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6234 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6235 (*andnottf3): Handle AVX three-operand constraints.
6236 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6237
6238 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6239 Robert Millan <rmh@gnu.org>
6240
6241 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6242 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6243 GNU_USER_DYNAMIC_LINKER64): Define.
6244 (REG_NAME): Don't undefine.
6245 (MD_UNWIND_SUPPORT): Undefine.
6246 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6247 (REG_NAME): Don't undefine.
6248 (MD_UNWIND_SUPPORT): Undefine.
6249 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6250
6251 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6252
6253 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6254 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6255
6256 2011-04-11 Xinliang David Li <davidxl@google.com>
6257
6258 * value-profile.c (check_ic_target): New function.
6259 (gimple_ic_transform): Sanity check indirect call target.
6260 * gimple-low.c (gimple_check_call_args): Interface change.
6261 (gimple_check_call_matching_types): New function.
6262 * tree-inline.c (tree_can_inline_p): Call new function.
6263
6264 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6265
6266 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6267 tree-pretty-print.h & realmpfr.h.
6268
6269 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6270
6271 PR middle-end/48464
6272 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6273 (setup_allocno_and_important_classes): Ditto.
6274
6275 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6276
6277 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6278 GNU_USER_DYNAMIC_LINKER.
6279 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6280 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6281 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6282 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6283 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6284 GNU_USER_TARGET_OS_CPP_BUILTINS.
6285 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6286 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6287 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6288 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6289 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6290 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6291 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6292 GNU_USER_TARGET_OS_CPP_BUILTINS.
6293 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6294 GNU_USER_DYNAMIC_LINKER.
6295 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6296 GNU_USER_TARGET_OS_CPP_BUILTINS.
6297 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6298 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6299 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6300 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6301 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6302 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6303 GNU_USER_DYNAMIC_LINKER64): Remove.
6304 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6305 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6306 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6307 GNU_USER_DYNAMIC_LINKER.
6308 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6309 GNU_USER_TARGET_OS_CPP_BUILTINS.
6310 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6311 GNU_USER_TARGET_OS_CPP_BUILTINS.
6312 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6313 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6314 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6315 GNU_USER_TARGET_OS_CPP_BUILTINS.
6316 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6317 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6318 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6319 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6320 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6321 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6322 GNU_USER_DYNAMIC_LINKER.
6323 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6324 GNU_USER_TARGET_OS_CPP_BUILTINS.
6325 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6326 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6327 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6328 GNU_USER_DYNAMIC_LINKER.
6329 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6330 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6331 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6332 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6333 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6334 GNU_USER_DYNAMIC_LINKER.
6335 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6336 GNU_USER_DYNAMIC_LINKERN32.
6337 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6338 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6339 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6340 GNU_USER_DYNAMIC_LINKER32.
6341 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6342 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6343 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6344 GNU_USER_DYNAMIC_LINKER.
6345 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6346 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6347 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6348 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6349 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6350 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6351 GNU_USER_DYNAMIC_LINKER32.
6352 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6353 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6354 GNU_USER_DYNAMIC_LINKER.
6355 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6356 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6357 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6358 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6359 GNU_USER_DYNAMIC_LINKER64.
6360 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6361 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6362 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6363 GNU_USER_DYNAMIC_LINKER.
6364 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6365 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6366 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6367 GNU_USER_DYNAMIC_LINKER.
6368 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6370 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6371 GNU_USER_DYNAMIC_LINKER32.
6372 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6373 GNU_USER_DYNAMIC_LINKER64.
6374 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6375 GNU_USER_DYNAMIC_LINKER64.
6376 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6377 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6378 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6379 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6380 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6381
6382 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6383
6384 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6385 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6386 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6387 GNU_USER_DYNAMIC_LINKER.
6388 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6389 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6390 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6391 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6392 GNU_USER_DYNAMIC_LINKER64.
6393 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6394 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6395 GNU_USER_LINK_EMULATION.
6396 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6397 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6398 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6399 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6400 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6401 CPP_SPEC, CC1_SPEC): Remove.
6402 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6403 (GNU_USER_DYNAMIC_LINKER): Define.
6404 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6405 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6406 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6407 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6408 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6409 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6410 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6411 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6412 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6413 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6414 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6415 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6416 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6417 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6418 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6419 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6420 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6421 GNU_USER_DYNAMIC_LINKER.
6422 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6423 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6424 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6425 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6426 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6427 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6428 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6429 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6430 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6431 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6432
6433 2011-04-11 Kai Tietz <ktietz@redhat.com>
6434
6435 PR target/9601
6436 PR target/11772
6437 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6438 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6439 comment.
6440 (ix86_is_msabi_thiscall): Removed.
6441 (ix86_is_type_thiscall): Likewise.
6442 (ix86_get_callcvt): New function.
6443 (ix86_comp_type_attributes): Simplify check.
6444 (ix86_function_regparm): Use ix86_get_callcvt for calling
6445 convention attribute checks.
6446 (ix86_return_pops_args): Likewise.
6447 (ix86_static_chain): Likewise.
6448 (x86_this_parameter): Likewise.
6449 (x86_output_mi_thunk): Likewise.
6450 (ix86_function_type_abi): Optimize check for types without attributes.
6451 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6452 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6453 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6454 by flag-values.
6455 (IX86_BASE_CALLCVT): Helper macro.
6456 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6457 Use ix86_get_callcvt for calling convention attribute checks and avoid
6458 symbol-decoration for stdcall in TARGET_RTD case.
6459 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6460 Likewise.
6461 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6462 for declaration.
6463
6464 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6465
6466 * config/i386/sse.md (VI_128): New mode iterator.
6467 (VI12_128): Rename from SSEMODE12.
6468 (VI14_128): Rename from SSEMODE14.
6469 (VI124_128): New mode iterator.
6470 (VI24_128): Rename from SSEMODE248.
6471 (VI248_128): Rename from SSEMODE248.
6472 (SSEMODE124C8): Remove.
6473 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6474 (*sse2_<plusminus_insn><mode>3): Merge with
6475 *avx_<plusminus_insn><mode>3.
6476 (*mulv8hi3): Merge with *avx_mulv8hi3.
6477 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6478 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6479 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6480 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6481 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6482 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6483 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6484 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6485 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6486 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6487 (*<smaxmin:code>v8hi3): Ditto.
6488 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6489 (*<smaxmin:code>v16qi3): Ditto.
6490 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6491 (*sse2_eq<mode>3): Ditto.
6492 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6493 (*sse2_gt<mode>3): Ditto.
6494 (vcondv2di): Split out of vcond<mode>.
6495 (vconduv2di): Split out of vcondu<mode>.
6496
6497 2011-04-11 Richard Guenther <rguenther@suse.de>
6498
6499 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6500 before calling tree_low_cst.
6501
6502 2011-04-11 Richard Guenther <rguenther@suse.de>
6503
6504 * stor-layout.c (layout_type): Compute all array index size operations
6505 in the original type.
6506 (initialize_sizetypes): Add comment.
6507 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6508
6509 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6510
6511 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6512
6513 2011-04-11 Martin Jambor <mjambor@suse.cz>
6514
6515 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6516 of cgraph_node, handle NULL return value.
6517 (cgraph_global_info): Likewise.
6518 (cgraph_rtl_info): Likewise.
6519 * tree-inline.c (estimate_num_insns): Likewise.
6520 * gimplify.c (unshare_body): Likewise.
6521 (unvisit_body): Likewise.
6522 (gimplify_body): Likewise.
6523 * predict.c (optimize_function_for_size_p): Likewise.
6524 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6525 (call_may_clobber_ref_p_1): Likewise.
6526 * varasm.c (function_section_1): Likewise.
6527 (assemble_start_function): Likewise.
6528
6529 2011-04-11 Martin Jambor <mjambor@suse.cz>
6530
6531 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6532 of cgraph_node.
6533 * final.c (rest_of_clean_state): Likewise.
6534 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6535 * passes.c (pass_init_dump_file): Likewise.
6536 (execute_all_ipa_transforms): Likewise.
6537 (function_called_by_processed_nodes_p): Likewise.
6538 * predict.c (maybe_hot_frequency_p): Likewise.
6539 (probably_never_executed_bb_p): Likewise.
6540 (compute_function_frequency): Likewise.
6541 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6542 (unnest_nesting_tree_1): Likewise.
6543 (lower_nested_functions): Likewise.
6544 * tree-optimize.c (execute_fixup_cfg): Likewise.
6545 (tree_rest_of_compilation): Likewise.
6546 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6547 * tree-sra.c (ipa_early_sra): Likewise.
6548 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6549 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6550 * ipa.c (record_cdtor_fn): Likewise.
6551 * ipa-inline.c (cgraph_early_inlining): Likewise.
6552 (compute_inline_parameters_for_current): Likewise.
6553 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6554 * ipa-pure-const.c (local_pure_const): Likewise.
6555 * ipa-split.c (split_function): Likewise.
6556 (execute_split_functions): Likewise.
6557 * cgraphbuild.c (build_cgraph_edges): Likewise.
6558 (rebuild_cgraph_edges): Likewise.
6559 (cgraph_rebuild_references): Likewise.
6560 (remove_cgraph_callee_edges): Likewise.
6561 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6562 (verify_cgraph_node): Likewise.
6563 (cgraph_analyze_functions): Likewise.
6564 (cgraph_preserve_function_body_p): Likewise.
6565 (save_inline_function_body): Likewise.
6566 (save_inline_function_body): Likewise.
6567 * tree-inline.c (copy_bb): Likewise.
6568 (optimize_inline_calls): Likewise.
6569
6570 2011-04-11 Martin Jambor <mjambor@suse.cz>
6571
6572 PR tree-optimization/48195
6573 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6574 ipa_check_create_edge_args.
6575 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6576 ipa_check_create_edge_args.
6577 * ipa-inline.c (inline_generate_summary): Do not call
6578 ipa_check_create_node_params and ipa_check_create_edge_args.
6579 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6580 ipa_check_create_edge_args.
6581
6582 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6583
6584 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6585 instead of loop.
6586 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6587 * function.c (record_hard_reg_sets): Likewise.
6588 * ira.c (compute_regs_asm_clobbered): Likewise.
6589 * sched-deps.c (sched_analyze_1): Likewise.
6590 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6591
6592 2011-04-09 Xinliang David Li <davidxl@google.com>
6593
6594 PR tree-optimization/PR48484
6595 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6596 has_valid_pred lazily
6597
6598 2011-04-09 Duncan Sands <baldrick@free.fr>
6599
6600 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6601
6602 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6603
6604 * combine.c (combine_validate_cost): Adjust comments. Set registered
6605 cost of I0 to zero at the end, if any.
6606
6607 2011-04-08 Xinliang David Li <davidxl@google.com>
6608
6609 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6610 to insane profile data.
6611
6612 2011-04-08 Xinliang David Li <davidxl@google.com>
6613
6614 * ipa-cp.c (ipcp_update_profiling): Correct
6615 negative scale factor due to insane profile data.
6616
6617 2011-04-08 Xinliang David Li <davidxl@google.com>
6618
6619 * final.c (dump_basic_block_info): New function.
6620 (final): Dump basic block.
6621 (final_scan_insn): Remove old dump.
6622
6623 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6624
6625 PR target/47829
6626 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6627 crtbegin/crtend.
6628
6629 2011-04-08 Michael Matz <matz@suse.de>
6630
6631 PR middle-end/48389
6632 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6633 functions.
6634 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6635 * rtl.h (rebuild_jump_labels_chain): Declare.
6636 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6637 insns inserted on edges.
6638
6639 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6640
6641 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6642 * config/arm/arm-arches.def: New.
6643 * config/arm/arm-opts.h: New.
6644 * config/arm/genopt.sh: New.
6645 * config/arm/arm-tables.opt: New (generated).
6646 * config/arm/arm.c (arm_handle_option, arm_target_help,
6647 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6648 (all_architectures): Get most table contents from arm-arches.def.
6649 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6650 arm_selected_tune here.
6651 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6652 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6653 (march=, mcpu=, mtune=): Use Enum and Var.
6654 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6655 (arm.o): Update dependencies.
6656
6657 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6658
6659 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6660 of header_file.
6661 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6662 (write_typed_alloc_defns): Likewise.
6663 (main): Calls write_typed_alloc_defns with output_header.
6664
6665 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6666
6667 PR inline-asm/48435
6668 * ira-color.c (setup_profitable_hard_regs): Add comments.
6669 Don't take prohibited hard regs into account.
6670 (setup_conflict_profitable_regs): Rename to
6671 get_conflict_profitable_regs.
6672 (check_hard_reg_p): Check prohibited hard regs.
6673
6674 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6675
6676 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6677 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6678 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6679
6680 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6681
6682 PR target/48366
6683 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6684 move from floating point to shift amount register.
6685 (emit_move_sequence): Remove secondary reload support for floating
6686 point to shift amount amount register copies.
6687 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6688 amount register copies.
6689 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6690 register, return false if mode isn't a scalar integer mode.
6691 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6692
6693 2011-04-08 Richard Guenther <rguenther@suse.de>
6694
6695 * gimple.c (gimple_call_flags): Remove kludge.
6696
6697 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6698
6699 * sel-sched.c (sel_region_init): Move call to
6700 sel_setup_region_sched_flags after setup_current_loop_nest.
6701
6702 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6703
6704 PR rtl-optimization/48272
6705 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6706 init_insn_reg_pressure_info. Adjust a caller.
6707 * sched-int.h (init_insn_reg_pressure_info): Declare.
6708 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6709 when sched-pressure is enabled.
6710
6711 2011-04-08 Richard Guenther <rguenther@suse.de>
6712
6713 * gimple.c (gimple_set_modified): Do not queue calls to
6714 MODIFIED_NORETURN_CALLS here ...
6715 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6716
6717 2011-04-08 Richard Guenther <rguenther@suse.de>
6718
6719 PR lto/48467
6720 * toplev.c (lang_dependent_init): Do not open asm_out_file
6721 in WPA mode, nor perform debug machinery initialization.
6722 (finalize): Do not unlink asm_out_file in WPA mode.
6723
6724 2011-04-08 Richard Guenther <rguenther@suse.de>
6725
6726 * gimple.h (gimple_call_fntype): New function.
6727 (gimple_call_return_type): Use it.
6728 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6729 * gimple-low.c (gimple_check_call_args): Likewise.
6730 * gimple.c (gimple_call_flags): Likewise.
6731 (gimple_call_arg_flags): Likewise.
6732 (gimple_call_return_flags): Likewise.
6733 * tree-cfg.c (verify_gimple_call): Likewise.
6734 (do_warn_unused_result): Likewise.
6735 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6736 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6737
6738 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6739
6740 PR rtl-optimization/48235
6741 * sel-sched.c (code_motion_process_successors): Recompute the last
6742 insn in basic block if control flow changed.
6743 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6744 Update condition for ilist_remove.
6745
6746 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6747
6748 PR rtl-optimization/48302
6749 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6750 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6751 it to record added preheader blocks.
6752 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6753 on to sel_add_loop_preheaders.
6754 (sel_region_init): Move call to setup_current_loop_nest after
6755 sel_init_bbs.
6756
6757 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6758
6759 PR target/48273
6760 * cfgloop.h (loop_has_exit_edges): New helper.
6761 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6762 non-clonable.
6763 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6764 that have no exit edges.
6765
6766 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6767
6768 PR rtl-optimization/48442
6769 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6770 all callers. Adjust assert.
6771
6772 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6773
6774 PR tree-optimization/48377
6775 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6776 is_packed to true even for types with smaller TYPE_ALIGN than
6777 TYPE_SIZE.
6778
6779 2011-04-08 Richard Guenther <rguenther@suse.de>
6780
6781 PR bootstrap/48513
6782 * doc/tm.texi: Re-generate.
6783
6784 2011-04-08 Wei Guozhi <carrot@google.com>
6785
6786 PR target/47855
6787 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6788 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6789 * config/arm/arm.md (*push_multi): Change the length computation to
6790 call a C function.
6791
6792 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6793
6794 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6795 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6796 * doc/tm.texi: Regenerate.
6797 * system.h (ASM_OUTPUT_BSS): Poison.
6798 * varasm.c (asm_output_bss): Remove function.
6799 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6800
6801 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6802 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6803 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6804 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6805 Likewise.
6806 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6807 Likewise.
6808 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6809 Likewise.
6810 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6811
6812 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6813
6814 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6815 EnumValue lines.
6816
6817 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6818
6819 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6820 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6821 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6822 OPT_mcpu32.
6823 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6824 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6825 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6826 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6827 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6828 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6829 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6830 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6831 options. Don't map other m68k options manually. Don't handle
6832 old-style options as canonical.
6833 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6834 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6835
6836 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6837
6838 * basic-block.h (force_nonfallthru): Move to...
6839 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6840 (force_nonfallthru): ...here.
6841 * cfghooks.c (force_nonfallthru): New function.
6842 * cfgrtl.c (force_nonfallthru): Rename into...
6843 (rtl_force_nonfallthru): ...this.
6844 (commit_one_edge_insertion): Do not set AUX field.
6845 (commit_edge_insertions): Do not discover new basic blocks.
6846 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6847 (cfg_layout_rtl_cfg_hooks): Likewise.
6848 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6849 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6850 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6851
6852 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6853
6854 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6855 Remove macros.
6856
6857 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6858
6859 * config/i386/sse.md: Update copyright year.
6860 (avxcvtvecmode): Remove.
6861 (sse_movhlps): Merge with *avx_movhlps.
6862 (sse_movlhps): Merge with *avx_movlhps.
6863 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6864 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6865 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6866 (sse_loadhps): Merge with *avx_loadhps.
6867 (sse_storelps): Merge with *avx_storelps.
6868 (sse_loadlps): Merge with *avx_loadlps.
6869 (sse_movss): Merge with *avx_movss.
6870 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6871 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6872 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6873 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6874 (vec_set<mode>_0): Ditto.
6875 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6876 (sse4_1_insertps): Merge with *avx_insertps.
6877 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6878 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6879 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6880 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6881 (sse2_storehpd): Merge with *avx_storehpd.
6882 (sse2_loadhpd): Merge with *avx_loadhpd.
6883 (sse2_loadlpd): Merge with *avx_loadlpd.
6884 (sse2_movsd): Merge with *avx_movsd.
6885 (*vec_concatv2df): Merge with *vec_concatv2df.
6886
6887 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6888
6889 PR debug/48343
6890 * combine.c (combine_instructions): Add last_combined_insn,
6891 update it if insn is after it, pass it to all try_combine calls.
6892 (try_combine): Add last_combined_insn parameter, pass it instead of
6893 i3 to propagate_for_debug.
6894
6895 2011-04-07 Nick Clifton <nickc@redhat.com>
6896
6897 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6898 to handle MDR <-> data register transfers.
6899 (movhi_internal): Likewise.
6900
6901 2011-04-07 Alan Modra <amodra@gmail.com>
6902
6903 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6904 previous stack info.
6905
6906 2011-04-07 Tom de Vries <tom@codesourcery.com>
6907
6908 PR target/43920
6909 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6910 flow_find_cross_jump. Swap variables to implement backward replacement.
6911 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6912
6913 2011-04-07 Tom de Vries <tom@codesourcery.com>
6914
6915 PR target/43920
6916 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6917 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6918 and bb2.
6919 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6920 src1 or src2. Redirect edges to the last basic block. Update
6921 frequency and count on multiple basic blocks in case of fallthru.
6922
6923 2011-04-07 Tom de Vries <tom@codesourcery.com>
6924
6925 PR target/43920
6926 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6927 function.
6928 (old_insns_match_p): Change return type. Replace return false/true
6929 with return dir_none/dir_both. Use can_replace_by.
6930 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6931 direction from dir_p. Register replacement direction in dir, last_dir
6932 and afterlast_dir. Handle new return type of old_insns_match_p using
6933 merge_dir. Return replacement direction in dir_p.
6934 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6935 return type of old_insns_match_p.
6936 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6937 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6938 flow_find_cross_jump.
6939 * basic-block.h (enum replace_direction): New type.
6940 (flow_find_cross_jump): Add parameter to declaration.
6941
6942 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6943
6944 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6945 (AVXMODEDCVTPS2DQ): Ditto.
6946 (VEC_FLOAT_MODE): Ditto.
6947 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6948 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6949 (<any_logic:code><mode>3): Use VF mode iterator.
6950 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6951 Use VF mode iterator.
6952 (copysign<mode>3): Use VF mode iterator.
6953 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6954 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6955 (*<any_logic:code><MODEF:mode>3): Merge with
6956 *avx_<any_logic:code><MODEF:mode>3.
6957 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6958 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6959 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6960 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6961 (sse2_cvtdq2ps): Use %v modifier.
6962 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6963 (avx_cvtps2dq<avxmodesuffix>): Remove.
6964 (sse2_cvtps2dq): Use %v modifier.
6965 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6966 (avx_cvttps2dq<avxmodesuffix>): Remove.
6967 (sse2_cvttps2dq): Use %v modifier.
6968 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6969 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6970 (sse2_cvtsd2siq): Fix insn template.
6971 (sse2_cvtsd2siq_2): Ditto.
6972 (sse2_cvttsd2siq): Ditto.
6973 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6974 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6975
6976 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6977
6978 * gcov-io.c: Use GCC Runtime Library Exception.
6979
6980 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6981
6982 PR debug/48466
6983 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6984 as base_reg whatever register reg has been eliminated to, instead
6985 of hardcoding STACK_POINTER_REGNUM.
6986
6987 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6988
6989 * doc/tm.texi.in: Document C target hooks as separate from general
6990 target hooks.
6991 * doc/tm.texi: Regenerate.
6992 * genhooks.c (struct hook_desc): Add docname field.
6993 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6994 docname field.
6995 (hook_array): Include c-target.def.
6996 (emit_documentation): Use docname field in output.
6997 (emit_init_macros): Take docname argument. Only emit definitions
6998 for hooks matching docname.
6999 (main): Expect additional arguments in all cases. Pass argument
7000 to emit_init_macros.
7001 * target.def: Move initial macro definitions and comments to
7002 target-hooks-macros.h.
7003 (gcc_targetcm): Move to c-family/c-target.def.
7004 * target.h (targetcm): Move declaration to c-family/c-target.h.
7005 * targhooks.c (default_handle_c_option): Move to
7006 c-family/c-opts.c.
7007 * targhooks.h (default_handle_c_option): Move declaration to
7008 c-family/c-common.h.
7009 * target-hooks-macros.h: New file.
7010 * config.gcc (target_has_targetcm): Define and use to add to
7011 c_target_objs and cxx_target_objs.
7012 * config/default-c.c: New file.
7013 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7014 of target.h and target-def.h.
7015 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7016 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7017 darwin_check_cfstring_format_arg): Make static.
7018 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7019 TARGET_STRING_OBJECT_REF_TYPE_P,
7020 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7021 * config/darwin-protos.h (darwin_objc_construct_string,
7022 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7023 declare.
7024 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7025 TARGET_STRING_OBJECT_REF_TYPE_P,
7026 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7027 * config/t-darwin (darwin-c.o): Update dependencies.
7028 * system.h (TARGET_HAS_TARGETCM): Poison.
7029 * Makefile.in (TARGET_H): Update.
7030 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7031 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7032 (default-c.o): New target.
7033 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7034 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7035 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7036 c-target.def.
7037 (build/genhooks.o): Update dependencies.
7038
7039 2011-04-06 Richard Guenther <rguenther@suse.de>
7040
7041 * ipa-inline.c (enum inlining_mode): Remove.
7042 (cgraph_flatten): Use some other token.
7043 (cgraph_edge_early_inlinable_p): New function, split out from ...
7044 (cgraph_perform_always_inlining): New function, split out from ...
7045 (cgraph_decide_inlining_incrementally): ... here.
7046 (cgraph_mark_inline_edge): Adjust.
7047 (cgraph_early_inlining): Re-structure.
7048 (pass_early_inline): Require SSA form.
7049
7050 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7051 Julian Brown <julian@codesourcery.com>
7052 Mark Shinwell <shinwell@codesourcery.com>
7053
7054 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7055 LO_REGS only for Thumb-1.
7056 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7057 be used in short instructions when optimising for size on Thumb-2.
7058
7059 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7060
7061 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7062 associated with user returns to be preserved.
7063
7064 2011-04-06 Tristan Gingold <gingold@adacore.com>
7065
7066 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7067 symbol_queue_size, DBXOUT_DECR_NESTING,
7068 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7069 if XCOFF_DEBUGGING_INFO.
7070
7071 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7072
7073 * config/i386/i386.md (attribute isa): New.
7074 (attribute enabled): New.
7075 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7076 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7077 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7078 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7079 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7080 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7081 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7082 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7083
7084 * config/i386/sse.md (VF): New mode iterator.
7085 (VF1): Ditto.
7086 (VF2): Ditto.
7087 (VF_128): Ditto.
7088 (SSEMODEF4): Remove.
7089 (attribute sse): Handle V8SF and V4DF modes.
7090 (<absneg:code><mode>2): Use VF mode iterator.
7091 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7092 mode iterator.
7093 (<plusminus_insn><mode>3): Use VF mode iterator.
7094 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7095 Use VF mode iterator.
7096 (<sse>_vm<plusminus_insn><mode>3): Merge with
7097 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7098 (mul<mode>3): Use VF mode iterator.
7099 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7100 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7101 mode iterator.
7102 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7103 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7104 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7105 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7106 mode iterator.
7107 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7108 Use VF1 mode iterator.
7109 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7110 (sqrt<VF2:mode>2): New expander.
7111 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7112 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7113 and sqrtv2df2. Use VF mode iterator.
7114 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7115 mode iterator.
7116 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7117 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7118 Use VF1 mode iterator.
7119 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7120 (<smaxmin:code><mode>3): Use VF mode iterator.
7121 (*<smaxmin:code><mode>3_finite): Merge with
7122 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7123 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7124 (<sse>_vm<smaxmin:code><mode>2): Merge with
7125 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7126 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7127 mode iterator.
7128 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7129 mode iterator.
7130 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7131 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7132 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7133 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7134 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7135 VF mode iterator.
7136 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7137 Use VF_128 mode iterator.
7138 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7139 mode iterator.
7140 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7141 VF_128 mode iterator.
7142 (vcond<mode>): Use VF mode iterator.
7143 * config/i386/predicates.md (sse_comparison_operator): Merge with
7144 avx_comparison_float_operator. Do not declare as special_predicate.
7145 * config/i386/i386.c (struct builtin_description): Update for renamed
7146 compare patterns.
7147 (ix86_expand_args_builtin): Ditto.
7148 (ix86_expand_sse_compare_mask): Ditto.
7149
7150 2011-04-06 Richard Guenther <rguenther@suse.de>
7151
7152 * tree-inline.c (estimate_num_insns): For calls simply account
7153 for all passed arguments and a used return value.
7154
7155 2011-04-06 Richard Guenther <rguenther@suse.de>
7156
7157 PR tree-optimization/47663
7158 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7159 call_stmt_time fields.
7160 (cgraph_edge_inlinable_p): Declare.
7161 (cgraph_edge_recursive_p): New inline function.
7162 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7163 (cgraph_clone_edge): Copy it.
7164 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7165 Account for call stmt time.
7166 (cgraph_estimate_time_after_inlining): Take edge argument.
7167 (cgraph_estimate_edge_growth): Account call stmt size.
7168 (cgraph_estimate_size_after_inlining): Take edge argument.
7169 (cgraph_mark_inline_edge): Adjust.
7170 (cgraph_check_inline_limits): Likewise.
7171 (cgraph_recursive_inlining_p): Remove.
7172 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7173 (cgraph_decide_recursive_inlining): Take edge argument and
7174 adjust.
7175 (cgraph_decide_inlining_of_small_functions): Do not avoid
7176 diags for recursive inlining here.
7177 (cgraph_flatten): Adjust.
7178 (cgraph_decide_inlining_incrementally): Likewise.
7179 (estimate_function_body_sizes): Remove call cost handling.
7180 (compute_inline_parameters): Initialize caller edge call costs.
7181 (cgraph_estimate_edge_growth): New function.
7182 (cgraph_estimate_growth): Use it.
7183 (cgraph_edge_badness): Likewise.
7184 (cgraph_check_inline_limits): Take an edge argument.
7185 (cgraph_decide_inlining_of_small_functions): Adjust.
7186 (cgraph_decide_inlining): Likewise.
7187 * tree-inline.c (estimate_num_insns): Only account for call
7188 return value if it is used.
7189 (expand_call_inline): Avoid diagnostics on recursive inline
7190 functions here.
7191 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7192 (input_edge): Input edge call costs.
7193
7194 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7195
7196 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7197
7198 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7199
7200 * doc/invoke.texi (Spec Files): Fix typo.
7201
7202 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7203
7204 * profile.c (branch_prob): Move declaration of local variable. Remove
7205 obsolete ??? comment. Expand the location explicitly instead of using
7206 the LOCATION_FILE and LOCATION_LINE macros.
7207
7208 2011-04-06 Wei Guozhi <carrot@google.com>
7209
7210 PR target/47855
7211 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7212 (arm_cond_branch): Likewise.
7213 (arm_cond_branch_reversed): Likewise.
7214 (arm_jump): Likewise.
7215 (push_multi): Likewise.
7216 * config/arm/constraints.md (Py): New constraint.
7217
7218 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7219
7220 PR bootstrap/48471
7221 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7222 Move these...
7223 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7224 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7225 #ifdef DBX_DEBUGGING_INFO.
7226
7227 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7228
7229 PR bootstrap/48403
7230 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7231 if old and new states differ.
7232
7233 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7234
7235 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7236 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7237 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7238 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7239 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7240 mcfv4e): Use Alias.
7241 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7242 ColdFire options to -mcpu= options.
7243
7244 2011-04-05 Jeff Law <law@redhat.com>
7245
7246 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7247 check if BB is a successor of LOOP->header and return
7248 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7249
7250 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7251
7252 * cprop.c (struct reg_use): Remove.
7253 (reg_use_table): Make an array of RTX.
7254 (find_used_regs, constprop_register, local_cprop_pass,
7255 bypass_block): Simplify users of reg_use_table.
7256 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7257 on one of the uses found by find_used_regs.
7258
7259 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7260
7261 PR bootstrap/48469
7262 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7263 declaration.
7264
7265 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7266
7267 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7268 as an rtx.
7269 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7270
7271 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7272
7273 PR middle-end/48441
7274 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7275
7276 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7277
7278 * combine.c: Include obstack.h.
7279 (struct insn_link): Define.
7280 (uid_log_links): Adjust type.
7281 (FOR_EACH_LOG_LINK): New macro.
7282 (insn_link_obstack): Declare.
7283 (alloc_insn_link): Define.
7284 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7285 type of link variables.
7286 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7287 (try_combine, record_promoted_values, distribute_notes): Likewise.
7288 (distribute_links): Likewise. Tweak prototype.
7289 (clear_log_links): Delete.
7290 (adjust_for_new_dest): Call alloc_insn_link.
7291 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7292
7293 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7294
7295 * gcse.c (modify_mem_list): Convert to an array of VECs.
7296 (canon_modify_mem_list, compute_transp): Tweak formatting.
7297 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7298 (load_killed_in_block_p): Likewise.
7299 (record_last_mem_set_info): Likewise.
7300 (clear_modify_mem_tables): Likewise.
7301
7302 2011-04-05 Tom de Vries <tom@codesourcery.com>
7303
7304 PR middle-end/48461
7305 * function.c (emit_use_return_register_into_block): Only define if
7306 HAVE_return.
7307
7308 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7309
7310 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7311
7312 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7313
7314 * config/rx/rx-opts.h: New.
7315 * config/rx/rx.c (rx_cpu_type): Remove.
7316 (rx_handle_option): Don't assert that global structures are in
7317 use. Access variables via opts pointer. Defer most handling of
7318 OPT_mint_register_. Use error_at.
7319 (rx_option_override): Handle deferred OPT_mint_register_ here.
7320 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7321 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7322 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7323 (rx_cpu_types): New Enum and EnumValue entries.
7324 (mint-register=): Use Defer and use Var accordingly.
7325
7326 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7327
7328 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7329 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7330 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7331 Move these...
7332 (debug_free_queue, debug_nesting, symbol_queue_index):
7333 ...and these...
7334 * dbxout.c: ...to here. Make static.
7335
7336 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7337
7338 * gcse.c (modify_pair): Define. Define a VEC of it.
7339 (canon_modify_mem_list): Convert to an array of VECs.
7340 (free_insn_expr_list_list): Delete.
7341 (clear_modify_mem_tables): Call VEC_free instead.
7342 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7343 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7344 (canon_list_insert, compute_transp): Likewise.
7345
7346 2011-04-05 Tom de Vries <tom@codesourcery.com>
7347
7348 PR target/43920
7349 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7350 for size.
7351
7352 2011-04-05 Tom de Vries <tom@codesourcery.com>
7353
7354 PR target/43920
7355 * function.c (emit_use_return_register_into_block): New function.
7356 (thread_prologue_and_epilogue_insns): Use
7357 emit_use_return_register_into_block.
7358
7359 2011-04-05 Tom de Vries <tom@codesourcery.com>
7360
7361 PR target/43920
7362 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7363 insn.
7364
7365 2011-04-05 Tom de Vries <tom@codesourcery.com>
7366
7367 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7368
7369 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7370
7371 * config/arm/arm.md (define_constants for unspec): Replace with
7372 define_c_enum.
7373 (define_constants for unspecv): Replace with define_c_enum.
7374 * config/arm/neon.md (define_constants for unspec): Replace with
7375 define_c_enum.
7376
7377 2011-04-04 Richard Henderson <rth@redhat.com>
7378
7379 PR bootstrap/48400
7380 * dwarf2out.c (output_line_info): Always emit line info from
7381 at least one section.
7382 (dwarf2out_init): Create text_section_line_info here ...
7383 (set_cur_line_info_table): ... not here.
7384
7385 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7386
7387 PR target/48380
7388 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7389 not called.
7390
7391 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7392
7393 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7394
7395 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7396 (expr_equiv_p): Remove.
7397 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7398 (hash_scan_set): Update call to insert_set_in_table.
7399 (dump_hash_table): Dump <dest, src> pair.
7400 (lookup_set): Simplify. Lookup <dest, src> pair.
7401 (compute_transp): Remove, fold heavily simplified code into...
7402 (compute_local_properties): ...here. Expect COMP and TRANSP
7403 unconditionally.
7404 (find_avail_set): Take set directly from struct expr.
7405 (find_bypass-set): Likewise.
7406 (bypass_block): Likewise.
7407 (cprop_insn): Likewise. Remove redundant INSN_P test.
7408
7409 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7410 checks on form of COND from find_implicit_sets to here.
7411 (find_implicit_sets): Cleanup control flow. Split critical edges
7412 if it exposes implicit sets. Allocate/resize implicit_sets as
7413 necessary.
7414 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7415 changed something. Run df_analyze after find_implicit_sets if any
7416 edges were split. Do not allocate implicit_sets here.
7417
7418 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7419 (gcse_obstack): Renamed to cprop_obstack.
7420 (GNEW, GNEWVEC, GNEWVAR): Remove.
7421 (gmalloc): Remove.
7422 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7423 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7424 (gcse_alloc): Likewise, and rename to cprop_alloc.
7425 (alloc_gcse_men, free_gcse_mem): Remove.
7426 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7427 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7428 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7429
7430 * cprop.c (oprs_not_set_p): Remove.
7431 (mark_set, mark_clobber): Remove.
7432 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7433 (reg_not_set_p): New function.
7434 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7435 (cprop_insn): Likewise.
7436 (cprop_jump): Use FOR_EACH_EDGE.
7437
7438 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7439
7440 PR bootstrap/48403
7441 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7442 (rank_for_schedule): Use scheduled_insns vector instead of
7443 last_scheduled_insn.
7444 (ok_for_early_queue_removal): Likewise.
7445 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7446 we have a dbg_cnt.
7447 (choose_ready): Likewise.
7448 (commit_schedule): Use VEC_iterate.
7449 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7450 a dbg_cnt, use it and ensure the first insn is in the ready list.
7451 (haifa_sched_init): Allocate scheduled_insns.
7452 (sched_extend_ready_list): Don't allocate it; reserve space.
7453 (haifa_sched_finish): Free it.
7454
7455 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7456
7457 * optc-gen.awk: Always remove type from Variable entry before
7458 recording in var_seen.
7459
7460 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7461
7462 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7463 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7464 call to tidy_fallthru_edges.
7465
7466 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7467
7468 * doc/options.texi (ToLower): Document.
7469 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7470 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7471 * opts.h (cl_option): Add cl_tolower field.
7472 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7473 arguments with lowercase strings.
7474 * config/rx/rx.opt (mcpu=): Add ToLower.
7475 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7476 argument.
7477
7478 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7479
7480 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7481
7482 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7483
7484 * config/vax/vax.c: Include reload.h.
7485
7486 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7487
7488 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7489 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7490 (sparc_preferred_reload_class): New function.
7491
7492 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7493
7494 PR debug/48401
7495 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7496 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7497
7498 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7499
7500 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7501 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7502
7503 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7504
7505 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7506 (ASM_OUTPUT_ALIGNED_BSS): Define.
7507
7508 2011-04-03 Michael Matz <matz@suse.de>
7509
7510 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7511 and next_slot members.
7512 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7513 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7514 (lto_streamer_cache_append): Declare.
7515 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7516 unsigned index, remove offset parameter, ensure that we append
7517 or update existing entries.
7518 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7519 parameter, update next_slot for append.
7520 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7521 parameter.
7522 (lto_streamer_cache_insert_at): Likewise.
7523 (lto_streamer_cache_append): New function.
7524 (lto_streamer_cache_lookup): Use unsigned index.
7525 (lto_streamer_cache_get): Likewise.
7526 (lto_record_common_node): Don't test tree_node_can_be_shared.
7527 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7528 (lto_streamer_cache_delete): Don't free offsets member.
7529 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7530 (lto_output_string_with_length): Use lto_output_data_stream.
7531 (lto_output_tree_header): Remove ix parameter, don't write it.
7532 (lto_output_builtin_tree): Likewise.
7533 (lto_write_tree): Adjust callers to above, don't track and write
7534 offset, write unsigned index.
7535 (output_unreferenced_globals): Don't emit all global vars.
7536 (write_global_references): Use unsigned indices.
7537 (lto_output_decl_state_refs): Likewise.
7538 (write_symbol): Likewise.
7539 * lto-streamer-in.c (lto_input_chain): Move earlier.
7540 (input_function): Use unsigned index.
7541 (input_alias_pairs): Don't read and then ignore all global vars.
7542 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7543 don't pass it back, use lto_streamer_cache_append.
7544 (lto_register_var_decl_in_symtab): Use unsigned index.
7545 (lto_register_function_decl_in_symtab): Likewise.
7546 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7547 index.
7548 (lto_get_builtin_tree): Don't read index, use
7549 lto_streamer_cache_append.
7550 (lto_read_tree): Adjust call to lto_materialize_tree.
7551
7552 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7553 don't use function calls in arguments to MIN.
7554
7555 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7556 twice.
7557
7558 * gimple.c (gimple_type_leader_entry): Mark deletable.
7559
7560 2011-04-03 Alan Modra <amodra@gmail.com>
7561
7562 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7563
7564 2011-04-03 Michael Matz <matz@suse.de>
7565
7566 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7567 an integer.
7568 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7569
7570 2011-04-03 Michael Matz <matz@suse.de>
7571
7572 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7573 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7574 without function context.
7575 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7576 current_function_decl and cfun.
7577
7578 2011-04-03 Michael Matz <matz@suse.de>
7579
7580 * tree.c (decl_init_priority_insert): Don't create entry for
7581 default priority.
7582 (decl_fini_priority_insert): Ditto.
7583 (fields_compatible_p, find_compatible_field): Remove.
7584 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7585 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7586
7587 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7588
7589 * combine.c (try_combine): Remove useless local variable.
7590
7591 2011-04-03 Richard Guenther <rguenther@suse.de>
7592 Ira Rosen <ira.rosen@linaro.org>
7593
7594 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7595 non-variable offsets and compare the remaining bases of the two
7596 accesses instead of looking for exact same data-ref.
7597
7598 2011-04-02 Kai Tietz <ktietz@redhat.com>
7599
7600 PR target/48416
7601 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7602
7603 * i386.c (ix86_is_msabi_thiscall): New helper function.
7604 (ix86_is_type_thiscall): New helper function.
7605 (ix86_comp_type_attributes): Handle thiscall for method-functions
7606 special.
7607 (init_cumulative_args): Likewise.
7608 (find_drap_reg): Likewise.
7609 (ix86_static_chain): Likewise.
7610 (x86_this_parameter): Likewise.
7611 (x86_output_mi_thunk): Likewise.
7612
7613 2011-04-01 Olivier Hainque <hainque@adacore.com>
7614 Nicolas Setton <setton@adacore.com>
7615 Eric Botcazou <ebotcazou@adacore.com>
7616
7617 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7618 (add_gnat_descriptive_type_attribute): New function.
7619 (gen_array_type_die): Call it.
7620 (gen_enumeration_type_die): Likewise.
7621 (gen_struct_or_union_type_die): Likewise.
7622 (modified_type_die): Likewise.
7623 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7624 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7625 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7626
7627 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7628
7629 PR bootstrap/48148
7630 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7631 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7632
7633 Revert:
7634 2011-03-17 Richard Guenther <rguenther@suse.de>
7635
7636 PR bootstrap/48148
7637 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7638 origin for decls in other ltrans units.
7639 (input_varpool_node): Likewise.
7640
7641 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7642
7643 PR middle-end/48335
7644 * expr.c (expand_assignment): Handle all possibilities
7645 if TO_RTX is CONCAT.
7646 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7647 (store_split_bit_field): If SUBREG_REG (op0) or
7648 op0 itself has smaller mode than word, return it
7649 for offset 0 and const0_rtx for out-of-bounds stores.
7650 If word is const0_rtx, skip it.
7651
7652 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7653
7654 * config/h8300/h8300.c (print_operand_address): Rename to...
7655 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7656 Call h8300_print_operand and h8300_print_operand_address instead of
7657 print_operand and print_operand_address. Declare.
7658 (print_operand): Renake to...
7659 (h8300_print_operand): ...this. Make static. Adjust comments.
7660 Call h8300_print_operand instead of print_operand. Declare.
7661 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7662 (h8300_register_move_cost): Likewise.
7663 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7664 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7665 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7666 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7667 * config/h8300/h8300-protos.h (print_operand): Delete.
7668 (print_operand_address): Delete.
7669
7670 2011-04-01 Richard Henderson <rth@redhat.com>
7671
7672 PR 48400
7673 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7674 in strict mode before dwarf4. Re-order tests to early out
7675 before switching sections.
7676
7677 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7678
7679 * config/h8300/constraints.md: New file.
7680 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7681 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7682 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7683 * config/h8300/predicates.md (bit_operand): Likewise.
7684 (incdec_operand): Use satisfies_constraint_M and
7685 satisfies_constraint_O. Don't use C code block.
7686 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7687 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7688 (compute_mov_length): Use satisfies_constraint_G.
7689 (fix_bit_operand): Use satisfies_constraint_U.
7690 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7691 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7692 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7693 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7694 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7695 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7696 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7697 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7698 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7699 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7700 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7701 (EXTRA_MEMORY_CONSTRAINT): Delete.
7702
7703 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7704 Michael Meissner <meissner@linux.vnet.ibm.com>
7705
7706 PR target/48262
7707 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7708 operands, as per the specifications.
7709
7710 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7711 (vec_extract_evenv4sf): Ditto.
7712 (vec_extract_evenv8hi): Ditto.
7713 (vec_extract_evenv16qi): Ditto.
7714 (vec_extract_oddv4si): Ditto.
7715
7716 2011-03-31 Mark Wielaard <mjw@redhat.com>
7717
7718 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7719 high_pc attribute if the CU has no associated code. Only output
7720 DW_AT_entry_pc for CU if not generating strict dwarf and
7721 dwarf_version < 4.
7722
7723 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7724
7725 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7726 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7727 out of ...
7728 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7729 * final.c (final_start_function): Call the new function rather
7730 than using a NULL argument for dwarf2out_frame_debug.
7731
7732 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7733 that contains the prologue.
7734
7735 * haifa-sched.c (queue_insn): New arg REASON. All callers
7736 changed. Print it in debugging output.
7737
7738 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7739
7740 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7741 Split most of the code into...
7742 (begin_move_insn): ... here. New function.
7743 (ebb_sched_info): Add a pointer to it.
7744 * haifa-sched.c (scheduled_insns): New static variable.
7745 (sched_extend_ready_list): Allocate it.
7746 (schedule_block): Use it to record the order of scheduled insns.
7747 Perform RTL changes to move insns only after all scheduling
7748 decisions have been made.
7749 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7750 begin_move_insn field.
7751 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7752 * sched-int.h (struct haifa_sched_info): Remove second argument
7753 from begin_schedule_ready hook. Add new member begin_move_insn.
7754 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7755 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7756
7757 * haifa-sched.c (prune_ready_list): New function, broken out of
7758 schedule_block.
7759 (schedule_block): Use it.
7760
7761 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7762
7763 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7764
7765 2011-04-01 Kai Tietz <ktietz@redhat.com>
7766
7767 * config.gcc (*-*-mingw*): Allow as option the
7768 posix threading model.
7769 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7770 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7771 definition.
7772 (CPP_SPEC): Add pthread/no-pthread handling.
7773 (LIB_SPEC): Likewise.
7774 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7775 (LIB_SPEC): Likewise.
7776 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7777 flag to pass -pthread option for shared libgcc build.
7778 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7779 for shared libgcc build.
7780 * config/i386/t-mingw-pthread: New file.
7781 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7782 New define to enable use of library pthread by default.
7783 * config/i386/mingw.opt (pthread): New driver option.
7784 (no-pthread): New driver option.
7785 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7786 * config/i386/mingw-w64.opt: Likewise.
7787
7788 2011-04-01 Gary Funck <gary@intrepid.com>
7789
7790 * c-decl.c (grokdeclarator): Fix formatting.
7791
7792 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7793
7794 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7795 instead of n_operands.
7796 (set_storage_via_setmem): Likewise.
7797 * optabs.c (maybe_gen_insn): Likewise.
7798 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7799 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7800 (mips_expand_builtin_direct): Likewise.
7801 * config/spu/spu.c (expand_builtin_args): Likewise.
7802
7803 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7804
7805 * recog.h (insn_data_d): Add n_generator_args.
7806 * genoutput.c (data): Likewise.
7807 (output_insn_data): Print it.
7808 (max_opno, num_dups): Delete.
7809 (scan_operands): Just fill in "d->operand[...]".
7810 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7811
7812 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7813
7814 * gensupport.h (pattern_stats): New structure.
7815 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7816 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7817 (max_operand_1, max_operand_vec): Delete.
7818 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7819
7820 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7821
7822 * emit-rtl.c (emit_pattern_after_setloc): New function.
7823 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7824 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7825 (emit_pattern_after): New function.
7826 (emit_insn_after, emit_jump_insn_after): Call it.
7827 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7828 (emit_pattern_before_setloc): New function.
7829 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7830 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7831 Likewise.
7832 (emit_pattern_before): New function.
7833 (emit_insn_before, emit_jump_insn_before): Call it.
7834 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7835
7836 2011-03-31 Richard Henderson <rth@redhat.com>
7837
7838 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7839 (dw_separate_line_info_entry): Remove.
7840 (enum dw_line_info_opcode): New.
7841 (dw_line_info_entry): Use it.
7842 (dw_line_info_table, dw_line_info_table_p): New.
7843 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7844 (line_info_table, line_info_label_num): Remove.
7845 (line_info_table_in_use): Remove.
7846 (separate_line_info_table): Remove.
7847 (separate_line_info_table_allocated): Remove.
7848 (separate_line_info_table_in_use): Remove.
7849 (LINE_INFO_TABLE_INCREMENT): Remove.
7850 (line_info_label_num): New.
7851 (cur_line_info_table): New.
7852 (text_section_line_info, cold_text_section_line_info): New.
7853 (separate_line_info): New.
7854 (SEPARATE_LINE_CODE_LABEL): Remove.
7855 (print_dwarf_line_table): Remove.
7856 (debug_dwarf): Don't dump it.
7857 (output_one_line_info_table): New.
7858 (output_line_info): Use it.
7859 (new_line_info_table): New.
7860 (set_cur_line_info_table): New.
7861 (dwarf2out_switch_text_section): Use it.
7862 (dwarf2out_begin_function): Likewise.
7863 (push_dw_line_info_entry): New.
7864 (dwarf2out_source_line): Rewrite for new line info tables.
7865 (dwarf2out_init): Remove dead initailizations.
7866
7867 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7868
7869 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7870 various flags.
7871 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7872 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7873 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7874 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7875 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7876 * opt-functions.awk (flag_init, switch_bit_fields): New.
7877 (switch_flags): Don't handle flags moved to bit-fields. Don't
7878 generate CL_MISSING_OK or CL_SAVE.
7879 * optc-gen.awk: Update to generate bit-field output as well as
7880 flags field.
7881 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7882 bit-field instead of CL_REJECT_DRIVER flag.
7883 * opts-common.c (generate_canonical_option,
7884 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7885 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7886 instead of CL_REJECT_NEGATIVE flag.
7887 * toplev.c (print_switch_values): Use cl_report bit-field instead
7888 of CL_REPORT flag.
7889
7890 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7891
7892 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7893 a zero minimum index only if it is redundant.
7894
7895 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7896
7897 PR rtl-optimization/48381
7898 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7899 instead of ira_class_hard_reg_index for calculating conflicting
7900 hard registers.
7901
7902 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7903
7904 * cprop.c: Clean up hash table building.
7905 (reg_avail_info): Remove.
7906 (oprs_available_p): Remove.
7907 (record_last_reg_set_info): Remove.
7908 (record_last_set_info): Remove.
7909 (reg_available_p): New function.
7910 (gcse_constant_p): Do not treat unfolded conditions as constants.
7911 (make_set_regs_unavailable): New function.
7912 (hash_scan_set): Simplify with new reg_available_p.
7913 (compute_hash_table_work): Traverse insns stream only once.
7914 Do not compute reg_avail_info. Traverse insns in reverse order.
7915 Record implicit sets after recording explicit sets from the block.
7916
7917 2011-03-31 Michael Matz <matz@suse.de>
7918
7919 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7920
7921 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7922
7923 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7924 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7925 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7926 (h8300_mode_dependent_address_p): New function.
7927 (h8300_get_index): Make static.
7928
7929 2011-03-31 Jeff Law <law@redhat.com>
7930
7931 * reload1.c (elimination_effects): Fix typo in recent change.
7932
7933 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7934 typo potentially leading to null pointer dereference.
7935
7936 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7937 (setup_save_areas): Corresponding changes to avoid useless
7938 assignments.
7939
7940 * jump.c (reversed_comparison_code_parts): Avoid successive return
7941 statements when REVERSE_CONDITION is defined.
7942
7943 * expr.c (expand_assignment): Avoid useless assignments.
7944 (expand_expr_real_1): Likewise.
7945 (expand_expr_real_2): Avoid useless statements.
7946
7947 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7948
7949 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7950
7951 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7952 statements.
7953
7954 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7955
7956 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7957
7958 PR target/47109
7959 * doc/tm.texi.in (TARGET_VERSION): Remove.
7960 * doc/tm.texi: Regenerate.
7961 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7962 * collect2.c (main): Don't use TARGET_VERSION.
7963 * mips-tdump.c (main): Don't use TARGET_VERSION.
7964 * mips-tfile.c (main): Don't use TARGET_VERSION.
7965 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7966 * config/rs6000/vxworksae.h: Remove.
7967 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7968 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7969 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7970 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7971 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7972 * config/arm/arm.h (TARGET_VERSION): Remove.
7973 * config/arm/coff.h (TARGET_VERSION): Remove.
7974 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7975 * config/arm/elf.h (TARGET_VERSION): Remove.
7976 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7977 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7978 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7979 * config/arm/pe.h (TARGET_VERSION): Remove.
7980 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7981 * config/arm/semi.h (TARGET_VERSION): Remove.
7982 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7983 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7984 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7985 * config/avr/avr.h (TARGET_VERSION): Remove.
7986 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7987 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7988 * config/frv/frv.h (TARGET_VERSION): Remove.
7989 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7990 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7991 * config/i386/darwin.h (TARGET_VERSION): Remove.
7992 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7993 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7994 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7995 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7996 * config/i386/gnu.h (TARGET_VERSION): Remove.
7997 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7998 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7999 * config/i386/linux.h (TARGET_VERSION): Remove.
8000 * config/i386/linux64.h (TARGET_VERSION): Remove.
8001 * config/i386/lynx.h (TARGET_VERSION): Remove.
8002 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8003 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8004 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8005 * config/i386/netware.h (TARGET_VERSION): Remove.
8006 * config/i386/nto.h (TARGET_VERSION): Remove.
8007 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8008 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8009 * config/ia64/elf.h (TARGET_VERSION): Remove.
8010 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8011 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8012 * config/ia64/linux.h (TARGET_VERSION): Remove.
8013 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8014 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8015 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8016 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8017 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8018 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8019 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8020 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8021 * config/m68k/linux.h (TARGET_VERSION): Remove.
8022 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8023 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8024 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8025 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8026 * config/mep/mep.h (TARGET_VERSION): Remove.
8027 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8028 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8029 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8030 * config/mips/linux.h (TARGET_VERSION): Remove.
8031 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8032 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8033 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8034 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8035 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8036 * config/pa/pa.h (TARGET_VERSION): Remove.
8037 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8038 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8039 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8040 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8041 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8042 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8043 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8044 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8045 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8046 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8047 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8048 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8049 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8050 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8051 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8052 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8053 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8054 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8055 * config/s390/linux.h (TARGET_VERSION): Remove.
8056 * config/s390/s390.h (TARGET_VERSION): Remove.
8057 * config/s390/tpf.h (TARGET_VERSION): Remove.
8058 * config/score/score.h (TARGET_VERSION): Remove.
8059 * config/sh/linux.h (TARGET_VERSION): Remove.
8060 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8061 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8062 * config/sh/sh.h (TARGET_VERSION): Remove.
8063 * config/sh/sh64.h (TARGET_VERSION): Remove.
8064 * config/sh/superh.h (TARGET_VERSION): Remove.
8065 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8066 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8067 * config/sparc/linux.h (TARGET_VERSION): Remove.
8068 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8069 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8070 TARGET_NAME32, TARGET_NAME): Remove.
8071 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8072 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8073 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8074 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8075 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8076 * config/spu/spu.h (TARGET_VERSION): Remove.
8077 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8078 * config/v850/v850.h (TARGET_VERSION): Remove.
8079 * config/vax/linux.h (TARGET_VERSION): Remove.
8080 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8081 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8082 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8083
8084 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8085
8086 PR target/48142
8087 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8088 frame-related from frame-unrelated adjustments to the stack pointer.
8089
8090 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8091
8092 * common.opt (fdebug-types-section): Move earlier.
8093 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8094
8095 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8096
8097 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8098 var.
8099
8100 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8101
8102 * tree.h (CASE_CHAIN): Define.
8103 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8104 (gimple_redirect_edge_and_branch): Likewise.
8105
8106 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8107
8108 PR middle-end/48367
8109 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8110 calculation.
8111
8112 2011-03-30 Jeff Law <law@redhat.com>
8113
8114 * PR bootstrap/48371
8115 * reload1.c (reload): Fix botch in last change.
8116
8117 * reload.h (struct reload): Fix typo introduced in last change.
8118
8119 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8120
8121 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8122 Undocumented. Remove help text.
8123 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8124 -mhard-float.
8125
8126 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8127
8128 * doc/options.texi (NegativeAlias): Document.
8129 (Alias): Mention NegativeAlias.
8130 * opt-functions.awk: Handle NegativeAlias.
8131 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8132 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8133 * opts.h (CL_NEGATIVE_ALIAS): Define.
8134 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8135 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8136 OPT_mspe_.
8137 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8138 Alias entries.
8139 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8140 mno-spe and mno-isel instead of mspe=no and -misel=no.
8141
8142 2011-03-29 Mark Wielaard <mjw@redhat.com>
8143
8144 * common.opt (fdebug-types-section): New flag.
8145 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8146 * dwarf2out.c (use_debug_types): New define.
8147 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8148 (print_die): Guard output of type unit signatures using
8149 use_debug_types.
8150 (build_abbrev_table): Replace assert of dwarf_version >= 4
8151 with assert on use_debug_types.
8152 (size_of_die): Likewise.
8153 (unmark_dies): Likewise.
8154 (value_format): Decide AT_ref_external form on use_debug_types.
8155 (output_die): Replace dwarf_version version check guard with
8156 use_debug_types where appropriate.
8157 (modified_type_die): Likewise.
8158 (gen_reference_type_die): Likewise.
8159 (dwarf2out_start_source_file): Likewise.
8160 (dwarf2out_end_source_file): Likewise.
8161 (prune_unused_types_walk_attribs): Likewise.
8162 (dwarf2out_finish): Likewise.
8163
8164 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8165
8166 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8167
8168 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8169
8170 PR rtl-optimization/48332
8171 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8172 mode of input operand N and modeN to its actual mode.
8173
8174 2011-03-30 Jeff Law <law@redhat.com>
8175
8176 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8177 define accessor macro.
8178 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8179 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8180 (reg_equiv_init): Likewise.
8181 (reg_equivs_size): New variable.
8182 (reg_equiv_init_size): Remove.
8183 (allocate_initial_values): Move prototype to here from....
8184 * integrate.h (allocate_initial_values): Remove prototype.
8185 * integrate.c: Include reload.h.
8186 (allocate_initial_values): Corresponding changes.
8187 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8188 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8189 (update_equiv_regs): Corresponding changes.
8190 (ira): Corresponding changes.
8191 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8192 (push_secondary_reload): Corresponding changes.
8193 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8194 (make_memloc, find_reloads_address): Corresponding changes.
8195 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8196 (find_reloads_address_1): Corresponding changes.
8197 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8198 (refers_to_regno_for_reload_p): Corresponding changes.
8199 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8200 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8201 * reload1.c: Include ggc.h.
8202 (grow_reg_equivs): New function.
8203 (replace_pseudos_in, reload): Corresponding changes.
8204 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8205 (eliminate_regs_1, elimination_effects): Corresponding changes.
8206 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8207 (delete_output_reload): Likewise.
8208 * caller-save.c (mark_referenced_regs): Corresponding changes.
8209 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8210 * frv/predicates.md (frv_load_operand): Corresponding changes.
8211 * microblaze/microblaze.c (double_memory_operand): Corresponding
8212 changes.
8213 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8214 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8215 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8216 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8217 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8218 changes.
8219 * pa/pa.c (emit_move_sequence): Corresponding changes.
8220 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8221
8222 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8223
8224 PR target/47551
8225 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8226 structure modes. Don't check neon_vector_mem_operand for
8227 vector or structure modes.
8228
8229 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8230 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8231
8232 PR target/43590
8233 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8234 operand 1 and reshuffle the operands to match.
8235 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8236
8237 2011-03-30 Christian Schüler <cschueler@gmx.de>
8238
8239 PR driver/48208
8240 * config/c.opt (F): Added 'Driver' to -F option.
8241
8242 PR driver/48260
8243 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8244 handler function.
8245 * config/darwin.opt: Added '-arch' option.
8246
8247 2011-03-30 Nick Clifton <nickc@redhat.com>
8248
8249 * config/rx/rx.md: Add peepholes and patterns to combine
8250 extending loads and simple arithmetic instructions.
8251 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8252 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8253 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8254 modes to use pre-decrement and post-increment addressing.
8255 (rx_is_restricted_memory_address): Add range checking of REG+INT
8256 addresses.
8257 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8258 (rx_memory_move_cost): Adjust cost of stores.
8259 (rx_adjust_insn_length): New function.
8260
8261 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8262
8263 PR c/48305
8264 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8265 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8266 matching arg00/arg01 types.
8267
8268 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8269
8270 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8271 last_location to UNKNOWN_LOCATION.
8272
8273 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8274
8275 PR target/48349
8276 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8277 FLOAT_SSE_REGS.
8278
8279 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8280 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8281
8282 PR bootstrap/48337
8283 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8284 Init(PROCESSOR_V7).
8285 (sparc_cpu): Likewise.
8286 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8287 PROCESSOR_V7.
8288
8289 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8290
8291 PR target/48336
8292 PR middle-end/48342
8293 PR rtl-optimization/48345
8294 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8295 hard regs for given mode from profitable regs when doing secondary
8296 allocation.
8297
8298 2011-03-29 Jeff Law <law@redhat.com>
8299
8300 PR bootstrap/48327
8301 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8302 do_not_duplicate field.
8303 (lookup_redirection_data): Corresponding changes.
8304 (create_duplicates): Always create a template block.
8305 (redirect_edges): Remove code which reused the original block
8306 when it was going to become unreachable code.
8307 (thread_block): Don't set do_not_duplicate field.
8308
8309 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8310
8311 * lto-opts.c (register_user_option_p, lto_register_user_option):
8312 Make type argument unsigned.
8313 * lto-streamer.h (lto_register_user_option): Make type argument
8314 unsigned.
8315 * opth-gen.awk: Make CL_* macros unsigned.
8316 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8317 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8318 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8319 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8320 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8321 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8322 (find_opt): Make lang_mask argument unsigned.
8323
8324 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8325
8326 PR rtl-optimization/48331
8327 PR rtl-optimization/48334
8328 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8329 for any used algorithm.
8330
8331 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8332
8333 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8334 to parent_max.
8335
8336 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8337
8338 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8339 (alpha_option_override): Don't set alpha_sr_alias_set.
8340 (emit_frame_store_1): Use gen_frame_mem rather than calling
8341 set_mem_alias_set.
8342 (alpha_expand_epilogue): Ditto.
8343
8344 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8345
8346 PR tree-optimization/48290
8347 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8348 vectorization, check that relevant phis in the basic block after
8349 the inner loop are really inner loop's exit phis.
8350
8351 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8352
8353 PR debug/48190
8354 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8355 (cached_dw_loc_list_def): New structure.
8356 (cached_dw_loc_list): New typedef.
8357 (cached_dw_loc_list_table): New variable.
8358 (cached_dw_loc_list_table_hash): New function.
8359 (cached_dw_loc_list_table_eq): Likewise.
8360 (add_location_or_const_value_attribute): Take a bool cache_p.
8361 Cache the list when the parameter is true.
8362 (gen_formal_parameter_die): Update caller.
8363 (gen_variable_die): Likewise.
8364 (dwarf2out_finish): Likewise.
8365 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8366 while generating debug info for the decl.
8367 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8368 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8369 (resolve_addr): Cache the result of resolving a chain of
8370 location lists.
8371
8372 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8373
8374 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8375 conflict object hard regset nodes have intersecting hard reg sets.
8376
8377 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8378 after regstat_init_n_sets_and_refs.
8379
8380 * ira.c: Add more comments at the top.
8381 (setup_stack_reg_pressure_class, setup_pressure_classes):
8382 Add comments how we compute the register pressure classes.
8383 (setup_allocno_and_important_classes): Add more comments.
8384 (setup_class_translate_array, reorder_important_classes)
8385 (setup_reg_class_relations): Add comments.
8386
8387 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8388 start of the file.
8389
8390 * ira-color.c: Add 2011 to the Copyright line.
8391 (assign_hard_reg): Add more comments.
8392 (improve_allocation): Ditto.
8393
8394 * ira-costs.c: Add 2011 to the Copyright line.
8395 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8396 comments.
8397 (setup_regno_cost_classes_by_mode): Ditto.
8398
8399 Initial patches from ira-improv branch:
8400
8401 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8402
8403 * ira-build.c (ira_create_object): Remove initialization of
8404 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8405 (ira_create_allocno): Remove initialization of
8406 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8407 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8408 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8409 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8410 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8411 Initialize ALLOCNO_ADD_DATA.
8412 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8413 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8414 ALLOCNO_REG.
8415 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8416 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8417
8418 * ira.c (ira_reallocate): Remove.
8419 (setup_pressure_classes): Call
8420 ira_init_register_move_cost_if_necessary. Use
8421 ira_register_move_cost instead of ira_get_register_move_cost.
8422 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8423 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8424
8425 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8426 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8427 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8428 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8429 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8430 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8431 Fix formatting.
8432 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8433 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8434 (struct allocno_color_data): New.
8435 (allocno_color_data_t): New typedef.
8436 (allocno_color_data): New definition.
8437 (ALLOCNO_COLOR_DATA): New macro.
8438 (struct object_color_data): New.
8439 (object_color_data_t): New typedef.
8440 (object_color_data): New definition.
8441 (OBJECT_COLOR_DATA): New macro.
8442 (update_copy_costs, calculate_allocno_spill_cost): Call
8443 ira_init_register_move_cost_if_necessary. Use
8444 ira_register_move_cost instead of ira_get_register_move_cost.
8445 (move_spill_restore, update_curr_costs): Ditto.
8446 (allocno_spill_priority): Make it inline.
8447 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8448 (struct coalesce_data, coalesce_data_t): New.
8449 (allocno_coalesce_data): New definition.
8450 (ALLOCNO_COALESCE_DATA): New macro.
8451 (merge_allocnos, coalesced_allocno_conflict_p): Use
8452 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8453 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8454 (coalesce_allocnos): Ditto.
8455 (setup_coalesced_allocno_costs_and_nums): Ditto.
8456 (collect_spilled_coalesced_allocnos): Ditto.
8457 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8458 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8459 (coalesce_spill_slots): Ditto.
8460 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8461 free allocno_coalesce_data.
8462
8463 * ira-conflicts.c: Fix formatting.
8464 (process_regs_for_copy): Call
8465 ira_init_register_move_cost_if_necessary. Use
8466 ira_register_move_cost instead of ira_get_register_move_cost.
8467 (build_object_conflicts): Optimize.
8468
8469 * ira-costs.c (record_reg_classes): Optimize. Call
8470 ira_init_register_move_cost_if_necessary. Use
8471 ira_register_move_cost, ira_may_move_in_cost, and
8472 ira_may_move_out_cost instead of ira_get_register_move_cost and
8473 ira_get_may_move_cost.
8474 (record_address_regs): Ditto.
8475 (scan_one_insn): Optimize.
8476 (find_costs_and_classes): Optimize.
8477 (process_bb_node_for_hard_reg_moves): Call
8478 ira_init_register_move_cost_if_necessary. Use
8479 ira_register_move_cost instead of ira_get_register_move_cost.
8480
8481 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8482 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8483 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8484 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8485 definitions.
8486 (ira_initiate_emit_data, ira_finish_emit_data)
8487 (create_new_allocno): New functions.
8488 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8489 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8490 Use ira_register_move_cost instead of ira_get_register_move_cost.
8491
8492 * ira-int.h: Fix some comments.
8493 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8494 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8495 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8496 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8497 add_data.
8498 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8499 bitfield after mode. Make hard_regno a short int. Make
8500 hard_regno short. Remove first_coalesced_allocno and
8501 next_coalesced_allocno. Move mem_optimized_dest_p,
8502 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8503 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8504 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8505 temp, colorable_p. Add new member add_data.
8506 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8507 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8508 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8509 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8510 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8511 (ALLOCNO_ADD_DATA): New macro.
8512 (ira_emit_data_t): New typedef.
8513 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8514 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8515 from struct ira_allocno.
8516 (ALLOCNO_EMIT_DATA): New macro.
8517 (ira_allocno_emit_data, allocno_emit_reg): New.
8518 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8519 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8520 (OBJECT_ADD_DATA): New macro.
8521 (ira_reallocate): Remove.
8522 (ira_initiate_emit_data, ira_finish_emit_data): New.
8523 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8524 (ira_init_register_move_cost_if_necessary): New.
8525 (ira_object_conflict_iter_next): Merge into
8526 ira_object_conflict_iter_cond.
8527 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8528
8529 * ira-live.c (process_single_reg_class_operands): Call
8530 ira_init_register_move_cost_if_necessary. Use
8531 ira_register_move_cost instead of ira_get_register_move_cost.
8532
8533 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8534
8535 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8536
8537 * ira-costs.c: Fix formatting.
8538 (cost_classes, cost_classes_num): Remove.
8539 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8540 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8541 (cost_classes_del, cost_classes_htab): New.
8542 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8543 (initiate_regno_cost_classes, setup_cost_classes): New.
8544 (setup_regno_cost_classes_by_aclass): New.
8545 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8546 (record_reg_classes): Use regno_cost_classes instead of
8547 cost_classes. Move checking opposite operand up.
8548 (record_address_regs): Use regno_cost_classes
8549 instead of cost_classes.
8550 (scan_one_insn): Ditto. Use always general register.
8551 (print_allocno_costs): Use regno_cost_classes instead of
8552 cost_classes.
8553 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8554 (find_costs_and_classes): Set up cost classes for each registers.
8555 Use also their mode for this. Use regno_cost_classes instead of
8556 cost_classes.
8557 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8558 cost_classes.
8559 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8560 (ira_costs, ira_set_pseudo_classes): Call
8561 initiate_regno_cost_classes and finish_regno_cost_classes.
8562
8563 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8564
8565 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8566
8567 * target.def (ira_cover_classes): Remove.
8568
8569 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8570
8571 * doc/tm.texi.in: Ditto.
8572
8573 * ira-conflicts.c: Remove mentioning cover classes from the file.
8574 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8575 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8576
8577 * targhooks.c (default_ira_cover_classes): Remove.
8578
8579 * targhooks.h (default_ira_cover_classes): Ditto.
8580
8581 * haifa-sched.c: Remove mentioning cover classes from the file.
8582 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8583 ira_pressure_classes and ira_pressure_classes_num instead of
8584 ira_reg_class_cover_size and ira_reg_class_cover. Use
8585 sched_regno_pressure_class instead of sched_regno_cover_class.
8586 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8587 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8588
8589 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8590 classes from the file.
8591 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8592 (struct object_hard_regs, struct object_hard_regs_node): New.
8593 (struct ira_object): New members profitable_hard_regs,
8594 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8595 (struct ira_allocno): Rename cover_class to aclass. Rename
8596 cover_class_cost and updated_cover_class_cost to class_cost and
8597 updated_class_cost. Remove splay_removed_p and
8598 left_conflict_size. Add new members colorable_p.
8599 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8600 (ALLOCNO_COLORABLE_P): New macro.
8601 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8602 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8603 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8604 (OBJECT_...): Rename parameter C to O.
8605 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8606 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8607 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8608 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8609 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8610 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8611 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8612 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8613 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8614 x_ira_reg_class_subunion.
8615 (ira_max_memory_move_cost, ira_max_register_move_cost)
8616 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8617 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8618 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8619 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8620 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8621 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8622 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8623 (ira_tune_allocno_costs_and_cover_classes): Rename to
8624 ira_tune_allocno_costs.
8625 (ira_debug_hard_regs_forest): New.
8626 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8627 (ira_object_conflict_iter_next): Fix comments.
8628 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8629 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8630 cover_class to aclass.
8631 (ira_allocate_and_accumulate_costs): Ditto.
8632 (ira_allocate_and_set_or_copy_costs): Ditto.
8633
8634 * opts.c (decode_options): Remove ira_cover_class check.
8635
8636 * ira-color.c: Remove mentioning cover classes from the file. Use
8637 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8638 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8639 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8640 (splay-tree.h): Remove include.
8641 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8642 before copy_freq_compare_func.
8643 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8644 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8645 New definitions.
8646 (hard_regs_roots, hard_regs_node_vec): Ditto.
8647 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8648 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8649 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8650 (create_new_object_hard_regs_node): Ditto.
8651 (add_new_object_hard_regs_node_to_forest): Ditto.
8652 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8653 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8654 Ditto.
8655 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8656 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8657 (remove_unused_object_hard_regs_nodes): Ditto.
8658 (enumerate_object_hard_regs_nodes): Ditto.
8659 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8660 (object_hard_regs_subnode_t): Ditto.
8661 (struct object_hard_regs_subnode): Ditto.
8662 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8663 (setup_object_hard_regs_subnode_index): Ditto.
8664 (get_object_hard_regs_subnodes_num): Ditto.
8665 (form_object_hard_regs_nodes_forest): Ditto.
8666 (finish_object_hard_regs_nodes_tree): Ditto.
8667 (finish_object_hard_regs_nodes_forest): Ditto.
8668 (allocnos_have_intersected_live_ranges_p): Rename to
8669 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8670 (pseudos_have_intersected_live_ranges_p): Rename to
8671 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8672 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8673 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8674 (update_copy_costs): Remove assert. Skip cost update if the hard
8675 reg does not belong the class.
8676 (assign_hard_reg): Process only profitable hard regs.
8677 (uncolorable_allocnos_num): Make it scalar.
8678 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8679 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8680 and ira_reg_class_max_nregs.
8681 (bucket_allocno_compare_func): Check frequency first.
8682 (sort_bucket): Add compare function as a parameter.
8683 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8684 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8685 (push_allocno_to_stack): Rewrite for checking new allocno
8686 colorability.
8687 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8688 (push_only_colorable): Pass new parameter to sort_bucket.
8689 (push_allocno_to_spill): Remove.
8690 (allocno_spill_priority_compare): Make it inline and rewrite.
8691 (splay_tree_allocate, splay_tree_free): Remove.
8692 (allocno_spill_sort_compare): New function.
8693 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8694 build and use splay tree. Choose first allocno in uncolorable
8695 allocno bucket to spill. Remove setting spill cost.
8696 (all_conflicting_hard_regs): Remove.
8697 (setup_allocno_available_regs_num): Check only profitable hard
8698 regs. Print info about hard regs nodes.
8699 (setup_allocno_left_conflicts_size): Remove.
8700 (put_allocno_into_bucket): Don't call
8701 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8702 (improve_allocation): New.
8703 (color_allocnos): Call setup_profitable_hard_regs,
8704 form_object_hard_regs_nodes_forest, improve_allocation,
8705 finish_object_hard_regs_nodes_forest. Setup spill cost.
8706 (print_loop_title): Use pressure classes.
8707 (color_allocnso): Ditto.
8708 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8709 and allocnos_for_spilling.
8710 (ira_sort_regnos_for_alter_reg): Don't setup members
8711 {first,next}_coalesced_allocno.
8712 (color): Remove allocating and freeing removed_splay_allocno_vec.
8713 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8714 prohibited_class_mode_regs.
8715
8716 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8717 formatting.
8718 (update_allocno_pressure_excess_length): Use pressure classes.
8719 (inc_register_pressure, dec_register_pressure): Check for pressure
8720 class.
8721 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8722 pressure class. Use ira_reg_class_nregs instead of
8723 ira_reg_class_max_nregs.
8724 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8725 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8726 (single_reg_class): Use ira_reg_class_nregs instead of
8727 ira_reg_class_max_nregs.
8728 (process_bb_node_lives): Use pressure classes.
8729
8730 * ira-emit.c: Remove mentioning cover classes from the file. Use
8731 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8732 (change_loop): Use pressure classes.
8733 (modify_move_list): Call ira_set_allocno_class instead of
8734 ira_set_allocno_cover_class.
8735
8736 * ira-build.c: Remove mentioning cover classes from the file. Use
8737 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8738 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8739 ALLOCNO_UPDATED_CLASS_COST instead of
8740 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8741 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8742 (ira_create_allocno): Remove initialization of
8743 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8744 ALLOCNO_COLORABLE_P.
8745 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8746 Update conflict regs for the objects.
8747 (create_cap_allocno): Remove assert. Don't propagate
8748 ALLOCNO_AVAILABLE_REGS_NUM.
8749 (ira_free_allocno_costs): New function.
8750 (finish_allocno): Change a part of code into call of
8751 ira_free_allocno_costs.
8752 (low_pressure_loop_node_p): Use pressure classes.
8753 (object_range_compare_func): Don't compare classes.
8754 (setup_min_max_conflict_allocno_ids): Ditto.
8755
8756 * loop-invariant.c: Remove mentioning cover classes from the file.
8757 Use ira_pressure_classes and ira_pressure_classes_num instead of
8758 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8759 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8760 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8761 Use reg_allocno_class instead of reg_cover_class.
8762 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8763 STACK_REG_COVER_CLASS.
8764 (get_regno_cover_class): Rename to get_regno_pressure_class.
8765 (move_loop_invariants): Initialize and finalize regstat.
8766
8767 * ira.c: Remove mentioning cover classes from the file. Add
8768 comments about coloring without cover classes. Use ALLOCNO_CLASS
8769 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8770 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8771 setup_class_subset_and_memory_move_costs.
8772 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8773 (setup_cover_and_important_classes): Rename to
8774 setup_allocno_and_important_classes.
8775 (setup_class_translate_array): New.
8776 (setup_class_translate): Call it for allocno and pressure classes.
8777 (cover_class_order): Rename to allocno_class_order.
8778 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8779 of ira_class_translate.
8780 (reorder_important_classes): Set up ira_important_class_nums.
8781 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8782 (print_class_cover): Rename to print_classes. Add parameter.
8783 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8784 Print pressure classes too.
8785 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8786 setup_reg_subclasses.
8787 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8788 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8789 (setup_prohibited_class_mode_regs): Use
8790 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8791 (clarify_prohibited_class_mode_regs): New function.
8792 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8793 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8794 (ira_init_once): Initialize them.
8795 (free_register_move_costs): Process them.
8796 (ira_init): Move calls of find_reg_classes and
8797 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8798 Call clarify_prohibited_class_mode_regs.
8799 (ira_no_alloc_reg): Remove.
8800 (too_high_register_pressure_p): Use pressure classes.
8801
8802 * sched-deps.c: Remove mentioning cover classes from the file.
8803 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8804 ira_pressure_classes and ira_pressure_classes_num instead of
8805 ira_reg_class_cover_size and ira_reg_class_cover.
8806 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8807 sched_regno_pressure_class instead of sched_regno_cover_class.
8808 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8809 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8810
8811 * ira.h: Add 2010 to Copyright.
8812 (ira_no_alloc_reg): Remove external.
8813 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8814 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8815 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8816 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8817 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8818 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8819 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8820 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8821 x_ira_no_alloc_regs.
8822 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8823 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8824 ira_allocno_classes_num and ira_allocno_classes.
8825 (ira_class_translate): Rename to ira_allocno_class_translate.
8826 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8827 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8828 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8829 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8830 (ira_no_alloc_regs): New.
8831
8832 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8833 classes from the file. Use ALLOCNO_CLASS instead of
8834 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8835 ALLOCNO_COVER_CLASS_COST.
8836 (regno_cover_class): Rename to regno_aclass.
8837 (record_reg_classes): Use ira_reg_class_subunion instead of
8838 ira_reg_class_union.
8839 (record_address_regs): Check overflow.
8840 (scan_one_insn): Ditto.
8841 (print_allocno_costs): Print total mem cost fore regional allocation.
8842 (print_pseudo_costs): Use REG_N_REFS.
8843 (find_costs_and_classes): Use classes intersected with them on the
8844 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8845 ira_reg_class_union. Use ira_allocno_class_translate and
8846 regno_aclass instead of ira_class_translate and regno_cover_class.
8847 Modify code for finding regno_aclass. Setup preferred classes for
8848 the next pass.
8849 (setup_allocno_cover_class_and_costs): Rename to
8850 setup_allocno_class_and_costs. Use regno_aclass instead of
8851 regno_cover_class. Use ira_set_allocno_class instead of
8852 ira_set_allocno_cover_class.
8853 (init_costs, finish_costs): Use regno_aclass instead of
8854 regno_cover_class.
8855 (ira_costs): Use setup_allocno_class_and_costs instead of
8856 setup_allocno_cover_class_and_costs.
8857 (ira_tune_allocno_costs_and_cover_classes): Rename to
8858 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8859 by processing objects. Use ira_reg_class_max_nregs instead of
8860 ira_reg_class_nregs.
8861
8862 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8863
8864 * sched-int.h: Remove mentioning cover classes from the file.
8865 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8866
8867 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8868 classes from the file.
8869 (struct reg_pref): Rename coverclass into allocnoclass.
8870 (reg_cover_class): Rename to reg_allocno_class.
8871
8872 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8873
8874 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8875
8876 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8877
8878 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8879
8880 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8881
8882 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8883
8884 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8885
8886 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8887
8888 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8889
8890 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8891
8892 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8893 (i386_ira_cover_classes): Ditto.
8894
8895 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8896
8897 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8898
8899 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8900
8901 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8902
8903 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8904
8905 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8906
8907 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8908 (mips_ira_cover_classes): Ditto.
8909
8910 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8911
8912 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8913
8914 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8915
8916 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8917
8918 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8919
8920 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8921 (IRA_COVER_CLASSES_VSX): Ditto.
8922
8923 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8924 (rs6000_ira_cover_classes): Ditto.
8925
8926 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8927
8928 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8929
8930 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8931
8932 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8933
8934 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8935
8936 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8937
8938 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8939
8940 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8941
8942 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8943
8944 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8945
8946 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8947
8948 PR debug/48253
8949 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8950 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8951 dw_fde_unlikely_section_end_label, cold_in_std_section,
8952 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8953 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8954 fields.
8955 (output_fde): Use dw_fde_second_{begin,end} if second is
8956 true, otherwise dw_fde_{begin,end}.
8957 (output_call_frame_info): Test dw_fde_second_begin != NULL
8958 instead of dw_fde_switched_sections.
8959 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8960 fields, initialize new fields. Initialize in_std_section
8961 unconditionally from the first partition.
8962 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8963 dw_fde_second_begin is non-NULL.
8964 (dwarf2out_switch_text_section): Stop initializing removed
8965 dw_fde_struct fields, initialize new fields, initialize
8966 also dw_fde_end here. Set dw_fde_switch_cfi even when
8967 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8968 (struct var_loc_list_def): Add last_before_switch field.
8969 (arange_table, arange_table_allocated, arange_table_in_use,
8970 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8971 (size_of_aranges): Count !in_std_section and !second_in_std_section
8972 hunks in fdes, instead of looking at arange_table_in_use.
8973 (output_aranges): Add aranges_length argument, don't call
8974 size_of_aranges here. Instead of using aranges_table*
8975 emit ranges for fdes when !in_std_section resp.
8976 !second_in_std_section.
8977 (dw_loc_list): Break ranges crossing section switch.
8978 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8979 use dw_fde_second_end instead of dw_fde_end as end of last range.
8980 (gen_subprogram_die): Don't call add_arange. Use
8981 dw_fde_{begin,end} for first partition and if switched
8982 section dw_fde_second_{begin,end} for the second.
8983 (var_location_switch_text_section_1,
8984 var_location_switch_text_section): New functions.
8985 (dwarf2out_begin_function): Initialize cold_text_section even
8986 when function_section () isn't text_section.
8987 (prune_unused_types): Don't walk arange_table.
8988 (dwarf2out_finish): Don't needlessly test
8989 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8990 If info_section_emitted, call size_of_aranges and if it indicates
8991 non-empty .debug_aranges, call output_aranges with the computed
8992 size. Stop using removed dw_fde_struct fields, use
8993 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8994 for second.
8995
8996 PR debug/48203
8997 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8998 create ENTRY_VALUE if incoming or address of incoming's MEM
8999 is a hard REG.
9000 * dwarf2out.c (mem_loc_descriptor): Don't emit
9001 DW_OP_GNU_entry_value of DW_OP_fbreg.
9002 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9003 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9004 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9005 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9006 ENTRY_VALUE_EXPs.
9007 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9008 is a REG_P or MEM_P with REG_P address, compute hash directly
9009 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9010 (preserve_only_constants): Don't clear VALUES forwaring
9011 ENTRY_VALUE to some other VALUE.
9012
9013 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9014
9015 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9016 instead of GEN_INT.
9017
9018 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9019
9020 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9021 block before expanding the statement.
9022 (expand_gimple_stmt_1): Likewise. Set them here...
9023 (expand_gimple_stmt): ...and not here. Tidy.
9024 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9025 unknown.
9026
9027 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9028
9029 * Makefile.in: New rule for cprop.o.
9030 * gcse.c: Move constant/copy propagation to cprop.c.
9031 (compute_local_properties): Only handle expression tables.
9032 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9033 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9034 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9035 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9036 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9037 compute_cprop_data, find_used_regs, try_replace_reg,
9038 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9039 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9040 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9041 find_bypass_set, reg_killed_on_edge, bypass_block,
9042 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9043 execute_rtl_cprop, pass_rtl_cprop): Move to...
9044 * cprop.c: ...here. New file, constant/copy propagation for RTL
9045 moved from gcse.c to here with minor cleanups in duplicated code.
9046
9047 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9048
9049 * config/i386/i386.c (flag_opts): Fix a typo in
9050 -mavx256-split-unaligned-store.
9051
9052 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9053
9054 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9055 LIBCALL_VALUE): Remove macros.
9056 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9057 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9058 (h8300_function_value, h8300_libcall_value,
9059 h8300_function_value_regno_p): New functions.
9060
9061 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9062
9063 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9064
9065 2011-03-28 Jeff Law <law@redhat.com>
9066
9067 * tree-ssa-threadupdate.c (redirect_edges): Call
9068 create_edge_and_update_destination_phis as needed.
9069 (create_edge_and_update_destination_phis): Accept new BB argument.
9070 All callers updated.
9071 (thread_block): Do not update the profile when threading around
9072 intermediate blocks.
9073 (thread_single_edge): Likewise.
9074 (determine_bb_domination_status): If BB is not a successor of the
9075 loop header, return NONDOMINATING.
9076 (register_jump_thread): Note when we register a jump thread around
9077 an intermediate block.
9078 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9079 (thread_across_edge): Use it.
9080
9081 2011-03-28 Tristan Gingold <gingold@adacore.com>
9082
9083 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9084 when for_return is 2.
9085
9086 2011-03-28 Jeff Law <law@redhat.com>
9087
9088 * var-tracking.c (canonicalize_values_mark): Delete unused
9089 lhs assignment.
9090 (canonicalize_values_star, set_variable_part): Likewise.
9091 (clobber_variable_part, delete_variable_part): Likewise.
9092
9093 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9094
9095 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9096
9097 2011-03-28 Martin Jambor <mjambor@suse.cz>
9098
9099 * tree-inline.c (expand_call_inline): Do not check that destination
9100 node is analyzed.
9101 (optimize_inline_calls): Assert that destination node is analyzed.
9102 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9103 not call tree_lowering_passes.
9104 * cgraph.h (cgraph_analyze_function): Declare.
9105 * cgraphunit.c (cgraph_analyze_function): Make public.
9106
9107 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9108
9109 * config/sparc/sparc-opts.h: New.
9110 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9111 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9112 (sparc_option_override): Store processor_type enumeration rather
9113 than string in cpu_default. Remove name and enumeration from
9114 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9115 without using sparc_select. Use target_flags_explicit instead of
9116 fpu_option_set.
9117 * config/sparc/sparc.h (enum processor_type): Move to
9118 sparc-opts.h.
9119 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9120 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9121 HeaderInclude entry.
9122 (mcpu=, mtune=): Use Var and Enum.
9123 (sparc_processor_type): New Enum and EnumValue entries.
9124
9125 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9126 Iain Sandoe <iains@gcc.gnu.org>
9127
9128 PR target/48245
9129 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9130
9131 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9132
9133 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9134 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9135 Insert new statements at it in lieu of STMT.
9136 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9137 * tree-vect-stmts.c (vectorizable_store): Likewise.
9138 (vectorizable_load): Likewise.
9139
9140 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9141
9142 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9143 (divtf3): Ditto.
9144 (multf3): Ditto.
9145 (subtf3): Ditto.
9146
9147 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9148
9149 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9150 unaligned 256bit load/store.
9151 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9152 (*avx_movdqu<avxmodesuffix>): Likewise.
9153
9154 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9155
9156 PR target/48288
9157 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9158 * config/pa/pa.md (iordi3): Use new predicate in expander.
9159 (iorsi3): Likewise.
9160
9161 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9162
9163 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9164 FUNCTION_VALUE_REGNO_P): Remove macros.
9165 * config/mips/mips-protos.h (mips_function_value): Remove.
9166 * config/mips/mips.c (mips_function_value): Rename to...
9167 (mips_function_value_1): ... this. Make static. Handle receiving
9168 the function type in 'fn_decl_or_type' argument.
9169 (mips_function_value, mips_libcall_value,
9170 mips_function_value_regno_p): New function.
9171 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9172 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9173
9174 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9175
9176 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9177 and -mavx256-split-unaligned-store.
9178 (ix86_option_override_internal): Split 32-byte AVX unaligned
9179 load/store by default.
9180 (ix86_avx256_split_vector_move_misalign): New.
9181 (ix86_expand_vector_move_misalign): Use it.
9182
9183 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9184 -mavx256-split-unaligned-store.
9185
9186 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9187 256bit load/store. Generate unaligned store on misaligned memory
9188 operand.
9189 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9190 256bit load/store.
9191 (*avx_movdqu<avxmodesuffix>): Likewise.
9192
9193 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9194 -mavx256-split-unaligned-store.
9195
9196 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9197
9198 PR target/38598
9199 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9200 Update commentary.
9201
9202 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9203
9204 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9205 opno arguments with an expand_operand. Use create_input_operand.
9206 (mips_prepare_builtin_target): Delete.
9207 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9208 functions.
9209 (mips_expand_builtin_direct): Use create_output_operand and
9210 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9211 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9212 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9213
9214 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9215
9216 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9217 function.
9218 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9219
9220 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9221
9222 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9223 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9224 basic blocks and call commit_edge_insertions directly.
9225 (fixup_abnormal_edges): Move from here to...
9226 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9227 on the edges and return whether some have actually been inserted.
9228 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9229 compensation code.
9230
9231 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9232
9233 PR rtl-optimization/48144
9234 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9235 (merge_expr_data): ... here.
9236 (av_set_intersect): Rename to av_set_code_motion_filter.
9237 Update all callers. Call merge_history_vect when an expression
9238 is found in both sets.
9239 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9240
9241 2011-03-26 Alan Modra <amodra@gmail.com>
9242
9243 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9244 cmodel medium addresses.
9245 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9246 64-bit gpr loads and stores.
9247 (rs6000_secondary_reload_ppc64): New function.
9248 * config/rs6000/rs6000-protos.h: Declare it.
9249 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9250
9251 2011-03-26 Alan Modra <amodra@gmail.com>
9252
9253 PR target/47487
9254 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9255 GNU Go in traceback table.
9256
9257 2011-03-25 Richard Henderson <rth@redhat.com>
9258
9259 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9260 if there are exactly 6 operands.
9261 (set_storage_via_setmem): Similarly.
9262
9263 2011-03-25 Kai Tietz <ktietz@redhat.com>
9264
9265 * collect2.c (write_c_file_stat): Handle backslash
9266 as right-hand directory separator.
9267 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9268 checking just for slash.
9269 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9270 instead of checking for trailing slash.
9271 * gcc.c (record_temp_file): Use filename_cmp instead
9272 of strcmp.
9273 (do_spec_1): Likewise.
9274 (replace_outfile_spec_function): Likewise.
9275 (is_directory): Use filename_ncmp instead of strncmp.
9276 (print_multilib_info): Likewise.
9277 * gcov.c (find_source): Use filename_cmp instead
9278 instead of strcmp.
9279 (make_gcov_file_name): Fix order of slash/backslash
9280 checks.
9281 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9282 (add_standard_paths): Likewise.
9283 * mips-tfile.c (saber_stop): Handle backslash.
9284 * prefix.c (update_path): Use filename_ncmp instead of
9285 strncmp.
9286 * profile.c (output_location): Use filename_cmp instead
9287 of strcmp.
9288 * read-md.c (handle_toplevel_file): Handle backslash.
9289 * tlink.c (frob_extension): Likewise.
9290 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9291 strcmp.
9292 * tree-dump.c (dequeue_and_dump): Handle backslash.
9293 * tree.c (get_file_function_name): Likewise.
9294 * gengtype.c (read_input_list): Likewise.
9295 (get_file_realbasename): Likewise.
9296 (get_output_file_with_visibility): Use filename_cmp
9297 instead of strcmp.
9298
9299 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9300
9301 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9302 case to VFPv1.
9303
9304 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9305
9306 * fold-const.c (expr_location_or): New function.
9307 (fold_truth_not_expr): Call it.
9308
9309 2011-03-25 Jeff Law <law@redhat.com>
9310
9311 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9312 va_end.
9313 * c-family/c-common.c (def_fn_type): Likewise.
9314 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9315 * emit-rtl.c (gen_rtvec): Likewise.
9316 * lto/lto-lang.c (def_fn_type): Likewise.
9317
9318 2011-03-25 Richard Guenther <rguenther@suse.de>
9319
9320 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9321 also generate copies.
9322 (fini_copy_prop): Handle constant values properly.
9323
9324 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9325
9326 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9327 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9328 (hash_loc_operands, compare_loc_operands): Handle
9329 DW_OP_GNU_entry_value.
9330
9331 2011-03-25 Kai Tietz <ktietz@redhat.com>
9332
9333 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9334 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9335 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9336 comment and use macro TARGET_64BIT_MS_ABI instead.
9337 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9338 and change default behavior for 32-bit MS_ABI.
9339 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9340 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9341 32-bit, too.
9342 (ix86_cfun_abi): Likewise.
9343 (ix86_maybe_switch_abi): Adjust comment.
9344 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9345 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9346 instead of checking for SYSV_ABI.
9347 (ix86_nsaved_sseregs): Likewise.
9348 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9349 to 16 bytes.
9350 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9351 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9352 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9353 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9354 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9355
9356 2011-03-25 Richard Guenther <rguenther@suse.de>
9357
9358 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9359 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9360 (verify_gimple): Remove.
9361 * tree-cfg.c (verify_gimple_call): Merge verification
9362 from verify_stmts.
9363 (verify_gimple_phi): Merge verification from verify_stmts.
9364 (verify_gimple_label): New function.
9365 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9366 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9367 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9368 (verify_stmts): Rename to verify_gimple_in_cfg.
9369 (verify_gimple_in_cfg): New function.
9370 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9371 * tree-ssa.c (verify_ssa): Likewise.
9372 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9373
9374 2011-03-25 Richard Guenther <rguenther@suse.de>
9375
9376 * passes.c (init_optimization_passes): Add FRE pass after
9377 early SRA.
9378
9379 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9380 Andrew Stubbs <ams@codesourcery.com>
9381
9382 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9383 for Cortex-A8.
9384 (arm_movdi_vfp_cortexa8): New pattern.
9385 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9386 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9387 instructions when tuning for Cortex-A8. Set attribute "arch".
9388 * config/arm/arm.md: Move include arm-tune.md up a bit.
9389 (define_attr "arch"): Add "onlya8" and "nota8" values.
9390 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9391
9392 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9393
9394 PR bootstrap/48282
9395 Revert:
9396 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9397
9398 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9399 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9400 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9401 * passes.c (init_optimization_passes): Move
9402 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9403
9404 2011-03-25 Kai Tietz <ktietz@redhat.com>
9405
9406 * c-typeck.c (comptypes_internal): Replace target
9407 hook call of comp_type_attributes by version in tree.c file.
9408 * gimple.c (gimple_types_compatible_p_1): Likewise.
9409 * tree-ssa.c (useless_type_conversion_p): Likewise.
9410 * tree.c (build_type_attribute_qual_variant): Likewise.
9411 (attribute_value_equal): New static helper function.
9412 (comp_type_attributes): New function.
9413 (merge_attributes): Use attribute_value_equal for comparison.
9414 (attribute_list_contained): Likewise.
9415 * tree.h (comp_type_attributes): New prototype.
9416
9417 2011-03-25 Richard Guenther <rguenther@suse.de>
9418
9419 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9420 of complex types at -O0.
9421 (verify_gimple_assign_binary): Likewise.
9422 (verify_gimple_assign_ternary): Likewise.
9423
9424 2011-03-24 Mark Wielaard <mjw@redhat.com>
9425
9426 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9427 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9428
9429 2011-03-24 Mark Wielaard <mjw@redhat.com>
9430
9431 PR debug/48041
9432 * dwarf2out.c (output_abbrev_section): Only write table when
9433 abbrev_die_table_in_use > 1.
9434
9435 2011-02-24 Richard Henderson <rth@redhat.com>
9436
9437 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9438 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9439 (alpha_expand_unaligned_load_words): Use extql.
9440 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9441 (emit_insxl): Handle all modes for consistency.
9442
9443 2011-02-24 Richard Henderson <rth@redhat.com>
9444
9445 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9446 (alpha_expand_unaligned_load): Likewise.
9447 (alpha_expand_unaligned_store): Likewise.
9448 (alpha_expand_unaligned_load_words): Likewise.
9449 (alpha_expand_unaligned_store_words): Likewise.
9450 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9451 (alpha_split_lock_test_and_set_12): Likewise.
9452 (print_operand, alpha_fold_builtin_extxx): Likewise.
9453 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9454 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9455 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9456 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9457 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9458 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9459 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9460 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9461 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9462 (extwl, extll, extql): Similarly.
9463 (inswh, inslh, insqh): Similarly.
9464 (mskbl, mskwl, mskll, mskql): Similarly.
9465 (mskwh, msklh, mskqh): Similarly.
9466
9467 2011-02-24 Richard Henderson <rth@redhat.com>
9468
9469 * config/alpha/alpha.md (attribute isa): Add er, ner.
9470 (attribute enabled): Handle them.
9471 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9472
9473 2011-02-24 Richard Henderson <rth@redhat.com>
9474
9475 * config/alpha/alpha.md (attribute isa): Add vms.
9476 (attribute enabled): Handle it.
9477 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9478 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9479 (*movtf): Rename from *movtf_internal for consistency.
9480 (*movsi): Merge with *movsi_nt_vms.
9481 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9482 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9483 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9484 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9485
9486 2011-02-24 Richard Henderson <rth@redhat.com>
9487
9488 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9489 (extendqisi2, extendhisi2): Likewise.
9490 (extendqidi2): Simplify BWX/non-BWX expansions.
9491 (extendhidi2): Similarly.
9492
9493 2011-02-24 Richard Henderson <rth@redhat.com>
9494
9495 * config/alpha/alpha.md (attribute isa): New.
9496 (attribute enabled): New.
9497 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9498 (zero_extendqisi2, zero_extendqidi2): Similarly.
9499 (zero_extendhisi2, zero_extendhidi2): Similarly.
9500 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9501
9502 2011-02-24 Richard Henderson <rth@redhat.com>
9503
9504 * config/alpha/predicates.md (input_operand): Revert last change;
9505 update comment to mention 32-bit VMS rather than Windows.
9506
9507 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9508
9509 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9510 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9511 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9512 * passes.c (init_optimization_passes): Move
9513 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9514
9515 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9516
9517 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9518
9519 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9520
9521 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9522 correctly.
9523
9524 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9525
9526 PR debug/48204
9527 * simplify-rtx.c (simplify_const_unary_operation): Call
9528 real_convert when changing mode class with FLOAT_EXTEND.
9529
9530 2011-03-24 Nick Clifton <nickc@redhat.com>
9531
9532 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9533 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9534 * config/rx/rx.c (rx_option_override): Set align_jumps,
9535 align_loops and align_labels if not set by the user.
9536 (rx_align_for_label): New function.
9537 (rx_max_skip_for_label): New function.
9538 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9539 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9540 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9541 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9542 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9543
9544 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9545
9546 PR rtl-optimization/48263
9547 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9548 and original commutative_p handling. Use maybe_gen_insn.
9549
9550 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9551
9552 * reload.c (find_reloads_subreg_address): Add address_reloaded
9553 parameter and return true there if the full address has been
9554 reloaded.
9555 (find_reloads_toplev): Pass address_reloaded flag.
9556 (find_reloads_address_1): Don't use address_reloaded parameter.
9557
9558 2011-03-24 Jeff Law <law@redhat.com>
9559
9560 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9561 unused variable "ann".
9562 (remove_unused_locals): Likewise.
9563
9564 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9565 statement.
9566
9567 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9568 after it is freed.
9569
9570 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9571
9572 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9573 for invalid symbolic addresses.
9574 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9575 larl operands.
9576
9577 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9578
9579 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9580 the argument in calls to fold_truth_not_expr.
9581
9582 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9583
9584 * tree.c (record_node_allocation_statistics): New function.
9585 (make_node_stat, copy_node_stat, build_string): Call it.
9586 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9587 (build1_stat, build_omp_clause): Likewise.
9588
9589 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9590
9591 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9592 last commit.
9593
9594 2011-03-24 Richard Guenther <rguenther@suse.de>
9595
9596 PR tree-optimization/48271
9597 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9598 blocks that still exist.
9599
9600 2011-03-24 Richard Guenther <rguenther@suse.de>
9601
9602 PR tree-optimization/48270
9603 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9604 not free datarefs before ddrs.
9605
9606 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9607
9608 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9609 from the address built for a reference with variable offset.
9610
9611 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9612
9613 PR target/48237
9614 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9615 alternatives that can be handled with movq or movabsq insn.
9616 (*movdf_internal): Disable for !TARGET_64BIT.
9617 (*movdf_internal_nointeger): Ditto.
9618 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9619
9620 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9621
9622 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9623 (FUNCTION_ARG_ADVANCE): Likewise.
9624 * tm.texi.in: Change references to them to hook references.
9625 * tm.texi: Regenerate.
9626 * targhooks.c (default_function_arg): Eliminate check for target macro.
9627 (default_function_incoming_arg): Likewise.
9628 (default_function_arg_advance): Likewise.
9629 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9630 (function_arg_advance): Likewise.
9631 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9632
9633 2011-03-24 Richard Guenther <rguenther@suse.de>
9634
9635 PR middle-end/48269
9636 * tree-object-size.c (addr_object_size): Do not double-account
9637 for MEM_REF offsets.
9638
9639 2011-03-24 Diego Novillo <dnovillo@google.com>
9640
9641 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9642 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9643 (lto_input_data_block): Move from lto-opts.c. Make extern.
9644 Update all users.
9645 (lto_input_string): Rename from input_string. Make extern.
9646 Update all users.
9647 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9648 output_string_with_length.
9649 Output 0 to indicate a non-NULL string. Update all callers to
9650 not emit 0.
9651 (lto_output_string): Rename from output_string. Make extern.
9652 Update all users.
9653 (lto_output_decl_state_streams): Make extern.
9654 (lto_output_decl_state_refs): Make extern.
9655 * lto-streamer.h (lto_input_string): Declare.
9656 (lto_input_data_block): Declare.
9657 (lto_output_string): Declare.
9658 (lto_output_string_with_length): Declare.
9659 (lto_output_decl_state_streams): Declare.
9660 (lto_output_decl_state_refs): Declare.
9661
9662 2011-03-24 Richard Guenther <rguenther@suse.de>
9663
9664 PR tree-optimization/46562
9665 * tree.c (build_invariant_address): New function.
9666 * tree.h (build_invariant_address): Declare.
9667 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9668 a renamed function moved ...
9669 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9670 Take valueization callback parameter.
9671 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9672 * gimple-fold.h: New file.
9673 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9674 (ccp_fold, fold_const_aggregate_ref,
9675 fold_ctor_reference, fold_nonarray_ctor_reference,
9676 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9677 get_base_constructor): Move ...
9678 * gimple-fold.c: ... here.
9679 (gimple_fold_stmt_to_constant_1): New function
9680 split out from ccp_fold. Take a valueization callback parameter.
9681 Valueize all operands.
9682 (gimple_fold_stmt_to_constant): New wrapper function.
9683 (fold_const_aggregate_ref_1): New function split out from
9684 fold_const_aggregate_ref. Take a valueization callback parameter.
9685 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9686 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9687 invariant POINTER_PLUS_EXPRs to invariant form.
9688 (vn_valueize): New function.
9689 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9690 * tree-vrp.c (vrp_valueize): New function.
9691 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9692 to fold statements to constants.
9693 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9694 function declarations.
9695 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9696 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9697
9698 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9699
9700 * config/h8300/predicates.md (jump_address_operand): Fix register
9701 mode check.
9702
9703 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9704
9705 * doc/invoke.texi (max-stores-to-sink): Document.
9706 * params.h (MAX_STORES_TO_SINK): Define.
9707 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9708 if either vectorization or if-conversion is disabled.
9709 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9710 tree-vect-data-refs.c vect_equal_offsets.
9711 (dr_equal_offsets_p): New function.
9712 (find_data_references_in_bb): Remove static.
9713 * tree-data-ref.h (find_data_references_in_bb): Declare.
9714 (dr_equal_offsets_p): Likewise.
9715 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9716 (vect_drs_dependent_in_basic_block): Update calls to
9717 vect_equal_offsets.
9718 (vect_check_interleaving): Likewise.
9719 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9720 (cond_if_else_store_replacement): Rename to...
9721 (cond_if_else_store_replacement_1): ... this. Change arguments and
9722 documentation.
9723 (cond_if_else_store_replacement): New function.
9724 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9725 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9726
9727 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9728
9729 PR target/46934
9730 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9731 to subtract lower bound instead of GEN_INT().
9732
9733 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9734
9735 PR other/48179
9736 PR other/48221
9737 PR other/48234
9738 * doc/extend.texi (Alignment): Move section to match order in TOC.
9739 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9740 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9741
9742 2011-03-23 Jeff Law <law@redhat.com>
9743
9744 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9745 before removing the edge.
9746
9747 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9748 it may have been freed by redirect_branch_edge or
9749 redirect_edge_succ_nodup.
9750
9751 2011-03-23 Richard Guenther <rguenther@suse.de>
9752
9753 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9754 (check_va_list_escapes): Likewise.
9755 (check_all_va_list_escapes): Likewise.
9756
9757 2011-03-23 Richard Guenther <rguenther@suse.de>
9758
9759 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9760 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9761 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9762 (alias.o): Likewise.
9763 (ipa-type-escape.o): Remove.
9764 (ipa-struct-reorg.o): Likewise.
9765 (GTFILES): Remove ipa-struct-reorg.c.
9766 * alias.c: Do not include ipa-type-escape.h.
9767 * tree-ssa-alias.c: Likewise.
9768 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9769 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9770 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9771 and ipa-type-escape passes.
9772 * tree-pass.h (pass_ipa_type_escape): Remove.
9773 (pass_ipa_struct_reorg): Likewise.
9774 * ipa-struct-reorg.h: Remove.
9775 * ipa-struct-reorg.c: Likewise.
9776 * ipa-type-escape.h: Likewise.
9777 * ipa-type-escape.c: Likewise.
9778 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9779 (--param struct-reorg-cold-struct-ratio): Likewise.
9780 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9781 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9782 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9783
9784 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9785
9786 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9787 cpu attribute value.
9788 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9789 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9790 * config/s390/s390.c (processor_flags_table): New constant array.
9791 (s390_handle_arch_option): Remove.
9792 (s390_handle_option): Remove s390_handle_arch_option invocations
9793 and OPT_mwarn_framesize_ handling.
9794 (s390_option_override): Remove s390_handle_arch_option invocation.
9795 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9796 warnings.
9797 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9798 * config/s390/s390.opt (s390_tune, s390_arch)
9799 (march=): Replace s390_arch_option enum and values with
9800 processor_type. Set variable name to s390_arch. Set
9801 initialization value.
9802 (mtune=): Replace s390_arch_option with processor_type. Set
9803 variable name to s390_tune. Set initialization value.
9804
9805 2011-03-23 Julian Brown <julian@codesourcery.com>
9806
9807 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9808 accesses which are not naturally aligned.
9809
9810 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9811
9812 PR target/47553
9813 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9814
9815 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9816
9817 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9818 parameter from "int" to "enum insn_code".
9819 (expand_operand_type): New enum.
9820 (expand_operand): New structure.
9821 (create_expand_operand): New function.
9822 (create_fixed_operand, create_output_operand): Likewise
9823 (create_input_operand, create_convert_operand_to): Likewise.
9824 (create_convert_operand_from, create_address_operand): Likewise.
9825 (create_integer_operand): Likewise.
9826 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9827 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9828 (expand_insn, expand_jump_insn): Likewise.
9829 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9830 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9831 (expand_movstr, expand_builtin___clear_cache): Likewise.
9832 (expand_builtin_lock_release): Likewise.
9833 * explow.c (allocate_dynamic_stack_space): Likewise.
9834 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9835 and use the default handling in that case.
9836 * expmed.c (check_predicate_volatile_ok): Delete.
9837 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9838 (emit_cstore): Likewise.
9839 * expr.c (emit_block_move_via_movmem): Likewise.
9840 (set_storage_via_setmem, expand_assignment): Likewise.
9841 (emit_storent_insn, try_casesi): Likewise.
9842 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9843 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9844 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9845 (expand_twoval_unop, expand_twoval_binop): Likewise.
9846 (expand_unop_direct, emit_indirect_jump): Likewise.
9847 (emit_conditional_move, vector_compare_rtx): Likewise.
9848 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9849 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9850 (expand_sync_lock_test_and_set): Likewise.
9851 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9852 (emit_unop_insn): Likewise.
9853 (expand_copysign_absneg): Change icode to an insn_code.
9854 (create_convert_operand_from_type): New function.
9855 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9856 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9857 (expand_insn, expand_jump_insn): Likewise.
9858 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9859 than const_int_operand for operand 2.
9860
9861 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9862
9863 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9864 if possible.
9865
9866 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9867
9868 * emit-rtl.c (emit_pattern_before_noloc): New function.
9869 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9870 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9871 (emit_pattern_after_noloc): New function.
9872 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9873 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9874
9875 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9876
9877 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9878 (__ffsDI2): Likewise.
9879
9880 2011-03-22 Richard Henderson <rth@redhat.com>
9881
9882 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9883 of !TARGET_ABI_OPEN_VMS.
9884 (alpha_trampoline_init, alpha_start_function): Likewise.
9885 (alpha_expand_epilogue, alpha_file_start): Likewise.
9886 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9887 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9888 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9889 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9890 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9891
9892 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9893
9894 * config/s390/s390-opts.h: New.
9895 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9896 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9897 s390_stack_guard): Remove.
9898 (s390_handle_arch_option): Return void. Take enum
9899 s390_arch_option value instead of string and searching array.
9900 (s390_handle_option): Don't assert that global structures are in
9901 use. Access variables via opts pointer. Use error_at. Don't use
9902 sscanf for -mstack-guard= or -mstack-size=. Update call to
9903 s390_handle_arch_option.
9904 (s390_option_override): Update call to s390_handle_arch_option.
9905 (s390_emit_prologue): Use %d format for s390_stack_size in
9906 diagnostic. Use %wd for HOST_WIDE_INT.
9907 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9908 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9909 * config/s390/s390.opt (config/s390/s390-opts.h): New
9910 HeaderInclude entry.
9911 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9912 s390_arch_flags, s390_warn_framesize): New Variable entries.
9913 (s390_arch_option): New Enum and EnumValue entries.
9914 (march=): Use Enum instead of Var.
9915 (mstack-guard=, mstack-size=): Use UInteger and Var.
9916 (mtune=): Use Enum.
9917
9918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9919
9920 * config/score/score.c (score_handle_option): Don't assert that
9921 global structures are in use. Access target_flags via opts
9922 pointer. Use value of -march= option to determine target_flags
9923 settings.
9924 * config/score/score.opt (march=): Use Enum.
9925 (score_arch): New Enum and EnumValue entries.
9926
9927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9928
9929 * config/mep/mep.c (option_mtiny_specified): Remove.
9930 (mep_option_override): Move register handling for -mivc2 from
9931 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9932 instead of option_mtiny_specified.
9933 (mep_handle_option): Access target_flags via opts pointer. Don't
9934 assert that global structures are in use. Defer part of -mivc2
9935 handling and move it to mep_option_override.
9936 * config/mep/mep.opt (IVC2): New Mask entry.
9937 (mivc2): Use Var and Defer instead of Mask.
9938
9939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9940
9941 * config/v850/v850-opts.h: New.
9942 * config/v850/v850.c (small_memory): Replace with
9943 small_memory_physical_max array. Make that array static const.
9944 (v850_handle_memory_option): Take integer value of argument. Take
9945 gcc_options pointer, option text and location. Return void.
9946 Update for changes to small memory structures.
9947 (v850_handle_option): Access target_flags via opts pointer. Don't
9948 assert that global structures are in use. Update calls to
9949 v850_handle_memory_option.
9950 (v850_encode_data_area): Update references to small memory settings.
9951 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9952 (enum small_memory_type): Move to v850-opts.h.
9953 * config/v850/v850.opt (config/v850/v850-opts.h): New
9954 HeaderInclude entry.
9955 (small_memory_max): New Variable entry.
9956 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9957 (mtda, mzda): Likewise.
9958
9959 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9960
9961 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9962 pointer. Don't assert that global structures are in use.
9963
9964 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9965
9966 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9967 via opts pointer. Don't assert that global structures are in use.
9968
9969 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9970
9971 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9972 (munix=93): Use Var.
9973 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9974 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9975 * config/pa/pa-opts.h: New.
9976 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9977 (pa_handle_option): Don't assert that global structures are in
9978 use. Access target_flags via opts pointer. Don't handle
9979 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9980 OPT_munix_98 here.
9981 (pa_option_override): Handle deferred OPT_mfixed_range_.
9982
9983 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9984
9985 * config/mn10300/mn10300-opts.h: New.
9986 * config/mn10300/mn10300.c (mn10300_processor,
9987 mn10300_tune_string): Remove.
9988 (mn10300_handle_option): Don't assert that global structures are
9989 in use. Access mn10300_processor via opts pointer. Don't handle
9990 OPT_mtune_ here.
9991 * config/mn10300/mn10300.h (enum processor_type): Move to
9992 mn10300-opts.h.
9993 (mn10300_processor): Remove.
9994 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9995 HeaderInclude entry.
9996 (mn10300_processor): New Variable entry.
9997 (mtune=): Use Var.
9998
9999 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10000
10001 * config/microblaze/microblaze.c: Don't include opts.h.
10002 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10003 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10004 (mno-clearbss): Use Var and Warn.
10005
10006 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10007
10008 * config/m32r/m32r-opts.h: New.
10009 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10010 (m32r_handle_option): Don't assert that global structures are in
10011 use. Access target_flags and m32r_cache_flush_func via opts
10012 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10013 OPT_mno_flush_trap here.
10014 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10015 include of m32r-opts.h.
10016 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10017 HeaderInclude entry.
10018 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10019 (mmodel=): Use Enum and Var.
10020 (m32r_model): New Enum and EnumValue entries.
10021 (mno-flush-trap): Use Var.
10022 (msdata=): Use Enum and Var.
10023 (m32r_sdata): New Enum and EnumValue entries.
10024
10025 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10026
10027 * config/m32c/m32c.c: Don't include opts.h.
10028 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10029 m32c_handle_option): Remove.
10030 (m32c_option_override): Check global_options_set.x_target_memregs
10031 instead of target_memregs_set.
10032 * config/m32c/m32c.h (target_memregs): Remove.
10033 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10034 variable.
10035
10036 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10037
10038 * config/iq2000/iq2000-opts.h: New.
10039 * config/iq2000/iq2000.c: Don't include opts.h.
10040 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10041 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10042 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10043 HeaderInclude entry.
10044 (iq2000_tune): New Variable entry.
10045 (march=): Add comment. Use Enum.
10046 (iq2000_arch): New Enum and EnumValue entries.
10047 (mcpu=): Use Enum and Var.
10048 (iq2000_tune): New Enum and EnumValue entries.
10049
10050 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10051
10052 * config/ia64/ia64-opts.h: New.
10053 * config/ia64/ia64.c (ia64_tune): Remove.
10054 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10055 here. Use error_at.
10056 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10057 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10058 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10059 HeaderInclude entry.
10060 (ia64_tune): New Variable entry.
10061 (mfixed-range=): Use Defer and Var.
10062 (mtune=): Use Enum and Var.
10063 (ia64_tune): New Enum and EnumValue entries.
10064
10065 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10066
10067 * config/frv/frv-opts.h: New.
10068 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10069 frv-opts.h.
10070 (frv_cpu_type): Remove.
10071 * config/frv/frv.c: Don't include opts.h.
10072 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10073 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10074 (frv_cpu_type): New Variable entry.
10075 (frv_cpu): New Enum and EnumValue entries.
10076
10077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10078
10079 * config/cris/cris.c (cris_handle_option): Access target_flags via
10080 opts pointer. Don't assert that global structures are in use.
10081 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10082 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10083
10084 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10085
10086 * config/bfin/bfin-opts.h: New.
10087 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10088 bfin_si_revision, bfin_workarounds): Remove.
10089 (bfin_cpus): Make static const.
10090 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10091 not bfin_lib_id_given.
10092 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10093 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10094 pointer. Use error_at. Don't assert that global structures are in use.
10095 * config/bfin/bfin.h: Include bfin-opts.h.
10096 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10097 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10098 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10099 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10100 entries.
10101
10102 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10103
10104 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10105 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10106 or -msoft-float here.
10107 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10108 -msoft-float and -mhard-float.
10109 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10110 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10111 msoft-float.
10112 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10113 -msoft-float.
10114 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10115 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10116 not mhard-float.
10117 (LIBGCC_SPEC): Don't handle -msoft-float.
10118 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10119 -mhard-float.
10120 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10121 msoft-float.
10122 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10123 -mfloat-abi=*, not -msoft-float and -mhard-float.
10124 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10125 -msoft-float.
10126 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10127 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10128 mhard-float and msoft-float.
10129 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10130 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10131 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10132 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10133 mhard-float.
10134 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10135 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10136 msoft-float.
10137 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10138 not mhard-float.
10139 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10140 not msoft-float.
10141
10142 2011-03-22 Richard Henderson <rth@redhat.com>
10143
10144 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10145 TARGET_ABI_WINDOWS_NT.
10146 (alpha_output_function_end_prologue): Likewise.
10147 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10148 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10149 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10150 (trap, *movsi_nt_vms): Likewise.
10151 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10152 (*tablejump_osf_nt_internal): Remove.
10153 * config/alpha/predicates.md (input_operand): Only test Pmode.
10154
10155 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10156
10157 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10158 via opts pointer. Use error_at. Don't assert that global
10159 structures are in use.
10160
10161 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10162
10163 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10164 (ix86_handle_option): Access ix86_isa_flags and
10165 ix86_isa_flags_explicit via opts pointer. Don't assert that
10166 global structures are in use.
10167 (ix86_function_specific_save, ix86_function_specific_restore):
10168 Update ix86_isa_flags_explicit field name.
10169 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10170 (ix86_isa_flags_explicit): Rename TargetSave entry to
10171 x_ix86_isa_flags_explicit.
10172
10173 2011-03-22 Richard Henderson <rth@redhat.com>
10174
10175 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10176 (alpha_option_override, direct_return): Likewise.
10177 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10178 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10179 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10180 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10181 (alpha_expand_epilogue, alpha_end_function): Likewise.
10182 (alpha_init_libfuncs): Likewise.
10183 (struct machine_function): Remove unicosmk members.
10184 (print_operand) ['t']: Remove.
10185 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10186 unicosmk_output_module_name, unicosmk_output_common,
10187 current_section_align, unicosmk_output_text_section_asm_op,
10188 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10189 unicosmk_section_type_flags, unicosmk_unique_section,
10190 unicosmk_asm_named_section, unicosmk_insert_attributes,
10191 unicosmk_output_align, unicosmk_defer_case_vector,
10192 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10193 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10194 unicosmk_output_ssib, unicosmk_add_call_info_word,
10195 unicosmk_extern_head, unicosmk_output_default_externs,
10196 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10197 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10198 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10199 * config/alpha/alpha-protos.h: Update.
10200 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10201 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10202 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10203 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10204 (*mulsi_se, mulvsi3): Likewise.
10205 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10206 (*divmodsi_internal, call, call_value, realign): Likewise.
10207 (moddi3, umoddi3): Likewise; remove duplicate expander.
10208 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10209 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10210 (*movdi_nofix): Remove r/U alternative.
10211 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10212 * config/alpha/constraints.md ("U"): Remove.
10213 * config/alpha/predicates.md (call_operand"): Don't test
10214 TARGET_ABI_UNICOSMK.
10215
10216 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10217
10218 * target.def (handle_option): Take gcc_options and
10219 cl_decoded_option pointers and location_t.
10220 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10221 * doc/tm.texi: Regenerate.
10222 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10223 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10224 * lto-opts.c (lto_reissue_options): Generate option structure for
10225 targetm.handle_option call.
10226 * opts.c (target_handle_option): Update call to
10227 targetm.handle_option. Remove assertions about values now passed
10228 down to hook.
10229 * targhooks.c (default_target_handle_option): New.
10230 * targhooks.h (default_target_handle_option): Declare.
10231 * config/alpha/alpha.c: Include opts.h.
10232 (alpha_handle_option): Update to new hook interface.
10233 * config/arm/arm.c: Include opts.h.
10234 (arm_handle_option): Update to new hook interface.
10235 * config/arm/t-arm (arm.o): Update dependencies.
10236 * config/bfin/bfin.c: Include opts.h.
10237 (bfin_handle_option): Update to new hook interface.
10238 * config/cris/cris.c: Include opts.h.
10239 (cris_handle_option): Update to new hook interface.
10240 * config/frv/frv.c: Include opts.h.
10241 (frv_handle_option): Update to new hook interface.
10242 * config/i386/i386.c: Include opts.h.
10243 (ix86_handle_option): Update to new hook interface.
10244 (ix86_valid_target_attribute_inner_p): Generate option structure
10245 for call to ix86_handle_option.
10246 * config/i386/t-i386 (i386.o): Update dependencies.
10247 * config/ia64/ia64.c: Include opts.h.
10248 (ia64_handle_option): Update to new hook interface.
10249 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10250 * config/iq2000/iq2000.c: Include opts.h.
10251 (iq2000_handle_option): Update to new hook interface.
10252 * config/m32c/m32c.c: Include opts.h.
10253 (m32c_handle_option): Update to new hook interface.
10254 * config/m32r/m32r.c: Include opts.h.
10255 (m32r_handle_option): Update to new hook interface.
10256 * config/m68k/m68k.c: Include opts.h.
10257 (m68k_handle_option): Update to new hook interface.
10258 * config/mep/mep.c: Include opts.h.
10259 (mep_handle_option): Update to new hook interface.
10260 * config/microblaze/microblaze.c: Include opts.h.
10261 (microblaze_handle_option): Update to new hook interface.
10262 * config/mips/mips.c: Include opts.h.
10263 (mips_handle_option): Update to new hook interface.
10264 * config/mn10300/mn10300.c: Include opts.h.
10265 (mn10300_handle_option): Update to new hook interface.
10266 * config/pa/pa.c: Include opts.h.
10267 (pa_handle_option): Update to new hook interface.
10268 * config/pdp11/pdp11.c: Include opts.h.
10269 (pdp11_handle_option): Update to new hook interface.
10270 * config/rs6000/rs6000.c: Include opts.h.
10271 (rs6000_handle_option): Update to new hook interface.
10272 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10273 * config/rx/rx.c: Include opts.h.
10274 (rx_handle_option): Update to new hook interface.
10275 * config/s390/s390.c: Include opts.h.
10276 (s390_handle_option): Update to new hook interface.
10277 * config/score/score.c: Include opts.h.
10278 (score_handle_option): Update to new hook interface.
10279 * config/sh/sh.c: Include opts.h.
10280 (sh_handle_option): Update to new hook interface.
10281 * config/sparc/sparc.c: Include opts.h.
10282 (sparc_handle_option): Update to new hook interface.
10283 * config/v850/v850.c: Include opts.h.
10284 (v850_handle_option): Update to new hook interface.
10285
10286 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10287
10288 * gcc.c (driver_unknown_option_callback): Only permit and save
10289 unknown -Wno- options.
10290 (driver_wrong_lang_callback): Save options directly instead of via
10291 driver_unknown_option_callback.
10292
10293 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10294
10295 * combine.c (simplify_set): Try harder to find the best CC mode when
10296 simplifying a nested COMPARE on the RHS.
10297
10298 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10299
10300 * config/alpha/gnu.h: Remove.
10301 * config/arc: Remove directory.
10302 * config/arm/netbsd.h: Remove.
10303 * config/arm/t-pe: Remove.
10304 * config/crx: Remove directory.
10305 * config/i386/netbsd.h: Remove.
10306 * config/m68hc11: Remove directory.
10307 * config/m68k/uclinux-oldabi.h: Remove.
10308 * config/mcore/mcore-pe.h: Remove.
10309 * config/mcore/t-mcore-pe: Remove.
10310 * config/netbsd-aout.h: Remove.
10311 * config/rs6000/gnu.h: Remove.
10312 * config/sh/sh-symbian.h: Remove.
10313 * config/sh/symbian-base.c: Remove.
10314 * config/sh/symbian-c.c: Remove.
10315 * config/sh/symbian-cxx.c: Remove.
10316 * config/sh/symbian-post.h: Remove.
10317 * config/sh/symbian-pre.h: Remove.
10318 * config/sh/t-symbian: Remove.
10319 * config/svr3.h: Remove.
10320 * config/vax/netbsd.h: Remove.
10321 * config.build: Don't handle i[34567]86-*-pe.
10322 * config.gcc: Remove handling of deprecations for most deprecated
10323 targets.
10324 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10325 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10326 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10327 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10328 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10329 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10330 Remove cases.
10331 * config.host: Don't handle i[34567]86-*-pe.
10332 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10333 (ASM_SPEC32): Don't handle -mcall-gnu.
10334 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10335 -mcall-gnu.
10336 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10337 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10338 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10339 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10340 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10341 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10342 conditional on SYMBIAN.
10343 * configure.ac: Don't handle powerpc*-*-gnu*.
10344 * configure: Regenerate.
10345 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10346 * doc/install-old.texi (m6811, m6812): Don't mention.
10347 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10348 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10349 (m68k-uclinuxoldabi): Don't mention.
10350 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10351 Remove.
10352 (-mcall-gnu): Remove.
10353 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10354 families): Remove constraint documentation.
10355
10356 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10357
10358 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10359 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10360 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10361
10362 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10363
10364 PR target/48226
10365 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10366 vector when peeking at the next token for vector, don't expand the
10367 keywords.
10368
10369 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10370
10371 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10372 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10373 * config/avr/avr.c (init_cumulative_args)
10374 (avr_function_arg_advance): Use it.
10375 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10376 sibcall epilogues.
10377 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10378 (avr_function_ok_for_sibcall): ...this new function.
10379 (avr_lookup_function_attribute1): New static Function.
10380 (avr_naked_function_p, interrupt_function_p)
10381 (signal_function_p, avr_OS_task_function_p)
10382 (avr_OS_main_function_p): Use it.
10383 * config/avr/avr.md ("sibcall", "sibcall_value")
10384 ("sibcall_epilogue"): New expander.
10385 ("*call_insn", "*call_value_insn"): New insn.
10386 ("call_insn", "call_value_insn"): Remove
10387 ("call", "call_value", "epilogue"): Change expander to handle
10388 sibling calls.
10389
10390 2011-03-21 Nick Clifton <nickc@redhat.com>
10391
10392 * doc/invoke.texi (Overall Options): Move closing brace to end of
10393 options list.
10394 (Optimization Options): Add missing @gol.
10395 (Directory Options): Likewise.
10396 (i386 and x86-64 Options): Likewise.
10397 (RS6000 and PowerPC Options): Likewise.
10398 (i386 and x86-64 Windows Options): Likewise.
10399 (V850 Options): Add text missing from descriptions.
10400
10401 2011-03-22 Richard Henderson <rth@redhat.com>
10402
10403 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10404 (avr_incoming_return_addr_rtx): New.
10405 (emit_push_byte): New.
10406 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10407 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10408 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10409 (emit_pop_byte): New.
10410 (expand_epilogue): Use it. Pop frame pointer by bytes.
10411 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10412 (INCOMING_RETURN_ADDR_RTX): New.
10413 (INCOMING_FRAME_SP_OFFSET): New.
10414 (ARG_POINTER_CFA_OFFSET): New.
10415 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10416 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10417 (pophi): Remove.
10418
10419 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10420
10421 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10422
10423 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10424 (FUNCTION_ARG_ADVANCE): Likewise.
10425 * tm.texi.in: Change references to them to hook references.
10426 * tm.texi: Regenerate.
10427 * targhooks.c (default_function_arg): Eliminate check for target
10428 macro.
10429 (default_function_incoming_arg): Likewise.
10430 (default_function_arg_advance): Likewise.
10431 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10432 (function_arg_advance): Likewise.
10433 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10434
10435 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10436
10437 * tree.c (build_call_1): New function.
10438 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10439
10440 2011-03-22 Richard Guenther <rguenther@suse.de>
10441
10442 PR tree-optimization/48228
10443 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10444 for single-arg PHIs.
10445
10446 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10447
10448 PR rtl-optimization/48143
10449 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10450 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10451 sse2_cvtps2pd): Likewise.
10452
10453 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10454
10455 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10456
10457 2011-03-22 Richard Guenther <rguenther@suse.de>
10458
10459 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10460 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10461 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10462 and REALIGN_LOAD_EXPR.
10463 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10464 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10465 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10466 DOT_PROD_EXPR case ...
10467 (expand_expr_real_2): ... here.
10468 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10469 and REALIGN_LOAD_EXPR.
10470 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10471 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10472 (vect_create_epilog_for_reduction): Likewise.
10473 (vectorizable_reduction): Likewise.
10474 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10475 * tree-vect-stmts.c (vectorizable_load): Likewise.
10476
10477 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10478
10479 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10480
10481 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10482
10483 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10484 handling for PLTOFF/GOTOFF.
10485
10486 2011-03-22 Nick Clifton <nickc@redhat.com>
10487
10488 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10489 trailing backslash from the end of the macro definition.
10490
10491 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10492
10493 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10494 and PLT unspecs.
10495
10496 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10497
10498 * expr.h (prepare_operand): Move to...
10499 * optabs.h (prepare_operand): ...here and change the insn code
10500 parameter from "int" to "enum insn_code".
10501 (insn_operand_matches): Declare.
10502 * expr.c (init_expr_target): Use insn_operand_matches.
10503 (compress_float_constant): Likewise.
10504 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10505 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10506 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10507 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10508 Likewise.
10509 (gen_cond_trap): Likewise.
10510 (prepare_operand): Likewise. Change icode to an insn_code.
10511 (insn_operand_matches): New function.
10512 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10513 * reload1.c (gen_reload): Likewise.
10514 * targhooks.c (default_secondary_reload): Likewise.
10515
10516 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10517
10518 * config/alpha/alpha.md (unspec): New define_c_enum.
10519 (unspecv): Ditto.
10520
10521 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10522
10523 PR debug/48214
10524 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10525 between a call and its CALL_ARG_LOCATION note.
10526
10527 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10528
10529 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10530
10531 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10532
10533 PR c/42544
10534 PR c/48197
10535 * c-common.c (shorten_compare): If primopN is first sign-extended
10536 to opN and then zero-extended to result type, set primopN to opN.
10537
10538 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10539
10540 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10541 for barrier handlers.
10542
10543 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10544
10545 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10546 UNSPEC constants to be in the unspec enumeration, and redefine
10547 all UNSPECV constants to be in the unspecv enumeration, so that
10548 dumps print which unspec/unspec_volatile this is.
10549 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10550 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10551 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10552 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10553 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10554
10555 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10556 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10557 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10558 * config/rs6000/sync.md (isync, lwsync): Ditto.
10559
10560 2011-03-21 Richard Guenther <rguenther@suse.de>
10561
10562 * params.def (lto-min-partition): Fix typo.
10563
10564 2011-03-21 Richard Guenther <rguenther@suse.de>
10565
10566 PR c/47939
10567 * c-decl.c (grokdeclarator): Drop to the main variant only
10568 for array types. Drop flag_gen_aux_info check.
10569
10570 2011-03-21 Richard Guenther <rguenther@suse.de>
10571
10572 PR translation/47911
10573 * params.def (lto-partitions): Fix typo.
10574 (lto-min-partition): Fix wording.
10575
10576 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10577
10578 * config/rs6000/t-freebsd: Remove duplication from file.
10579
10580 2011-03-21 Richard Guenther <rguenther@suse.de>
10581
10582 PR middle-end/47661
10583 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10584
10585 2011-03-21 Richard Guenther <rguenther@suse.de>
10586
10587 PR lto/48210
10588 * params.def (lto-partitions): Require at least 1 partition.
10589
10590 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10591
10592 * gthr-solaris.h: Remove.
10593 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10594 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10595 (LIB_SPEC): Likewise.
10596 * config/sol2.opt (threads): Remove.
10597 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10598 (sparc*-*-solaris2*): Likewise.
10599 * configure.ac (enable_threads): Enable solaris support.
10600 * configure: Regenerate.
10601 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10602 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10603 solaris.
10604
10605 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10606
10607 * config.gcc: Obsolete *-*-solaris2.8*.
10608 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10609
10610 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10611
10612 PR bootstrap/48135
10613 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10614 reference. Solaris 8 perl works.
10615
10616 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10617
10618 PR bootstrap/48135
10619 * doc/install.texi (Prerequisites): Move jar etc. up.
10620 Explain support library version requirements.
10621
10622 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10623
10624 PR bootstrap/48135
10625 * doc/install.texi (Prerequisites): Move Perl to build
10626 requirements. Always necessary on Solaris 2 with Sun ld.
10627
10628 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10629
10630 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10631 binutils 2.21.
10632 (Specific, i?86-*-solaris2.[89]): Likewise.
10633 (Specific, i?86-*-solaris2.10): Likewise.
10634 (Specific, mips-sgi-irix6): Likewise.
10635 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10636 Update for binutils 2.21.
10637
10638 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10639
10640 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10641 Allow -fuse-linker-plugin for non-default plugin linker.
10642 * configure: Regenerate.
10643
10644 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10645
10646 PR bootstrap/48167
10647 * gengtype.c (files_rules): Added rule for cp/parser.h.
10648
10649 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10650
10651 PR target/48213
10652 * config/s390/s390.c (s390_delegitimize_address): Don't call
10653 lowpart_subreg if orig_x has BLKmode.
10654
10655 2011-03-21 Kai Tietz <ktietz@redhat.com>
10656
10657 PR target/12171
10658 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10659 * tree.h (attribute_spec): Add new member affects_type_identity.
10660 * attribs.c (empty_attribute_table): Adjust attribute_spec
10661 initializers.
10662 * config/alpha/alpha.c: Likewise.
10663 * config/arc/arc.c: Likewise.
10664 * config/arm/arm.c: Likewise.
10665 * config/avr/avr.c: Likewise.
10666 * config/bfin/bfin.c: Likewise.
10667 * config/crx/crx.c: Likewise.
10668 * config/darwin.h: Likewise.
10669 * config/h8300/h8300.c: Likewise.
10670 * config/i386/cygming.h: Likewise.
10671 * config/i386/i386.c: Likewise.
10672 * config/ia64/ia64.c: Likewise.
10673 * config/m32c/m32c.c: Likewise.
10674 * config/m32r/m32r.c: Likewise.
10675 * config/m68hc11/m68hc11.c: Likewise.
10676 * config/m68k/m68k.c: Likewise.
10677 * config/mcore/mcore.c: Likewise.
10678 * config/mep/mep.c: Likewise.
10679 * config/microblaze/microblaze.c: Likewise.
10680 * config/mips/mips.c: Likewise.
10681 * config/rs6000/rs6000.c: Likewise.
10682 * config/rx/rx.c: Likewise.
10683 * config/sh/sh.c: Likewise.
10684 * config/sol2.h: Likewise.
10685 * config/sparc/sparc.c: Likewise.
10686 * config/spu/spu.c: Likewise.
10687 * config/stormy16/stormy16.c: Likewise.
10688 * config/v850/v850.c: Likewise.
10689
10690 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10691
10692 * simplify-rtx.c (simplify_binary_operation_1): Handle
10693 (xor (and A B) C) case when B and C are both constants.
10694
10695 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10696
10697 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10698
10699 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10700
10701 PR bootstrap/48168
10702 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10703
10704 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10705
10706 PR rtl-optimization/48156
10707 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10708 assume df and df_lr are not NULL.
10709
10710 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10711
10712 PR debug/48023
10713 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10714 between a call and its CALL_ARG_LOCATION note.
10715
10716 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10717
10718 PR debug/48178
10719 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10720 between a call and its corresponding CALL_ARG_LOCATION note.
10721
10722 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10723
10724 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10725 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10726 * haifa-sched.c (setup_ref_regs): Ditto.
10727 * caller-save.c (add_used_regs_1): Ditto.
10728 * dse.c (look_for_hardregs): Ditto.
10729 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10730 * sched-rgn.c (check_live_1): Ditto.
10731
10732 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10733
10734 * c-decl.c (diagnose_mismatched_decls): Give an error for
10735 redefining a typedef with variably modified type.
10736
10737 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10738
10739 * c-decl.c (grokfield): Don't allow typedefs for structures or
10740 unions with no tag by default.
10741 * doc/extend.texi (Unnamed Fields): Update.
10742
10743 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10744
10745 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10746 Rewrite using indirect functions.
10747 (lwp_slwpcb): Ditto.
10748 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10749 (avx_vinsertf128<mode>): Ditto.
10750
10751 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10752
10753 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10754 unspecs.
10755
10756 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10757
10758 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10759 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10760
10761 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10762
10763 PR rtl-optimization/48170
10764 * gcse.c (hoist_code): Remove bogus asserts.
10765
10766 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10767
10768 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10769 computation for prologue/epilogue.
10770
10771 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10772
10773 * Makefile.in (check-consistency): Remove.
10774
10775 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10776
10777 PR debug/48176
10778 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10779 arange_table_in_use is 0, but either text_section_used or
10780 cold_text_section_used is true. Don't call it if
10781 !info_section_emitted.
10782
10783 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10784
10785 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10786 FUNCTION_VALUE_REGNO_P): Remove.
10787 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10788 Remove.
10789 * config/avr/avr.c (avr_ret_register): Make static inline.
10790 (avr_function_value_regno_p): New function.
10791 (avr_libcall_value): Make static. Add 'func' argument.
10792 (avr_function_value): Make static. Rename 'func' argument to
10793 'fn_decl_or_type', forward it to avr_libcall_value. Call
10794 avr_ret_register function instead of RET_REGISTER macro.
10795 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10796
10797 2011-03-18 Jason Merrill <jason@redhat.com>
10798
10799 PR c++/23372
10800 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10801
10802 2011-03-18 Richard Guenther <rguenther@suse.de>
10803
10804 * doc/install.texi (--enable-gold): Remove.
10805 (--with-plugin-ld): Document.
10806 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10807
10808 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10809
10810 PR middle-end/47790
10811 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10812 again after expansion changes.
10813
10814 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10815
10816 * combine.c (try_combine): Do simplification only call of
10817 subst() on i2 even when i1 is present. Update comments.
10818
10819 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10820
10821 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10822 and UNSPEC_PCREL_SYMOFF.
10823
10824 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10825
10826 * config/s390/s390.md: Use define_c_enum for the unspec constant
10827 definitions.
10828
10829 2011-03-18 Richard Henderson <rth@redhat.com>
10830 Jakub Jelinek <jakub@redhat.com>
10831
10832 PR bootstrap/48161
10833 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10834 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10835
10836 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10837
10838 PR middle-end/47725
10839 * combine.c (cant_combine_insn_p): Don't check zero/sign
10840 extended hard registers.
10841
10842 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10843
10844 PR middle-end/47725
10845 * combine.c (cant_combine_insn_p): Check zero/sign extended
10846 hard registers.
10847
10848 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10849
10850 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10851 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10852 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10853 Change return type to bool.
10854 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10855
10856 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10857
10858 PR debug/48163
10859 * var-tracking.c (prepare_call_arguments): If CALL target
10860 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10861 pc instead of looking it up using cselib_lookup and use
10862 Pmode for it if x has VOIDmode.
10863 * dwarf2out.c (gen_subprogram_die): If also both first and
10864 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10865
10866 PR debug/48163
10867 * function.c (assign_parms): For data.passed_pointer parms
10868 use MEM of data.entry_parm instead of data.entry_parm itself
10869 as DECL_INCOMING_RTL.
10870 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10871 also when passed and declared mode is the same, DECL_RTL
10872 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10873 a MEM too.
10874
10875 2011-03-16 Jeff Law <law@redhat.com>
10876
10877 PR rtl-optimization/37273
10878 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10879 handle them like argument loads from stack slots. Do not double
10880 count memory for memory constants and argument loads from stack slots.
10881
10882 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10883
10884 PR debug/48160
10885 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10886
10887 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10888
10889 PR target/48171
10890 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10891
10892 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10893
10894 PR bootstrap/48153
10895 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10896 if dwarf_strict.
10897 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10898 Clear call_arg_locations and call_arg_loc_last always.
10899
10900 PR middle-end/48152
10901 * var-tracking.c (prepare_call_arguments): If argument needs to be
10902 passed by reference, adjust argtype and mode.
10903
10904 2011-03-17 Richard Guenther <rguenther@suse.de>
10905
10906 PR middle-end/48134
10907 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10908 a value make sure to fold the statement.
10909
10910 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10911
10912 PR target/43872
10913 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10914 return condition with !cfun->calls_alloca.
10915
10916 2011-03-17 Richard Guenther <rguenther@suse.de>
10917
10918 PR bootstrap/48148
10919 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10920 origin for decls in other ltrans units.
10921 (input_varpool_node): Likewise.
10922
10923 2011-03-17 Richard Guenther <rguenther@suse.de>
10924
10925 PR middle-end/48165
10926 * tree-object-size.c (compute_object_offset): Properly return
10927 the offset operand of MEM_REFs as sizetype.
10928
10929 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR rtl-optimization/48141
10932 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10933 * dse.c: Include params.h.
10934 (active_local_stores_len): New variable.
10935 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10936 to NULL.
10937 (record_store, check_mem_read_rtx): Decrease it when removing
10938 from the chain.
10939 (scan_insn): Likewise. Increase it when adding to chain, if it
10940 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10941 set active_local_stores to NULL before the addition.
10942 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10943
10944 PR rtl-optimization/48141
10945 * dse.c (record_store): If no positions are needed in an insn
10946 that cannot be deleted, at least unchain it from active_local_stores.
10947
10948 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10949
10950 PR debug/47510
10951 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10952 (lookup_type_die_strip_naming_typedef): ... here.
10953 (get_context_die): Use it.
10954 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10955 the anonymous struct named by the naming typedef.
10956
10957 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10958
10959 PR target/48154
10960 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10961 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10962
10963 2011-03-16 Jeff Law <law@redhat.com>
10964
10965 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10966 check for operands of conditional. Allow type to be a pointer.
10967
10968 2011-03-16 Richard Guenther <rguenther@suse.de>
10969
10970 PR tree-optimization/48149
10971 * fold-const.c (fold_binary_loc): Fold
10972 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10973
10974 2011-03-16 Richard Guenther <rguenther@suse.de>
10975
10976 PR tree-optimization/26134
10977 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10978 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10979 (non_rewritable_mem_ref_base): Handle complex type component
10980 accesses, constrain offsets for vector and complex extracts
10981 more properly.
10982
10983 2011-03-16 Richard Guenther <rguenther@suse.de>
10984
10985 PR tree-optimization/48146
10986 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10987 operands avoiding the need for renaming.
10988
10989 2011-03-16 Richard Guenther <rguenther@suse.de>
10990
10991 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10992 constant folding. Move MEM_REF canonicalization first.
10993 Rely on fold_const_aggregate_ref for initializer folding.
10994 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10995
10996 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10997
10998 PR middle-end/48136
10999 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11000 arg0/arg1 or their arguments are always fold converted to matching
11001 types.
11002
11003 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11004 to nargs.
11005
11006 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11007
11008 PR lto/46944
11009 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11010 Handle in-tree gold.
11011 (ld_vers): Extract binutils version for gold.
11012 (gcc_cv_ld_hidden): Handle gold here.
11013 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11014 * configure: Regenerate.
11015 * config.in: Regenerate.
11016 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11017 -fuse-linker-plugin otherwise.
11018 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11019 (LINK_COMMAND_SPEC): Use it.
11020 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11021
11022 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11023
11024 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11025 * calls.c: Remove debug.h include.
11026 (emit_call_1): Don't call virtual_call_token debug hook.
11027 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11028 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11029 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11030 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11031 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11032 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11033 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11034 dwarf2out_virtual_call): Remove.
11035 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11036 copy_call_info and virtual_call hooks.
11037 (dwarf2out_init): Don't initialize vcall_insn_table,
11038 debug_dcall_section and debug_vcall_section.
11039 (prune_unused_types): Don't mark nodes from dcall_table.
11040 (dwarf2out_finish): Don't output dcall or vcall tables.
11041 * final.c (final_scan_insn): Don't call direct_call or
11042 virtual_call debug hooks.
11043 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11044 virtual_call_token, copy_call_info and virtual_call hooks.
11045 (debug_nothing_uid): Remove prototype.
11046 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11047 copy_call_info and virtual_call hooks.
11048 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11049 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11050 * debug.c (do_nothing_debug_hooks): Likewise.
11051 (debug_nothing_uid): Remove.
11052 * doc/invoke.texi (-fenable-icf-debug): Remove.
11053 * common.opt (-fenable-icf-debug): Likewise.
11054
11055 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11056 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11057 call's MEM. Handle functions returning aggregate through a hidden
11058 first pointer. For virtual calls add clobbered pc to call arguments
11059 chain.
11060 * dwarf2out.c (gen_subprogram_die): Emit
11061 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11062 can't be emitted.
11063
11064 PR debug/45882
11065 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11066 * rtl.h (ENTRY_VALUE_EXP): Define.
11067 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11068 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11069 * print-rtl.c (print_rtx): Likewise.
11070 * gengtype.c (adjust_field_rtx_def): Likewise.
11071 * var-tracking.c (vt_add_function_parameter): Adjust
11072 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11073 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11074 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11075 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11076 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11077
11078 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11079 Call var_location debug hook even on CALL_INSNs.
11080 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11081 * rtl.def (ENTRY_VALUE): New.
11082 * dwarf2out.c: Include cfglayout.h.
11083 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11084 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11085 (struct call_arg_loc_node): New type.
11086 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11087 tail_call_site_count): New variables.
11088 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11089 DW_TAG_GNU_call_site_parameter.
11090 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11091 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11092 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11093 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11094 and DW_AT_GNU_all_source_call_sites.
11095 (mem_loc_descriptor): Handle ENTRY_VALUE.
11096 (add_src_coords_attributes): Don't add enything if
11097 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11098 (dwarf2out_abstract_function): Save and clear call_arg_location,
11099 call_site_count and tail_call_site_count around dwarf2out_decl call.
11100 (gen_call_site_die): New function.
11101 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11102 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11103 (dwarf2out_function_decl): Clear call_arg_locations,
11104 call_arg_loc_last, set call_site_count and tail_call_site_count
11105 to -1 and free block_map.
11106 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11107 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11108 followed by any real instructions.
11109 (dwarf2out_begin_function): Set call_site_count and
11110 tail_call_site_count to 0.
11111 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11112 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11113 attempt to force a DIE for it and worst case remove the attribute.
11114 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11115 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11116 the decl itself.
11117 * var-tracking.c: Include tm_p.h.
11118 (vt_stack_adjustments): For calls call note_register_arguments.
11119 (argument_reg_set): New variable.
11120 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11121 ensure the VALUE is resolved.
11122 (call_arguments): New variable.
11123 (prepare_call_arguments): New function.
11124 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11125 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11126 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11127 always use the best expression.
11128 (vt_expand_loc): Add ignore_cur_loc argument.
11129 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11130 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11131 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11132 note for all calls.
11133 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11134 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11135 argument. Don't call cselib_preserve_only_values and
11136 cselib_reset_table.
11137 (note_register_arguments): New function.
11138 (vt_initialize): Compute argument_reg_set. Call
11139 vt_add_function_parameters before processing basic blocks instead of
11140 afterwards. For calls call prepare_call_arguments before calling
11141 cselib_process_insn.
11142 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11143 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11144 (var-tracking.o): Depend on $(TM_P_H).
11145 * cfglayout.h (insn_scope): New prototype.
11146 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11147 * cfglayout.c (insn_scope): No longer static.
11148 * insn-notes.def (CALL_ARG_LOCATION): New.
11149 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11150 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11151 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11152 nothing for DECL_EXTERNAL BLOCK_VARS.
11153
11154 2011-03-16 Alan Modra <amodra@gmail.com>
11155
11156 PR target/45844
11157 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11158 create invalid offset address for vsx splat insn.
11159 * config/rs6000/predicates.md (splat_input_operand): New.
11160 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11161
11162 2011-03-15 Xinliang David Li <davidxl@google.com>
11163
11164 PR c/47837
11165 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11166 (normalize_preds): New function.
11167 (is_use_properly_guarded): Normalize def predicates.
11168
11169 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11170
11171 PR target/46788
11172 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11173 in the output template.
11174
11175 2011-03-15 Richard Guenther <rguenther@suse.de>
11176
11177 PR middle-end/47650
11178 * tree-pretty-print.c (dump_function_declaration): Properly
11179 dump unprototyped and varargs function types.
11180
11181 2011-03-15 Richard Guenther <rguenther@suse.de>
11182
11183 PR tree-optimization/13954
11184 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11185 and friends.
11186
11187 2011-03-15 Richard Guenther <rguenther@suse.de>
11188
11189 PR tree-optimization/48037
11190 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11191 selects into BIT_FIELD_REFs.
11192 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11193 vector select.
11194
11195 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11196
11197 PR tree-optimization/48129
11198 * builtins.c (fold_builtin_snprintf): Convert to type of
11199 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11200 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11201
11202 2011-03-15 Richard Guenther <rguenther@suse.de>
11203
11204 PR tree-optimization/41490
11205 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11206 value but with VUSE.
11207 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11208 return statements.
11209 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11210 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11211 * tree-tailcall.c (find_tail_calls): Ignore returns.
11212
11213 2011-03-15 Richard Guenther <rguenther@suse.de>
11214
11215 PR middle-end/48031
11216 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11217 or variable-indexed array accesses when in gimple form.
11218
11219 2011-03-15 Richard Guenther <rguenther@suse.de>
11220
11221 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11222
11223 2011-03-15 Alan Modra <amodra@gmail.com>
11224
11225 PR target/48032
11226 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11227 presume symbol_refs without a symbol_ref_decl are suitably
11228 aligned, nor other trees we may see here. Handle anchor symbols.
11229 (legitimate_constant_pool_address_p): Comment. Add mode param.
11230 Check cmodel=medium addresses. Adjust all calls.
11231 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11232 creating cmodel=medium optimized access to locals.
11233 * config/rs6000/constraints.md (R): Pass QImode to
11234 legitimate_constant_pool_address_p.
11235 * config/rs6000/predicates.md (input_operand): Pass mode to
11236 legitimate_constant_pool_address_p.
11237 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11238 Update prototype.
11239
11240 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11241
11242 PR target/48053
11243 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11244 64-bit constants being loaded into registers other than GPRs such
11245 as loading 0 into a VSX register.
11246
11247 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11248
11249 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11250
11251 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11252
11253 PR middle-end/47917
11254 * builtins.c (fold_builtin_snprintf): New function.
11255 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11256 (fold_builtin_4): Likewise.
11257
11258 PR middle-end/38878
11259 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11260 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11261 and C - X == X also strip nops from +/-/p+ operand.
11262 When optimizing -X == C, fold C to arg0's type.
11263
11264 PR debug/47946
11265 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11266 emit it as add_AT_int instead of add_AT_unsigned.
11267
11268 2011-03-14 Tom Tromey <tromey@redhat.com>
11269
11270 * unwind-dw2.c: Include sys/sdt.h if it exists.
11271 (_Unwind_DebugHook): Use STAP_PROBE2.
11272 * config.in, configure: Rebuild.
11273 * configure.ac: Check for sys/sdt.h.
11274
11275 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11276
11277 * config/i386/i386.md (ROUND_FLOOR): New constant.
11278 (ROUND_CEIL): Ditto.
11279 (ROUND_TRUNC): Ditto.
11280 (ROUND_MXCSR): Ditto.
11281 (ROUND_NO_EXC): Ditto.
11282 (rint<mode>2): Use new defines instead of numerical constants.
11283 (floor<mode>2): Ditto.
11284 (ceil<mode>2): Ditto.
11285 (btrunc<mode>2): Ditto.
11286 * config/i386/i386-builtin-types.def: Define ROUND function type
11287 aliases.
11288 * config/i386/i386.c (enum ix86_builtins): Add
11289 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11290 (struct builtin_description): Add
11291 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11292 (ix86_expand_sse_round): New static function.
11293 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11294 function types.
11295 (ix86_builtin_vectorized_function): Handle
11296 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11297
11298 2011-03-14 Tom Tromey <tromey@redhat.com>
11299
11300 * c-parser.c (c_parser_asm_string_literal): Clear
11301 warn_overlength_strings.
11302
11303 2011-03-14 Tom Tromey <tromey@redhat.com>
11304
11305 * c-parser.c (disable_extension_diagnostics): Save
11306 warn_overlength_strings.
11307 (restore_extension_diagnostics): Restore warn_overlength_strings.
11308
11309 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11310
11311 * BASE-VER: Change to 4.7.0.
11312
11313 2011-03-14 Richard Guenther <rguenther@suse.de>
11314
11315 PR middle-end/48098
11316 * tree.c (build_vector_from_val): Adjust assert to requirements
11317 and reality.
11318
11319 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11320
11321 PR bootstrap/48102
11322 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11323
11324 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11325
11326 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11327 terms of target_flags_explicit. Adjust copyright year.
11328
11329 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11330 * config/rs6000/t-freebsd: New file. Add override for
11331 LIB2FUNCS_EXTRA.
11332
11333 2011-03-13 Chris Demetriou <cgd@google.com>
11334
11335 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11336 (-fno-diagnostics-show-option): this, to reflect current default.
11337 (-Werror=): Update text about -fno-diagnostics-show-option.
11338
11339 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11340
11341 PR target/48053
11342 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11343 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11344 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11345 mode is not V2DImode or V2DFmode.
11346 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11347 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11348 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11349 registers to 0.
11350 (movdi_internal64): Likewise.
11351
11352 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11353
11354 PR tree-optimization/47127
11355 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11356 parameter.
11357 (set_cloog_options): Same.
11358 (scop_to_clast): Same.
11359 (print_clast_stmt): Do not call cloog_state_malloc and
11360 cloog_state_free.
11361 (print_generated_program): Same.
11362 (gloog): Same.
11363 * graphite-clast-to-gimple.h (cloog_state): Declared.
11364 (scop_to_clast): Adjust declaration.
11365 * graphite.c (cloog_state): Defined here.
11366 (graphite_initialize): Call cloog_state_malloc.
11367 (graphite_finalize): Call cloog_state_free.
11368
11369 2011-03-11 Jason Merrill <jason@redhat.com>
11370
11371 * attribs.c (lookup_attribute_spec): Take const_tree.
11372 * tree.h: Adjust.
11373
11374 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11375
11376 * config/sparc/sparc.c (sparc_option_override): Use
11377 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11378
11379 2011-03-11 Richard Guenther <rguenther@suse.de>
11380
11381 PR tree-optimization/48067
11382 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11383 multiplication result will be only used once on the target
11384 stmt.
11385
11386 2011-03-11 Richard Guenther <rguenther@suse.de>
11387
11388 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11389
11390 2011-03-11 Richard Guenther <rguenther@suse.de>
11391
11392 PR lto/48073
11393 * tree.c (find_decls_types_r): Do not walk types only reachable
11394 from IDENTIFIER_NODEs.
11395
11396 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11397
11398 PR middle-end/48044
11399 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11400 all vnode->force_output nodes as needed.
11401
11402 2011-03-11 Jason Merrill <jason@redhat.com>
11403
11404 PR c++/48069
11405 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11406 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11407
11408 2011-03-11 Martin Jambor <mjambor@suse.cz>
11409
11410 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11411 cgraph_node.
11412
11413 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11414
11415 PR tree-optimization/48063
11416 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11417 inline functions called once if !tree_can_inline_p (node->callers).
11418
11419 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11420
11421 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11422 extra_objs.
11423 * config/score/score3.c: Delete.
11424 * config/score/score3.h: Delete.
11425 * config/score/mul-div.S: Delete.
11426 * config/score/sfp-machine.h: Add new file.
11427 * config/score/constraints.md: Add new file.
11428 * config/score/t-score-softfp: Add new file.
11429 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11430 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11431 (score7_extra_constraint): Delete.
11432 (score7_option_override): Remove unused code.
11433 * config/score/score.c: Remove score3 and score5 define and code.
11434 * config/score/score.h: Remove score3 and score5 define and code.
11435 * config/score/score.md: Remove score3 template and unusual insn.
11436 * config/score/score.opt: Remove score3 and score5 options.
11437
11438 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11439
11440 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11441 when _HPUX_SOURCE is defined.
11442 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11443
11444 2011-03-10 Jason Merrill <jason@redhat.com>
11445
11446 PR c++/48029
11447 * stor-layout.c (layout_type): Don't set structural equality
11448 on arrays of incomplete type.
11449 * tree.c (type_hash_eq): Handle comparing them properly.
11450
11451 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11452
11453 PR debug/48043
11454 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11455 result mode matches original rtl mode.
11456
11457 2011-03-10 Nick Clifton <nickc@redhat.com>
11458
11459 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11460 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11461
11462 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11463
11464 PR rtl-optimization/47866
11465 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11466 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11467 if target wasn't scalar.
11468 * function.c (assign_stack_temp_for_type): Assert that neither
11469 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11470 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11471 macro.
11472 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11473
11474 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11475
11476 * config/s390/s390-protos.h (s390_label_align): New prototype.
11477 * config/s390/s390.c (s390_label_align): New function.
11478 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11479
11480 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11481
11482 PR target/47755
11483 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11484 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11485 (output_vec_const_move): Ditto.
11486
11487 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11488
11489 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11490 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11491 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11492 Change 'rclass' argument and result type to reg_class_t.
11493 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11494
11495 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11496
11497 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11498 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11499 (TARGET_MEMORY_MOVE_COST): Define.
11500 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11501
11502 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11503
11504 PR debug/47881
11505 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11506 removed anything.
11507
11508 PR tree-optimization/48022
11509 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11510 for EQ/NE_EXPR.
11511
11512 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11513
11514 PR debug/47991
11515 * var-tracking.c (find_use_val): Return NULL for
11516 cui->sets && cui->store_p BLKmode MEMs.
11517
11518 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11519
11520 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11521 Remove.
11522 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11523 xstormy16_print_operand_address): Remove.
11524 * config/stormy16/stormy16.c (xstormy16_print_operand,
11525 xstormy16_print_operand_address): Make static.
11526 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11527
11528 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11529
11530 PR target/47862
11531 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11532 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11533 before definition.
11534
11535 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11536
11537 PR bootstrap/48000
11538 * cfgloopmanip.c (fix_bb_placements): Return immediately
11539 if FROM is BASE_LOOP's header.
11540
11541 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11542
11543 * gimplify.c (gimplify_function_tree): Fix building calls
11544 to __builtin_return_address.
11545
11546 2011-03-07 Alan Modra <amodra@gmail.com>
11547
11548 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11549 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11550 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11551 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11552 return_mode args.
11553 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11554 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11555 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11556 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11557 * config/rs6000/rs6000.c
11558 (rs6000_elf_end_indicate_exec_stack): Rename to..
11559 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11560 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11561 (rs6000_file_start): ..here.
11562 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11563 file scope variables.
11564 (call_ABI_of_interest): New function.
11565 (init_cumulative_args): Set above vars when function return value
11566 is a float, vector, or small struct.
11567 (rs6000_function_arg_advance_1): Likewise for function args.
11568 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11569 references float args.
11570
11571 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11572
11573 * doc/cfg.texi: Remove "See" before @ref.
11574 * doc/invoke.texi: Likewise.
11575
11576 2011-03-05 Jason Merrill <jason@redhat.com>
11577
11578 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11579
11580 2011-03-05 Anthony Green <green@moxielogic.com>
11581
11582 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11583
11584 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11585
11586 PR rtl-optimization/47899
11587 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11588 to flow_loop_nested_p when moving the loop upward.
11589
11590 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11591
11592 PR target/47719
11593 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11594
11595 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11596
11597 PR tree-optimization/47967
11598 * ipa-cp.c (build_const_val): Return NULL instead of creating
11599 VIEW_CONVERT_EXPR for mismatching sizes.
11600 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11601 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11602 give up on versioning.
11603
11604 2011-03-05 Alan Modra <amodra@gmail.com>
11605
11606 PR target/47986
11607 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11608 full cmodel medium/large lo_sum + high addresses.
11609
11610 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11611
11612 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11613 pool references in UNSPEC_LTREL_OFFSET.
11614
11615 2011-03-04 Jan Hubicka <jh@suse.cz>
11616
11617 PR lto/47497
11618 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11619 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11620 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11621 Add node pointers.
11622 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11623 cgraph_add_thunk): Add node pointers.
11624 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11625 associated to right node.
11626 (input_node): Update use of cgraph_same_body_alias
11627 and cgraph_add_thunk.
11628
11629 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11630
11631 * config/i386/i386.opt (mprefer-avx128): New flag.
11632 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11633 modes when the flag -mprefer-avx128 is on.
11634
11635 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11636
11637 * dwarf2out.c (compare_loc_operands): Fix address handling.
11638
11639 2011-03-04 Alan Modra <amodra@gmail.com>
11640
11641 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11642
11643 2011-03-04 Richard Guenther <rguenther@suse.de>
11644
11645 PR middle-end/47968
11646 * expmed.c (extract_bit_field_1): Prefer vector modes that
11647 vec_extract patterns can handle.
11648
11649 2011-03-04 Richard Guenther <rguenther@suse.de>
11650
11651 PR middle-end/47975
11652 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11653
11654 2011-03-04 Richard Henderson <rth@redhat.com>
11655
11656 * explow.c (emit_stack_save): Remove 'after' parameter.
11657 (emit_stack_restore): Likewise.
11658 * expr.h: Update to match.
11659 * builtins.c, calls.c, stmt.c: Likewise.
11660 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11661 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11662 * function.c (expand_function_end): Insert the emit_stack_save
11663 sequence before parm_birth_insn instead of after.
11664
11665 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11666
11667 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11668 (ssse3_pmaddubsw128): Ditto.
11669 (ssse3_pmaddubsw): Ditto.
11670
11671 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11672
11673 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11674
11675 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11676
11677 PR c/47963
11678 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11679 on TYPE_SIZE_UNIT if it is a DECL.
11680
11681 PR debug/47283
11682 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11683 first operand is not is_gimple_mem_ref_addr, try to fold it.
11684 If the operand still isn't is_gimple_mem_ref_addr, clear
11685 MEM_EXPR on op0.
11686
11687 2011-03-03 Richard Guenther <rguenther@suse.de>
11688
11689 PR middle-end/47283
11690 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11691 match comment.
11692 (refs_may_alias_p_1): For release branches return true if
11693 we are confused by our input.
11694
11695 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11696
11697 * config/s390/s390.c (s390_function_value): Rename to ...
11698 (s390_function_and_libcall_value): ... this.
11699 (s390_function_value): New function.
11700 (s390_libcall_value): New function.
11701 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11702 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11703 target macro definitions.
11704 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11705
11706 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11707
11708 * config/i386/freebsd64.h (CC1_SPEC): Define.
11709 * config/i386/linux64.h (CC1_SPEC): Define.
11710 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11711
11712 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11713
11714 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11715 Remove.
11716 * config/stormy16/stormy16.c: Include reload.h.
11717 (xstormy16_memory_move_cost): New function.
11718 (TARGET_MEMORY_MOVE_COST): Define.
11719
11720 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11721
11722 PR rtl-optimization/47925
11723 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11724 with side effects. Remove the more-specific check for volatile asms.
11725
11726 2011-03-02 Alan Modra <amodra@gmail.com>
11727
11728 PR target/47935
11729 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11730 toc relative addresses for valid offsets.
11731
11732 2011-03-01 Richard Guenther <rguenther@suse.de>
11733
11734 PR tree-optimization/47890
11735 * tree-vect-loop.c (get_initial_def_for_induction): Set
11736 related stmt properly.
11737
11738 2011-03-01 Richard Guenther <rguenther@suse.de>
11739
11740 PR lto/47924
11741 * lto-streamer.c (lto_record_common_node): Also register
11742 the canonical type.
11743
11744 2011-03-01 Richard Guenther <rguenther@suse.de>
11745
11746 PR lto/46911
11747 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11748 Do not stream DECL_ABSTRACT_ORIGIN.
11749 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11750 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11751 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11752 Do not stream DECL_ABSTRACT_ORIGIN.
11753 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11754 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11755
11756 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11757
11758 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11759 FUNCTION_VALUE_REGNO_P): Remove.
11760 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11761 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11762 Add 'outgoing' argument.
11763 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11764 function.
11765 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11766 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11767
11768 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11769
11770 PR debug/28047
11771 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11772 (lookup_filename): Likewise.
11773 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11774
11775 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11776 Jakub Jelinek <jakub@redhat.com>
11777
11778 PR middle-end/47893
11779 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11780 (assign_stack_local_1): Change last argument type to int.
11781 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11782 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11783 don't record padding space into frame_space_list nor use those areas.
11784 (assign_stack_local): Adjust caller.
11785 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11786 of assign_stack_local, pass 0 as last argument.
11787 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11788 callers.
11789
11790 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11791
11792 PR debug/47283
11793 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11794 Use target address_mode and pointer_mode hooks instead of hardcoded
11795 Pmode and ptr_mode. Handle some simple cases of extending if
11796 POINTERS_EXTEND_UNSIGNED < 0.
11797 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11798 Call convert_debug_memory_address.
11799 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11800 convert_debug_memory_address.
11801
11802 PR middle-end/46790
11803 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11804 * configure: Regenerated.
11805 * config.in: Regenerated.
11806 * varasm.c (default_function_section): Return NULL
11807 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11808
11809 2011-02-28 Martin Jambor <mjambor@suse.cz>
11810
11811 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11812 the description to match the printed values.
11813
11814 2011-02-28 Richard Guenther <rguenther@suse.de>
11815
11816 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11817 of the copied scope tree.
11818
11819 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11820
11821 * doc/extend.texi (Function Attributes): Avoid deeply (and
11822 wrongly) nested tables.
11823
11824 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11825
11826 PR middle-end/47903
11827 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11828 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11829 r isn't op0 nor op1.
11830
11831 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11832
11833 * config/avr/avr.md: Remove magic comment for emacs.
11834
11835 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11836
11837 PR target/45261
11838 * config/avr/avr.c (avr_option_override): Use error on bad options.
11839 (avr_help): New function.
11840 (TARGET_HELP): Define.
11841
11842 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11843
11844 PR target/42240
11845 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11846 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11847
11848 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11849
11850 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11851 (ARM Options): Ditto.
11852 (i386 and x86-64 Options): Ditto.
11853 (RX Options): Ditto.
11854 (SPARC Options): Ditto.
11855
11856 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11857
11858 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11859 FreeBSD 6 and later. Generally use cpu generic.
11860
11861 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11862
11863 * doc/cpp.texi: Update copyright years.
11864
11865 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11866
11867 PR target/46898
11868 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11869
11870 2011-02-25 Jon Beniston <jon@beniston.com>
11871
11872 PR target/46898
11873 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11874 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11875 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11876 (lm32_block_move_inline): Add type cast to remove warning.
11877 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11878 (gen_int_relational): Move declarations to start of function.
11879
11880 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11881
11882 PR tree-optimization/45470
11883 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11884 can throw internally only.
11885 * tree-vect-stmts.c (vectorizable_call): Likewise.
11886
11887 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11888
11889 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11890 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11891 * config/stormy16/stormy16-protos.h
11892 (xstormy16_preferred_reload_class): Remove.
11893 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11894 static. Change 'rclass' argument and return type to reg_class_t.
11895 (TARGET_PREFERRED_RELOAD_CLASS,
11896 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11897
11898 2011-02-24 Richard Guenther <rguenther@suse.de>
11899
11900 * lto-streamer-in.c (input_bb): Do not find referenced vars
11901 in debug statements.
11902
11903 2011-02-23 Jason Merrill <jason@redhat.com>
11904
11905 * common.opt (fabi-version): Document v5 and v6.
11906
11907 2011-02-23 Richard Guenther <rguenther@suse.de>
11908
11909 PR tree-optimization/47849
11910 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11911
11912 2011-02-23 Jie Zhang <jie@codesourcery.com>
11913
11914 * opts-common.c (decode_cmdline_option): Print empty string
11915 argument as "" in decoded->orig_option_with_args_text.
11916 * gcc.c (execute): Print empty string argument as ""
11917 in the verbose output.
11918 (do_spec_1): Keep empty string argument.
11919
11920 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11921
11922 * config.gcc: Declare score-* and crx-* obsolete.
11923
11924 2011-02-23 Jie Zhang <jie@codesourcery.com>
11925
11926 PR rtl-optimization/47763
11927 * web.c (web_main): Ignore naked clobber when replacing register.
11928
11929 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11930
11931 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11932 Remove.
11933
11934 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11935
11936 PR doc/47848
11937 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11938
11939 2011-02-22 Mike Stump <mikestump@comcast.net>
11940
11941 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11942 assembler.
11943 * configure: Regenerate.
11944
11945 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11946
11947 PR rtl-optimization/46002
11948 * ira-color.c (update_copy_costs): Change class intersection
11949 test to reg_class_contents[] test of 'hard_regno'.
11950
11951 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11952
11953 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11954 than Driver option.
11955 * config/hpux11.opt (mt): Likewise.
11956 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11957 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11958 * config/vax/elf.opt (mno-asm-pic): Likewise.
11959 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11960
11961 2011-02-21 Mike Stump <mikestump@comcast.net>
11962
11963 PR target/47822
11964 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11965 tree so we can get save the type.
11966 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11967 for CFString instead of trying to use past the end of the builtins.
11968 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11969 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11970 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11971 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11972 Rename to darwin_builtin_cfstring.
11973 (darwin_init_cfstring_builtins): Return the built type.
11974
11975 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11976
11977 PR target/47840
11978 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11979 (_mm256_insert_epi64): Use _mm_insert_epi64.
11980
11981 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11982
11983 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11984 * config/stormy16/stormy16-protos.h
11985 (xstormy16_mode_dependent_address_p): Remove.
11986 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11987 Make static. Change return type to bool. Change argument type to
11988 const_rtx. Remove dead code.
11989 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11990
11991 2011-02-21 Richard Guenther <rguenther@suse.de>
11992
11993 PR lto/47820
11994 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11995 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11996 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11997 TUs context.
11998 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11999 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12000
12001 2011-02-20 Richard Guenther <rguenther@suse.de>
12002
12003 PR lto/47822
12004 * tree.c (free_lang_data_in_decl): Clean builtins from
12005 the TU decl BLOCK_VARS.
12006
12007 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12008
12009 PR debug/47620
12010 PR debug/47630
12011 * haifa-sched.c (fix_tick_ready): Skip tick computation
12012 for debug insns.
12013
12014 2011-02-19 Richard Guenther <rguenther@suse.de>
12015
12016 PR lto/47647
12017 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12018 Remove lazy BLOCK_VARS streaming.
12019 (lto_input_ts_block_tree_pointers): Likewise.
12020 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12021
12022 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12023
12024 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12025
12026 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12027
12028 * config/i386/biarch32.h, config/i386/mach.h,
12029 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12030
12031 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12032
12033 PR target/47800
12034 * config/i386/i386.md (peephole2 for shift and plus): Use
12035 operands[1] original mode in the first insn.
12036
12037 2011-02-18 Mike Stump <mikestump@comcast.net>
12038
12039 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12040
12041 2011-02-18 Jan Hubicka <jh@suse.cz>
12042
12043 PR middle-end/47788
12044 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12045 to zero when the function is not inlinable at all.
12046
12047 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12048
12049 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12050 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12051 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12052 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12053 * config/pa/t-pa64: Likewise.
12054 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12055
12056 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12057
12058 PR driver/47787
12059 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12060
12061 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12062
12063 PR target/47792
12064 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12065
12066 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12067
12068 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12069 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12070 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12071 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12072 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12073 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12074 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12075 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12076 m32r_legitimate_address_p): New functions.
12077 * config/m32r/constraints.md (constraint "S"): Don't use
12078 STORE_PREINC_PREDEC_P.
12079 (constraint "U"): Don't use LOAD_POSTINC_P.
12080
12081 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12082
12083 PR rtl-optimization/46178
12084 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12085 compute ira_hard_regno_cover_class[].
12086
12087 2011-02-18 Richard Guenther <rguenther@suse.de>
12088
12089 PR lto/47798
12090 * lto-streamer.h (lto_global_var_decls): Declare.
12091 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12092 statics for global var processing.
12093
12094 2011-02-18 Richard Guenther <rguenther@suse.de>
12095
12096 PR tree-optimization/47737
12097 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12098 edge dominance check.
12099
12100 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12101
12102 PR debug/47780
12103 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12104 avoid invalid rtx sharing.
12105
12106 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12107
12108 * doc/cpp.texi (Obsolete Features): Add background on the
12109 origin of assertions.
12110
12111 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12112
12113 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12114 objc_abi == 2.
12115 * config/darwin.c (output_objc_section_asm_op): Added support for
12116 ABI v1 and v2.
12117 (is_objc_metadata): New.
12118 (darwin_objc2_section): New.
12119 (darwin_objc1_section): New.
12120 (machopic_select_section): Added support for ABI v1 and v2.
12121 (darwin_emit_objc_zeroed): New.
12122 (darwin_output_aligned_bss): Detect objc metadata and treat it
12123 appropriately.
12124 (darwin_asm_output_aligned_decl_common): Same.
12125 (darwin_asm_output_aligned_decl_local): Same.
12126 * config/darwin-sections.def: Updated for ABI v1 and v2.
12127 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12128 compiling Objective-C code for the NeXT runtime, default to using
12129 ABI version 0 for 32-bit, and version 2 for 64-bit.
12130
12131 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12132
12133 * common.opt (optimize_fast): New Variable.
12134 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12135 instead of local variable ofast.
12136
12137 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12138
12139 * doc/invoke.texi (fobjc-abi-version): Documented.
12140 (fobjc-nilcheck): Documented.
12141 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12142 version.
12143
12144 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12145
12146 PR driver/47390
12147 * common.opt (export-dynamic): New Driver option.
12148 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12149
12150 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12151
12152 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12153
12154 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12155 Jan Hubicka <jh@suse.cz>
12156
12157 PR debug/47106
12158 PR debug/47402
12159 * cfgexpand.c (account_used_vars_for_block): Remove.
12160 (estimated_stack_frame_size): Use referenced vars.
12161 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12162 that were referenced in the original function. Test src_fn
12163 rather than cfun. Drop redundant get_var_ann.
12164 (setup_one_parameter): Drop redundant get_var_ann.
12165 (declare_return_variable): Likewise.
12166 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12167 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12168 * ipa-inline.c (compute_inline_parameters): Do not compute
12169 disregard_inline_limits here.
12170 (compute_inlinable_for_current, pass_inlinable): New.
12171 (pass_inline_parameters): Require PROP_referenced_vars.
12172 * cgraphunit.c (cgraph_process_new_functions): Don't run
12173 compute_inline_parameters explicitly unless function is in SSA form.
12174 (cgraph_analyze_function): Set .disregard_inline_limits.
12175 * tree-sra.c (convert_callers): Compute inliner parameters
12176 only for functions already in SSA form.
12177
12178 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12179
12180 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12181 -mlittle-endian-data.
12182
12183 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12184
12185 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12186 -mno-fpu, not -fpu and -no-fpu.
12187 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12188 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12189
12190 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12191
12192 PR target/43653
12193 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12194 input reload with PLUS RTX.
12195
12196 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12197
12198 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12199 of InverseVar(MDMX).
12200
12201 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12202
12203 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12204 --m4-340.
12205
12206 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12207
12208 * config/mn10300/mn10300.opt (mno-crt0): New.
12209
12210 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12211
12212 * config/m68k/uclinux.opt (static-libc): New Driver option.
12213
12214 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12215
12216 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12217
12218 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12219
12220 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12221 %{muser-extend-enabled}.
12222
12223 2011-02-16 Richard Guenther <rguenther@suse.de>
12224
12225 PR tree-optimization/47738
12226 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12227 the TODO from tree_predictive_commoning.
12228
12229 2011-02-15 Jeff Law <law@redhat.com>
12230
12231 Revert
12232 2011-01-25 Jeff Law <law@redhat.com>
12233
12234 PR rtl-optimization/37273
12235 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12236 handle them like argument loads from stack slots. Do not double
12237 count memory for memory constants and argument loads from stack slots.
12238
12239 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12240
12241 PR middle-end/47725
12242 * combine.c (cant_combine_insn_p): Revert the last change.
12243
12244 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12245
12246 PR target/47755
12247 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12248 mode for vector constants. Remove code that checks for TImode.
12249
12250 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12251
12252 PR debug/47106
12253 PR debug/47402
12254 * cgraph.h (compute_inline_parameters): Return void.
12255 * ipa-inline.c (compute_inline_parameters): Adjust.
12256
12257 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12258
12259 PR debug/47106
12260 PR debug/47402
12261 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12262 rather than decl.
12263 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12264 * ipa-inline.c (compute_inline_parameters): Adjust.
12265
12266 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12267
12268 PR debug/47106
12269 PR debug/47402
12270 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12271 Adjust all users. Pass FN to...
12272 * tree-flow-inline.h (first_referenced_var): ... this. Add
12273 fn argument.
12274 * ipa-struct-reorg.c: Adjust.
12275 * tree-dfa.c: Adjust.
12276 * tree-into-ssa.c: Adjust.
12277 * tree-sra.c: Adjust.
12278 * tree-ssa-alias.c: Adjust.
12279 * tree-ssa-live.c: Adjust.
12280 * tree-ssa.c: Adjust.
12281 * tree-ssanames.c: Adjust.
12282 * tree-tailcall.c: Adjust.
12283
12284 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12285
12286 PR debug/47106
12287 PR debug/47402
12288 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12289 Adjust all callers.
12290 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12291 * tree-flow-inline.h: Adjust.
12292 * gimple-pretty-print.c: Adjust.
12293 * tree-into-ssa.c: Adjust.
12294 * tree-ssa.c: Adjust.
12295 * cfgexpand.c: Adjust.
12296
12297 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12298
12299 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12300 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12301 (EXTRA_CONSTRAINT): Delete.
12302 * config/iq2000/constraints.md: New file.
12303 * config/iq2000/iq2000.md: Include it.
12304 (define_insn ""): Delete.
12305 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12306 unsupported constraint letters from patterns.
12307 (call_value, call_value_internal1): Likewise.
12308 (call_value_multiple_internal1): Likewise.
12309
12310 2011-02-15 Nick Clifton <nickc@redhat.com>
12311
12312 * config/mn10300/mn10300.c: Include tm-constrs.h.
12313 (struct liw_data): New data structure describing an LIW candidate
12314 instruction.
12315 (extract_bundle): Use struct liw_data. Allow small integer
12316 operands for some instructions.
12317 (check_liw_constraints): Use struct liw_data. Remove swapped
12318 parameter. Add comments describing the checks. Fix bug when
12319 assigning the source of liw1 to the source of liw2.
12320 (liw_candidate): Delete. Code moved into extract_bundle.
12321 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12322 before swapping.
12323 * config/mn10300/predicates.md (liw_operand): New predicate.
12324 Allows registers and small integer constants.
12325 * config/mn10300/constraints.md (O): New constraint. Accetps
12326 integers in the range -8 to +7 inclusive.
12327 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12328 for moving a small integer into a register. Give this alternative
12329 LIW attributes.
12330 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12331 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12332 using the J,K,L and M constraints,
12333 (liw): Remove SI mode on second operands to allow for HI and QI
12334 mode values.
12335 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12336 instruction.
12337
12338 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12339
12340 PR middle-end/47725
12341 * combine.c (cant_combine_insn_p): Check zero/sign extended
12342 hard registers.
12343
12344 2011-02-15 Richard Guenther <rguenther@suse.de>
12345
12346 PR tree-optimization/47743
12347 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12348 for a non-type-compatible VN lookup bail out.
12349
12350 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12351
12352 * config/fr30/constraints.md: New file.
12353 * config/fr30/fr30.md: Include it.
12354 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12355 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12356 (EXTRA_CONSTRAINT): Delete.
12357
12358 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12359
12360 * config/frv/constraints.md: New file.
12361 * config/frv/predicates.md: Include it.
12362 * config/frv/frv.c (reg_class_from_letter): Delete.
12363 (frv_option_override): Don't initialize it.
12364 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12365 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12366 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12367 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12368 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12369 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12370 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12371 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12372 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12373 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12374 (REG_CLASS_FROM_CONSTRAINT): Delete.
12375
12376 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12377
12378 PR middle-end/47581
12379 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12380 if frame size is 0 in a leaf function.
12381
12382 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12383
12384 PR pch/14940
12385 * config/alpha/host-osf.c: New file.
12386 * config/alpha/x-osf: New file.
12387 * config.host (alpha*-dec-osf*): Use it.
12388
12389 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12390
12391 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12392 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12393 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12394 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12395 type to const_rtx.
12396 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12397
12398 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12399
12400 * config/stormy16/constraints.md: New file.
12401 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12402 Use satisfies_constraint_Q and satisfies_constraint_R.
12403 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12404 Delete.
12405 (xstormy16_legitiamte_address_p): Declare.
12406 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12407 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12408 (EXTRA_CONSTRAINT): Delete.
12409 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12410 Un-staticize.
12411 (xstormy16_extra_constraint_p): Delete.
12412
12413 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12414
12415 PR tree-optimization/46494
12416 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12417 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12418 (pass_rtl_loop_done): Add TODO_verify_flow.
12419 * fwprop.c (pass_rtl_fwprop): Likewise.
12420 * modulo-sched.c (pass_sms): Likewise.
12421 * tree-ssa-dom.c (pass_dominator): Likewise.
12422 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12423 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12424 (pass_tree_loop_done): Likewise.
12425 * tree-ssa-pre.c (execute_pre): Likewise.
12426 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12427 * tree-ssa-sink.c (pass_sink_code): Likewise.
12428 * tree-vrp.c (pass_vrp): Likewise.
12429
12430 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12431
12432 * config/v850/constraints.md: New file.
12433 * config/v850/v850.md: Include it.
12434 * config/v850/predicates.md (reg_or_0_operand): Use
12435 satisfies_constraint_G.
12436 (special_symbolref_operand): Use satisfies_constraint_K.
12437 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12438 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12439 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12440 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12441 (EXTRA_CONSTRAINT): Delete.
12442 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12443 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12444 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12445
12446 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12447
12448 PR target/47696
12449 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12450 description.
12451
12452 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12453
12454 * config/mcore/constraints.md: New file.
12455 * config/mcore/mcore.md: Include it.
12456 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12457 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12458 (REG_CLASS_FROM_LETTER): Delete.
12459 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12460 insn_const_int_ok_for_constraint.
12461 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12462 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12463 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12464 (EXTRA_CONSTRAINT): Delete.
12465
12466 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12467
12468 PR ada/41929
12469 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12470 (IS_SIGHANDLER): Define.
12471 (sparc64_is_sighandler): New function, split off from
12472 sparc64_fallback_frame_state.
12473 (sparc_is_sighandler): New function, split off from
12474 sparc_fallback_frame_state.
12475 (sparc64_fallback_frame_state): Merge with ...
12476 (sparc_fallback_frame_state): ... this into ...
12477 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12478 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12479 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12480 stack instead of hardcoded offsets.
12481
12482 2011-02-14 Andriy Gapon <avg@freebsd.org>
12483
12484 PR target/45808
12485 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12486
12487 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12488
12489 * configure: Regenerate.
12490
12491 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12492
12493 PR driver/45731
12494 * gcc.c (asm_options): Correct spec matching --target-help.
12495
12496 2011-02-12 Martin Jambor <mjambor@suse.cz>
12497
12498 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12499 to gimple call error.
12500
12501 2011-02-12 Mike Stump <mikestump@comcast.net>
12502
12503 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12504 comments in backslash regions.
12505
12506 2011-02-12 Mike Stump <mikestump@comcast.net>
12507 Jakub Jelinek <jakub@redhat.com>
12508 Iain Sandoe <iains@gcc.gnu.org>
12509
12510 PR target/47324
12511 * dwarf2out.c (output_cfa_loc): When required, apply the
12512 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12513 (output_loc_sequence): Likewise.
12514 (output_loc_operands_raw): Likewise.
12515 (output_loc_sequence_raw): Likewise.
12516 (output_cfa_loc): Likewise.
12517 (output_loc_list): Suppress register number adjustment when
12518 calling output_loc_sequence()
12519 (output_die): Likewise.
12520
12521 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12522
12523 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12524 Remove macros.
12525 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12526 xtensa_memory_move_cost): New functions.
12527 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12528
12529 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12530
12531 PR lto/47225
12532 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12533 in the current directory.
12534 * configure: Rebuilt.
12535
12536 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12537
12538 * config/darwin.c (darwin_override_options): Add a hunk missed
12539 from the commit of r168571. Trim comment line lengths and
12540 correct indents of the preceding block.
12541
12542 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12543
12544 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12545 the switch.
12546
12547 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12548
12549 * common.opt (nostartfiles): New Driver option.
12550
12551 2011-02-11 Xinliang David Li <davidxl@google.com>
12552
12553 PR tree-optimization/47707
12554 * tree-chrec.c (convert_affine_scev): Keep type precision.
12555
12556 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12557
12558 PR tree-optimization/47420
12559 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12560
12561 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12562
12563 PR rtl-optimization/47614
12564 * rtl.h (check_for_inc_dec): Declare.
12565 * dse.c (check_for_inc_dec): Externalize...
12566 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12567 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12568
12569 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12570
12571 PR driver/47678
12572 * gcc.c (main): Do not compile inputs if there were errors in
12573 option handling.
12574 * opts-common.c (read_cmdline_option): Check for wrong language
12575 after other error checks.
12576
12577 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12578
12579 * cgraph.c: Fix comment typos.
12580 * cgraph.h: Likewise.
12581 * cgraphunit.c: Likewise.
12582 * ipa-cp.c: Likewise.
12583 * ipa-inline.c: Likewise.
12584 * ipa-prop.c: Likewise.
12585 * ipa-pure-const.c: Likewise.
12586 * ipa-ref.c: Likewise.
12587 * ipa-reference.c: Likewise.
12588
12589 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12590
12591 PR debug/47684
12592 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12593
12594 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12595
12596 PR testsuite/47400
12597 * doc/sourcebuild.texi (Require Support): Document
12598 dg-require-ascii-locale.
12599
12600 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12601
12602 * doc/lto.texi (Write summary): Fix missing parentheses.
12603
12604 2011-02-10 DJ Delorie <dj@redhat.com>
12605
12606 * config/m32c/m32c.c (m32c_option_override): Disable
12607 -fcombine-stack-adjustments until flag value tracking and compare
12608 optimization can be rewritten.
12609
12610 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12611
12612 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12613 PROCESSOR_POWER7.
12614 (PROCESSOR_DEFAULT64): Likewise.
12615
12616 2011-02-10 Richard Henderson <rth@redhat.com>
12617
12618 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12619 change from 2011-02-03.
12620 * config/rx/rx.c (flags_from_code): Likewise.
12621 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12622 is valid, n/pz otherwise.
12623 (rx_select_cc_mode): Return CCmode if Y is not zero.
12624
12625 2011-02-10 Richard Guenther <rguenther@suse.de>
12626
12627 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12628
12629 2011-02-10 Richard Guenther <rguenther@suse.de>
12630
12631 PR tree-optimization/47677
12632 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12633
12634 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12635
12636 PR target/47665
12637 * combine.c (make_compound_operation): Only change shifts into
12638 multiplication for SCALAR_INT_MODE_P.
12639
12640 2011-02-10 Jie Zhang <jie@codesourcery.com>
12641
12642 PR testsuite/47622
12643 Revert
12644 2011-02-05 Jie Zhang <jie@codesourcery.com>
12645 PR debug/42631
12646 * web.c (entry_register): Don't clobber the number of the
12647 first uninitialized reference in used[].
12648
12649 2011-02-09 Richard Guenther <rguenther@suse.de>
12650
12651 PR tree-optimization/47664
12652 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12653 all edges again.
12654
12655 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12656
12657 PR target/46481
12658 PR target/47032
12659 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12660 PROCESSOR_POWER7.
12661 (PROCESSOR_DEFAULT64): Same.
12662 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12663
12664 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12665
12666 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12667
12668 2011-02-09 Martin Jambor <mjambor@suse.cz>
12669
12670 PR middle-end/45505
12671 * tree-sra.c (struct access): New flags grp_scalar_read and
12672 grp_scalar_write. Changed description of assignment read and write
12673 flags.
12674 (dump_access): Dump new flags, reorder all of them.
12675 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12676 to detect multiple scalar reads.
12677 (analyze_access_subtree): Use the new scalar read write flags instead
12678 of the old flags. Adjusted comments.
12679
12680 2011-02-08 DJ Delorie <dj@redhat.com>
12681
12682 PR target/47548
12683 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12684 patterns.
12685
12686 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12687
12688 * config/m68k/uclinux.opt: New.
12689 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12690
12691 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12692
12693 * config/cris/elf.opt (sim): New Driver option.
12694
12695 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12696
12697 * config/xtensa/elf.opt: New.
12698 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12699
12700 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12701
12702 * config/vax/elf.opt: New.
12703 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12704
12705 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12706
12707 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12708
12709 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12710
12711 * config/gnu-user.opt: New.
12712 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12713 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12714 *-*-uclinux*): Use gnu-user.opt.
12715
12716 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12717
12718 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12719 * config/i386/gnu.h (CPP_SPEC): Likewise.
12720
12721 2011-02-08 Ian Lance Taylor <iant@google.com>
12722
12723 * common.opt (fcx-limited-range): Add SetByCombined flag.
12724 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12725 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12726 (fassociative-math, freciprocal-math): Likewise.
12727 (funsafe-math-optimizations): Likewise.
12728 * opth-gen.awk: Handle SetByCombined.
12729 * optc-gen.awk: Likewise.
12730 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12731 (set_unsafe_math_optimizations_flags): Likewise.
12732 * doc/options.texi (Option properties): Document SetByCombined.
12733
12734 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12735
12736 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12737 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12738 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12739 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12740 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12741
12742 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12743
12744 PR tree-optimization/46834
12745 PR tree-optimization/46994
12746 PR tree-optimization/46995
12747 * graphite-sese-to-poly.c (used_outside_reduction): New.
12748 (detect_commutative_reduction): Call used_outside_reduction.
12749 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12750 translate_scalar_reduction_to_array only when at least one
12751 loop-phi/close-phi tuple has been detected.
12752
12753 2011-02-08 Richard Guenther <rguenther@suse.de>
12754
12755 PR middle-end/47639
12756 * tree-vect-generic.c (expand_vector_operations_1): Update
12757 stmts here ...
12758 (expand_vector_operations): ... not here. Cleanup EH info
12759 and the CFG if required.
12760
12761 2011-02-08 Richard Guenther <rguenther@suse.de>
12762
12763 PR tree-optimization/47641
12764 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12765 require type compatibility.
12766
12767 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12768
12769 * gimple-low.c (lower_function_body): Don't remove the location of
12770 the return statement here.
12771 (lower_gimple_return): Do it here instead but only if the return
12772 statement is actually used twice.
12773
12774 2011-02-08 Richard Guenther <rguenther@suse.de>
12775
12776 PR tree-optimization/47632
12777 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12778 unused up_to_stmt parameter, return whether cfg-cleanup is
12779 necessary, remove EH info properly.
12780 (forward_propagate_into_gimple_cond): Adjust caller.
12781 (forward_propagate_into_cond): Likewise.
12782 (forward_propagate_comparison): Likewise.
12783 (tree_ssa_forward_propagate_single_use_vars): Make
12784 forward_propagate_comparison case similar to the two others.
12785
12786 2011-02-08 Nick Clifton <nickc@redhat.com>
12787
12788 * config/mn10300/mn10300.opt (mliw): New command line option.
12789 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12790 (liw_bundling): New automaton.
12791 (liw): New attribute.
12792 (liw_op): New attribute.
12793 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12794 (movsi_internal): Add LIW attributes.
12795 (andsi3): Likewise.
12796 (iorsi3): Likewise.
12797 (xorsi3): Likewise.
12798 (addsi3): Separate register and immediate alternatives.
12799 Add LIW attributes.
12800 (subsi3): Likewise.
12801 (cmpsi): Likewise.
12802 (aslsi3): Likewise.
12803 (lshrsi3): Likewise.
12804 (ashrsi3): Likewise.
12805 (liw): New pattern.
12806 * config/mn10300/mn10300.c (liw_op_names): New
12807 (mn10300_print_operand): Handle 'W' operand descriptor.
12808 (extract_bundle): New function.
12809 (check_liw_constraints): New function.
12810 (liw_candidate): New function.
12811 (mn10300_bundle_liw): New function.
12812 (mn10300_reorg): New function.
12813 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12814 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12815 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12816 __LIW__ or __NO_LIW__.
12817 * doc/invoke.texi: Describe the -mliw command line option.
12818
12819 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12820
12821 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12822 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12823 pthread_mutex_unlock): Remove.
12824 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12825 * config/pa/t-pa64: Likewise.
12826 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12827 shared libc if not linking against libpthread.
12828 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12829
12830 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12831
12832 PR target/47558
12833 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12834 on 10.6 and later to ensure that we always use the unwinder from
12835 the system. Only add -no_compact_unwind when tarteting darwin
12836 10.6 or later.
12837
12838 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12839
12840 PR target/46997
12841 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12842 (vec_interleave_lowv2sf): Ditto.
12843 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12844 (vec_extract_oddv2sf): Ditto.
12845
12846 2011-02-07 Mike Stump <mikestump@comcast.net>
12847
12848 PR target/42333
12849 Add __ieee_divdc3 entry point.
12850 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12851 entry point.
12852 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12853 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12854 * config/darwin.c (darwin_rename_builtins): Add.
12855 * config/darwin-protos.h (darwin_rename_builtins): Add.
12856
12857 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12858
12859 PR target/47636
12860 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12861 for the condition.
12862
12863 2011-02-07 Mike Stump <mikestump@comcast.net>
12864
12865 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12866
12867 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12868
12869 PR target/47534
12870 * config/avr/libgcc.S (exit): Move .endfunc
12871
12872 2011-02-07 Richard Guenther <rguenther@suse.de>
12873
12874 PR tree-optimization/47615
12875 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12876 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12877 (run_scc_vn): Initialize it.
12878 (visit_reference_op_load): Use it.
12879 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12880
12881 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12882
12883 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12884 DImode trapping arithmetic libfuncs.
12885
12886 2011-02-07 Richard Guenther <rguenther@suse.de>
12887
12888 PR tree-optimization/47621
12889 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12890 two duplicates ...
12891 (execute_update_addresses_taken): ... here. Make it more
12892 conservative in what we accept.
12893
12894 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12895
12896 * config/sparc/freebsd.h (ASM_SPEC): Define.
12897 * config/sparc/vxworks.h (ASM_SPEC): Define.
12898
12899 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12900
12901 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12902
12903 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12904
12905 * doc/invoke.texi: Remove reference to compiler internals from
12906 user documentation.
12907
12908 * reg-notes.def: Remove REG_VALUE_PROFILE.
12909 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12910
12911 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12912
12913 PR middle-end/47610
12914 * varasm.c (default_section_type_flags): If decl is NULL,
12915 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12916
12917 2011-02-05 Jie Zhang <jie@codesourcery.com>
12918
12919 PR debug/42631
12920 * web.c (entry_register): Don't clobber the number of the
12921 first uninitialized reference in used[].
12922
12923 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12924
12925 PR tree-optimization/46194
12926 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12927 (build_classic_dist_vector_1): Do not represent classic distance
12928 vectors when the access functions are variating in different loops.
12929
12930 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12931
12932 * config/mips/iris6.opt: New.
12933 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12934
12935 2011-02-04 Richard Henderson <rth@redhat.com>
12936 Steve Ellcey <sje@cup.hp.com>
12937
12938 PR target/46997
12939 * config/ia64/predicates.md (mux1_brcst_element): New.
12940 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12941 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12942 (ia64_unpack_sign): New.
12943 (ia64_expand_unpack): Rewrite using new routines.
12944 (ia64_expand_widen_sum): Ditto.
12945 (ia64_expand_dot_prod_v8qi): Ditto.
12946 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12947 routines, add endian check.
12948 (pmpy2_even): Rename from pmpy2_r, add endian check.
12949 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12950 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12951 (vec_widen_smult_hi_v4hi): Ditto.
12952 (vec_widen_umult_lo_v4hi): Ditto.
12953 (vec_widen_umult_hi_v4hi): Ditto.
12954 (mulv2si3): Change endian checks.
12955 (sdot_prodv4hi): Rewrite with new calls.
12956 (udot_prodv4hi): New.
12957 (vec_pack_ssat_v4hi): Add endian check.
12958 (vec_pack_usat_v4hi): Ditto.
12959 (vec_pack_ssat_v2si): Ditto.
12960 (max1_even): Rename from max1_r, add endian check.
12961 (max1_odd): Rename from max1_l, add endian check.
12962 (*mux1_rev): Format change.
12963 (*mux1_mix): Ditto.
12964 (*mux1_shuf): Ditto.
12965 (*mux1_alt): Ditto.
12966 (*mux1_brcst_v8qi): Use new predicate.
12967 (vec_extract_evenv8qi): Remove endian check.
12968 (vec_extract_oddv8qi): Ditto.
12969 (vec_interleave_lowv4hi): Format change.
12970 (vec_interleave_highv4hi): Ditto.
12971 (mix2_even): Rename from mix2_r, add endian check.
12972 (mix2_odd): Rename from mux2_l, add endian check.
12973 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12974 (vec_extract_evenodd_helper): Format change.
12975 (vec_extract_evenv4hi): Remove endian check.
12976 (vec_extract_oddv4hi): Remove endian check.
12977 (vec_interleave_lowv2si): Format change.
12978 (vec_interleave_highv2si): Format change.
12979 (vec_initv2si): Remove endian check.
12980 (vecinit_v2si): Add endian check.
12981 (reduc_splus_v2sf): Add endian check.
12982 (reduc_smax_v2sf): Ditto.
12983 (reduc_smin_v2sf): Ditto.
12984 (vec_initv2sf): Remove endian check.
12985 (fpack): Add endian check.
12986 (fswap): Add endian check.
12987 (vec_interleave_highv2sf): Add endian check.
12988 (vec_interleave_lowv2sf): Add endian check.
12989 (fmix_lr): Add endian check.
12990 (vec_setv2sf): Format change.
12991 (*vec_extractv2sf_0_be): Use shift to extract operand.
12992 (*vec_extractv2sf_1_be): New.
12993 (vec_pack_trunc_v4hi): Add endian check.
12994 (vec_pack_trunc_v2si): Format change.
12995
12996 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12997
12998 PR inline-asm/23200
12999 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13000 do bb, locus and block comparison and disallow loads if it is not set.
13001 (stmt_is_replaceable_p): New function.
13002 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13003 callers.
13004 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13005 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13006 SSA_NAME_DEF_STMT.
13007 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13008
13009 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13010
13011 * config/rs6000/xilinx.opt: New.
13012 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13013
13014 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13015
13016 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13017
13018 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13019
13020 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13021 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13022 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13023 secondary_reload_info, xtensa_secondary_reload): Remove.
13024 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13025 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13026 (xtensa_preferred_reload_class): Make static. Change return and
13027 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13028 Use CONST_DOUBLE_P predicate.
13029 (xtensa_preferred_output_reload_class): New function.
13030 (xtensa_secondary_reload): Make static.
13031
13032 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13033
13034 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13035 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13036 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13037
13038 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13039
13040 PR middle-end/31490
13041 * output.h (SECTION_RELRO): Define.
13042 (SECTION_MACH_DEP): Adjust.
13043 (get_variable_section): New prototype.
13044 * varpool.c (varpool_finalize_named_section_flags): New function.
13045 (varpool_assemble_pending_decls): Call it.
13046 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13047 * cgraphunit.c (cgraph_output_in_order): Call
13048 varpool_finalize_named_section_flags.
13049 * varasm.c (get_section): Allow section flags conflicts between
13050 relro and read-only sections if the section hasn't been declared yet.
13051 Set SECTION_OVERRIDE after diagnosing section type conflict.
13052 (get_variable_section): No longer static.
13053 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13054 readonly sections that need relocations.
13055 (decl_readonly_section_1): New function.
13056 (decl_readonly_section): Use it.
13057
13058 Revert:
13059 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13060 Steve Ellcey <sje@cup.hp.com>
13061
13062 PR middle-end/31490
13063 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13064 if section attribute used.
13065
13066 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13067
13068 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13069 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13070 (darwin_init_sections): Remove assertion.
13071
13072 2011-02-03 Nick Clifton <nickc@redhat.com>
13073
13074 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13075 lt and ge.
13076 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13077 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13078 instead of "n" and "pz".
13079 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13080 CC_FLAG_S.
13081
13082 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13083
13084 PR target/47312
13085 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13086 fma, expand FMA_EXPR as fma{,f,l} call.
13087
13088 PR lto/47274
13089 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13090 copy them into a unsigned char variable and pass address of it to
13091 lto_output_data_stream.
13092
13093 PR target/47564
13094 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13095 around backend_init_target and lang_dependent_init_target calls.
13096 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13097 (verify_cgraph_node): Don't call set_cfun here. Use
13098 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13099 Set error_found for incorrectly represented calls to thunks.
13100
13101 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13102
13103 PR debug/43092
13104 PR rtl-optimization/43494
13105 * rtl.h (for_each_inc_dec_fn): New type.
13106 (for_each_inc_dec): Declare.
13107 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13108 (for_each_inc_dec_find_inc_dec): New fn.
13109 (for_each_inc_dec_find_mem): New fn.
13110 (for_each_inc_dec): New fn.
13111 * dse.c (struct insn_size): Remove.
13112 (replace_inc_dec, replace_inc_dec_mem): Remove.
13113 (emit_inc_dec_insn_before): New fn.
13114 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13115 (canon_address): Pass mem modes to cselib_lookup.
13116 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13117 (cselib_lookup_from_insn): Likewise.
13118 (cselib_subst_to_values): Likewise.
13119 * cselib.c (find_slot_memmode): New var.
13120 (cselib_find_slot): New fn. Use it instead of
13121 htab_find_slot_with_hash everywhere.
13122 (entry_and_rtx_equal_p): Use find_slot_memmode.
13123 (autoinc_split): New fn.
13124 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13125 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13126 Deal with autoinc. Special-case recursion into MEMs.
13127 (cselib_hash_rtx): Likewise.
13128 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13129 address and MEM modes.
13130 (cselib_subst_to_values): Add memmode, pass it on.
13131 Deal with autoinc.
13132 (cselib_lookup): Add memmode argument, pass it on.
13133 (cselib_lookup_from_insn): Add memmode.
13134 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13135 (struct cselib_record_autoinc_data): New.
13136 (cselib_record_autoinc_cb): New fn.
13137 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13138 mode to cselib_lookup. Reset autoinced REGs here instead of...
13139 (cselib_process_insn): ... here.
13140 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13141 to cselib_lookup.
13142 (add_uses): Likewise, also to cselib_subst_to_values.
13143 (add_stores): Likewise.
13144 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13145 cselib_subst_to_values.
13146 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13147 * gcse.c (do_local_cprop): Adjusted.
13148 * postreload.c (reload_cse_simplify_set): Adjusted.
13149 (reload_cse_simplify_operands): Adjusted.
13150 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13151
13152 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13153
13154 PR tree-optimization/45122
13155 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13156 unsafe assumptions when there's more than one loop exit.
13157
13158 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13159
13160 PR target/47272
13161 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13162 Document using vector double with the load/store builtins, and
13163 that the load/store builtins always use Altivec instructions.
13164
13165 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13166 to use altivec memory instructions, even on VSX.
13167 (vector_altivec_store_<mode>): Ditto.
13168
13169 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13170 function.
13171
13172 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13173 V2DF, V2DI support to load/store overloaded builtins.
13174
13175 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13176 altivec load/store builtins for V2DF/V2DI types.
13177
13178 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13179 set avoid indexed addresses on power6 if -maltivec.
13180 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13181 vector_altivec_load/vector_altivec_store builtins.
13182 (altivec_expand_st_builtin): Ditto.
13183 (altivec_expand_builtin): Add VSX memory builtins.
13184 (rs6000_init_builtins): Add V2DI types to internal types.
13185 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13186 load/store builtins.
13187 (rs6000_address_for_altivec): Insure memory address is appropriate
13188 for Altivec.
13189
13190 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13191 vec_vsx_ld and vec_vsx_st.
13192 (vsx_store_<mode>): Ditto.
13193
13194 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13195 variables to hold long long types for VSX vector memory builtins.
13196 (RS6000_BTI_unsigned_long_long): Ditto.
13197 (long_long_integer_type_internal_node): Ditti.
13198 (long_long_unsigned_type_internal_node): Ditti.
13199
13200 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13201 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13202 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13203
13204 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13205 short cuts.
13206 (vec_vsx_st): Ditto.
13207
13208 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13209
13210 * config/pa/pa-hpux10.opt: New.
13211 * config/hpux11.opt (pthread): New Driver option.
13212 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13213 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13214
13215 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13216
13217 * config/ia64/vms.opt: New.
13218 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13219
13220 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13221
13222 PR target/47580
13223 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13224 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13225 generator functions.
13226 (vsx_floatuns<VSi><mode>2): Ditto.
13227 (vsx_fix_trunc<mode><VSi>2): Ditto.
13228 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13229
13230 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13231
13232 * config/i386/djgpp.opt (posix): New Driver option.
13233
13234 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13235
13236 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13237 Move to the unsupported targets list.
13238
13239 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13240
13241 PR rtl-optimization/47525
13242 * df-scan.c: Update copyright years.
13243 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13244 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13245
13246 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13247
13248 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13249 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13250 (ASM_OUTPUT_ASCII): Remove.
13251 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13252
13253 2011-02-02 Jeff Law <law@redhat.com>
13254
13255 PR middle-end/47543
13256 * reload.c (find_reloads_address): Handle reg+d address where both
13257 components are invalid by reloading the entire address.
13258
13259 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13260 Richard Guenther <rguenther@suse.de>
13261
13262 PR tree-optimization/40979
13263 PR bootstrap/47044
13264 * passes.c (init_optimization_passes): After LIM call copy_prop
13265 and DCE to clean up.
13266 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13267
13268 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13269
13270 PR tree-optimization/47576
13271 PR tree-optimization/47555
13272 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13273 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13274 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13275 * tree-scalar-evolution.c (follow_ssa_edge): Use
13276 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13277
13278 2011-02-02 Richard Guenther <rguenther@suse.de>
13279
13280 PR tree-optimization/47566
13281 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13282
13283 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13284
13285 PR debug/47106
13286 PR debug/47402
13287 * tree-inline.c (declare_return_variable): Remove unused caller
13288 variable.
13289
13290 PR debug/47106
13291 PR debug/47402
13292 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13293 * cfgexpand.c (account_used_vars_for_block): Use them.
13294 * tree-nrv.c (tree_nrv): Likewise.
13295 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13296 (dump_scope_block): Likewise.
13297 (remove_unused_locals): Likewise.
13298
13299 PR debug/47106
13300 PR debug/47402
13301 * tree-inline.c (declare_return_variable): Add result decl to
13302 local decls only once.
13303 * gimple-low.c (record_vars_into): Mark newly-created variables
13304 as referenced.
13305
13306 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13307
13308 PR debug/47498
13309 PR debug/47501
13310 PR debug/45136
13311 PR debug/45130
13312 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13313 debug insns.
13314 (no_real_insns_p, schedule_block, set_priorities): Drop special
13315 treatment of boundary debug insns.
13316 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13317 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13318 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13319 (BOUNDARY_DEBUG_INSN_P): Likewise.
13320 (SCHEDULE_DEBUG_INSN_P): Likewise.
13321 * sched-rgn.c (init_ready_list): Drop special treatment of
13322 boundary debug insns.
13323 * final.c (rest_of_clean_state): Clear notes' BB.
13324
13325 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13326
13327 * config/openbsd.opt (assert=): New Driver option.
13328
13329 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13330
13331 * config/i386/nto.opt: New.
13332 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13333
13334 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13335
13336 * config/i386/netware.opt: New.
13337 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13338
13339 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13340
13341 * config/interix.opt (posix): New Driver option.
13342
13343 2011-02-01 DJ Delorie <dj@redhat.com>
13344
13345 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13346
13347 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13348 class for A0/A1.
13349
13350 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13351
13352 PR tree-optimization/47561
13353 * toplev.c (process_options): Print the Graphite flags. Add
13354 flag_loop_flatten to the list of options requiring Graphite.
13355
13356 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13357
13358 * config/i386/cygming.opt (posix): New Driver option.
13359
13360 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13361
13362 * config/arm/vxworks.opt: New.
13363 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13364
13365 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13366
13367 * config/alpha/elf.opt: New.
13368 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13369 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13370
13371 2011-02-01 Richard Guenther <rguenther@suse.de>
13372
13373 PR tree-optimization/47559
13374 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13375 store-motion on references that can throw.
13376
13377 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13378
13379 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13380 * tree-pass.h (TDF_CSELIB): New macro.
13381 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13382 cselib_lookup): Check for it rather than for TDF_DETAILS.
13383
13384 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13385
13386 PR driver/47547
13387 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13388 is HOST_BIT_BUCKET.
13389
13390 * opts.c (finish_options): Don't add x_aux_base_name if it is
13391 HOST_BIT_BUCKET.
13392
13393 2011-02-01 Richard Guenther <rguenther@suse.de>
13394
13395 PR tree-optimization/47555
13396 Revert
13397 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13398
13399 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13400
13401 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13402
13403 PR gcc/46692
13404 * config/lm32/t-lm32: Add multilib for all CPU options.
13405
13406 2011-02-01 Richard Guenther <rguenther@suse.de>
13407
13408 PR tree-optimization/47541
13409 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13410 sure to have a field at offset zero.
13411
13412 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13413
13414 * config/arc/arc.opt (EB, EL): New Driver options.
13415
13416 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13417
13418 * config/alpha/osf5.opt: New.
13419 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13420
13421 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13422
13423 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13424
13425 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13426
13427 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13428 -floop-interchange.
13429 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13430 is an alias of -floop-interchange and that it requires the
13431 Graphite infrastructure.
13432 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13433 flag_loop_interchange based on the value of flag_tree_loop_linear.
13434
13435 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13436 Richard Guenther <rguenther@suse.de>
13437
13438 PR tree-optimization/47538
13439 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13440 type instead of r1type, except for comparisons. For right
13441 shifts and comparisons punt if there are mismatches in
13442 sizetype vs. non-sizetype types.
13443
13444 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13445
13446 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13447 avx_runtime.
13448
13449 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13450
13451 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13452 version number.
13453 * configure: Regenerate.
13454
13455 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13456
13457 * configure.ac (gcc_cv_ld_static_option): Define.
13458 (gcc_cv_ld_dynamic_option): Define.
13459 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13460 instead.
13461 (HAVE_LD_STATIC_DYNAMIC): Update message.
13462 (LD_STATIC_OPTION): Define.
13463 (LD_DYNAMIC_OPTION): Define.
13464 * configure: Regenerate.
13465 * config.in: Regenerate.
13466 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13467 HAVE_LD_STATIC_DYNAMIC]: Use them.
13468
13469 2011-01-31 Nick Clifton <nickc@redhat.com>
13470
13471 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13472 registers inside interrupt handlers if the handler is not a leaf
13473 function.
13474
13475 2011-01-31 Nick Clifton <nickc@redhat.com>
13476
13477 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13478 reg_renumber returning an INVALID_REGNUM.
13479
13480 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13481
13482 PR libgcj/44341
13483 * doc/install.texi: Document host options discarded when cross
13484 configuring target libraries.
13485
13486 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13487
13488 Reverted:
13489 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13490 PR debug/45136
13491 PR debug/45130
13492 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13493 debug insns.
13494 (no_real_insns_p, schedule_block, set_priorities): Drop special
13495 treatment of boundary debug insns.
13496 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13497 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13498 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13499 (BOUNDARY_DEBUG_INSN_P): Likewise.
13500 (SCHEDULE_DEBUG_INSN_P): Likewise.
13501 * sched-rgn.c (init_ready_list): Drop special treatment of
13502 boundary debug insns.
13503 * final.c (rest_of_clean-state): Clear notes' BB.
13504
13505 2011-01-31 Alan Modra <amodra@gmail.com>
13506
13507 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13508 toc relative expressions as we do in print_operand_address.
13509
13510 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13511
13512 * doc/extend.texi: Follow spelling conventions.
13513 * doc/invoke.texi: Fix a typo.
13514
13515 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13516
13517 * config/hpux11.opt: New.
13518 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13519 ia64*-*-hpux*): Use hpux11.opt.
13520
13521 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13522
13523 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13524 to tmake_file.
13525
13526 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13527
13528 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13529 support sites.
13530
13531 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13532
13533 * doc/install.texi (Binaries): Remove outdated reference for
13534 Motorola 68HC11/68HC12 downloads.
13535
13536 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13537
13538 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13539 Drepper's paper.
13540
13541 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13542
13543 PR bootstrap/47147
13544 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13545 used by NetBSD.
13546
13547 2011-01-28 Ahmad Sharif <asharif@google.com>
13548
13549 * value-prof.c (check_counter): Corrected error message.
13550
13551 2011-01-29 Jie Zhang <jie@codesourcery.com>
13552
13553 * config/arm/arm.c (arm_legitimize_reload_address): New.
13554 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13555 arm_legitimize_reload_address.
13556 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13557
13558 2011-01-28 Ian Lance Taylor <iant@google.com>
13559
13560 * godump.c (go_define): Ignore macros whose definitions include
13561 two adjacent operands.
13562
13563 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13564
13565 PR target/42894
13566 * varasm.c (force_const_mem): Store copy of x in desc->constant
13567 instead of x itself.
13568 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13569 itself into REG_EQUAL note.
13570
13571 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13572
13573 * config/freebsd.opt (posix, rdynamic): New Driver options.
13574
13575 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13576
13577 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13578 -Bstatic/-Bdynamic.
13579 * configure: Regenerate.
13580
13581 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13582
13583 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13584 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13585
13586 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13587
13588 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13589 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13590 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13591 (s390_preferred_reload_class): Make static. Change return and
13592 'rclass' argument type to reg_class_t.
13593
13594 2011-01-27 Jan Hubicka <jh@suse.cz>
13595
13596 PR middle-end/46949
13597 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13598 (process_function_and_variable_attributes): Check defined weakrefs.
13599
13600 2011-01-27 Martin Jambor <mjambor@suse.cz>
13601
13602 PR tree-optimization/47228
13603 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13604 build_ref_for_offset.
13605
13606 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13607
13608 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13609
13610 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13611
13612 PR rtl-optimization/46856
13613 * postreload.c (reload_combine_recognize_const_pattern): Do not
13614 separate cc0 setter and user on cc0 targets.
13615
13616 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13617
13618 PR c/43082
13619 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13620 passed a VOID_TYPE expression, immediately emit an error and
13621 return error_mark_node.
13622
13623 2011-01-26 Jeff Law <law@redhat.com>
13624
13625 PR rtl-optimization/47464
13626 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13627 rather than may_trap_p as needed.
13628
13629 2011-01-26 DJ Delorie <dj@redhat.com>
13630
13631 PR rtl-optimization/46878
13632 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13633 setter/user dependency as well.
13634
13635 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13636
13637 PR rtl-optimization/44469
13638 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13639 after removing trivially dead basic blocks.
13640
13641 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13642
13643 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13644 * config/frv/frv.h (LINK_SPEC): Likewise.
13645 * config/i386/netware.h (LINK_SPEC): Likewise.
13646 * config/m68k/linux.h (ASM_SPEC): Likewise.
13647 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13648 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13649 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13650 * config/sparc/linux.h (ASM_SPEC): Likewise.
13651 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13652 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13653
13654 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13655
13656 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13657 * config/frv/frv.h (ASM_SPEC): Likewise.
13658 * config/m68k/linux.h (ASM_SPEC): Likewise.
13659 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13660 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13661 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13662 * config/sparc/linux.h (ASM_SPEC): Likewise.
13663 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13664 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13665
13666 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13667
13668 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13669 * config/frv/frv.h (LINK_SPEC): Likewise.
13670 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13671
13672 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13673
13674 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13675 * config/frv/frv.h (ASM_SPEC): Likewise.
13676 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13677 * config/m68k/linux.h (ASM_SPEC): Likewise.
13678 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13679 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13680 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13681 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13682 * config/sparc/linux.h (ASM_SPEC): Likewise.
13683 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13684 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13685 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13686
13687 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13688
13689 PR target/46997
13690 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13691 (*mux2): Ditto.
13692 (vec_extract_evenodd_help): Ditto.
13693 (vec_extract_evenv4hi): Ditto.
13694 (vec_extract_oddv4hi): Ditto.
13695 (vec_interleave_lowv2si): Ditto.
13696 (vec_interleave_highv2si): Ditto.
13697 (vec_extract_evenv2si): Ditto.
13698 (vec_extract_oddv2si: Ditto.
13699 (vec_pack_trunc_v2si): Ditto.
13700
13701 2011-01-22 Jan Hubicka <jh@suse.cz>
13702
13703 PR target/47237
13704 * cgraph.h (cgraph_local_info): New field can_change_signature.
13705 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13706 signature can change.
13707 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13708 can change.
13709 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13710 (cgraph_function_versioning): We can not change signature of functions
13711 that don't allow that.
13712 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13713 (lto_input_node): Likewise.
13714 * ipa-inline.c (compute_inline_parameters): Compute
13715 local.can_change_signature.
13716 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13717 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13718 functions that can not change signature.
13719 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13720 init_cumulative_args): Do not use local calling conventions
13721 for functions that can not change signature.
13722
13723 2011-01-22 Jan Hubicka <jh@suse.cz>
13724
13725 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13726
13727 2011-01-26 Richard Guenther <rguenther@suse.de>
13728
13729 PR tree-optimization/47190
13730 * cgraphunit.c (process_common_attributes): New function.
13731 (process_function_and_variable_attributes): Use it.
13732
13733 2011-01-26 Richard Guenther <rguenther@suse.de>
13734
13735 PR lto/47423
13736 * cgraphbuild.c (record_eh_tables): Record reference to personality
13737 function.
13738
13739 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13740
13741 PR debug/45454
13742 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13743 non-debug insns from moving up.
13744
13745 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13746
13747 PR target/40125
13748 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13749 t-dlldir{,-x} fragment for build and add it to tmake_file.
13750 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13751 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13752 * config/i386/t-dlldir: New file.
13753 (SHLIB_DLLDIR): Define.
13754 * config/i386/t-dlldir-x: New file.
13755 (SHLIB_DLLDIR): Define.
13756 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13757 (SHLIB_INSTALL): Use it.
13758
13759 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13760
13761 PR target/47246
13762 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13763 lower bound of the allowed Thumb-2 coprocessor load/store
13764 index range to -256. Add explaining comment.
13765
13766 2011-01-25 Ian Lance Taylor <iant@google.com>
13767
13768 * godump.c (go_define): Improve lexing of macro expansion to only
13769 accept expressions which match Go spec.
13770
13771 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13772
13773 PR c++/43601
13774 * tree.c (handle_dll_attribute): Handle it.
13775 * doc/extend.texi (@item dllexport): Mention it.
13776 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13777
13778 2011-01-25 Ian Lance Taylor <iant@google.com>
13779
13780 PR tree-optimization/26854
13781 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13782 (decl_jump_unsafe): Move higher in file, with no other change.
13783 (bind): Set has_jump_unsafe_decl if appropriate.
13784 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13785 (check_earlier_gotos): Likewise.
13786 (c_check_switch_jump_warnings): Likewise.
13787
13788 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13789
13790 * doc/invoke.texi (Warning Options): Add missing hyphen.
13791 (-fprofile-dir): Minor grammatical fixes.
13792 (-fbranch-probabilities): Likewise.
13793
13794 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13795
13796 PR debug/45136
13797 PR debug/45130
13798 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13799 debug insns.
13800 (no_real_insns_p, schedule_block, set_priorities): Drop special
13801 treatment of boundary debug insns.
13802 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13803 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13804 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13805 (BOUNDARY_DEBUG_INSN_P): Likewise.
13806 (SCHEDULE_DEBUG_INSN_P): Likewise.
13807 * sched-rgn.c (init_ready_list): Drop special treatment of
13808 boundary debug insns.
13809 * final.c (rest_of_clean-state): Clear notes' BB.
13810
13811 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13812
13813 * Makefile.in (LAMBDA_H): Removed.
13814 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13815 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13816 lambda-trans.o, and tree-loop-linear.o.
13817 (lto-symtab.o): Remove dependence on LAMBDA_H.
13818 (tree-loop-linear.o): Remove rule.
13819 (lambda-mat.o): Same.
13820 (lambda-trans.o): Same.
13821 (lambda-code.o): Same.
13822 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13823 (tree-vect-slp.o): Same.
13824 * hwint.h (gcd): Moved here.
13825 (least_common_multiple): Same.
13826 * lambda-code.c: Removed.
13827 * lambda-mat.c: Removed.
13828 * lambda-trans.c: Removed.
13829 * lambda.h: Removed.
13830 * tree-loop-linear.c: Removed.
13831 * lto-symtab.c: Do not include lambda.h.
13832 * omega.c (gcd): Removed.
13833 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13834 * tree-data-ref.c (print_lambda_vector): Moved here.
13835 (lambda_vector_copy): Same.
13836 (lambda_matrix_copy): Same.
13837 (lambda_matrix_id): Same.
13838 (lambda_vector_first_nz): Same.
13839 (lambda_matrix_row_add): Same.
13840 (lambda_matrix_row_exchange): Same.
13841 (lambda_vector_mult_const): Same.
13842 (lambda_vector_negate): Same.
13843 (lambda_matrix_row_negate): Same.
13844 (lambda_vector_equal): Same.
13845 (lambda_matrix_right_hermite): Same.
13846 * tree-data-ref.h: Do not include lambda.h.
13847 (lambda_vector): Moved here.
13848 (lambda_matrix): Same.
13849 (dependence_level): Same.
13850 (lambda_transform_legal_p): Removed declaration.
13851 (lambda_collect_parameters): Same.
13852 (lambda_compute_access_matrices): Same.
13853 (lambda_vector_gcd): Same.
13854 (lambda_vector_new): Same.
13855 (lambda_vector_clear): Same.
13856 (lambda_vector_lexico_pos): Same.
13857 (lambda_vector_zerop): Same.
13858 (lambda_matrix_new): Same.
13859 * tree-flow.h (least_common_multiple): Removed declaration.
13860 * tree-parloops.c (lambda_trans_matrix): Moved here.
13861 (LTM_MATRIX): Same.
13862 (LTM_ROWSIZE): Same.
13863 (LTM_COLSIZE): Same.
13864 (LTM_DENOMINATOR): Same.
13865 (lambda_trans_matrix_new): Same.
13866 (lambda_matrix_vector_mult): Same.
13867 (lambda_transform_legal_p): Same.
13868 * tree-pass.h (pass_linear_transform): Removed declaration.
13869 * tree-ssa-loop.c (tree_linear_transform): Removed.
13870 (gate_tree_linear_transform): Removed.
13871 (pass_linear_transform): Removed.
13872 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13873 flag_loop_interchange.
13874
13875 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13876
13877 PR tree-optimization/47265
13878 PR tree-optimization/47443
13879 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13880 if name still has some uses.
13881
13882 2011-01-25 Martin Jambor <mjambor@suse.cz>
13883
13884 PR tree-optimization/47382
13885 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13886 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13887
13888 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13889
13890 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13891 sjlj_except_unwind_info.
13892
13893 2011-01-25 Richard Guenther <rguenther@suse.de>
13894
13895 PR tree-optimization/47426
13896 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13897 visible functions results escape.
13898
13899 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13900
13901 PR target/45701
13902 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13903 (arm_get_frame_offsets): Use it.
13904
13905 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13906 Jakub Jelinek <jakub@redhat.com>
13907
13908 PR tree-optimization/47271
13909 * tree-if-conv.c (bb_postdominates_preds): New.
13910 (if_convertible_bb_p): Call bb_postdominates_preds.
13911 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13912 (predicate_scalar_phi): Call bb_postdominates_preds.
13913
13914 2011-01-25 Nick Clifton <nickc@redhat.com>
13915
13916 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13917 * config/rx/rx.c (rx_function_value): Likewise.
13918 (rx_promote_function_mode): Likewise.
13919 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13920 in order to make it legitimate.
13921 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13922 make sure that the first operand is the same as the result register.
13923 (addsi3_unspec): Delete.
13924 (subdi3): Do not accept immediate operands.
13925 (subdi3_internal): Likewise.
13926
13927 2011-01-25 Jeff Law <law@redhat.com>
13928
13929 PR rtl-optimization/37273
13930 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13931 handle them like argument loads from stack slots. Do not double
13932 count memory for memory constants and argument loads from stack slots.
13933
13934 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13935
13936 PR tree-optimization/47427
13937 PR tree-optimization/47428
13938 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13939 coalesce if the new root var would be TREE_READONLY.
13940
13941 2011-01-25 Richard Guenther <rguenther@suse.de>
13942
13943 PR middle-end/47414
13944 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13945 correct type for TBAA.
13946
13947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13948
13949 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13950 (close_phi_written_to_memory): Call for_each_index with
13951 dr_indices_valid_in_loop.
13952
13953 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13954
13955 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13956 when it is initialized.
13957
13958 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13959
13960 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13961 call to graphite_find_data_references_in_stmt.
13962 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13963 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13964 call to graphite_find_data_references_in_stmt.
13965 (analyze_drs_in_stmts): Same.
13966 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13967 in which the scalar analysis of indices is performed.
13968 (create_data_ref): Same. Update call to dr_analyze_indices.
13969 (find_data_references_in_stmt): Update call to create_data_ref.
13970 (graphite_find_data_references_in_stmt): Same.
13971 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13972 declaration.
13973 (create_data_ref): Same.
13974 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13975 call to create_data_ref.
13976
13977 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13978
13979 * graphite-sese-to-poly.c (build_poly_scop): Move
13980 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13981
13982 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13983
13984 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13985 VAR_DECL, PARM_DECL, and RESULT_DECL.
13986
13987 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13988
13989 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13990 in a reduction PBB.
13991 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13992 that have already been marked as PBB_IS_REDUCTION.
13993
13994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13995
13996 * graphite-scop-detection.c (same_close_phi_node): New.
13997 (remove_duplicate_close_phi): New.
13998 (make_close_phi_nodes_unique): New.
13999 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14000
14001 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14002
14003 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14004 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14005 of both data references to be the same.
14006
14007 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14008
14009 * graphite-dependences.c (build_lexicographical_constraint): Remove
14010 the gdim parameter.
14011 (build_lexicographical_constraint): Adjust call to
14012 ppl_powerset_is_empty.
14013 (dependence_polyhedron): Same.
14014 (graphite_legal_transform_dr): Same.
14015 (graphite_carried_dependence_level_k): Same.
14016 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14017 parameter.
14018 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14019
14020 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14021
14022 * graphite-sese-to-poly.c
14023 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14024 (close_phi_written_to_memory): New.
14025 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14026 and unshare_expr.
14027
14028 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14029
14030 * doc/install.texi: Update the expected version number of PPL to 0.11.
14031 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14032 #if PPL_VERSION_MINOR < 11.
14033
14034 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14035
14036 * graphite-dependences.c: Include graphite-cloog-util.h.
14037 (new_poly_ddr): Inlined into dependence_polyhedron.
14038 (free_poly_ddr): Moved close by new_poly_ddr.
14039 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14040 Early return NULL when ppl_powerset_is_empty returns true.
14041 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14042 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14043 (graphite_legal_transform_dr): Call new_poly_ddr.
14044 (graphite_carried_dependence_level_k): Same.
14045 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14046 (dot_transformed_deps_stmt_1): Removed.
14047 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14048 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14049 (dot_deps_1): Call dot_deps_2.
14050 * Makefile.in (graphite-dependences.o): Add missing dependence on
14051 graphite-cloog-util.h.
14052
14053 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14054
14055 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14056 (build_lexicographical_constraint): Same.
14057 (dependence_polyhedron_1): Same.
14058 (graphite_legal_transform_dr): Same.
14059 (graphite_carried_dependence_level_k): Same.
14060 * graphite-ppl.c (ppl_powerset_is_empty): New.
14061 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14062 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14063
14064 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14065
14066 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14067 the "a followed by b" relation and document it.
14068
14069 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14070
14071 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14072 iteration when the bag of constraints is empty.
14073
14074 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14075
14076 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14077
14078 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14079
14080 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14081 nest and two loop depths as parameters.
14082 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14083 lst_perfect_nestify.
14084
14085 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14086
14087 * graphite-dependences.c (print_pddr): Call
14088 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14089
14090 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14091
14092 * graphite-ppl.c (debug_gmp_value): New.
14093 * graphite-ppl.h (debug_gmp_value): Declared.
14094
14095 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14096
14097 * doc/install.texi: Document availability of cloog-0.16.
14098
14099 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14100
14101 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14102 invalid postdominance info.
14103
14104 2011-01-24 Jan Hubicka <jh@suse.cz>
14105
14106 PR c/21659
14107 * doc/extend.texi (weak pragma): Drop claim that it must
14108 appear before definition.
14109 * varasm.c (merge_weak, declare_weak): Only sanity check
14110 that DECL is not output at a time it is declared weak.
14111
14112 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14113
14114 * machmode.def: Fixed comments.
14115
14116 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14117
14118 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14119
14120 2011-01-24 Paul Koning <ni1d@arrl.net>
14121
14122 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14123 WORDS_BIG_ENDIAN.
14124
14125 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14126
14127 PR target/46519
14128 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14129 (block_info): Add scanned and prev.
14130 (move_or_delete_vzeroupper_2): Return if the basic block
14131 has been scanned and the upper 128bit state is unchanged
14132 from the last scan.
14133 (move_or_delete_vzeroupper_1): Return true if the exit
14134 state is changed.
14135 (move_or_delete_vzeroupper): Visit basic blocks using the
14136 work-list based algorithm based on vt_find_locations in
14137 var-tracking.c.
14138
14139 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14140
14141 2011-01-24 Nick Clifton <nickc@redhat.com>
14142
14143 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14144 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14145 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14146 then define __v850e1__.
14147 * doc/invoke.texi: Document -mv850es.
14148
14149 2011-01-24 Richard Henderson <rth@redhat.com>
14150
14151 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14152 compound unordered comparisons.
14153 * config/rx/rx.c (rx_split_fp_compare): Remove.
14154 * config/rx/rx-protos.h: Update.
14155 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14156 (cbranchsf4): Don't call rx_split_fp_compare.
14157 (*cbranchsf4): Use rx_split_cbranch.
14158 (*cmpsf): Don't accept "i" constraint.
14159 (*conditional_branch): Only valid after reload.
14160 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14161
14162 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14163
14164 PR target/47385
14165 * config/rs6000/altivec.md (vector constant splitters): Add
14166 support for creating vector single precision constants if -mvsx is
14167 used and we would create the constant using Altivec primitives.
14168
14169 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14170 Richard Sandiford <rdsandiford@googlemail.com>
14171
14172 PR rtl-optimization/47166
14173 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14174 mechanism for PRE_MODIFY and POST_MODIFY.
14175 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14176 reloadreg.
14177
14178 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14179
14180 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14181
14182 2011-01-22 Jan Hubicka <jh@suse.cz>
14183
14184 PR lto/47333
14185 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14186
14187 2011-01-22 Jan Hubicka <jh@suse.cz>
14188
14189 PR tree-optimization/43884
14190 PR lto/44334
14191 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14192 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14193
14194 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14195
14196 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14197 * config/s390/s390.c (s390_register_move_cost,
14198 s390_memory_move_cost): New.
14199 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14200
14201 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14202
14203 PR middle-end/47401
14204 * except.c (sjlj_assign_call_site_values): Move setting the
14205 crtl->uses_eh_lsda flag to ...
14206 (sjlj_mark_call_sites): ... here.
14207 (sjlj_emit_function_enter): Support NULL dispatch label.
14208 (sjlj_build_landing_pads): In a function with no landing pads
14209 that still has must-not-throw regions, generate code to register
14210 a personality function with empty LSDA.
14211
14212 2011-01-21 Richard Henderson <rth@redhat.com>
14213
14214 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14215
14216 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14217
14218 * compare-elim.c: New file.
14219 * Makefile.in (OBJS-common): Add it.
14220 (compare-elim.o): New.
14221 * common.opt (fcompare-elim): New.
14222 * opts.c (default_options_table): Add OPT_fcompare_elim.
14223 * tree-pass.h (pass_compare_elim_after_reload): New.
14224 * passes.c (init_optimization_passes): Add it.
14225 * recog.h: Protect against re-inclusion.
14226 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14227 * doc/invoke.texi (-fcompare-elim): Document it.
14228 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14229 * doc/tm.texi: Rebuild.
14230
14231 2011-01-22 Nick Clifton <nickc@redhat.com>
14232
14233 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14234 rx_split_fp_compare.
14235
14236 2011-01-22 Nick Clifton <nickc@redhat.com>
14237
14238 * config/rx/rx.md (UNSPEC_CONST): New.
14239 (deallocate_and_return): Wrap the amount popped off the stack in
14240 an UNSPEC_CONST in order to stop it being rejected by
14241 -mmax-constant-size.
14242 (pop_and_return): Add a "(return)" rtx.
14243 (call): Drop the immediate operand.
14244 (call_internal): Likewise.
14245 (call_value): Likewise.
14246 (call_value_internal): Likewise.
14247 (sibcall_internal): Likewise.
14248 (sibcall_value_internal): Likewise.
14249 (sibcall): Likewise. Generate an explicit call using
14250 sibcall_internal.
14251 (sibcall_value): Likewise.
14252 (mov<>): FAIL if a constant operand is not legitimate.
14253 (addsi3_unpsec): New pattern.
14254
14255 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14256 (ok_for_max_constant): New function.
14257 (gen_safe_add): New function.
14258 (rx_expand_prologue): Use gen_safe_add.
14259 (rx_expand_epilogue): Likewise.
14260 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14261 UNSPEC CONSTs.
14262
14263 2011-01-21 Jeff Law <law@redhat.com>
14264
14265 PR tree-optimization/47053
14266 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14267 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14268 statements are deleted.
14269 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14270 is nonempty, then purge dead edges and cleanup the CFG.
14271
14272 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14273
14274 PR debug/47402
14275 Temporarily revert:
14276 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14277 PR debug/47106
14278 * tree-dfa.c (create_var_ann): Mark variable as used.
14279
14280 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14281
14282 PR middle-end/45566
14283 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14284 notes from other section in hot/cold partitioning even if
14285 last_action is -3. Increment call_site_base.
14286
14287 PR rtl-optimization/47366
14288 * fwprop.c (forward_propagate_into): Return bool. If
14289 any changes are made, -fnon-call-exceptions is used and
14290 REG_EH_REGION note is present, call purge_dead_edges
14291 and return true if it purged anything.
14292 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14293 any EH edges were purged.
14294
14295 2011-01-21 Jeff Law <law@redhat.com>
14296
14297 PR rtl-optimization/41619
14298 * caller-save.c (setup_save_areas): Break out code to determine
14299 which hard regs are live across calls by examining the reload chains
14300 so that it is always used.
14301 Eliminate code which checked REG_N_CALLS_CROSSED.
14302
14303 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14304
14305 PR tree-optimization/47355
14306 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14307 NOP has non-debug uses beyond PHIs in new_bb.
14308
14309 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14310
14311 PR debug/47106
14312 * cfgexpand.c (account_used_vars_for_block): Only account vars
14313 that are annotated as used.
14314 (estimated_stack_frame_size): Don't set TREE_USED.
14315 * tree-dfa.c (create_var_ann): Mark variable as used.
14316
14317 2011-01-21 Richard Guenther <rguenther@suse.de>
14318
14319 PR middle-end/47395
14320 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14321
14322 2011-01-21 Richard Guenther <rguenther@suse.de>
14323
14324 PR tree-optimization/47365
14325 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14326 (vn_reference_lookup_pieces): Adjust.
14327 (vn_reference_lookup): Likewise.
14328 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14329 (vn_reference_lookup_3): Only look through kills if in
14330 VN_WALKREWRITE mode.
14331 (vn_reference_lookup_pieces): Adjust.
14332 (vn_reference_lookup): Likewise.
14333 (visit_reference_op_load): Likewise.
14334 (visit_reference_op_store): Likewise.
14335 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14336 (compute_avail): Likewise.
14337 (eliminate): Likewise.
14338
14339 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14340
14341 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14342 DECL_IGNORED_P non-reg vars if they are used.
14343
14344 PR tree-optimization/47391
14345 * varpool.c (const_value_known_p): Return false if
14346 decl is volatile.
14347
14348 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14349
14350 PR bootstrap/47215
14351 * config/i386/i386.c (ix86_local_alignment): Handle
14352 case for va_list_type_node is nil.
14353 (ix86_canonical_va_list_type): Likewise.
14354
14355 2011-01-21 Alan Modra <amodra@gmail.com>
14356
14357 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14358 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14359
14360 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14361
14362 * config/arm/arm.md (define_attr type): Rename f_load
14363 and f_store to f_fpa_load and f_fpa_store. Update.
14364 (write_conflict): Deal with rename fallout.
14365 (*push_fp_multi): Likewise.
14366 * config/arm/fpa.md (f_load): Use f_fpa_load.
14367 (f_store): Use f_fpa_store.
14368 (*movsf_fpa): Likewise.
14369 (*movdf_fpa): Likewise.
14370 (*movxf_fpa): Likewise.
14371 (*thumb2_movsf_fpa): Likewise.
14372 (*thumb2_movdf_fpa): Likewise.
14373 (*thumb2_movxf_fpa): Likewise.
14374 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14375 f_loadd and f_stored.
14376 (*thumb2_movdi_vfp): Likewise.
14377 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14378 (*thumb2_movsi_vfp): Likewise.
14379 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14380 Use f_loads instead of f_load.
14381 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14382
14383 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14384
14385 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14386 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14387 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14388 (xtensa_mode_dependent_address_p): New function.
14389 (constantpool_address_p): Make static. Change return type to bool.
14390 Change argument type to const_rtx. Use CONST_INT_P predicate.
14391
14392 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14393
14394 PR debug/46583
14395 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14396
14397 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14398
14399 PR debug/47283
14400 * cfgexpand.c (expand_debug_expr): Instead of generating
14401 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14402 etc. handling.
14403
14404 2011-01-20 Richard Guenther <rguenther@suse.de>
14405
14406 PR middle-end/47370
14407 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14408 the pointer operand of MEM_REFs.
14409
14410 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14411
14412 PR tree-optimization/46130
14413 * ipa-split.c (consider_split): If return_bb contains non-virtual
14414 PHIs other than for retval or if split_function would not adjust it,
14415 refuse to split.
14416
14417 2011-01-20 Richard Guenther <rguenther@suse.de>
14418
14419 PR tree-optimization/47167
14420 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14421 Revert previous change, only avoid enumeral type changes.
14422
14423 2011-01-19 Mike Stump <mikestump@comcast.net>
14424
14425 * doc/tm.texi.in (BRANCH_COST): Englishify.
14426 * doc/tm.texi (BRANCH_COST): Likewise.
14427
14428 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14429
14430 PR c++/47291
14431 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14432 (gen_scheduled_generic_parms_dies): New functions.
14433 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14434 generation for the end of CU compilation.
14435 (dwarf2out_finish): Generate template parameters DIEs here.
14436
14437 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14438
14439 PR debug/46240
14440 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14441 debug bind stmt on merge edges.
14442
14443 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14444
14445 PR debug/47079
14446 PR debug/46724
14447 * function.c (instantiate_expr): Instantiate incoming rtl of
14448 implicit arguments, and recurse on VALUE_EXPRs.
14449 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14450 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14451
14452 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14453
14454 * c-parser.c (c_parser_for_statement): Initialize
14455 collection_expression.
14456
14457 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14458
14459 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14460
14461 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14462
14463 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14464 (LINK_SHLIB_SPEC): Don't use %(link_path).
14465 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14466
14467 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14468
14469 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14470 (NO_SHARED_LIB_SUPPORT): Remove.
14471 (LINK_SHLIB_SPEC): Remove one conditional definition.
14472
14473 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14474
14475 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14476 %{call_shared}.
14477 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14478 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14479 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14480 %{call_shared} and conditionals on these options not being passed.
14481 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14482 %{call_shared}.
14483
14484 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14485
14486 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14487 simplify.
14488
14489 * ipa-split.c: Spelling fixes.
14490
14491 2011-01-19 Richard Henderson <rth@redhat.com>
14492
14493 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14494 (*mulsi3): Likewise.
14495
14496 * longlong.h [__mn10300__] (count_leading_zeros): New.
14497 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14498 [__mn10300__] (add_ssaaaa, subddmmss): New.
14499 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14500 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14501
14502 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14503
14504 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14505
14506 2011-01-19 Richard Henderson <rth@redhat.com>
14507
14508 * config/mn10300/mn10300.md (addsi3_flags): New.
14509 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14510 (subsi3_flags, subc_internal, subdi3): New.
14511 (subdi3_internal, *subdi3_degenerate): New.
14512 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14513
14514 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14515 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14516 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14517 * config/mn10300/mn10300-protos.h: Update.
14518 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14519 (return_ret): Likewise. Rename from return_internal_regs.
14520 (return_internal): Remove.
14521
14522 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14523 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14524 (mn10300_legitimate_constant_p): Likewise.
14525 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14526 (mn10300_frame_size): New.
14527 (mn10300_expand_prologue): Use it.
14528 (mn10300_expand_epilogue): Likewise.
14529 (mn10300_initial_offset): Likewise.
14530 * config/mn10300/mn10300-protos.h: Update.
14531 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14532 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14533 (prologue, epilogue, return_internal): Tidy output code.
14534 (mn10300_store_multiple_operation, return): Likewise.
14535 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14536 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14537 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14538 (load_pic, am33_load_pic): New.
14539 (mn10300_load_pic0, mn10300_load_pic1): New.
14540
14541 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14542 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14543 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14544 (cc_flags_for_mode, cc_flags_for_code): New.
14545 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14546 overflow flag is not valid. Validate that the flags we need
14547 for the comparison are valid.
14548 (mn10300_output_cmp): Remove.
14549 (mn10300_output_add): New.
14550 (mn10300_select_cc_mode): Use cc_flags_for_code.
14551 (mn10300_split_cbranch): New.
14552 (mn10300_match_ccmode): New.
14553 (mn10300_split_and_operand_count): New.
14554 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14555 to the function.
14556 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14557 (addsi3): ... here. Use mn10300_output_add.
14558 (*addsi3_flags): New.
14559 (*am33_subsi3, *mn10300_subsi3): Merge...
14560 (subsi3): ... here. Use attribute isa.
14561 (*subsi3_flags): New.
14562 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14563 when possible.
14564 (*am33_andsi3, *mn10300_andsi3): Merge...
14565 (andsi3): ... here.
14566 (*andsi3_flags): New.
14567 (andsi3 splitters): New.
14568 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14569 (iorsi3): ... here.
14570 (*iorsi3_flags): New.
14571 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14572 (xorsi3): ... here.
14573 (*xorsi3_flags): New.
14574 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14575 (one_cmplsi2): ... here.
14576 (*one_cmplsi2_flags): New.
14577 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14578 instead of "dax" in constraints. Use mn10300_split_cbranch.
14579 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14580 use matching constraints to eliminate a self-comparison.
14581 (*integer_conditional_branch): Rename from integer_conditional_branch.
14582 Use int_mode_flags to match CC_REG.
14583 (*cbranchsi4_btst, *btstsi): New.
14584 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14585 mn10300_split_cbranch.
14586 (*am33_cmpsf): Rename from am33_cmpsf.
14587 (*float_conditional_branch): Rename from float_conditional_branch.
14588 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14589 (zero_extendqisi2): ... here.
14590 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14591 (zero_extendhisi2): ... here.
14592 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14593 (extendqisi2): ... here.
14594 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14595 (extendhisi2): ... here.
14596 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14597 (ashlsi3): ... here.
14598 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14599 (lshrsi3): ... here.
14600 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14601 (ashrsi3): ... here.
14602 (consecutive add peephole): Remove.
14603 * config/mn10300/predicates.md (label_ref_operand): New.
14604 (int_mode_flags): New.
14605 (CCZN_comparison_operator): New.
14606
14607 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14608 (throughput_42_latency_43): New reservation.
14609 (mulsidi3, umulsidi3): New expanders.
14610 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14611 the MDR register to allocation; separately allocate the low and
14612 high parts of the DImode result.
14613 (umulsidi3_internal): Similarly.
14614 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14615 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14616 (udivsi3, umodsi3): Remove.
14617 (udivmodsi4, divmodsi4): New expanders.
14618 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14619 (*divmodsi4): Simiarly.
14620 (ext_internal): New.
14621
14622 * config/mn10300/constraints.md ("z"): New constraint.
14623 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14624 (FIXED_REGISTERS): Don't fix MDR.
14625 (CALL_USED_REGSITERS): Reformat nicely.
14626 (REG_ALLOC_ORDER): Add MDR.
14627 (enum regclass): Add MDR_REGS.
14628 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14629 (IRA_COVER_CLASSES): Add MDR_REGS.
14630 (REGNO_REG_CLASS): Handle MDR_REG.
14631 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14632 (mn10300_register_move_cost): Likewise.
14633 * config/mn10300/mn10300.md (MDR_REG): New.
14634 (*movsi_internal): Handle moves to/from MDR_REGS.
14635
14636 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14637 POST_MODIFY.
14638 (mn10300_secondary_reload): Tidy combination reload classes.
14639 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14640 addresses for AM33. Allow symbolic offsets for reg+imm.
14641 (mn10300_regno_in_class_p): New.
14642 (mn10300_legitimize_reload_address): New.
14643 * config/mn10300/mn10300.h (enum reg_class): Remove
14644 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14645 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14646 SP_OR_GENERAL_REGS.
14647 (REG_CLASS_NAMES): Update to match.
14648 (REG_CLASS_CONTENTS): Likewise.
14649 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14650 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14651 (REGNO_IN_RANGE_P): Remove.
14652 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14653 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14654 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14655 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14656 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14657 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14658 (REGNO_GENERAL_P): New.
14659 (HAVE_POST_MODIFY_DISP): New.
14660 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14661 (LEGITIMIZE_RELOAD_ADDRESS): New.
14662 * config/mn10300/mn10300-protos.h: Update.
14663
14664 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14665 DATA_REGS for AM33 stack-pointer destination.
14666 (mn10300_preferred_output_reload_class): Likewise.
14667 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14668 into a form appropriate for ...
14669 (TARGET_SECONDARY_RELOAD): New.
14670 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14671 * config/mn10300/mn10300-protos.h: Update.
14672 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14673 reload_insi; use the "A" constraint for the scratch; handle AM33
14674 moves of sp to non-address registers.
14675
14676 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14677 (*movqi_internal): ... here.
14678 (*am33_movhi, *mn10300_movhi): Merge into...
14679 (*movhi_internal): ... here.
14680 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14681 as the source/destination of moves from/to SP.
14682 (movsf): Only allow for AM33-2.
14683 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14684 any integer constant constraint. Only allow for AM33-2. Tidy
14685 all of the alternative outputs.
14686 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14687 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14688 for MN103.
14689 (udivsi3, umodsi3): New patterns for MN103 only.
14690
14691 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14692
14693 * doc/tm.texi.in: Spell out that a lack of register class unions
14694 can lead to ICEs.
14695 * doc/tm.texi: Regenerate.
14696
14697 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14698
14699 PR rtl-optimization/47337
14700 * dce.c (check_argument_store): New function.
14701 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14702
14703 PR tree-optimization/47290
14704 * tree-eh.c (infinite_empty_loop_p): New function.
14705 (cleanup_empty_eh): Use it.
14706
14707 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14708
14709 PR target/46997
14710 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14711 (a64_expand_widen_sum): Ditto.
14712 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14713 (vec_extract_evenodd_help): Ditto.
14714 (vec_extract_evenv4hi): Ditto.
14715 (vec_extract_oddv4hi): Ditto.
14716 (vec_extract_evenv2si): Ditto.
14717 (vec_extract_oddv2si): Ditto.
14718 (vec_extract_evenv2sf): Ditto.
14719 (vec_extract_oddv2sf): Ditto.
14720 (vec_pack_trunc_v4hi: Ditto.
14721 (vec_pack_trunc_v2si): Ditto.
14722 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14723 (vec_interleave_highv8qi): Ditto.
14724 (mix1_r): Ditto.
14725 (vec_extract_oddv8qi): Ditto.
14726 (vec_interleave_lowv4hi): Ditto.
14727 (vec_interleave_highv4hi): Ditto.
14728 (vec_interleave_lowv2si): Ditto.
14729 (vec_interleave_highv2si): Ditto.
14730
14731 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14732
14733 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14734 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14735 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14736 (pa_c_mode_for_suffix): New.
14737 (TARGET_EXPAND_BUILTIN): Define.
14738 (TARGET_C_MODE_FOR_SUFFIX): Define.
14739 (pa_builtins): Define.
14740 (pa_init_builtins): Register __float128 type and init new support
14741 builtins.
14742 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14743 * config/pa/quadlib.c (_U_Qfcopysign): New.
14744
14745 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14746
14747 PR middle-end/46894
14748 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14749 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14750 are defined.
14751
14752 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14753
14754 PR tree-optimization/47179
14755 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14756 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14757
14758 2011-01-18 Richard Guenther <rguenther@suse.de>
14759
14760 PR rtl-optimization/47216
14761 * emit-rtl.c: Include tree-flow.h.
14762 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14763 of replicating it with different semantics.
14764 * Makefile.in (emit-rtl.o): Adjust.
14765
14766 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14767
14768 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14769 (cortex_a9_dp): Handle neon types correctly.
14770
14771 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14772
14773 PR rtl-optimization/47299
14774 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14775 subtarget. Use normal multiplication if both operands are constants.
14776 * expmed.c (expand_widening_mult): Don't try to optimize constant
14777 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14778 before using it.
14779
14780 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14781
14782 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14783 spacing after 'e.g.', typos, comma, hyphenation.
14784
14785 2011-01-17 Richard Henderson <rth@redhat.com>
14786
14787 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14788 (rx_restricted_mem_operand): New.
14789 (rx_shift_operand): Use register_operand.
14790 (rx_source_operand, rx_compare_operand): Likewise.
14791 * config/rx/rx.md (addsi3_flags): New expander.
14792 (adddi3): Rewrite as expander.
14793 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14794 (subsi3_flags): New expander.
14795 (subdi3): Rewrite as expander.
14796 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14797
14798 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14799 (rx_init_builtins): Remove sat builtin.
14800 (rx_expand_builtin): Likewise.
14801 * config/rx/rx.md (ssaddsi3): New.
14802 (*sat): Rename from sat. Represent the CC_REG input.
14803
14804 * config/rx/predicates.md (rshift_operator): New.
14805 * config/rx/rx.c (rx_expand_insv): Remove.
14806 * config/rx/rx-protos.h: Update.
14807 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14808 operand to the canonical position.
14809 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14810 (*bitclr, *bitclr_in_memory): Similarly.
14811 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14812 (insv): Retain the zero_extract in the expansion.
14813
14814 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14815 (bswaphi2, bitinvert, revw): Likewise.
14816
14817 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14818 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14819 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14820 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14821 (bitset, bitset_in_memory): Likewise.
14822 (bitinvert, bitinvert_in_memory): Likewise.
14823 (bitclr, bitclr_in_memory): Likewise.
14824 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14825 (rx_strend, rx_cmpstrn): Likewise.
14826 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14827 (bitop peep2 patterns): Remove.
14828
14829 * config/rx/rx.c (rx_match_ccmode): New.
14830 * config/rx/rx-protos.h: Update.
14831 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14832 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14833 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14834 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14835 (fix_truncsfsi2, floatsisf2): Likewise.
14836 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14837 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14838 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14839 (*subsi3_flags, *xorsi3_flags): New.
14840
14841 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14842
14843 * config/rx/rx.c (rx_print_operand): Remove workaround for
14844 unsplit comparison operations.
14845
14846 * config/rx/rx.md (movsicc): Split after reload.
14847 (*movsicc): Merge *movsieq and *movsine via match_operator.
14848 (*stcc): New pattern.
14849
14850 * config/rx/rx.c (rx_float_compare_mode): Remove.
14851 * config/rx/rx.h (rx_float_compare_mode): Remove.
14852 * config/rx/rx.md (cstoresi4): Split after reload.
14853 (*sccc): New pattern.
14854
14855 * config/rx/predicates.md (label_ref_operand): New.
14856 (rx_z_comparison_operator): New.
14857 (rx_zs_comparison_operator): New.
14858 (rx_fp_comparison_operator): New.
14859 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14860 Validate that the flags are set properly for the comparison.
14861 (rx_gen_cond_branch_template): Remove.
14862 (rx_cc_modes_compatible): Remove.
14863 (mode_from_flags): New.
14864 (flags_from_code): Rename from flags_needed_for_conditional.
14865 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14866 (rx_select_cc_mode): Likewise.
14867 (rx_split_fp_compare): New.
14868 (rx_split_cbranch): New.
14869 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14870 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14871 (*cbranchsf4): Similarly.
14872 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14873 match_operator and rx_split_cbranch.
14874 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14875 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14876 (*cmpsi): Rename from cmpsi.
14877 (*tstsi): Rename from tstsi.
14878 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14879 (*conditional_branch): Rename from conditional_branch.
14880 (*reveresed_conditional_branch): Remove.
14881 (b<code>): Remove expander.
14882 * config/rx/rx-protos.h: Update.
14883
14884 * config/rx/rx.c (rx_compare_redundant): Remove.
14885 * config/rx/rx.md (cmpsi): Don't use it.
14886 * config/rx/rx-protos.h: Update.
14887
14888 * config/rx/rx-modes.def (CC_F): New mode.
14889 * config/rx/rx.c (rx_select_cc_mode): New.
14890 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14891 * config/rx/rx-protos.h: Update.
14892
14893 2011-01-17 Richard Henderson <rth@redhat.com>
14894
14895 * except.c (dump_eh_tree): Fix stray ; after for statement.
14896
14897 2011-01-17 Richard Guenther <rguenther@suse.de>
14898
14899 PR tree-optimization/47313
14900 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14901 handling before copying the body. Properly deal with
14902 by-reference result in SSA form.
14903
14904 2011-01-17 Ian Lance Taylor <iant@google.com>
14905
14906 PR target/47219
14907 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14908 (struct_value_alias_set): Don't define.
14909 (sparc_option_override): Don't set sparc_sr_alias_set and
14910 struct_value_alias_set.
14911 (save_or_restore_regs): Use gen_frame_mem rather than calling
14912 set_mem_alias_set.
14913 (sparc_struct_value_rtx): Likewise.
14914
14915 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14916
14917 PR target/47318
14918 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14919 (_mm_maskstore_pd): Likewise.
14920 (_mm_maskload_ps): Likewise.
14921 (_mm_maskstore_ps): Likewise.
14922 (_mm256_maskload_pd): Change mask to __m256i.
14923 (_mm256_maskstore_pd): Likewise.
14924 (_mm256_maskload_ps): Likewise.
14925 (_mm256_maskstore_ps): Likewise.
14926
14927 * config/i386/i386-builtin-types.def: Updated.
14928 (ix86_expand_special_args_builtin): Likewise.
14929
14930 * config/i386/i386.c (bdesc_special_args): Update
14931 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14932 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14933 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14934 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14935
14936 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14937 Use <avxpermvecmode> on mask register.
14938 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14939
14940 2011-01-17 Olivier Hainque <hainque@adacore.com>
14941 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14942 Eric Botcazou <ebotcazou@adacore.com>
14943
14944 PR target/46655
14945 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14946 if <= USHRT_MAX in 32-bit mode.
14947
14948 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14949
14950 * doc/install.texi (Configuration, Specific): Wrap long
14951 lines in examples. Allow line wrapping in long options
14952 and URLs where beneficial for PDF output.
14953
14954 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14955
14956 * config/mips/mips.c (mips_classify_symbol): Don't return
14957 SYMBOL_PC_RELATIVE for nonlocal labels.
14958
14959 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14960
14961 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14962
14963 2011-01-15 Jan Hubicka <jh@suse.cz>
14964
14965 PR tree-optimization/47276
14966 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14967 declarations as needed.
14968
14969 2011-01-15 Martin Jambor <mjambor@suse.cz>
14970
14971 * common.opt (fdevirtualize): New flag.
14972 * doc/invoke.texi (Option Summary): Document it.
14973 * opts.c (default_options_table): Add devirtualize flag.
14974 * ipa-prop.c (detect_type_change): Return immediately if
14975 devirtualize flag is not set.
14976 (detect_type_change_ssa): Likewise.
14977 (compute_known_type_jump_func): Likewise.
14978 (ipa_analyze_virtual_call_uses): Likewise.
14979
14980 2011-01-14 Martin Jambor <mjambor@suse.cz>
14981
14982 PR tree-optimization/45934
14983 PR tree-optimization/46302
14984 * ipa-prop.c (type_change_info): New type.
14985 (stmt_may_be_vtbl_ptr_store): New function.
14986 (check_stmt_for_type_change): Likewise.
14987 (detect_type_change): Likewise.
14988 (detect_type_change_ssa): Likewise.
14989 (compute_complex_assign_jump_func): Check for dynamic type change.
14990 (compute_complex_ancestor_jump_func): Likewise.
14991 (compute_known_type_jump_func): Likewise.
14992 (compute_scalar_jump_functions): Likewise.
14993 (ipa_analyze_virtual_call_uses): Likewise.
14994 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14995
14996 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14997
14998 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14999 * config/i386/i386.opt (msse5): New Alias.
15000
15001 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15002
15003 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15004 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15005 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15006 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15007
15008 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15009
15010 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15011 -mcpu options.
15012 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15013 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15014 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15015 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15016 Likewise.
15017 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15018
15019 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15020
15021 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15022
15023 2011-01-14 Mike Stump <mikestump@comcast.net>
15024
15025 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15026 * config/fr30/fr30.md: Likweise
15027 (movsi_push): Likewise.
15028 (movsi_pop): Likewise.
15029 (enter_func): Likewise.
15030 * config/moxie/moxie.md (movsi_push): Likewise.
15031 (movsi_pop): Likewise.
15032
15033 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15034
15035 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15036 %{no_archive} %{exact_version}.
15037 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15038 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15039 %{no_archive} %{exact_version}.
15040 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15041 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15042 * config/mips/vxworks.h: Likewise.
15043
15044 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15045
15046 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15047
15048 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15049
15050 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15051 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15052
15053 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15054
15055 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15056 -nodefaultlib.
15057
15058 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15059
15060 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15061 for mcpu not cpu.
15062 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15063 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15064 not cpu.
15065 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15066 Don't handle -shlib.
15067
15068 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15069
15070 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15071 (CC1_SPEC): Don't handle -profile.
15072
15073 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15074
15075 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15076 * config/mips/mips.h (CC1_SPEC): Likewise.
15077
15078 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15079
15080 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15081 * config/mips/mips.h (CC1_SPEC): Likewise.
15082
15083 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15084
15085 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15086 * config/m32r/linux.h (LINK_SPEC): Likewise.
15087 * config/mips/linux.h (LINK_SPEC): Likewise.
15088 * config/mips/linux64.h (LINK_SPEC): Likewise.
15089 * config/sparc/linux.h (LINK_SPEC): Likewise.
15090 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15091 LINK_SPEC): Likewise.
15092 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15093
15094 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15095
15096 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15097 %{version:-v}.
15098 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15099
15100 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15101
15102 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15103 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15104
15105 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15106
15107 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15108
15109 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15110
15111 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15112 supports -Bstatic/-Bdynamic.
15113 * configure: Regenerate.
15114
15115 2011-01-14 Jan Hubicka <jh@suse.cz>
15116 Jack Howarth <howarth@bromo.med.uc.edu>
15117
15118 PR target/46037
15119 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15120 when checking debug_info_level. Test write_symbols instead of
15121 debug_hooks->var_location when setting flag_var_tracking_uninit.
15122
15123 2011-01-14 Richard Guenther <rguenther@suse.de>
15124
15125 PR tree-optimization/47179
15126 * target.def (ref_may_alias_errno): New target hook.
15127 * targhooks.h (default_ref_may_alias_errno): Declare.
15128 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15129 (default_ref_may_alias_errno): New function.
15130 * target.h (struct ao_ref_s): Declare.
15131 * tree-ssa-alias.c: Include target.h.
15132 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15133 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15134 (targhooks.o): Likewise.
15135 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15136 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15137
15138 2011-01-14 Richard Guenther <rguenther@suse.de>
15139
15140 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15141
15142 2011-01-14 Richard Guenther <rguenther@suse.de>
15143
15144 PR tree-optimization/47280
15145 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15146 return CFG changes.
15147 (tree_ssa_forward_propagate_single_use_vars): Deal with
15148 CFG changes from associate_plusminus.
15149
15150 2011-01-14 Richard Guenther <rguenther@suse.de>
15151
15152 PR middle-end/47281
15153 Revert
15154 2011-01-11 Richard Guenther <rguenther@suse.de>
15155
15156 PR tree-optimization/46076
15157 * tree-ssa.c (useless_type_conversion_p): Conversions from
15158 unprototyped to empty argument list function types are useless.
15159
15160 2011-01-14 Richard Guenther <rguenther@suse.de>
15161
15162 PR tree-optimization/47286
15163 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15164
15165 2011-01-14 Martin Jambor <mjambor@suse.cz>
15166
15167 PR middle-end/46823
15168 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15169
15170 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15171
15172 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15173 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15174 * config/xtensa/xtensa.c (xtensa_libcall_value,
15175 xtensa_function_value_regno_p): New functions.
15176 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15177
15178 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15179
15180 PR c++/47213
15181 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15182 PE specific hook.
15183 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15184 New function prototype.
15185 * config/i386/winnt.c (i386_pe_assemble_visibility):
15186 Warn only if attribute was specified by user.
15187
15188 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15189
15190 PR target/47251
15191 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15192 floating point.
15193 (floatunsdidf2_fcfidu): Ditto.
15194
15195 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15196
15197 * config/s390/s390.c (print_operand_address): Replace 'error' with
15198 'output_operand_lossage'.
15199 (print_operand): Likewise.
15200
15201 2011-01-13 Jeff Law <law@redhat.com>
15202
15203 PR rtl-optimization/39077
15204 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15205 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15206 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15207 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15208 * gcse.c (prune_insertions_deletions): New function.
15209 (compute_pre_data): Use it.
15210
15211 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15212
15213 PR debug/PR46973
15214 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15215 static function.
15216 (prune_unused_types_mark): Use it.
15217
15218 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15219
15220 PR rtl-optimization/45352
15221 * sel-sched.c: Update copyright years.
15222 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15223 in the advancing loop when we have issued issue_rate insns.
15224
15225 2011-01-12 Richard Henderson <rth@redhat.com>
15226
15227 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15228 (TARGET_MD_ASM_CLOBBERS): New.
15229
15230 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15231 (TARGET_DELEGITIMIZE_ADDRESS): New.
15232
15233 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15234 (clzsi2, *bsch): New patterns.
15235
15236 * config/mn10300/mn10300.md (INT): New mode iterator.
15237 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15238
15239 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15240 flag_split_wide_types.
15241
15242 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15243 (mn10300_trampoline_init): Rewrite without a template, an immediate
15244 load and a direct branch.
15245 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15246
15247 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15248
15249 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15250 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15251 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15252 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15253
15254 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15255
15256 PR debug/47209
15257 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15258 of type.
15259
15260 2011-01-12 Jan Hubicka <jh@suse.cz>
15261
15262 PR driver/47244
15263 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15264 (PLUGIN_COND_CLOSE): New macro.
15265 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15266
15267 2011-01-12 Richard Guenther <rguenther@suse.de>
15268
15269 PR lto/47259
15270 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15271 register variables in a MEM_REF.
15272
15273 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15274
15275 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15276 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15277 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15278 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15279 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15280 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15281 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15282 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15283 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15284 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15285 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15286 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15287 * config/gnu-user.h: New. Copied from linux.h.
15288 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15289 GNU_USER_TARGET_STARTFILE_SPEC.
15290 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15291 GNU_USER_TARGET_ENDFILE_SPEC.
15292 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15293 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15294 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15295 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15296 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15297 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15298 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15299 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15300 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15301 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15302 * config/arm/linux-eabi.h (CC1_SPEC): Use
15303 GNU_USER_TARGET_CC1_SPEC.
15304 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15305 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15306 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15307 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15308 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15309 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15310 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15311 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15312
15313 2011-01-12 Richard Guenther <rguenther@suse.de>
15314
15315 PR other/46946
15316 * doc/invoke.texi (ffast-math): Document it is turned on
15317 with -Ofast.
15318
15319 2011-01-12 Jan Hubicka <jh@suse.cz>
15320
15321 PR tree-optimization/47233
15322 * opts.c (common_handle_option): Disable ipa-reference with profile
15323 feedback.
15324
15325 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15326
15327 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15328 error message.
15329
15330 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15331
15332 * c-parser.c (c_lex_one_token): Updated and reindented some
15333 comments. No changes in code.
15334
15335 2011-01-11 Ian Lance Taylor <iant@google.com>
15336
15337 * godump.c (go_output_var): Don't output the variable if there is
15338 already a type with the same name.
15339
15340 2011-01-11 Ian Lance Taylor <iant@google.com>
15341
15342 * godump.c (go_format_type): Don't generate float80.
15343
15344 2011-01-11 Richard Henderson <rth@redhat.com>
15345
15346 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15347 declaration. Rewrite for both speed and size.
15348 (mn10300_address_cost_1): Remove.
15349 (mn10300_register_move_cost): New.
15350 (mn10300_memory_move_cost): New.
15351 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15352 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15353 extensions, shifts, BSWAP, CLZ.
15354 (mn10300_wide_const_load_uses_clr): Remove.
15355 (TARGET_REGISTER_MOVE_COST): New.
15356 (TARGET_MEMORY_MOVE_COST): New.
15357 * config/mn10300/mn10300-protos.h: Update.
15358 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15359
15360 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15361 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15362 * config/mn10300/mn10300-protos.h: Update.
15363 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15364 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15365 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15366 (*test_int_bitfield, *test_byte_bitfield): Remove.
15367 (*bit_test, *subreg_bit_test): Remove.
15368 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15369
15370 * config/mn10300/constraints.md ("c"): Rename from "A".
15371 ("A", "D"): New constraint letters.
15372 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15373 (fmssf4, fnmasf4, fnmssf4): Likewise.
15374
15375 * config/mn10300/mn10300.md (isa): New attribute.
15376 (enabled): New attribute.
15377
15378 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15379 (abssf2, negsf2): Define only for hardware fp.
15380 (sqrtsf2): Reformat.
15381 (addsf3, subsf3, mulsf3): Merge expander and insn.
15382
15383 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15384 (DEBUGGER_AUTO_OFFSET): Remove.
15385 (DEBUGGER_ARG_OFFSET): Remove.
15386
15387 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15388 Emit register stores with the same offsets as the hardware.
15389 (mn10300_store_multiple_operation): Don't check that the register
15390 save offsets are monotonic.
15391 * config/mn10300/mn10300-protos.h: Update.
15392
15393 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15394
15395 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15396 in terms of the value on the stack, not the MDR register.
15397
15398 2011-01-11 Jan Hubicka <jh@suse.cz>
15399
15400 PR lto/45721
15401 PR lto/45375
15402 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15403 (symbol_alias_set_destroy, symbol_alias_set_contains,
15404 propagate_aliases_backward): Declare.
15405 * lto-streamer-out.c (struct sets): New sturcture.
15406 (trivally_defined_alias): New function.
15407 (output_alias_pair_p): Rewrite.
15408 (output_unreferenced_globals): Fix output of alias pairs.
15409 (produce_symtab): Likewise.
15410 * ipa.c (function_and_variable_visibility): Set weak alias destination
15411 as needed in lto.
15412 * varasm.c (symbol_alias_set_t): Remove.
15413 (symbol_alias_set_destroy): Export.
15414 (propagate_aliases_forward, propagate_aliases_backward): New functions
15415 based on ...
15416 (compute_visible_aliases): ... this one; remove.
15417 (trivially_visible_alias): New
15418 (trivially_defined_alias): New.
15419 (remove_unreachable_alias_pairs): Rewrite.
15420 (finish_aliases_1): Reorganize code checking if alias is defined.
15421 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15422 in LTO mode.
15423
15424 2011-01-11 Richard Guenther <rguenther@suse.de>
15425
15426 PR tree-optimization/46076
15427 * tree-ssa.c (useless_type_conversion_p): Conversions from
15428 unprototyped to empty argument list function types are useless.
15429
15430 2011-01-11 Richard Guenther <rguenther@suse.de>
15431
15432 PR middle-end/45235
15433 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15434 volatile MEMs as MEM_READONLY_P.
15435
15436 2011-01-11 Richard Guenther <rguenther@suse.de>
15437
15438 PR tree-optimization/47239
15439 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15440
15441 2011-01-11 Jeff Law <law@redhat.com>
15442
15443 PR tree-optimization/47086
15444 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15445 IVs from statements that might throw.
15446
15447 2011-01-10 Jan Hubicka <jh@suse.cz>
15448
15449 PR lto/45375
15450 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15451
15452 2011-01-10 Jan Hubicka <jh@suse.cz>
15453
15454 PR lto/45375
15455 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15456 when correcting profile.
15457
15458 2011-01-10 Jan Hubicka <jh@suse.cz>
15459
15460 PR lto/46083
15461 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15462 DECL_FINI_PRIORITY.
15463 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15464 Restore DECL_FINI_PRIORITY.
15465
15466 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15467
15468 * doc/gimple.texi: Fix quoting of multi-word return values in
15469 @deftypefn statements. Ensure presence of return value. Wrap
15470 overlong @deftypefn lines.
15471 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15472 descriptions of removed functions.
15473 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15474 of multi-word return value in @deftypefn statement.
15475
15476 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15477
15478 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15479 (Conditional Expressions, Logical Operators)
15480 (Statement and operand traversals): Do not indent smallexample
15481 code. Fix duplicate function argument in example.
15482
15483 2011-01-10 Jeff Law <law@redhat.com>
15484
15485 PR tree-optimization/47141
15486 * ipa-split.c (split_function): Handle case where we are
15487 returning a value and the return block has a virtual operand phi.
15488
15489 2011-01-10 Jan Hubicka <jh@suse.cz>
15490
15491 PR tree-optimization/47234
15492 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15493 (pass_feedback_split_functions): Declare.
15494 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15495 tree-profile.
15496 * ipa-split.c (gate_split_functions): Update comments; disable
15497 split-functions for profile_arc_flag and branch_probabilities.
15498 (gate_feedback_split_functions): New function.
15499 (execute_feedback_split_functions): New function.
15500 (pass_feedback_split_functions): New global var.
15501
15502 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15503
15504 PR lto/46760
15505 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15506 calling gimple_call_set_cannot_inline.
15507
15508 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15509
15510 * config/darwin-sections.def: Remove unused section.
15511
15512 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15513
15514 PR c++/47218
15515 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15516
15517 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15518
15519 PR objc/47232
15520 * c-parser.c (c_parser_declaration_or_fndef): Improved
15521 error message.
15522
15523 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15524
15525 * config/i386/winnt.c (i386_pe_start_function): Make sure
15526 to switch back to function's section.
15527
15528 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15529
15530 PR gcc/46902
15531 PR testsuite/46912
15532 * plugin.c: Move include of dlfcn.h from here...
15533 * system.h: ... to here.
15534
15535 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15536
15537 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15538 file name.
15539 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15540 two extra empty pages in PDF output.
15541
15542 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15543
15544 PR objc/47078
15545 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15546 for error recovery purposes behave as if it was not specified so
15547 that the default type is usd.
15548
15549 2011-01-07 Jan Hubicka <jh@suse.cz>
15550
15551 PR tree-optmization/46469
15552 * ipa.c (function_and_variable_visibility): Clear needed flags on
15553 nodes with external decls; handle weakrefs merging correctly.
15554
15555 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15556
15557 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15558 not false.
15559
15560 2011-01-07 Jan Hubicka <jh@suse.cz>
15561
15562 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15563 and no longer claim that gold is required for linker plugin.
15564 * configure: Regenerate.
15565 * gcc.c (PLUGIN_COND): New macro.
15566 (LINK_COMMAND_SPEC): Use it.
15567 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15568 * config.in (HAVE_LTO_PLUGIN): New.
15569 * configure.ac (--with-lto-plugin): New parameter; autodetect
15570 HAVE_LTO_PLUGIN.
15571
15572 2011-01-07 Jan Hubicka <jh@suse.cz>
15573
15574 PR tree-optimization/46367
15575 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15576 when we can update original.
15577 (cgraph_mark_inline_edge): Sanity check.
15578 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15579
15580 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15581
15582 * config/spu/spu.h (ASM_COMMENT_START): Define.
15583
15584 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15585
15586 PR driver/42445
15587 * gcc.c (%>S): New.
15588 (SWITCH_KEEP_FOR_GCC): Likewise.
15589 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15590 (do_spec_1): Handle "%>".
15591
15592 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15593
15594 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15595
15596 PR target/47201
15597 * config/i386/i386.c (ix86_delegitimize_address): If
15598 simplify_gen_subreg fails, return orig_x.
15599
15600 PR bootstrap/47187
15601 * value-prof.c (gimple_stringop_fixed_value): Handle
15602 lhs of the call properly.
15603
15604 2011-01-07 Jan Hubicka <jh@suse.cz>
15605
15606 PR lto/45375
15607 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15608
15609 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15610
15611 * target.def (function_switched_text_sections): New hook.
15612 * doc/tm.texi: Regenerated.
15613 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15614 * final.c (default_function_switched_text_sections): New.
15615 (final_scan_insn): Call function_switched_text_sections when a
15616 mid-function section change occurs.
15617 * output.h (default_function_switched_text_sections): Declare.
15618 * config/darwin-protos.h (darwin_function_switched_text_sections):
15619 Likewise.
15620 * config/darwin.c (darwin_function_switched_text_sections): New.
15621 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15622
15623 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15624
15625 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15626 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15627 the secondary code fragment when outputting for DWARF == 2.
15628
15629 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15630
15631 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15632 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15633 Remove.
15634 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15635 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15636
15637 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15638
15639 PR debug/46704
15640 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15641 when it is not empty.
15642
15643 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15644
15645 Bobcat Enablement
15646 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15647 (case ${target}): Add btver1.
15648 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15649 -march=native recognize btver1 processors.
15650 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15651 btver1 def_and_undef
15652 * config/i386/i386.c (struct processor_costs btver1_cost): New
15653 btver1 cost table.
15654 (m_BTVER1): New definition.
15655 (m_AMD_MULTIPLE): Includes m_BTVER1.
15656 (initial_ix86_tune_features): Add btver1 tune.
15657 (processor_target_table): Add btver1 entry.
15658 (static const char *const cpu_names): Add btver1 entry.
15659 (software_prefetching_beneficial_p): Add btver1.
15660 (ix86_option_override_internal): Add btver1 instruction sets.
15661 (ix86_issue_rate): Add btver1.
15662 (ix86_adjust_cost): Add btver1.
15663 * config/i386/i386.h (TARGET_BTVER1): New definition.
15664 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15665 (enum processor_type): Add PROCESSOR_BTVER1.
15666 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15667
15668 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15669
15670 PR target/43309
15671 * config/i386/i386.c (legitimize_tls_address)
15672 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15673 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15674 (tls_initial_exec_64_sun): New pattern.
15675
15676 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15677
15678 * doc/invoke.texi (Overall Options): Improve wording and markup
15679 of the description of -wrapper.
15680
15681 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15682
15683 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15684 rdynamic, threads): New Driver options.
15685
15686 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15687
15688 PR target/38118
15689 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15690 if coming from .tdata.
15691 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15692
15693 2011-01-06 Jan Hubicka <jh@suse.cz>
15694
15695 PR lto/47188
15696 * collect2.c (main): Do not enable LTOmode when plugin is active.
15697
15698 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15699
15700 PR other/45915
15701 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15702 --version output if supported.
15703 * configure: Regenerate.
15704
15705 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15706
15707 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15708 Driver options.
15709
15710 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15711
15712 PR c/47150
15713 * c-convert.c (convert): When converting a complex expression
15714 other than COMPLEX_EXPR to a different complex type, ensure
15715 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15716 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15717 when converting COMPLEX_TYPE.
15718
15719 2011-01-06 Ira Rosen <irar@il.ibm.com>
15720
15721 PR tree-optimization/47139
15722 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15723 only the last reduction value is used outside the loop. Update
15724 documentation.
15725
15726 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15727
15728 * config/rtems.opt: New.
15729 * config.gcc (*-*-rtems*): Use rtems.opt.
15730
15731 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15732
15733 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15734 processors do not support 3DNow instructions.
15735
15736 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15737
15738 * config/spu/spu.c (spu_option_override): Set parameter
15739 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15740
15741 2011-01-05 Jan Hubicka <jh@suse.cz>
15742
15743 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15744 at the command line.
15745
15746 2011-01-05 Martin Jambor <mjambor@suse.cz>
15747
15748 PR lto/47162
15749 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15750 deltas on streamed outgoing edges.
15751 (output_node_opt_summary): Output info for outgoing edges only when
15752 the node is in new parameter set.
15753 (output_cgraph_opt_summary): New parameter set, passed to the two
15754 aforementioned functions. Update its forward declaration and its
15755 callee too.
15756
15757 2011-01-05 Tom Tromey <tromey@redhat.com>
15758
15759 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15760 operator to c_finish_omp_atomic.
15761 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15762 (build_unary_op): Update.
15763 (build_modify_expr): Update.
15764 (build_asm_expr): Update.
15765
15766 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15767
15768 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15769 newly inserted insns.
15770 (pad_bb): Likewise.
15771 (spu_emit_branch_hint): Likewise.
15772 (insert_hbrp_for_ilb_runout): Likewise.
15773 (spu_machine_dependent_reorg): Call df_finish_pass after
15774 schedule_insns returns.
15775
15776 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15777
15778 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15779
15780 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15781
15782 PR tree-optimization/47005
15783 * tree-sra.c (struct access): Add 'non_addressable' bit.
15784 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15785 (decide_one_param_reduction): Return 0 if the parameter is passed by
15786 reference and one of the accesses in the group is non_addressable.
15787
15788 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15789
15790 PR tree-optimization/47056
15791 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15792 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15793 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15794
15795 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15796
15797 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15798 initializer. Skip view conversions from aggregate types.
15799
15800 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15801
15802 PR bootstrap/47055
15803 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15804
15805 2011-01-04 Philipp Thomas <pth@suse.de>
15806
15807 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15808 obvious typo.
15809
15810 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15811
15812 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15813 on empty epilogue sequences.
15814
15815 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15816
15817 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15818 non-static): New Driver options.
15819
15820 2011-01-04 Jie Zhang <jie@codesourcery.com>
15821
15822 PR driver/47137
15823 * gcc.c (default_compilers[]): Set combinable field to 0
15824 for all assembly languages.
15825
15826 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15827
15828 * config/mips/loongson3a.md: New file.
15829 * config/mips/mips.md: Include loongson3a.md.
15830 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15831 TUNE_LOONGSON_3A.
15832
15833 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15834
15835 PR middle-end/47017
15836 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15837 instead of convert_memory_address_addr_space on the base expression.
15838
15839 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15840
15841 * config/spu/spu.c (spu_option_override): Update error text
15842 for bad -march= / -mtune= values.
15843
15844 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15845
15846 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15847 if branch-hint optimization will be performed.
15848
15849 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15850
15851 PR tree-optimization/47148
15852 * ipa-split.c (split_function): Convert arguments to
15853 DECL_ARG_TYPE if possible.
15854
15855 PR tree-optimization/47155
15856 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15857 when computing uns.
15858
15859 PR rtl-optimization/47157
15860 * combine.c (try_combine): If undobuf.other_insn becomes
15861 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15862 and set *new_direct_jump_p too.
15863
15864 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15865
15866 PR tree-optimization/47021
15867 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15868
15869 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15870
15871 * gcc.c (process_command): Update copyright notice dates.
15872 * gcov.c (print_version): Likewise.
15873 * gcov-dump.c (print_version): Likewise.
15874 * mips-tfile.c (main): Likewise.
15875 * mips-tdump.c (main): Likewise.
15876
15877 2011-01-03 Martin Jambor <mjambor@suse.cz>
15878
15879 PR tree-optimization/46801
15880 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15881 aggregate fields start at byte boundary instead of the bit-field flag.
15882
15883 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15884
15885 PR driver/47137
15886 * gcc.c (main): Revert revision 168407.
15887
15888 2011-01-03 Martin Jambor <mjambor@suse.cz>
15889
15890 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15891
15892 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15893
15894 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15895 vector optab to expand vector/scalar shift, update gimple to vector.
15896
15897 2011-01-03 Martin Jambor <mjambor@suse.cz>
15898
15899 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15900 a thunk.
15901
15902 2011-01-03 Martin Jambor <mjambor@suse.cz>
15903
15904 PR tree-optimization/46984
15905 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15906 HOST_WIDE_INT.
15907 (cgraph_create_indirect_edge): Fixed line length.
15908 (cgraph_indirect_call_info): Declare.
15909 (cgraph_make_edge_direct) Update declaration.
15910 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15911 (cgraph_create_indirect_edge): Use it.
15912 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15913 callees.
15914 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15915 the new thunk_delta representation.
15916 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15917 HOST_WIDE_INT.
15918 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15919 (ipa_read_indirect_edge_info): Likewise.
15920 * lto-cgraph.c (output_edge_opt_summary): New function.
15921 (output_node_opt_summary): Call it on all outgoing edges.
15922 (input_edge_opt_summary): New function.
15923 (input_node_opt_summary): Call it on all outgoing edges.
15924
15925 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15926
15927 PR driver/47137
15928 * gcc.c (main): Don't check have_o when settting combine_inputs.
15929
15930 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15931
15932 * regrename.c: Add general comment describing the pass.
15933 (struct du_head): Remove 'length' field.
15934 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15935 (regrename_optimize): Do not sort chains. Rework comments, add others.
15936 Force renaming to the preferred class (if any) in the first pass and do
15937 not consider registers that belong to it in the second pass.
15938 (create_new_chain): Do not set 'length' field.
15939 (scan_rtx_reg): Likewise.
15940
15941 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15942
15943 PR tree-optimization/47140
15944 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15945 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15946 to bit_value_binop.
15947
15948 PR rtl-optimization/47028
15949 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15950 parm_birth_insn instead of at the beginning of first bb.
15951
15952 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15953
15954 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15955 Remove the word "see" before "@pxref".
15956 * doc/rtl.texi: Remove the word "see" before "@pxref".
15957
15958 2011-01-01 Jan Hubicka <jh@suse.cz>
15959
15960 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15961 memory.
15962
15963 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15964
15965 PR target/38662
15966 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15967
15968 \f
15969 Copyright (C) 2011 Free Software Foundation, Inc.
15970
15971 Copying and distribution of this file, with or without modification,
15972 are permitted in any medium without royalty provided the copyright
15973 notice and this notice are preserved.